Skip to content
v2.278.0

CfnResourcePolicyProps ​

Struct External

Properties for defining a CfnResourcePolicy.

Example ​

ts
// 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,
};
python
# 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
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.xray.*;

CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
        .policyDocument("policyDocument")
        .policyName("policyName")

        // the properties below are optional
        .bypassPolicyLockoutCheck(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.XRay;

var cfnResourcePolicyProps = new CfnResourcePolicyProps {
    PolicyDocument = "policyDocument",
    PolicyName = "policyName",

    // the properties below are optional
    BypassPolicyLockoutCheck = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnResourcePolicyProps := &CfnResourcePolicyProps{
	PolicyDocument: jsii.String("policyDocument"),
	PolicyName: jsii.String("policyName"),

	// the properties below are optional
	BypassPolicyLockoutCheck: jsii.Boolean(false),
}

Properties ​

bypassPolicyLockoutCheckoptionalboolean | IResolvablebypass_policy_lockout_checkoptionaltyping.Union[bool, IResolvable]bypassPolicyLockoutCheckoptionalBooleanBypassPolicyLockoutCheckoptionalboolBypassPolicyLockoutCheckoptionalinterface{} #
A flag to indicate whether to bypass the resource-based policy lockout safety check.
policyDocumentstringpolicy_documentstrpolicyDocumentStringPolicyDocumentstringPolicyDocument*string required #
The resource-based policy document, which can be up to 5kb in size.
policyNamestringpolicy_namestrpolicyNameStringPolicyNamestringPolicyName*string required #
The name of the resource-based policy.

Must be unique within a specific AWS account.