AWS::XRay::ResourcePolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::XRay::ResourcePolicy

Sets the resource policy to grant one or more Amazon services and accounts permissions to access X-Ray. Each resource policy will be associated with a specific Amazon account. Each Amazon account can have a maximum of 5 resource policies, and each policy name must be unique within that account. The maximum size of each resource policy is 5KB.

Syntax

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

JSON

{ "Type" : "AWS::XRay::ResourcePolicy", "Properties" : { "BypassPolicyLockoutCheck" : Boolean, "PolicyDocument" : String, "PolicyName" : String } }

YAML

Type: AWS::XRay::ResourcePolicy Properties: BypassPolicyLockoutCheck: Boolean PolicyDocument: String PolicyName: String

Properties

BypassPolicyLockoutCheck

Not currently supported by Amazon CloudFormation.

Required: No

Type: Boolean

Update requires: No interruption

PolicyDocument

The resource policy document, which can be up to 5kb in size.

Required: Yes

Type: String

Update requires: No interruption

PolicyName

The name of the resource policy. Must be unique within a specific Amazon account.

Required: Yes

Type: String

Minimum: 1

Maximum: 128

Pattern: [\w+=,.@-]+

Update requires: Replacement

Return values

Ref