amazonka-stepfunctions-2.0: Amazon Step Functions SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.StepFunctions.UpdateStateMachine

Description

Updates an existing state machine by modifying its definition, roleArn, or loggingConfiguration. Running executions will continue to use the previous definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.

A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn.

Synopsis

Creating a Request

data UpdateStateMachine Source #

See: newUpdateStateMachine smart constructor.

Constructors

UpdateStateMachine' 

Fields

Instances

Instances details
ToJSON UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

ToHeaders UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

ToPath UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

ToQuery UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

AWSRequest UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Associated Types

type AWSResponse UpdateStateMachine #

Generic UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Associated Types

type Rep UpdateStateMachine :: Type -> Type #

Show UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

NFData UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Methods

rnf :: UpdateStateMachine -> () #

Eq UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Hashable UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

type AWSResponse UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

type Rep UpdateStateMachine Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

type Rep UpdateStateMachine = D1 ('MetaData "UpdateStateMachine" "Amazonka.StepFunctions.UpdateStateMachine" "amazonka-stepfunctions-2.0-K6z2kqboJVbL1MZX8DUt0f" 'False) (C1 ('MetaCons "UpdateStateMachine'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfiguration))) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tracingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TracingConfiguration)) :*: S1 ('MetaSel ('Just "stateMachineArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateStateMachine Source #

Create a value of UpdateStateMachine with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:definition:UpdateStateMachine', updateStateMachine_definition - The Amazon States Language definition of the state machine. See Amazon States Language.

$sel:loggingConfiguration:UpdateStateMachine', updateStateMachine_loggingConfiguration - The LoggingConfiguration data type is used to set CloudWatch Logs options.

UpdateStateMachine, updateStateMachine_roleArn - The Amazon Resource Name (ARN) of the IAM role of the state machine.

$sel:tracingConfiguration:UpdateStateMachine', updateStateMachine_tracingConfiguration - Selects whether X-Ray tracing is enabled.

UpdateStateMachine, updateStateMachine_stateMachineArn - The Amazon Resource Name (ARN) of the state machine.

Request Lenses

updateStateMachine_definition :: Lens' UpdateStateMachine (Maybe Text) Source #

The Amazon States Language definition of the state machine. See Amazon States Language.

updateStateMachine_loggingConfiguration :: Lens' UpdateStateMachine (Maybe LoggingConfiguration) Source #

The LoggingConfiguration data type is used to set CloudWatch Logs options.

updateStateMachine_roleArn :: Lens' UpdateStateMachine (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM role of the state machine.

updateStateMachine_stateMachineArn :: Lens' UpdateStateMachine Text Source #

The Amazon Resource Name (ARN) of the state machine.

Destructuring the Response

data UpdateStateMachineResponse Source #

See: newUpdateStateMachineResponse smart constructor.

Constructors

UpdateStateMachineResponse' 

Fields

Instances

Instances details
Generic UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Associated Types

type Rep UpdateStateMachineResponse :: Type -> Type #

Read UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Show UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

NFData UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

Eq UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

type Rep UpdateStateMachineResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.UpdateStateMachine

type Rep UpdateStateMachineResponse = D1 ('MetaData "UpdateStateMachineResponse" "Amazonka.StepFunctions.UpdateStateMachine" "amazonka-stepfunctions-2.0-K6z2kqboJVbL1MZX8DUt0f" 'False) (C1 ('MetaCons "UpdateStateMachineResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "updateDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))

newUpdateStateMachineResponse Source #

Create a value of UpdateStateMachineResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:UpdateStateMachineResponse', updateStateMachineResponse_httpStatus - The response's http status code.

$sel:updateDate:UpdateStateMachineResponse', updateStateMachineResponse_updateDate - The date and time the state machine was updated.

Response Lenses

updateStateMachineResponse_updateDate :: Lens' UpdateStateMachineResponse UTCTime Source #

The date and time the state machine was updated.