v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14109583546.7 KB

Attaches a resource-based policy to a End User Messaging SMS 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 <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/shared-resources.html">Working with shared resources</a> in the <i>End User Messaging SMS User Guide</i>.

post/#X-Amz-Target=PinpointSMSVoiceV2.PutResourcePolicy

Headers

X-Amz-Target'PinpointSMSVoiceV2.PutResourcePolicy' required

Request body

ResourceArnstring required

The Amazon Resource Name (ARN) of the End User Messaging SMS resource to attach the resource-based policy to.

Policystring required

The JSON formatted resource-based policy to attach.

Response

Success

ResourceArnstring

The Amazon Resource Name (ARN) of the End User Messaging SMS resource attached to the resource-based policy.

Policystring

The JSON formatted Resource Policy.

CreatedTimestampstring date-time

The time when the resource-based policy was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.