Package software.amazon.awscdk.core
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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnResource.Builder
properties
(Map<String, ? extends Object> properties) Resource properties.CloudFormation resource type (e.g.
-
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
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
Resource properties.Default: - No resource properties.
- Parameters:
properties
- Resource properties. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResource>
- Returns:
- a newly built instance of
CfnResource
.
-