Class CfnStateMachineAlias
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias
- All Implemented Interfaces:
IInspectable,IStateMachineAliasRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.793Z")
@Stability(Stable)
public class CfnStateMachineAlias
extends CfnResource
implements IInspectable, IStateMachineAliasRef
Represents a state machine alias . An alias routes traffic to one or two versions of the same state machine.
You can create up to 100 aliases for each state machine.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
CfnStateMachineAlias cfnStateMachineAlias = CfnStateMachineAlias.Builder.create(this, "MyCfnStateMachineAlias")
.deploymentPreference(DeploymentPreferenceProperty.builder()
.stateMachineVersionArn("stateMachineVersionArn")
.type("type")
// the properties below are optional
.alarms(List.of("alarms"))
.interval(123)
.percentage(123)
.build())
.description("description")
.name("name")
.routingConfiguration(List.of(RoutingConfigurationVersionProperty.builder()
.stateMachineVersionArn("stateMachineVersionArn")
.weight(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStateMachineAlias.static interfaceEnables gradual state machine deployments.static interfaceThe state machine version to which you want to route the execution traffic.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IStateMachineAliasRef
IStateMachineAliasRef.Jsii$Default, IStateMachineAliasRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnStateMachineAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStateMachineAlias(software.amazon.jsii.JsiiObjectRef objRef) CfnStateMachineAlias(software.constructs.Construct scope, String id) CfnStateMachineAlias(software.constructs.Construct scope, String id, CfnStateMachineAliasProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ARN of the state machine alias.The settings that enable gradual state machine deployments.An optional description of the state machine alias.getName()The name of the state machine alias.The routing configuration of an alias.A reference to a StateMachineAlias resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe settings that enable gradual state machine deployments.voidThe settings that enable gradual state machine deployments.voidsetDescription(String value) An optional description of the state machine alias.voidThe name of the state machine alias.voidsetRoutingConfiguration(List<Object> value) The routing configuration of an alias.voidThe routing configuration of an alias.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStateMachineAlias
protected CfnStateMachineAlias(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStateMachineAlias
protected CfnStateMachineAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStateMachineAlias
@Stability(Stable) public CfnStateMachineAlias(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnStateMachineAliasProps props) - 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.props- Resource properties.
-
CfnStateMachineAlias
@Stability(Stable) public CfnStateMachineAlias(@NotNull software.constructs.Construct scope, @NotNull 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.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the ARN of the state machine alias.For example,
arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:PROD. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getStateMachineAliasRef
A reference to a StateMachineAlias resource.- Specified by:
getStateMachineAliasRefin interfaceIStateMachineAliasRef
-
getDeploymentPreference
The settings that enable gradual state machine deployments.Returns union: either
IResolvableorCfnStateMachineAlias.DeploymentPreferenceProperty -
setDeploymentPreference
The settings that enable gradual state machine deployments. -
setDeploymentPreference
@Stability(Stable) public void setDeploymentPreference(@Nullable CfnStateMachineAlias.DeploymentPreferenceProperty value) The settings that enable gradual state machine deployments. -
getDescription
An optional description of the state machine alias. -
setDescription
An optional description of the state machine alias. -
getName
The name of the state machine alias. -
setName
The name of the state machine alias. -
getRoutingConfiguration
The routing configuration of an alias.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStateMachineAlias.RoutingConfigurationVersionProperty> -
setRoutingConfiguration
The routing configuration of an alias. -
setRoutingConfiguration
The routing configuration of an alias.
-