Class CfnDeploymentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.greengrassv2.CfnDeploymentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentMixinProps>
- Enclosing interface:
CfnDeploymentMixinProps
@Stability(Stable)
public static final class CfnDeploymentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentMixinProps>
A builder for
CfnDeploymentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.components(Map<String, ? extends Object> components) Sets the value ofCfnDeploymentMixinProps.getComponents()components(IResolvable components) Sets the value ofCfnDeploymentMixinProps.getComponents()deploymentName(String deploymentName) Sets the value ofCfnDeploymentMixinProps.getDeploymentName()deploymentPolicies(CfnDeploymentPropsMixin.DeploymentPoliciesProperty deploymentPolicies) Sets the value ofCfnDeploymentMixinProps.getDeploymentPolicies()deploymentPolicies(IResolvable deploymentPolicies) Sets the value ofCfnDeploymentMixinProps.getDeploymentPolicies()iotJobConfiguration(CfnDeploymentPropsMixin.DeploymentIoTJobConfigurationProperty iotJobConfiguration) Sets the value ofCfnDeploymentMixinProps.getIotJobConfiguration()iotJobConfiguration(IResolvable iotJobConfiguration) Sets the value ofCfnDeploymentMixinProps.getIotJobConfiguration()parentTargetArn(String parentTargetArn) Sets the value ofCfnDeploymentMixinProps.getParentTargetArn()Sets the value ofCfnDeploymentMixinProps.getTags()Sets the value ofCfnDeploymentMixinProps.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
components
Sets the value ofCfnDeploymentMixinProps.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 CfnDeploymentMixinProps.Builder components(Map<String, ? extends Object> components) Sets the value ofCfnDeploymentMixinProps.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 ofCfnDeploymentMixinProps.getDeploymentName()- Parameters:
deploymentName- The name of the deployment.- Returns:
this
-
deploymentPolicies
@Stability(Stable) public CfnDeploymentMixinProps.Builder deploymentPolicies(IResolvable deploymentPolicies) Sets the value ofCfnDeploymentMixinProps.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 CfnDeploymentMixinProps.Builder deploymentPolicies(CfnDeploymentPropsMixin.DeploymentPoliciesProperty deploymentPolicies) Sets the value ofCfnDeploymentMixinProps.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 CfnDeploymentMixinProps.Builder iotJobConfiguration(IResolvable iotJobConfiguration) Sets the value ofCfnDeploymentMixinProps.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 CfnDeploymentMixinProps.Builder iotJobConfiguration(CfnDeploymentPropsMixin.DeploymentIoTJobConfigurationProperty iotJobConfiguration) Sets the value ofCfnDeploymentMixinProps.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 ofCfnDeploymentMixinProps.getParentTargetArn()- Parameters:
parentTargetArn- The parent deployment's ARN for a subdeployment.- Returns:
this
-
tags
Sets the value ofCfnDeploymentMixinProps.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
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
-
targetArn
Sets the value ofCfnDeploymentMixinProps.getTargetArn()- Parameters:
targetArn- The ARN of the target AWS IoT thing or thing group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentMixinProps>- Returns:
- a new instance of
CfnDeploymentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-