Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates an activity. An activity is a task which you write in any programming language and host on any machine which has access to AWS Step Functions. Activities must poll Step Functions using the GetActivityTask
API action and respond using SendTask*
API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.
Synopsis
- createActivity :: Text -> CreateActivity
- data CreateActivity
- caName :: Lens' CreateActivity Text
- createActivityResponse :: Int -> Text -> UTCTime -> CreateActivityResponse
- data CreateActivityResponse
- carsResponseStatus :: Lens' CreateActivityResponse Int
- carsActivityARN :: Lens' CreateActivityResponse Text
- carsCreationDate :: Lens' CreateActivityResponse UTCTime
Creating a Request
:: Text | |
-> CreateActivity |
Creates a value of CreateActivity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caName
- The name of the activity to create. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide . A name must not contain: * whitespace * brackets{ } [ ]
* wildcard characters? *
* special characters" # % ^ | ~ ` $ & , ; : /
* control characters (U+0000-001F
,U+007F-009F
)
data CreateActivity Source #
See: createActivity
smart constructor.
Instances
Request Lenses
caName :: Lens' CreateActivity Text Source #
The name of the activity to create. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide . A name must not contain: * whitespace * brackets { } [ ]
* wildcard characters ? *
* special characters " # % ^ | ~ ` $ & , ; : /
* control characters (U+0000-001F
, U+007F-009F
)
Destructuring the Response
createActivityResponse Source #
Creates a value of CreateActivityResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
carsResponseStatus
- -- | The response status code.carsActivityARN
- The Amazon Resource Name (ARN) that identifies the created activity.carsCreationDate
- The date the activity is created.
data CreateActivityResponse Source #
See: createActivityResponse
smart constructor.
Instances
Response Lenses
carsResponseStatus :: Lens' CreateActivityResponse Int Source #
- - | The response status code.
carsActivityARN :: Lens' CreateActivityResponse Text Source #
The Amazon Resource Name (ARN) that identifies the created activity.
carsCreationDate :: Lens' CreateActivityResponse UTCTime Source #
The date the activity is created.