AWS::SMSVOICE::ResourcePolicy - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::SMSVOICE::ResourcePolicy

Attaches a resource-based policy to a AWS 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 Working with shared resources in the AWS End User Messaging SMS User Guide.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SMSVOICE::ResourcePolicy", "Properties" : { "PolicyDocument" : Json, "ResourceArn" : String } }

YAML

Type: AWS::SMSVOICE::ResourcePolicy Properties: PolicyDocument: Json ResourceArn: String

Properties

PolicyDocument

The JSON formatted resource-based policy to attach.

Required: Yes

Type: Json

Update requires: No interruption

ResourceArn

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

Required: Yes

Type: String

Pattern: ^arn:\S+$

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns ResourceArn