Class CfnClusterPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.msk.CfnClusterPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPolicy>
Enclosing class:
CfnClusterPolicy

@Stability(Stable) public static final class CfnClusterPolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnClusterPolicy>
A fluent builder for CfnClusterPolicy.
  • Method Details

    • create

      @Stability(Stable) public static CfnClusterPolicy.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnClusterPolicy.Builder.
    • clusterArn

      @Stability(Stable) public CfnClusterPolicy.Builder clusterArn(String clusterArn)
      The Amazon Resource Name (ARN) that uniquely identifies the cluster.

      Parameters:
      clusterArn - The Amazon Resource Name (ARN) that uniquely identifies the cluster. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnClusterPolicy.Builder policy(Object policy)
      Resource policy for the cluster.

      Parameters:
      policy - Resource policy for the cluster. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnClusterPolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnClusterPolicy>
      Returns:
      a newly built instance of CfnClusterPolicy.