| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
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.
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_tracingConfiguration :: Lens' UpdateStateMachine (Maybe TracingConfiguration)
- updateStateMachine_loggingConfiguration :: Lens' UpdateStateMachine (Maybe LoggingConfiguration)
- updateStateMachine_roleArn :: Lens' UpdateStateMachine (Maybe Text)
- 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 #
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:tracingConfiguration:UpdateStateMachine', updateStateMachine_tracingConfiguration - Selects whether AWS X-Ray tracing is enabled.
$sel:loggingConfiguration:UpdateStateMachine', updateStateMachine_loggingConfiguration - The LoggingConfiguration data type is used to set CloudWatch Logs
options.
$sel:roleArn:UpdateStateMachine', updateStateMachine_roleArn - The Amazon Resource Name (ARN) of the IAM role of the state machine.
$sel:stateMachineArn: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_tracingConfiguration :: Lens' UpdateStateMachine (Maybe TracingConfiguration) Source #
Selects whether AWS X-Ray tracing is enabled.
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
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.