CfnResourcePolicyProps
- class aws_cdk.aws_xray.CfnResourcePolicyProps(*, policy_document, policy_name, bypass_policy_lockout_check=None)
Bases:
object
Properties for defining a
CfnResourcePolicy
.- Parameters:
policy_document (
str
) – The resource-based policy document, which can be up to 5kb in size.policy_name (
str
) – The name of the resource-based policy. Must be unique within a specific AWS account.bypass_policy_lockout_check (
Union
[bool
,IResolvable
,None
]) – A flag to indicate whether to bypass the resource-based policy lockout safety check.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_xray as xray cfn_resource_policy_props = xray.CfnResourcePolicyProps( policy_document="policyDocument", policy_name="policyName", # the properties below are optional bypass_policy_lockout_check=False )
Attributes
- bypass_policy_lockout_check
A flag to indicate whether to bypass the resource-based policy lockout safety check.
- policy_document
The resource-based policy document, which can be up to 5kb in size.
- policy_name
The name of the resource-based policy.
Must be unique within a specific AWS account.