Skip to content
v2.274.0

CfnResourceDefinitionPropsMixin Mixin ​

The AWS::Greengrass::ResourceDefinition resource represents a resource definition for AWS IoT Greengrass .

Resource definitions are used to organize your resource definition versions.

Resource definitions can reference multiple resource definition versions. All resource definition versions must be associated with a resource definition. Each resource definition version can contain one or more resources. (In CloudFormation , resources are named resource instances .)

When you create a resource definition, you can optionally include an initial resource definition version. To associate a resource definition version later, create an AWS::Greengrass::ResourceDefinitionVersion resource and specify the ID of this resource definition.

After you create the resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see AWS::Greengrass::Group .

Initializer ​

ts
new CfnResourceDefinitionPropsMixin(props: CfnResourceDefinitionMixinProps, options?: CfnPropertyMixinOptions)
python
CfnResourceDefinitionPropsMixin(props: CfnResourceDefinitionMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnResourceDefinitionPropsMixin(CfnResourceDefinitionMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnResourceDefinitionPropsMixin(CfnResourceDefinitionMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnResourceDefinitionPropsMixin(Props CfnResourceDefinitionMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.