CfnStateMachinePropsMixin
- class aws_cdk.mixins_preview.aws_stepfunctions.mixins.CfnStateMachinePropsMixin(props, *, strategy=None)
Bases:
MixinProvisions a state machine.
A state machine consists of a collection of states that can do work (
Taskstates), determine to which states to transition next (Choicestates), stop an execution with an error (Failstates), and so on. State machines are specified using a JSON-based, structured language.- See:
- CloudformationResource:
AWS::StepFunctions::StateMachine
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins # definition: Any cfn_state_machine_props_mixin = stepfunctions_mixins.CfnStateMachinePropsMixin(stepfunctions_mixins.CfnStateMachineMixinProps( definition=definition, definition_s3_location=stepfunctions_mixins.CfnStateMachinePropsMixin.S3LocationProperty( bucket="bucket", key="key", version="version" ), definition_string="definitionString", definition_substitutions={ "definition_substitutions_key": "definitionSubstitutions" }, encryption_configuration=stepfunctions_mixins.CfnStateMachinePropsMixin.EncryptionConfigurationProperty( kms_data_key_reuse_period_seconds=123, kms_key_id="kmsKeyId", type="type" ), logging_configuration=stepfunctions_mixins.CfnStateMachinePropsMixin.LoggingConfigurationProperty( destinations=[stepfunctions_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=stepfunctions_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )], include_execution_data=False, level="level" ), role_arn="roleArn", state_machine_name="stateMachineName", state_machine_type="stateMachineType", tags=[stepfunctions_mixins.CfnStateMachinePropsMixin.TagsEntryProperty( key="key", value="value" )], tracing_configuration=stepfunctions_mixins.CfnStateMachinePropsMixin.TracingConfigurationProperty( enabled=False ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::StepFunctions::StateMachine.- Parameters:
props (
Union[CfnStateMachineMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['definition', 'definitionS3Location', 'definitionString', 'definitionSubstitutions', 'encryptionConfiguration', 'loggingConfiguration', 'roleArn', 'stateMachineName', 'stateMachineType', 'tags', 'tracingConfiguration']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CloudWatchLogsLogGroupProperty
- class CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty(*, log_group_arn=None)
Bases:
objectDefines a CloudWatch log group.
For more information see Standard Versus Express Workflows in the AWS Step Functions Developer Guide.
- Parameters:
log_group_arn (
Optional[str]) – The ARN of the the CloudWatch log group to which you want your logs emitted to. The ARN must end with:*- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins cloud_watch_logs_log_group_property = stepfunctions_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" )
Attributes
- log_group_arn
The ARN of the the CloudWatch log group to which you want your logs emitted to.
The ARN must end with
:*
EncryptionConfigurationProperty
- class CfnStateMachinePropsMixin.EncryptionConfigurationProperty(*, kms_data_key_reuse_period_seconds=None, kms_key_id=None, type=None)
Bases:
objectSettings to configure server-side encryption for a state machine.
By default, Step Functions provides transparent server-side encryption. With this configuration, you can specify a customer managed AWS key for encryption.
- Parameters:
kms_data_key_reuse_period_seconds (
Union[int,float,None]) – Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will callGenerateDataKey. Only applies to customer managed keys.kms_key_id (
Optional[str]) – An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS key to encrypt data. To specify a AWS key in a different AWS account, you must use the key ARN or alias ARN.type (
Optional[str]) – Encryption option for a state machine.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins encryption_configuration_property = stepfunctions_mixins.CfnStateMachinePropsMixin.EncryptionConfigurationProperty( kms_data_key_reuse_period_seconds=123, kms_key_id="kmsKeyId", type="type" )
Attributes
- kms_data_key_reuse_period_seconds
Maximum duration that Step Functions will reuse data keys.
When the period expires, Step Functions will call
GenerateDataKey. Only applies to customer managed keys.
- kms_key_id
An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS key to encrypt data.
To specify a AWS key in a different AWS account, you must use the key ARN or alias ARN.
- type
Encryption option for a state machine.
LogDestinationProperty
- class CfnStateMachinePropsMixin.LogDestinationProperty(*, cloud_watch_logs_log_group=None)
Bases:
objectDefines a destination for
LoggingConfiguration.For more information on logging with
EXPRESSworkflows, see Logging Express Workflows Using CloudWatch Logs .- Parameters:
cloud_watch_logs_log_group (
Union[IResolvable,CloudWatchLogsLogGroupProperty,Dict[str,Any],None]) – An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins log_destination_property = stepfunctions_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=stepfunctions_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )
Attributes
- cloud_watch_logs_log_group
An object describing a CloudWatch log group.
For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide.
LoggingConfigurationProperty
- class CfnStateMachinePropsMixin.LoggingConfigurationProperty(*, destinations=None, include_execution_data=None, level=None)
Bases:
objectDefines what execution history events are logged and where they are logged.
Step Functions provides the log levels —
OFF,ALL,ERROR, andFATAL. No event types log when set toOFFand all event types do when set toALL. .. epigraph:By default, the ``level`` is set to ``OFF`` . For more information see `Log Levels <https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html>`_ in the AWS Step Functions User Guide.
- Parameters:
destinations (
Union[IResolvable,Sequence[Union[IResolvable,LogDestinationProperty,Dict[str,Any]]],None]) – An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set toOFF.include_execution_data (
Union[bool,IResolvable,None]) – Determines whether execution data is included in your log. When set tofalse, data is excluded.level (
Optional[str]) – Defines which category of execution history events are logged.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins logging_configuration_property = stepfunctions_mixins.CfnStateMachinePropsMixin.LoggingConfigurationProperty( destinations=[stepfunctions_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=stepfunctions_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )], include_execution_data=False, level="level" )
Attributes
- destinations
An array of objects that describes where your execution history events will be logged.
Limited to size 1. Required, if your log level is not set to
OFF.
- include_execution_data
Determines whether execution data is included in your log.
When set to
false, data is excluded.
- level
Defines which category of execution history events are logged.
S3LocationProperty
- class CfnStateMachinePropsMixin.S3LocationProperty(*, bucket=None, key=None, version=None)
Bases:
objectDefines the S3 bucket location where a state machine definition is stored.
The state machine definition must be a JSON or YAML file.
- Parameters:
bucket (
Optional[str]) – The name of the S3 bucket where the state machine definition JSON or YAML file is stored.key (
Optional[str]) – The name of the state machine definition file (Amazon S3 object name).version (
Optional[str]) – For versioning-enabled buckets, a specific version of the state machine definition.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins s3_location_property = stepfunctions_mixins.CfnStateMachinePropsMixin.S3LocationProperty( bucket="bucket", key="key", version="version" )
Attributes
- bucket
The name of the S3 bucket where the state machine definition JSON or YAML file is stored.
- key
The name of the state machine definition file (Amazon S3 object name).
- version
For versioning-enabled buckets, a specific version of the state machine definition.
TracingConfigurationProperty
- class CfnStateMachinePropsMixin.TracingConfigurationProperty(*, enabled=None)
Bases:
objectSelects whether or not the state machine’s AWS X-Ray tracing is enabled.
To configure your state machine to send trace data to X-Ray, set
Enabledtotrue.- Parameters:
enabled (
Union[bool,IResolvable,None]) – When set totrue, X-Ray tracing is enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins tracing_configuration_property = stepfunctions_mixins.CfnStateMachinePropsMixin.TracingConfigurationProperty( enabled=False )
Attributes
- enabled
When set to
true, X-Ray tracing is enabled.