Class CfnCoreDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCoreDefinitionProps>
- Enclosing interface:
- CfnCoreDefinitionProps
CfnCoreDefinitionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.initialVersion(IResolvable initialVersion) Sets the value ofCfnCoreDefinitionProps.getInitialVersion()initialVersion(CfnCoreDefinition.CoreDefinitionVersionProperty initialVersion) Sets the value ofCfnCoreDefinitionProps.getInitialVersion()Sets the value ofCfnCoreDefinitionProps.getName()Sets the value ofCfnCoreDefinitionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCoreDefinitionProps.getName()- Parameters:
name- The name of the core definition. This parameter is required.- Returns:
this
-
initialVersion
Sets the value ofCfnCoreDefinitionProps.getInitialVersion()- Parameters:
initialVersion- The core definition version to include when the core definition is created. Currently, a core definition version can contain only onecore.To associate a core definition version after the core definition is created, create an
AWS::Greengrass::CoreDefinitionVersionresource and specify the ID of this core definition.- Returns:
this
-
initialVersion
@Stability(Stable) public CfnCoreDefinitionProps.Builder initialVersion(CfnCoreDefinition.CoreDefinitionVersionProperty initialVersion) Sets the value ofCfnCoreDefinitionProps.getInitialVersion()- Parameters:
initialVersion- The core definition version to include when the core definition is created. Currently, a core definition version can contain only onecore.To associate a core definition version after the core definition is created, create an
AWS::Greengrass::CoreDefinitionVersionresource and specify the ID of this core definition.- Returns:
this
-
tags
Sets the value ofCfnCoreDefinitionProps.getTags()- Parameters:
tags- Application-specific metadata to attach to the core 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 AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCoreDefinitionProps>- Returns:
- a new instance of
CfnCoreDefinitionProps - Throws:
NullPointerException- if any required attribute was not provided
-