AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateStateMachineInput

import "github.com/aws/aws-sdk-go/service/sfn"

type CreateStateMachineInput struct { Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

Definition

Type: *string

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).

Definition is a required field

Name

Type: *string

The name of the state machine.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters " # % \ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

Name is a required field

RoleArn

Type: *string

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

RoleArn is a required field

Tags

Tags are key-value pairs that can be associated with Step Functions state machines and activities.

Method

GoString

func (s CreateStateMachineInput) GoString() string

GoString returns the string representation

SetDefinition

func (s *CreateStateMachineInput) SetDefinition(v string) *CreateStateMachineInput

SetDefinition sets the Definition field's value.

SetName

func (s *CreateStateMachineInput) SetName(v string) *CreateStateMachineInput

SetName sets the Name field's value.

SetRoleArn

func (s *CreateStateMachineInput) SetRoleArn(v string) *CreateStateMachineInput

SetRoleArn sets the RoleArn field's value.

SetTags

func (s *CreateStateMachineInput) SetTags(v []*Tag) *CreateStateMachineInput

SetTags sets the Tags field's value.

String

func (s CreateStateMachineInput) String() string

String returns the string representation

Validate

func (s *CreateStateMachineInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: