Class CfnResourceDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefinitionMixinProps>
- Enclosing interface:
CfnResourceDefinitionMixinProps
CfnResourceDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResourceDefinitionMixinProps.getInitialVersion()initialVersion(IResolvable initialVersion) Sets the value ofCfnResourceDefinitionMixinProps.getInitialVersion()Sets the value ofCfnResourceDefinitionMixinProps.getName()Sets the value ofCfnResourceDefinitionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
initialVersion
@Stability(Stable) public CfnResourceDefinitionMixinProps.Builder initialVersion(IResolvable initialVersion) Sets the value ofCfnResourceDefinitionMixinProps.getInitialVersion()- Parameters:
initialVersion- The resource definition version to include when the resource definition is created. A resource definition version contains a list ofresource instanceproperty types.To associate a resource definition version after the resource definition is created, create an
AWS::Greengrass::ResourceDefinitionVersionresource and specify the ID of this resource definition.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnResourceDefinitionMixinProps.Builder initialVersion(CfnResourceDefinitionPropsMixin.ResourceDefinitionVersionProperty initialVersion) Sets the value ofCfnResourceDefinitionMixinProps.getInitialVersion()- Parameters:
initialVersion- The resource definition version to include when the resource definition is created. A resource definition version contains a list ofresource instanceproperty types.To associate a resource definition version after the resource definition is created, create an
AWS::Greengrass::ResourceDefinitionVersionresource and specify the ID of this resource definition.- Returns:
this
-
name
Sets the value ofCfnResourceDefinitionMixinProps.getName()- Parameters:
name- The name of the resource definition.- Returns:
this
-
tags
Sets the value ofCfnResourceDefinitionMixinProps.getTags()- Parameters:
tags- Application-specific metadata to attach to the resource definition. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .This
Jsonproperty type is processed as a map of key-value pairs. It uses the following format, which is different from mostTagsimplementations in CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceDefinitionMixinProps>- Returns:
- a new instance of
CfnResourceDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-