getResourcePolicy method
Retrieve the account's consolidated SignIn resource-based policy
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw TooManyRequestsError.
Implementation
Future<GetResourcePolicyOutput> getResourcePolicy() async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/get-resource-policy',
endpoint: _resolveEndpoint(
isControlPlane: true,
),
exceptionFnMap: _exceptionFns,
);
return GetResourcePolicyOutput.fromJson(response);
}