PinpointSMSVoiceV2 / Client / put_resource_policy
put_resource_policy#
- PinpointSMSVoiceV2.Client.put_resource_policy(**kwargs)#
- Attaches a resource-based policy to a AWS End User Messaging SMS and Voice resource(phone number, sender Id, phone poll, or opt-out list) that is used for sharing the resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number. For more information about resource-based policies, see Working with shared resources in the AWS End User Messaging SMS User Guide. - 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 AWS End User Messaging SMS and Voice resource to attach the resource-based policy to. 
- Policy (string) – - [REQUIRED] - The JSON formatted resource-based policy to attach. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'ResourceArn': 'string', 'Policy': 'string', 'CreatedTimestamp': datetime(2015, 1, 1) } - Response Structure- (dict) – - ResourceArn (string) – - The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource attached to the resource-based policy. 
- Policy (string) – - The JSON formatted Resource Policy. 
- CreatedTimestamp (datetime) – - The time when the resource-based policy was created, in UNIX epoch time format. 
 
 
 - Exceptions- PinpointSMSVoiceV2.Client.exceptions.ThrottlingException
- PinpointSMSVoiceV2.Client.exceptions.AccessDeniedException
- PinpointSMSVoiceV2.Client.exceptions.ResourceNotFoundException
- PinpointSMSVoiceV2.Client.exceptions.ValidationException
- PinpointSMSVoiceV2.Client.exceptions.InternalServerException