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 |
Simulates the results of running a pipeline activity on a message payload.
Synopsis
- data RunPipelineActivity = RunPipelineActivity' {}
- newRunPipelineActivity :: PipelineActivity -> NonEmpty ByteString -> RunPipelineActivity
- runPipelineActivity_pipelineActivity :: Lens' RunPipelineActivity PipelineActivity
- runPipelineActivity_payloads :: Lens' RunPipelineActivity (NonEmpty ByteString)
- data RunPipelineActivityResponse = RunPipelineActivityResponse' {}
- newRunPipelineActivityResponse :: Int -> RunPipelineActivityResponse
- runPipelineActivityResponse_logResult :: Lens' RunPipelineActivityResponse (Maybe Text)
- runPipelineActivityResponse_payloads :: Lens' RunPipelineActivityResponse (Maybe (NonEmpty ByteString))
- runPipelineActivityResponse_httpStatus :: Lens' RunPipelineActivityResponse Int
Creating a Request
data RunPipelineActivity Source #
See: newRunPipelineActivity
smart constructor.
RunPipelineActivity' | |
|
Instances
newRunPipelineActivity Source #
Create a value of RunPipelineActivity
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:pipelineActivity:RunPipelineActivity'
, runPipelineActivity_pipelineActivity
- The pipeline activity that is run. This must not be a channel activity
or a data store 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.
$sel:payloads:RunPipelineActivity'
, runPipelineActivity_payloads
- The sample message payloads on which the pipeline activity is run.
Request Lenses
runPipelineActivity_pipelineActivity :: Lens' RunPipelineActivity PipelineActivity Source #
The pipeline activity that is run. This must not be a channel activity or a data store 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.
runPipelineActivity_payloads :: Lens' RunPipelineActivity (NonEmpty ByteString) Source #
The sample message payloads on which the pipeline activity is run.
Destructuring the Response
data RunPipelineActivityResponse Source #
See: newRunPipelineActivityResponse
smart constructor.
RunPipelineActivityResponse' | |
|
Instances
newRunPipelineActivityResponse Source #
Create a value of RunPipelineActivityResponse
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:logResult:RunPipelineActivityResponse'
, runPipelineActivityResponse_logResult
- In case the pipeline activity fails, the log message that is generated.
$sel:payloads:RunPipelineActivity'
, runPipelineActivityResponse_payloads
- 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.)
$sel:httpStatus:RunPipelineActivityResponse'
, runPipelineActivityResponse_httpStatus
- The response's http status code.
Response Lenses
runPipelineActivityResponse_logResult :: Lens' RunPipelineActivityResponse (Maybe Text) Source #
In case the pipeline activity fails, the log message that is generated.
runPipelineActivityResponse_payloads :: 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.)
runPipelineActivityResponse_httpStatus :: Lens' RunPipelineActivityResponse Int Source #
The response's http status code.