NAME

Paws::StepFunctions::CreateStateMachine - Arguments for method CreateStateMachine on Paws::StepFunctions

DESCRIPTION

This class represents the parameters used for calling the method CreateStateMachine on the AWS Step Functions service. Use the attributes of this class as arguments to method CreateStateMachine.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateStateMachine.

SYNOPSIS

my $states = Paws->service('StepFunctions');
my $CreateStateMachineOutput = $states->CreateStateMachine(
  Definition           => 'MyDefinition',
  Name                 => 'MyName',
  RoleArn              => 'MyArn',
  LoggingConfiguration => {
    Destinations => [
      {
        CloudWatchLogsLogGroup => {
          LogGroupArn => 'MyArn',    # min: 1, max: 256
        },    # OPTIONAL
      },
      ...
    ],    # OPTIONAL
    IncludeExecutionData => 1,    # OPTIONAL
    Level => 'ALL',               # values: ALL, ERROR, FATAL, OFF; OPTIONAL
  },    # OPTIONAL
  Tags => [
    {
      Key   => 'MyTagKey',      # min: 1, max: 128; OPTIONAL
      Value => 'MyTagValue',    # max: 256; OPTIONAL
    },
    ...
  ],    # OPTIONAL
  TracingConfiguration => {
    Enabled => 1,    # OPTIONAL
  },    # OPTIONAL
  Type => 'STANDARD',    # OPTIONAL
);

# Results:
my $CreationDate    = $CreateStateMachineOutput->CreationDate;
my $StateMachineArn = $CreateStateMachineOutput->StateMachineArn;

# Returns a L<Paws::StepFunctions::CreateStateMachineOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/states/CreateStateMachine

ATTRIBUTES

REQUIRED Definition => Str

The Amazon States Language definition of the state machine. See Amazon States Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html).

LoggingConfiguration => Paws::StepFunctions::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 (https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html) in the AWS Step Functions User Guide.

REQUIRED Name => Str

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)

To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.

REQUIRED RoleArn => Str

The Amazon Resource Name (ARN) of the IAM role to use for this state machine.

Tags => ArrayRef[Paws::StepFunctions::Tag]

Tags to be added when creating a state machine.

An array of key-value pairs. For more information, see Using Cost Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) in the AWS Billing and Cost Management User Guide, and Controlling Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html).

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

TracingConfiguration => Paws::StepFunctions::TracingConfiguration

Selects whether AWS X-Ray tracing is enabled.

Type => Str

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.

Valid values are: "STANDARD", "EXPRESS"

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateStateMachine in Paws::StepFunctions

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues