Class CfnResourcePolicy.Builder

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

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

    • create

      @Stability(Stable) public static CfnResourcePolicy.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 CfnResourcePolicy.Builder.
    • policy

      @Stability(Stable) public CfnResourcePolicy.Builder policy(Object policy)
      A policy you want to associate with a resource.

      Parameters:
      policy - A policy you want to associate with a resource. This parameter is required.
      Returns:
      this
    • resourceArn

      @Stability(Stable) public CfnResourcePolicy.Builder resourceArn(String resourceArn)
      Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

      Parameters:
      resourceArn - Amazon Resource Name (ARN) of the resource to which you want to attach a policy. This parameter is required.
      Returns:
      this
    • build

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