Class CfnResourceDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefinition>
- Enclosing class:
CfnResourceDefinition
CfnResourceDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
initialVersion
(IResolvable initialVersion) The resource definition version to include when the resource definition is created.The resource definition version to include when the resource definition is created.The name of the resource definition.Application-specific metadata to attach to the resource definition.
-
Method Details
-
create
@Stability(Stable) public static CfnResourceDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnResourceDefinition.Builder
.
-
name
The name of the resource definition.- Parameters:
name
- The name of the resource definition. This parameter is required.- Returns:
this
- See Also:
-
initialVersion
The resource definition version to include when the resource definition is created.A resource definition version contains a list of
resource 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.- Parameters:
initialVersion
- The resource definition version to include when the resource definition is created. This parameter is required.- Returns:
this
- See Also:
-
initialVersion
@Stability(Stable) public CfnResourceDefinition.Builder initialVersion(CfnResourceDefinition.ResourceDefinitionVersionProperty initialVersion) The resource definition version to include when the resource definition is created.A resource definition version contains a list of
resource 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.- Parameters:
initialVersion
- The resource definition version to include when the resource definition is created. This parameter is required.- Returns:
this
- See Also:
-
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" }
- Parameters:
tags
- Application-specific metadata to attach to the resource definition. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDefinition>
- Returns:
- a newly built instance of
CfnResourceDefinition
.
-