PinpointSMSVoiceV2 / Client / delete_resource_policy

delete_resource_policy#

PinpointSMSVoiceV2.Client.delete_resource_policy(**kwargs)#

Deletes 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.delete_resource_policy(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource you’re deleting the resource-based policy from.

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 that the resource-based policy was deleted from.

    • Policy (string) –

      The JSON formatted resource-based policy that was deleted.

    • CreatedTimestamp (datetime) –

      The time when the resource-based policy was created, in UNIX epoch time format.

Exceptions