Skip to content
v2.278.0

CfnClusterPolicyProps ​

Struct External

Properties for defining a CfnClusterPolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';

declare const policy: any;
const cfnClusterPolicyProps: msk.CfnClusterPolicyProps = {
  clusterArn: 'clusterArn',
  policy: policy,
};
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_msk as msk

# policy: Any

cfn_cluster_policy_props = msk.CfnClusterPolicyProps(
    cluster_arn="clusterArn",
    policy=policy
)
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.msk.*;

Object policy;

CfnClusterPolicyProps cfnClusterPolicyProps = CfnClusterPolicyProps.builder()
        .clusterArn("clusterArn")
        .policy(policy)
        .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.MSK;

var policy;

var cfnClusterPolicyProps = new CfnClusterPolicyProps {
    ClusterArn = "clusterArn",
    Policy = policy
};
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"

var policy interface{}

cfnClusterPolicyProps := &CfnClusterPolicyProps{
	ClusterArn: jsii.String("clusterArn"),
	Policy: policy,
}

Properties ​

clusterArnstringcluster_arnstrclusterArnStringClusterArnstringClusterArn*string required #
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
policyanypolicyAnypolicyObjectPolicyobjectPolicyinterface{} required #
Resource policy for the cluster.

The maximum size supported for a resource-based policy document is 20 KB.