AWS::XRay::ResourcePolicyUse `AWS::XRay::ResourcePolicy` to specify an X-Ray resource-based policy, which grants one or more AWS services and accounts permissions to access X-Ray . Each resource-based policy is associated with a specific AWS account.
import { CfnResourcePolicy } from 'aws-cdk-lib/aws-xray';Or use the module namespace:
import * as xray from 'aws-cdk-lib/aws-xray';
// xray.CfnResourcePolicyConfiguration passed to the constructor as CfnResourcePolicyProps.
policyDocumentRequiredstringThe resource-based policy document, which can be up to 5kb in size.
policyNameRequiredstringThe name of the resource-based policy. Must be unique within a specific AWS account.
bypassPolicyLockoutCheckOptionalboolean | IResolvableA flag to indicate whether to bypass the resource-based policy lockout safety check.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-xrayAWS::XRay::ResourcePolicy