Class CfnStateMachineVersion.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachineVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachineVersion>
- Enclosing class:
CfnStateMachineVersion
@Stability(Stable)
public static final class CfnStateMachineVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachineVersion>
A fluent builder for
CfnStateMachineVersion
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) An optional description of the state machine version.stateMachineArn
(String stateMachineArn) The Amazon Resource Name (ARN) of the state machine.stateMachineRevisionId
(String stateMachineRevisionId) Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration.
-
Method Details
-
create
@Stability(Stable) public static CfnStateMachineVersion.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnStateMachineVersion.Builder
.
-
stateMachineArn
The Amazon Resource Name (ARN) of the state machine.- Parameters:
stateMachineArn
- The Amazon Resource Name (ARN) of the state machine. This parameter is required.- Returns:
this
- See Also:
-
description
An optional description of the state machine version.- Parameters:
description
- An optional description of the state machine version. This parameter is required.- Returns:
this
- See Also:
-
stateMachineRevisionId
@Stability(Stable) public CfnStateMachineVersion.Builder stateMachineRevisionId(String stateMachineRevisionId) Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration.Only publish the state machine version if the current state machine's revision ID matches the specified ID. Use this option to avoid publishing a version if the state machine has changed since you last updated it.
To specify the initial state machine revision, set the value as
INITIAL
.- Parameters:
stateMachineRevisionId
- Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStateMachineVersion>
- Returns:
- a newly built instance of
CfnStateMachineVersion
.
-