Class CfnDeploymentProps.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnDeploymentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentProps>
- Enclosing interface:
CfnDeploymentProps
@Stability(Stable)
public static final class CfnDeploymentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentProps>
A builder for
CfnDeploymentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.components
(Map<String, ? extends Object> components) Sets the value ofCfnDeploymentProps.getComponents()
components
(IResolvable components) Sets the value ofCfnDeploymentProps.getComponents()
deploymentName
(String deploymentName) Sets the value ofCfnDeploymentProps.getDeploymentName()
deploymentPolicies
(IResolvable deploymentPolicies) Sets the value ofCfnDeploymentProps.getDeploymentPolicies()
deploymentPolicies
(CfnDeployment.DeploymentPoliciesProperty deploymentPolicies) Sets the value ofCfnDeploymentProps.getDeploymentPolicies()
iotJobConfiguration
(IResolvable iotJobConfiguration) Sets the value ofCfnDeploymentProps.getIotJobConfiguration()
iotJobConfiguration
(CfnDeployment.DeploymentIoTJobConfigurationProperty iotJobConfiguration) Sets the value ofCfnDeploymentProps.getIotJobConfiguration()
parentTargetArn
(String parentTargetArn) Sets the value ofCfnDeploymentProps.getParentTargetArn()
Sets the value ofCfnDeploymentProps.getTags()
Sets the value ofCfnDeploymentProps.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetArn
Sets the value ofCfnDeploymentProps.getTargetArn()
- Parameters:
targetArn
- The ARN of the target AWS IoT thing or thing group. This parameter is required.- Returns:
this
-
components
Sets the value ofCfnDeploymentProps.getComponents()
- Parameters:
components
- The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.- Returns:
this
-
components
@Stability(Stable) public CfnDeploymentProps.Builder components(Map<String, ? extends Object> components) Sets the value ofCfnDeploymentProps.getComponents()
- Parameters:
components
- The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.- Returns:
this
-
deploymentName
Sets the value ofCfnDeploymentProps.getDeploymentName()
- Parameters:
deploymentName
- The name of the deployment.- Returns:
this
-
deploymentPolicies
@Stability(Stable) public CfnDeploymentProps.Builder deploymentPolicies(IResolvable deploymentPolicies) Sets the value ofCfnDeploymentProps.getDeploymentPolicies()
- Parameters:
deploymentPolicies
- The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.- Returns:
this
-
deploymentPolicies
@Stability(Stable) public CfnDeploymentProps.Builder deploymentPolicies(CfnDeployment.DeploymentPoliciesProperty deploymentPolicies) Sets the value ofCfnDeploymentProps.getDeploymentPolicies()
- Parameters:
deploymentPolicies
- The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.- Returns:
this
-
iotJobConfiguration
@Stability(Stable) public CfnDeploymentProps.Builder iotJobConfiguration(IResolvable iotJobConfiguration) Sets the value ofCfnDeploymentProps.getIotJobConfiguration()
- Parameters:
iotJobConfiguration
- The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.- Returns:
this
-
iotJobConfiguration
@Stability(Stable) public CfnDeploymentProps.Builder iotJobConfiguration(CfnDeployment.DeploymentIoTJobConfigurationProperty iotJobConfiguration) Sets the value ofCfnDeploymentProps.getIotJobConfiguration()
- Parameters:
iotJobConfiguration
- The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.- Returns:
this
-
parentTargetArn
Sets the value ofCfnDeploymentProps.getParentTargetArn()
- Parameters:
parentTargetArn
- The parent deployment's ARN for a subdeployment.- Returns:
this
-
tags
Sets the value ofCfnDeploymentProps.getTags()
- Parameters:
tags
- Application-specific metadata to attach to the deployment. 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 Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 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<CfnDeploymentProps>
- Returns:
- a new instance of
CfnDeploymentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-