Class CfnStateMachine.Builder

java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachine.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachine>
Enclosing class:
CfnStateMachine

@Stability(Stable) public static final class CfnStateMachine.Builder extends Object implements software.amazon.jsii.Builder<CfnStateMachine>
A fluent builder for CfnStateMachine.
  • Method Details

    • create

      @Stability(Stable) public static CfnStateMachine.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnStateMachine.Builder.
    • roleArn

      @Stability(Stable) public CfnStateMachine.Builder roleArn(String roleArn)
      The Amazon Resource Name (ARN) of the IAM role to use for this state machine.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the IAM role to use for this state machine. This parameter is required.
      Returns:
      this
    • definition

      @Stability(Stable) public CfnStateMachine.Builder definition(Object definition)
      The Amazon States Language definition of the state machine.

      The state machine definition must be in JSON or YAML, and the format of the object must match the format of your AWS Step Functions template file. See Amazon States Language .

      Parameters:
      definition - The Amazon States Language definition of the state machine. This parameter is required.
      Returns:
      this
    • definitionS3Location

      @Stability(Stable) public CfnStateMachine.Builder definitionS3Location(IResolvable definitionS3Location)
      The name of the S3 bucket where the state machine definition is stored.

      The state machine definition must be a JSON or YAML file.

      Parameters:
      definitionS3Location - The name of the S3 bucket where the state machine definition is stored. This parameter is required.
      Returns:
      this
    • definitionS3Location

      @Stability(Stable) public CfnStateMachine.Builder definitionS3Location(CfnStateMachine.S3LocationProperty definitionS3Location)
      The name of the S3 bucket where the state machine definition is stored.

      The state machine definition must be a JSON or YAML file.

      Parameters:
      definitionS3Location - The name of the S3 bucket where the state machine definition is stored. This parameter is required.
      Returns:
      this
    • definitionString

      @Stability(Stable) public CfnStateMachine.Builder definitionString(String definitionString)
      The Amazon States Language definition of the state machine.

      The state machine definition must be in JSON. See Amazon States Language .

      Parameters:
      definitionString - The Amazon States Language definition of the state machine. This parameter is required.
      Returns:
      this
    • definitionSubstitutions

      @Stability(Stable) public CfnStateMachine.Builder definitionSubstitutions(IResolvable definitionSubstitutions)
      A map (string to string) that specifies the mappings for placeholder variables in the state machine definition.

      This enables the customer to inject values obtained at runtime, for example from intrinsic functions, in the state machine definition. Variables can be template parameter names, resource logical IDs, resource attributes, or a variable in a key-value map.

      Parameters:
      definitionSubstitutions - A map (string to string) that specifies the mappings for placeholder variables in the state machine definition. This parameter is required.
      Returns:
      this
    • definitionSubstitutions

      @Stability(Stable) public CfnStateMachine.Builder definitionSubstitutions(Map<String,? extends Object> definitionSubstitutions)
      A map (string to string) that specifies the mappings for placeholder variables in the state machine definition.

      This enables the customer to inject values obtained at runtime, for example from intrinsic functions, in the state machine definition. Variables can be template parameter names, resource logical IDs, resource attributes, or a variable in a key-value map.

      Parameters:
      definitionSubstitutions - A map (string to string) that specifies the mappings for placeholder variables in the state machine definition. This parameter is required.
      Returns:
      this
    • loggingConfiguration

      @Stability(Stable) public CfnStateMachine.Builder loggingConfiguration(IResolvable loggingConfiguration)
      Defines what execution history events are logged and where they are logged.

      By default, the level is set to OFF . For more information see Log Levels in the AWS Step Functions User Guide.

      Parameters:
      loggingConfiguration - Defines what execution history events are logged and where they are logged. This parameter is required.
      Returns:
      this
    • loggingConfiguration

      @Stability(Stable) public CfnStateMachine.Builder loggingConfiguration(CfnStateMachine.LoggingConfigurationProperty loggingConfiguration)
      Defines what execution history events are logged and where they are logged.

      By default, the level is set to OFF . For more information see Log Levels in the AWS Step Functions User Guide.

      Parameters:
      loggingConfiguration - Defines what execution history events are logged and where they are logged. This parameter is required.
      Returns:
      this
    • stateMachineName

      @Stability(Stable) public CfnStateMachine.Builder stateMachineName(String stateMachineName)
      The name of the state machine.

      A name must not contain:

      • white space
      • brackets < > { } [ ]
      • wildcard characters ? *
      • special characters " # % \ ^ | ~ $ & , ; : /`
      • control characters ( U+0000-001F , U+007F-009F )

      If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

      Parameters:
      stateMachineName - The name of the state machine. This parameter is required.
      Returns:
      this
    • stateMachineType

      @Stability(Stable) public CfnStateMachine.Builder stateMachineType(String stateMachineType)
      Determines whether a STANDARD or EXPRESS state machine is created.

      The default is STANDARD . You cannot update the type of a state machine once it has been created. For more information on STANDARD and EXPRESS workflows, see Standard Versus Express Workflows in the AWS Step Functions Developer Guide.

      Parameters:
      stateMachineType - Determines whether a STANDARD or EXPRESS state machine is created. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnStateMachine.Builder tags(List<? extends CfnStateMachine.TagsEntryProperty> tags)
      The list of tags to add to a resource.

      Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @ .

      Parameters:
      tags - The list of tags to add to a resource. This parameter is required.
      Returns:
      this
    • tracingConfiguration

      @Stability(Stable) public CfnStateMachine.Builder tracingConfiguration(IResolvable tracingConfiguration)
      Selects whether or not the state machine's AWS X-Ray tracing is enabled.

      Parameters:
      tracingConfiguration - Selects whether or not the state machine's AWS X-Ray tracing is enabled. This parameter is required.
      Returns:
      this
    • tracingConfiguration

      @Stability(Stable) public CfnStateMachine.Builder tracingConfiguration(CfnStateMachine.TracingConfigurationProperty tracingConfiguration)
      Selects whether or not the state machine's AWS X-Ray tracing is enabled.

      Parameters:
      tracingConfiguration - Selects whether or not the state machine's AWS X-Ray tracing is enabled. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStateMachine build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStateMachine>
      Returns:
      a newly built instance of CfnStateMachine.