Class CfnDeployment.DeploymentComponentUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentComponentUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.DeploymentComponentUpdatePolicyProperty>
- Enclosing interface:
- CfnDeployment.DeploymentComponentUpdatePolicyProperty
@Stability(Stable)
public static final class CfnDeployment.DeploymentComponentUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.DeploymentComponentUpdatePolicyProperty>
A builder for
CfnDeployment.DeploymentComponentUpdatePolicyProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDeployment.DeploymentComponentUpdatePolicyProperty.getAction()
build()
Builds the configured instance.timeoutInSeconds
(Number timeoutInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeployment.DeploymentComponentUpdatePolicyProperty.Builder action(String action) Sets the value ofCfnDeployment.DeploymentComponentUpdatePolicyProperty.getAction()
- Parameters:
action
- Whether or not to notify components and wait for components to become safe to update. Choose from the following options:NOTIFY_COMPONENTS
– The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide .SKIP_NOTIFY_COMPONENTS
– The deployment doesn't notify components or wait for them to be safe to update.
Default:
NOTIFY_COMPONENTS
- Returns:
this
-
timeoutInSeconds
@Stability(Stable) public CfnDeployment.DeploymentComponentUpdatePolicyProperty.Builder timeoutInSeconds(Number timeoutInSeconds) - Parameters:
timeoutInSeconds
- The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.Default:
60
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeployment.DeploymentComponentUpdatePolicyProperty>
- Returns:
- a new instance of
CfnDeployment.DeploymentComponentUpdatePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-