| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTAnalytics.CreatePipeline
Description
Creates a pipeline. A pipeline consumes messages from a channel and
allows you to process the messages before storing them in a data store.
You must specify both a channel and a datastore activity and,
optionally, as many as 23 additional activities in the
pipelineActivities array.
Synopsis
- data CreatePipeline = CreatePipeline' {}
- newCreatePipeline :: Text -> NonEmpty PipelineActivity -> CreatePipeline
- createPipeline_tags :: Lens' CreatePipeline (Maybe (NonEmpty Tag))
- createPipeline_pipelineName :: Lens' CreatePipeline Text
- createPipeline_pipelineActivities :: Lens' CreatePipeline (NonEmpty PipelineActivity)
- data CreatePipelineResponse = CreatePipelineResponse' {
- pipelineArn :: Maybe Text
- pipelineName :: Maybe Text
- httpStatus :: Int
- newCreatePipelineResponse :: Int -> CreatePipelineResponse
- createPipelineResponse_pipelineArn :: Lens' CreatePipelineResponse (Maybe Text)
- createPipelineResponse_pipelineName :: Lens' CreatePipelineResponse (Maybe Text)
- createPipelineResponse_httpStatus :: Lens' CreatePipelineResponse Int
Creating a Request
data CreatePipeline Source #
See: newCreatePipeline smart constructor.
Constructors
| CreatePipeline' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> NonEmpty PipelineActivity | |
| -> CreatePipeline |
Create a value of CreatePipeline 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:tags:CreatePipeline', createPipeline_tags - Metadata which can be used to manage the pipeline.
CreatePipeline, createPipeline_pipelineName - The name of the pipeline.
$sel:pipelineActivities:CreatePipeline', createPipeline_pipelineActivities - A list of PipelineActivity objects. Activities perform transformations
on your messages, such as removing, renaming or adding message
attributes; filtering messages based on attribute values; invoking your
Lambda unctions on messages for advanced processing; or performing
mathematical transformations to normalize device data.
The list can be 2-25 PipelineActivity objects and must contain both a
channel and a datastore activity. Each entry in the list must
contain only one activity. For example:
pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]Request Lenses
createPipeline_tags :: Lens' CreatePipeline (Maybe (NonEmpty Tag)) Source #
Metadata which can be used to manage the pipeline.
createPipeline_pipelineName :: Lens' CreatePipeline Text Source #
The name of the pipeline.
createPipeline_pipelineActivities :: Lens' CreatePipeline (NonEmpty PipelineActivity) Source #
A list of PipelineActivity objects. Activities perform transformations
on your messages, such as removing, renaming or adding message
attributes; filtering messages based on attribute values; invoking your
Lambda unctions on messages for advanced processing; or performing
mathematical transformations to normalize device data.
The list can be 2-25 PipelineActivity objects and must contain both a
channel and a datastore activity. Each entry in the list must
contain only one activity. For example:
pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]Destructuring the Response
data CreatePipelineResponse Source #
See: newCreatePipelineResponse smart constructor.
Constructors
| CreatePipelineResponse' | |
Fields
| |
Instances
newCreatePipelineResponse Source #
Create a value of CreatePipelineResponse 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:pipelineArn:CreatePipelineResponse', createPipelineResponse_pipelineArn - The ARN of the pipeline.
CreatePipeline, createPipelineResponse_pipelineName - The name of the pipeline.
$sel:httpStatus:CreatePipelineResponse', createPipelineResponse_httpStatus - The response's http status code.
Response Lenses
createPipelineResponse_pipelineArn :: Lens' CreatePipelineResponse (Maybe Text) Source #
The ARN of the pipeline.
createPipelineResponse_pipelineName :: Lens' CreatePipelineResponse (Maybe Text) Source #
The name of the pipeline.
createPipelineResponse_httpStatus :: Lens' CreatePipelineResponse Int Source #
The response's http status code.