OpenSearchIngestion / Client / put_resource_policy
put_resource_policy¶
- OpenSearchIngestion.Client.put_resource_policy(**kwargs)¶
- Attaches a resource-based policy to an OpenSearch Ingestion resource. Resource-based policies grant permissions to principals to perform actions on the resource. - See also: AWS API Documentation - Request Syntax- response = client.put_resource_policy( ResourceArn='string', Policy='string' ) - Parameters:
- ResourceArn (string) – - [REQUIRED] - The Amazon Resource Name (ARN) of the resource to attach the policy to. 
- Policy (string) – - [REQUIRED] - The resource-based policy document in JSON format. 
 
- 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 that was attached to the resource. 
 
 
 - 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