Class CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.greengrassv2.CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty>
- Enclosing interface:
CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty
@Stability(Stable)
public static final class CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.timeoutInSeconds(Number timeoutInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.Builder action(String action) - 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 CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.Builder timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty.getTimeoutInSeconds()- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty>- Returns:
- a new instance of
CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-