CfnStateMachinePropsMixin
- class aws_cdk.mixins_preview.aws_sam.mixins.CfnStateMachinePropsMixin(props, *, strategy=None)
Bases:
Mixin- See:
- CloudformationResource:
AWS::Serverless::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_sam import mixins as sam_mixins # definition: Any cfn_state_machine_props_mixin = sam_mixins.CfnStateMachinePropsMixin(sam_mixins.CfnStateMachineMixinProps( definition=definition, definition_substitutions={ "definition_substitutions_key": "definitionSubstitutions" }, definition_uri="definitionUri", events={ "events_key": sam_mixins.CfnStateMachinePropsMixin.EventSourceProperty( properties=sam_mixins.CfnStateMachinePropsMixin.ApiEventProperty( method="method", path="path", rest_api_id="restApiId" ), type="type" ) }, logging=sam_mixins.CfnStateMachinePropsMixin.LoggingConfigurationProperty( destinations=[sam_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=sam_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )], include_execution_data=False, level="level" ), name="name", permissions_boundaries="permissionsBoundaries", policies="policies", role="role", tags={ "tags_key": "tags" }, tracing=sam_mixins.CfnStateMachinePropsMixin.TracingConfigurationProperty( enabled=False ), type="type" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Serverless::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', 'definitionSubstitutions', 'definitionUri', 'events', 'logging', 'name', 'permissionsBoundaries', 'policies', 'role', 'tags', 'tracing', 'type']
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
ApiEventProperty
- class CfnStateMachinePropsMixin.ApiEventProperty(*, method=None, path=None, rest_api_id=None)
Bases:
object- Parameters:
method (
Optional[str])path (
Optional[str])rest_api_id (
Optional[str])
- 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_sam import mixins as sam_mixins api_event_property = sam_mixins.CfnStateMachinePropsMixin.ApiEventProperty( method="method", path="path", rest_api_id="restApiId" )
Attributes
- method
-
- Type:
see
- path
-
- Type:
see
CloudWatchEventEventProperty
- class CfnStateMachinePropsMixin.CloudWatchEventEventProperty(*, event_bus_name=None, input=None, input_path=None, pattern=None)
Bases:
object- Parameters:
event_bus_name (
Optional[str])input (
Optional[str])input_path (
Optional[str])pattern (
Any)
- 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_sam import mixins as sam_mixins # pattern: Any cloud_watch_event_event_property = sam_mixins.CfnStateMachinePropsMixin.CloudWatchEventEventProperty( event_bus_name="eventBusName", input="input", input_path="inputPath", pattern=pattern )
Attributes
- event_bus_name
-
- Type:
see
- input
-
- Type:
see
- input_path
-
- Type:
see
CloudWatchLogsLogGroupProperty
- class CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty(*, log_group_arn=None)
Bases:
object- Parameters:
log_group_arn (
Optional[str])- 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_sam import mixins as sam_mixins cloud_watch_logs_log_group_property = sam_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" )
Attributes
EventBridgeRuleEventProperty
- class CfnStateMachinePropsMixin.EventBridgeRuleEventProperty(*, event_bus_name=None, input=None, input_path=None, pattern=None)
Bases:
object- Parameters:
event_bus_name (
Optional[str])input (
Optional[str])input_path (
Optional[str])pattern (
Any)
- 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_sam import mixins as sam_mixins # pattern: Any event_bridge_rule_event_property = sam_mixins.CfnStateMachinePropsMixin.EventBridgeRuleEventProperty( event_bus_name="eventBusName", input="input", input_path="inputPath", pattern=pattern )
Attributes
- event_bus_name
-
- Type:
see
- input
-
- Type:
see
- input_path
-
- Type:
see
EventSourceProperty
- class CfnStateMachinePropsMixin.EventSourceProperty(*, properties=None, type=None)
Bases:
object- Parameters:
properties (
Union[IResolvable,ApiEventProperty,Dict[str,Any],CloudWatchEventEventProperty,EventBridgeRuleEventProperty,ScheduleEventProperty,None])type (
Optional[str])
- 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_sam import mixins as sam_mixins event_source_property = sam_mixins.CfnStateMachinePropsMixin.EventSourceProperty( properties=sam_mixins.CfnStateMachinePropsMixin.ApiEventProperty( method="method", path="path", rest_api_id="restApiId" ), type="type" )
Attributes
- properties
-
- Type:
see
FunctionSAMPTProperty
- class CfnStateMachinePropsMixin.FunctionSAMPTProperty(*, function_name=None)
Bases:
object- Parameters:
function_name (
Optional[str])- 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_sam import mixins as sam_mixins function_sAMPTProperty = sam_mixins.CfnStateMachinePropsMixin.FunctionSAMPTProperty( function_name="functionName" )
Attributes
IAMPolicyDocumentProperty
- class CfnStateMachinePropsMixin.IAMPolicyDocumentProperty(*, statement=None, version=None)
Bases:
object- Parameters:
statement (
Any)version (
Optional[str])
- 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_sam import mixins as sam_mixins # statement: Any i_aMPolicy_document_property = { "statement": statement, "version": "version" }
Attributes
- statement
-
- Type:
see
LogDestinationProperty
- class CfnStateMachinePropsMixin.LogDestinationProperty(*, cloud_watch_logs_log_group=None)
Bases:
object- Parameters:
cloud_watch_logs_log_group (
Union[IResolvable,CloudWatchLogsLogGroupProperty,Dict[str,Any],None])- 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_sam import mixins as sam_mixins log_destination_property = sam_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=sam_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )
Attributes
LoggingConfigurationProperty
- class CfnStateMachinePropsMixin.LoggingConfigurationProperty(*, destinations=None, include_execution_data=None, level=None)
Bases:
object- Parameters:
destinations (
Union[IResolvable,Sequence[Union[IResolvable,LogDestinationProperty,Dict[str,Any]]],None])include_execution_data (
Union[bool,IResolvable,None])level (
Optional[str])
- 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_sam import mixins as sam_mixins logging_configuration_property = sam_mixins.CfnStateMachinePropsMixin.LoggingConfigurationProperty( destinations=[sam_mixins.CfnStateMachinePropsMixin.LogDestinationProperty( cloud_watch_logs_log_group=sam_mixins.CfnStateMachinePropsMixin.CloudWatchLogsLogGroupProperty( log_group_arn="logGroupArn" ) )], include_execution_data=False, level="level" )
Attributes
- destinations
-
- Type:
see
- include_execution_data
-
- Type:
see
S3LocationProperty
- class CfnStateMachinePropsMixin.S3LocationProperty(*, bucket=None, key=None, version=None)
Bases:
object- Parameters:
bucket (
Optional[str])key (
Optional[str])version (
Union[int,float,None])
- 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_sam import mixins as sam_mixins s3_location_property = sam_mixins.CfnStateMachinePropsMixin.S3LocationProperty( bucket="bucket", key="key", version=123 )
Attributes
- bucket
-
- Type:
see
- key
-
- Type:
see
SAMPolicyTemplateProperty
- class CfnStateMachinePropsMixin.SAMPolicyTemplateProperty(*, lambda_invoke_policy=None, step_functions_execution_policy=None)
Bases:
object- Parameters:
lambda_invoke_policy (
Union[IResolvable,FunctionSAMPTProperty,Dict[str,Any],None])step_functions_execution_policy (
Union[IResolvable,StateMachineSAMPTProperty,Dict[str,Any],None])
- 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_sam import mixins as sam_mixins s_aMPolicy_template_property = sam_mixins.CfnStateMachinePropsMixin.SAMPolicyTemplateProperty( lambda_invoke_policy=sam_mixins.CfnStateMachinePropsMixin.FunctionSAMPTProperty( function_name="functionName" ), step_functions_execution_policy=sam_mixins.CfnStateMachinePropsMixin.StateMachineSAMPTProperty( state_machine_name="stateMachineName" ) )
Attributes
- lambda_invoke_policy
-
- Type:
see
ScheduleEventProperty
- class CfnStateMachinePropsMixin.ScheduleEventProperty(*, input=None, schedule=None)
Bases:
object- Parameters:
input (
Optional[str])schedule (
Optional[str])
- 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_sam import mixins as sam_mixins schedule_event_property = sam_mixins.CfnStateMachinePropsMixin.ScheduleEventProperty( input="input", schedule="schedule" )
Attributes
- input
-
- Type:
see
StateMachineSAMPTProperty
- class CfnStateMachinePropsMixin.StateMachineSAMPTProperty(*, state_machine_name=None)
Bases:
object- Parameters:
state_machine_name (
Optional[str])- 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_sam import mixins as sam_mixins state_machine_sAMPTProperty = sam_mixins.CfnStateMachinePropsMixin.StateMachineSAMPTProperty( state_machine_name="stateMachineName" )
Attributes
TracingConfigurationProperty
- class CfnStateMachinePropsMixin.TracingConfigurationProperty(*, enabled=None)
Bases:
object- Parameters:
enabled (
Union[bool,IResolvable,None])- 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_sam import mixins as sam_mixins tracing_configuration_property = sam_mixins.CfnStateMachinePropsMixin.TracingConfigurationProperty( enabled=False )
Attributes