getConfiguration method
Retrieves setting configurations for Amazon Inspector scans. If you
specify an accountId, this operation returns the scan
configuration for that member account. You must be the delegated
administrator for the specified member account. If you do not specify an
accountId, this operation returns your own scan
configuration.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
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 retrieve. When specified, you must be the
delegated administrator for this member account. If not specified, the
operation returns your own configuration.
Implementation
Future<GetConfigurationResponse> getConfiguration({
String? accountId,
}) async {
final $payload = <String, dynamic>{
if (accountId != null) 'accountId': accountId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/configuration/get',
exceptionFnMap: _exceptionFns,
);
return GetConfigurationResponse.fromJson(response);
}