| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data UpdateStateMachine = UpdateStateMachine' {}
- newUpdateStateMachine :: Text -> UpdateStateMachine
- updateStateMachine_definition :: Lens' UpdateStateMachine (Maybe Text)
- updateStateMachine_loggingConfiguration :: Lens' UpdateStateMachine (Maybe LoggingConfiguration)
- updateStateMachine_roleArn :: Lens' UpdateStateMachine (Maybe Text)
- updateStateMachine_tracingConfiguration :: Lens' UpdateStateMachine (Maybe TracingConfiguration)
- updateStateMachine_stateMachineArn :: Lens' UpdateStateMachine Text
- data UpdateStateMachineResponse = UpdateStateMachineResponse' {
- httpStatus :: Int
- updateDate :: POSIX
- newUpdateStateMachineResponse :: Int -> UTCTime -> UpdateStateMachineResponse
- updateStateMachineResponse_httpStatus :: Lens' UpdateStateMachineResponse Int
- updateStateMachineResponse_updateDate :: Lens' UpdateStateMachineResponse UTCTime
Creating a Request
data UpdateStateMachine Source #
See: newUpdateStateMachine smart constructor.
Constructors
| UpdateStateMachine' | |
Fields
| |
Instances
newUpdateStateMachine Source #
Arguments
| :: Text | |
| -> UpdateStateMachine |
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_tracingConfiguration :: Lens' UpdateStateMachine (Maybe TracingConfiguration) Source #
Selects whether X-Ray tracing is enabled.
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
newUpdateStateMachineResponse Source #
Arguments
| :: Int | |
| -> UTCTime | |
| -> UpdateStateMachineResponse |
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_httpStatus :: Lens' UpdateStateMachineResponse Int Source #
The response's http status code.
updateStateMachineResponse_updateDate :: Lens' UpdateStateMachineResponse UTCTime Source #
The date and time the state machine was updated.