Class CfnStateMachine
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.CfnStateMachine
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:41.858Z")
@Stability(Stable)
public class CfnStateMachine
extends CfnResource
implements IInspectable, ITaggable
Provisions a state machine.
A state machine consists of a collection of states that can do work ( Task
states), determine to which states to transition next ( Choice
states), stop an execution with an error ( Fail
states), and so on. State machines are specified using a JSON-based, structured language.
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.*; Object definition; CfnStateMachine cfnStateMachine = CfnStateMachine.Builder.create(this, "MyCfnStateMachine") .roleArn("roleArn") // the properties below are optional .definition(definition) .definitionS3Location(S3LocationProperty.builder() .bucket("bucket") .key("key") // the properties below are optional .version("version") .build()) .definitionString("definitionString") .definitionSubstitutions(Map.of( "definitionSubstitutionsKey", "definitionSubstitutions")) .encryptionConfiguration(EncryptionConfigurationProperty.builder() .type("type") // the properties below are optional .kmsDataKeyReusePeriodSeconds(123) .kmsKeyId("kmsKeyId") .build()) .loggingConfiguration(LoggingConfigurationProperty.builder() .destinations(List.of(LogDestinationProperty.builder() .cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder() .logGroupArn("logGroupArn") .build()) .build())) .includeExecutionData(false) .level("level") .build()) .stateMachineName("stateMachineName") .stateMachineType("stateMachineType") .tags(List.of(TagsEntryProperty.builder() .key("key") .value("value") .build())) .tracingConfiguration(TracingConfigurationProperty.builder() .enabled(false) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnStateMachine
.static interface
Defines a CloudWatch log group.static interface
Settings to configure server-side encryption for a state machine.static interface
Defines a destination forLoggingConfiguration
.static interface
Defines what execution history events are logged and where they are logged.static interface
Defines the S3 bucket location where a state machine definition is stored.static interface
TheTagsEntry
property specifies tags to identify a state machine.static interface
Selects whether or not the state machine's AWS X-Ray tracing is enabled.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnStateMachine
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStateMachine
(software.amazon.jsii.JsiiObjectRef objRef) CfnStateMachine
(software.constructs.Construct scope, String id, CfnStateMachineProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ARN of the resource.Returns the name of the state machine.Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration.The Amazon States Language definition of the state machine.The name of the S3 bucket where the state machine definition is stored.The Amazon States Language definition of the state machine.A map (string to string) that specifies the mappings for placeholder variables in the state machine definition.Encryption configuration for the state machine.Defines what execution history events are logged and where they are logged.The Amazon Resource Name (ARN) of the IAM role to use for this state machine.The name of the state machine.Determines whether aSTANDARD
orEXPRESS
state machine is created.getTags()
Tag Manager which manages the tags for this resource.The list of tags to add to a resource.Selects whether or not the state machine's AWS X-Ray tracing is enabled.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDefinition
(Object value) The Amazon States Language definition of the state machine.void
The name of the S3 bucket where the state machine definition is stored.void
The name of the S3 bucket where the state machine definition is stored.void
setDefinitionString
(String value) The Amazon States Language definition of the state machine.void
setDefinitionSubstitutions
(Map<String, String> value) A map (string to string) that specifies the mappings for placeholder variables in the state machine definition.void
A map (string to string) that specifies the mappings for placeholder variables in the state machine definition.void
Encryption configuration for the state machine.void
Encryption configuration for the state machine.void
Defines what execution history events are logged and where they are logged.void
Defines what execution history events are logged and where they are logged.void
setRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM role to use for this state machine.void
setStateMachineName
(String value) The name of the state machine.void
setStateMachineType
(String value) Determines whether aSTANDARD
orEXPRESS
state machine is created.void
The list of tags to add to a resource.void
Selects whether or not the state machine's AWS X-Ray tracing is enabled.void
Selects whether or not the state machine's AWS X-Ray tracing is enabled.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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnStateMachine
protected CfnStateMachine(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStateMachine
protected CfnStateMachine(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStateMachine
@Stability(Stable) public CfnStateMachine(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStateMachineProps 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. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
Returns the ARN of the resource. -
getAttrName
Returns the name of the state machine. For example:.{ "Fn::GetAtt": ["MyStateMachine", "Name"] }
Returns the name of your state machine:
HelloWorld-StateMachine
If you did not specify the name it will be similar to the following:
MyStateMachine-1234abcdefgh
For more information about using
Fn::GetAtt
, see Fn::GetAtt . -
getAttrStateMachineRevisionId
Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getRoleArn
The Amazon Resource Name (ARN) of the IAM role to use for this state machine. -
setRoleArn
The Amazon Resource Name (ARN) of the IAM role to use for this state machine. -
getDefinition
The Amazon States Language definition of the state machine. -
setDefinition
The Amazon States Language definition of the state machine. -
getDefinitionS3Location
The name of the S3 bucket where the state machine definition is stored. -
setDefinitionS3Location
The name of the S3 bucket where the state machine definition is stored. -
setDefinitionS3Location
@Stability(Stable) public void setDefinitionS3Location(@Nullable CfnStateMachine.S3LocationProperty value) The name of the S3 bucket where the state machine definition is stored. -
getDefinitionString
The Amazon States Language definition of the state machine. -
setDefinitionString
The Amazon States Language definition of the state machine. -
getDefinitionSubstitutions
A map (string to string) that specifies the mappings for placeholder variables in the state machine definition. -
setDefinitionSubstitutions
A map (string to string) that specifies the mappings for placeholder variables in the state machine definition. -
setDefinitionSubstitutions
A map (string to string) that specifies the mappings for placeholder variables in the state machine definition. -
getEncryptionConfiguration
Encryption configuration for the state machine. -
setEncryptionConfiguration
Encryption configuration for the state machine. -
setEncryptionConfiguration
@Stability(Stable) public void setEncryptionConfiguration(@Nullable CfnStateMachine.EncryptionConfigurationProperty value) Encryption configuration for the state machine. -
getLoggingConfiguration
Defines what execution history events are logged and where they are logged. -
setLoggingConfiguration
Defines what execution history events are logged and where they are logged. -
setLoggingConfiguration
@Stability(Stable) public void setLoggingConfiguration(@Nullable CfnStateMachine.LoggingConfigurationProperty value) Defines what execution history events are logged and where they are logged. -
getStateMachineName
The name of the state machine. -
setStateMachineName
The name of the state machine. -
getStateMachineType
Determines whether aSTANDARD
orEXPRESS
state machine is created. -
setStateMachineType
Determines whether aSTANDARD
orEXPRESS
state machine is created. -
getTagsRaw
The list of tags to add to a resource. -
setTagsRaw
The list of tags to add to a resource. -
getTracingConfiguration
Selects whether or not the state machine's AWS X-Ray tracing is enabled. -
setTracingConfiguration
Selects whether or not the state machine's AWS X-Ray tracing is enabled. -
setTracingConfiguration
@Stability(Stable) public void setTracingConfiguration(@Nullable CfnStateMachine.TracingConfigurationProperty value) Selects whether or not the state machine's AWS X-Ray tracing is enabled.
-