| 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 |
Network.AWS.IoTAnalytics.RunPipelineActivity
Description
Simulates the results of running a pipeline activity on a message payload.
Synopsis
- runPipelineActivity :: PipelineActivity -> NonEmpty ByteString -> RunPipelineActivity
- data RunPipelineActivity
- rpaPipelineActivity :: Lens' RunPipelineActivity PipelineActivity
- rpaPayloads :: Lens' RunPipelineActivity (NonEmpty ByteString)
- runPipelineActivityResponse :: Int -> RunPipelineActivityResponse
- data RunPipelineActivityResponse
- rparsLogResult :: Lens' RunPipelineActivityResponse (Maybe Text)
- rparsPayloads :: Lens' RunPipelineActivityResponse (Maybe (NonEmpty ByteString))
- rparsResponseStatus :: Lens' RunPipelineActivityResponse Int
Creating a Request
Arguments
| :: PipelineActivity | |
| -> NonEmpty ByteString | |
| -> RunPipelineActivity |
Creates a value of RunPipelineActivity with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rpaPipelineActivity- The pipeline activity that is run. This must not be achannelactivity or adatastoreactivity because these activities are used in a pipeline only to load the original message and to store the (possibly) transformed message. If alambdaactivity is specified, only short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be used.rpaPayloads- The sample message payloads on which the pipeline activity is run.
data RunPipelineActivity Source #
See: runPipelineActivity smart constructor.
Instances
Request Lenses
rpaPipelineActivity :: Lens' RunPipelineActivity PipelineActivity Source #
The pipeline activity that is run. This must not be a channel activity or a datastore activity because these activities are used in a pipeline only to load the original message and to store the (possibly) transformed message. If a lambda activity is specified, only short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be used.
rpaPayloads :: Lens' RunPipelineActivity (NonEmpty ByteString) Source #
The sample message payloads on which the pipeline activity is run.
Destructuring the Response
runPipelineActivityResponse Source #
Arguments
| :: Int | |
| -> RunPipelineActivityResponse |
Creates a value of RunPipelineActivityResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rparsLogResult- In case the pipeline activity fails, the log message that is generated.rparsPayloads- The enriched or transformed sample message payloads as base64-encoded strings. (The results of running the pipeline activity on each input sample message payload, encoded in base64.)rparsResponseStatus- -- | The response status code.
data RunPipelineActivityResponse Source #
See: runPipelineActivityResponse smart constructor.
Instances
Response Lenses
rparsLogResult :: Lens' RunPipelineActivityResponse (Maybe Text) Source #
In case the pipeline activity fails, the log message that is generated.
rparsPayloads :: Lens' RunPipelineActivityResponse (Maybe (NonEmpty ByteString)) Source #
The enriched or transformed sample message payloads as base64-encoded strings. (The results of running the pipeline activity on each input sample message payload, encoded in base64.)
rparsResponseStatus :: Lens' RunPipelineActivityResponse Int Source #
- - | The response status code.