Class CfnResource.Builder

java.lang.Object
software.amazon.awscdk.core.CfnResource.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResource>
Enclosing class:
CfnResource

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

    • create

      @Stability(Stable) public static CfnResource.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of CfnResource.Builder.
    • type

      @Stability(Stable) public CfnResource.Builder type(String type)
      CloudFormation resource type (e.g. AWS::S3::Bucket).

      Parameters:
      type - CloudFormation resource type (e.g. AWS::S3::Bucket). This parameter is required.
      Returns:
      this
    • properties

      @Stability(Stable) public CfnResource.Builder properties(Map<String,? extends Object> properties)
      Resource properties.

      Default: - No resource properties.

      Parameters:
      properties - Resource properties. This parameter is required.
      Returns:
      this
    • build

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