updateConfiguration method
- String? accountId,
- Ec2Configuration? ec2Configuration,
- EcrConfiguration? ecrConfiguration,
- UpdateConfigurationInheritance? updateConfigurationInheritance,
Updates the scan configuration for your Amazon Inspector account. If you
don't specify an accountId, this operation updates the
delegated administrator's configuration and propagates it to member
accounts that have not been individually configured. If you specify an
accountId, this operation updates that member account's
configuration. Only the delegated administrator can specify an
accountId; member accounts cannot call this operation.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter accountId :
The 12-digit Amazon Web Services account ID of the member account whose
scan configuration you want to update. When specified, you must be the
delegated administrator for this member account. If not specified, the
operation updates your own configuration and propagates changes to any
member accounts that have not been individually configured.
Parameter ec2Configuration :
Specifies how the Amazon EC2 automated scan will be updated for your
environment.
Parameter ecrConfiguration :
Specifies how the ECR automated re-scan will be updated for your
environment.
Parameter updateConfigurationInheritance :
Specifies which scan-type configurations to reset to the delegated
administrator's inherited values for the targeted member account. Each
member of this structure is independently optional. When specified,
ec2Configuration and ecrConfiguration must be
absent, and accountId must also be present. Only
INHERIT_FROM_ADMIN is valid for each member. If not
specified, the operation uses the ec2Configuration and
ecrConfiguration parameters instead.
Implementation
Future<void> updateConfiguration({
String? accountId,
Ec2Configuration? ec2Configuration,
EcrConfiguration? ecrConfiguration,
UpdateConfigurationInheritance? updateConfigurationInheritance,
}) async {
final $payload = <String, dynamic>{
if (accountId != null) 'accountId': accountId,
if (ec2Configuration != null) 'ec2Configuration': ec2Configuration,
if (ecrConfiguration != null) 'ecrConfiguration': ecrConfiguration,
if (updateConfigurationInheritance != null)
'updateConfigurationInheritance': updateConfigurationInheritance,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/configuration/update',
exceptionFnMap: _exceptionFns,
);
}