Package software.amazon.awscdk
Interface CfnResourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:12.721Z")
@Stability(Stable)
public interface CfnResourceProps
extends software.amazon.jsii.JsiiSerializable
Example:
public class MyConstruct extends Resource implements ITaggable {
public final Object tags;
public MyConstruct(Construct scope, String id) {
super(scope, id);
CfnResource.Builder.create(this, "Resource")
.type("Whatever::The::Type")
.properties(Map.of(
// ...
"Tags", this.tags.getRenderedTags()))
.build();
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResourcePropsstatic final classAn implementation forCfnResourceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnResourceProps.Builderbuilder()Resource properties.getType()CloudFormation resource type (e.g.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
CloudFormation resource type (e.g.AWS::S3::Bucket). -
getProperties
Resource properties.Default: - No resource properties.
-
builder
- Returns:
- a
CfnResourceProps.BuilderofCfnResourceProps
-