interface CfnResourceProps
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
![]() | Amazon.CDK.CfnResourceProps |
![]() | software.amazon.awscdk.core.CfnResourceProps |
![]() | aws_cdk.core.CfnResourceProps |
![]() | @aws-cdk/core » CfnResourceProps |
Example
import * as cdk from '@aws-cdk/core';
class MyConstruct extends cdk.Resource implements cdk.ITaggable {
public readonly tags = new cdk.TagManager(cdk.TagType.KEY_VALUE, 'Whatever::The::Type');
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
new cdk.CfnResource(this, 'Resource', {
type: 'Whatever::The::Type',
properties: {
// ...
Tags: this.tags.renderedTags,
},
});
}
}
Properties
Name | Type | Description |
---|---|---|
type | string | CloudFormation resource type (e.g. AWS::S3::Bucket ). |
properties? | { [string]: any } | Resource properties. |
type
Type:
string
CloudFormation resource type (e.g. AWS::S3::Bucket
).
properties?
Type:
{ [string]: any }
(optional, default: No resource properties.)
Resource properties.