Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a state machine.
- createStateMachine :: Text -> Text -> Text -> CreateStateMachine
- data CreateStateMachine
- csmName :: Lens' CreateStateMachine Text
- csmDefinition :: Lens' CreateStateMachine Text
- csmRoleARN :: Lens' CreateStateMachine Text
- createStateMachineResponse :: Int -> Text -> UTCTime -> CreateStateMachineResponse
- data CreateStateMachineResponse
- csmrsResponseStatus :: Lens' CreateStateMachineResponse Int
- csmrsStateMachineARN :: Lens' CreateStateMachineResponse Text
- csmrsCreationDate :: Lens' CreateStateMachineResponse UTCTime
Creating a Request
Creates a value of CreateStateMachine
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csmName
- The name of the state machine. This name must be unique for your AWS account and region.csmDefinition
- The Amazon States Language definition of the state machine.csmRoleARN
- The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
data CreateStateMachine Source #
See: createStateMachine
smart constructor.
Request Lenses
csmName :: Lens' CreateStateMachine Text Source #
The name of the state machine. This name must be unique for your AWS account and region.
csmDefinition :: Lens' CreateStateMachine Text Source #
The Amazon States Language definition of the state machine.
csmRoleARN :: Lens' CreateStateMachine Text Source #
The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
Destructuring the Response
createStateMachineResponse Source #
:: Int | |
-> Text | |
-> UTCTime | |
-> CreateStateMachineResponse |
Creates a value of CreateStateMachineResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csmrsResponseStatus
- -- | The response status code.csmrsStateMachineARN
- The Amazon Resource Name (ARN) that identifies the created state machine.csmrsCreationDate
- The date the state machine was created.
data CreateStateMachineResponse Source #
See: createStateMachineResponse
smart constructor.
Response Lenses
csmrsResponseStatus :: Lens' CreateStateMachineResponse Int Source #
- - | The response status code.
csmrsStateMachineARN :: Lens' CreateStateMachineResponse Text Source #
The Amazon Resource Name (ARN) that identifies the created state machine.
csmrsCreationDate :: Lens' CreateStateMachineResponse UTCTime Source #
The date the state machine was created.