OpenSearchIngestion / Client / get_resource_policy

get_resource_policy

OpenSearchIngestion.Client.get_resource_policy(**kwargs)

Retrieves the resource-based policy attached to an OpenSearch Ingestion resource.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource for which to retrieve the policy.

Return type:

dict

Returns:

Response Syntax

{
    'ResourceArn': 'string',
    'Policy': 'string'
}

Response Structure

  • (dict) –

    • ResourceArn (string) –

      The Amazon Resource Name (ARN) of the resource.

    • Policy (string) –

      The resource-based policy document in JSON format.

Exceptions

  • OpenSearchIngestion.Client.exceptions.DisabledOperationException

  • OpenSearchIngestion.Client.exceptions.LimitExceededException

  • OpenSearchIngestion.Client.exceptions.ValidationException

  • OpenSearchIngestion.Client.exceptions.InternalException

  • OpenSearchIngestion.Client.exceptions.ResourceNotFoundException

  • OpenSearchIngestion.Client.exceptions.AccessDeniedException