aws-cdk-lib.aws_xray.CfnResourcePolicyProps

interface CfnResourcePolicyProps

LanguageType name
.NETAmazon.CDK.AWS.XRay.CfnResourcePolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsxray#CfnResourcePolicyProps
Javasoftware.amazon.awscdk.services.xray.CfnResourcePolicyProps
Pythonaws_cdk.aws_xray.CfnResourcePolicyProps
TypeScript aws-cdk-lib » aws_xray » CfnResourcePolicyProps

Properties for defining a CfnResourcePolicy.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_xray as xray } from 'aws-cdk-lib';
const cfnResourcePolicyProps: xray.CfnResourcePolicyProps = {
  policyDocument: 'policyDocument',
  policyName: 'policyName',

  // the properties below are optional
  bypassPolicyLockoutCheck: false,
};

Properties

NameTypeDescription
policyDocumentstringThe resource-based policy document, which can be up to 5kb in size.
policyNamestringThe name of the resource-based policy.
bypassPolicyLockoutCheck?boolean | IResolvableA flag to indicate whether to bypass the resource-based policy lockout safety check.

policyDocument

Type: string

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


policyName

Type: string

The name of the resource-based policy.

Must be unique within a specific AWS account.


bypassPolicyLockoutCheck?

Type: boolean | IResolvable (optional)

A flag to indicate whether to bypass the resource-based policy lockout safety check.