CfnStateMachineLogsMixin

class aws_cdk.mixins_preview.aws_stepfunctions.mixins.CfnStateMachineLogsMixin(log_type, log_delivery)

Bases: Mixin

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html

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 aws_logs as logs
from aws_cdk.mixins_preview.aws_stepfunctions import mixins as stepfunctions_mixins

# logs_delivery: logs.ILogsDelivery

cfn_state_machine_logs_mixin = stepfunctions_mixins.CfnStateMachineLogsMixin("logType", logs_delivery)

Create a mixin to enable vended logs for AWS::StepFunctions::StateMachine.

Parameters:
  • log_type (str) – Type of logs that are getting vended.

  • log_delivery (ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.

Methods

apply_to(resource)

Apply vended logs configuration to the construct.

Parameters:

resource (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct (has vendedLogs property).

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

EXPRESS_LOGS = <aws_cdk.mixins_preview.aws_stepfunctions.mixins.CfnStateMachineExpressLogs object>
STANDARD_LOGS = <aws_cdk.mixins_preview.aws_stepfunctions.mixins.CfnStateMachineStandardLogs object>

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental