PinpointSMSVoiceV2 / Client / get_resource_policy
get_resource_policy#
- PinpointSMSVoiceV2.Client.get_resource_policy(**kwargs)#
- Retrieves the JSON text of the resource-based policy document attached to the AWS End User Messaging SMS and Voice resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number. - 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 AWS End User Messaging SMS and Voice resource attached to the resource-based policy. 
- 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 string that contains the resource-based policy attached to the AWS End User Messaging SMS and Voice resource. 
- 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