Class CfnResourceDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefinitionProps>
- Enclosing interface:
CfnResourceDefinitionProps
CfnResourceDefinitionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.initialVersion
(IResolvable initialVersion) Sets the value ofCfnResourceDefinitionProps.getInitialVersion()
Sets the value ofCfnResourceDefinitionProps.getInitialVersion()
Sets the value ofCfnResourceDefinitionProps.getName()
Sets the value ofCfnResourceDefinitionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnResourceDefinitionProps.getName()
- Parameters:
name
- The name of the resource definition. This parameter is required.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnResourceDefinitionProps.Builder initialVersion(IResolvable initialVersion) Sets the value ofCfnResourceDefinitionProps.getInitialVersion()
- Parameters:
initialVersion
- The resource definition version to include when the resource definition is created. A resource definition version contains a list ofresource instance
property types.To associate a resource definition version after the resource definition is created, create an
AWS::Greengrass::ResourceDefinitionVersion
resource and specify the ID of this resource definition.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnResourceDefinitionProps.Builder initialVersion(CfnResourceDefinition.ResourceDefinitionVersionProperty initialVersion) Sets the value ofCfnResourceDefinitionProps.getInitialVersion()
- Parameters:
initialVersion
- The resource definition version to include when the resource definition is created. A resource definition version contains a list ofresource instance
property types.To associate a resource definition version after the resource definition is created, create an
AWS::Greengrass::ResourceDefinitionVersion
resource and specify the ID of this resource definition.- Returns:
this
-
tags
Sets the value ofCfnResourceDefinitionProps.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
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDefinitionProps>
- Returns:
- a new instance of
CfnResourceDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-