CfnResourceProps
- class aws_cdk.CfnResourceProps(*, type, properties=None)
Bases:
object
- Parameters:
type (
str
) – CloudFormation resource type (e.g.AWS::S3::Bucket
).properties (
Optional
[Mapping
[str
,Any
]]) – Resource properties. Default: - No resource properties.
- ExampleMetadata:
infused
Example:
@jsii.implements(ITaggable) class MyConstruct(Resource): def __init__(self, scope, id): super().__init__(scope, id) CfnResource(self, "Resource", type="Whatever::The::Type", properties={ # ... "Tags": self.tags.rendered_tags } )
Attributes
- properties
Resource properties.
- Default:
No resource properties.
- type
CloudFormation resource type (e.g.
AWS::S3::Bucket
).