getConfigurationPolicy method
Provides information about a configuration policy. Only the Security Hub CSPM delegated administrator can invoke this operation from the home Region.
May throw AccessDeniedException.
May throw InternalException.
May throw InvalidAccessException.
May throw InvalidInputException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
Parameter identifier :
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of
the configuration policy.
Implementation
Future<GetConfigurationPolicyResponse> getConfigurationPolicy({
required String identifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/configurationPolicy/get/${Uri.encodeComponent(identifier)}',
exceptionFnMap: _exceptionFns,
);
return GetConfigurationPolicyResponse.fromJson(response);
}