getResourcePolicy method
Retrieves the resource-based policy attached to an OpenSearch Ingestion resource.
May throw AccessDeniedException.
May throw DisabledOperationException.
May throw InternalException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource for which to retrieve the
policy.
Implementation
Future<GetResourcePolicyResponse> getResourcePolicy({
required String resourceArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2022-01-01/osis/resourcePolicy/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
return GetResourcePolicyResponse.fromJson(response);
}