| 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.KinesisAnalytics.AddApplicationInput
Description
This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation.
Adds a streaming source to your Amazon Kinesis application. For conceptual information, see Configuring Application Input.
You can add a streaming source either when you create an application or you can use this operation to add a streaming source after you create an application. For more information, see CreateApplication.
Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the DescribeApplication operation to find the current application version.
This operation requires permissions to perform the
kinesisanalytics:AddApplicationInput action.
Synopsis
- data AddApplicationInput = AddApplicationInput' {}
- newAddApplicationInput :: Text -> Natural -> Input -> AddApplicationInput
- addApplicationInput_applicationName :: Lens' AddApplicationInput Text
- addApplicationInput_currentApplicationVersionId :: Lens' AddApplicationInput Natural
- addApplicationInput_input :: Lens' AddApplicationInput Input
- data AddApplicationInputResponse = AddApplicationInputResponse' {
- httpStatus :: Int
- newAddApplicationInputResponse :: Int -> AddApplicationInputResponse
- addApplicationInputResponse_httpStatus :: Lens' AddApplicationInputResponse Int
Creating a Request
data AddApplicationInput Source #
See: newAddApplicationInput smart constructor.
Constructors
| AddApplicationInput' | |
Fields
| |
Instances
newAddApplicationInput Source #
Arguments
| :: Text | |
| -> Natural | |
| -> Input | |
| -> AddApplicationInput |
Create a value of AddApplicationInput 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:
AddApplicationInput, addApplicationInput_applicationName - Name of your existing Amazon Kinesis Analytics application to which you
want to add the streaming source.
$sel:currentApplicationVersionId:AddApplicationInput', addApplicationInput_currentApplicationVersionId - Current version of your Amazon Kinesis Analytics application. You can
use the
DescribeApplication
operation to find the current application version.
$sel:input:AddApplicationInput', addApplicationInput_input - The
Input
to add.
Request Lenses
addApplicationInput_applicationName :: Lens' AddApplicationInput Text Source #
Name of your existing Amazon Kinesis Analytics application to which you want to add the streaming source.
addApplicationInput_currentApplicationVersionId :: Lens' AddApplicationInput Natural Source #
Current version of your Amazon Kinesis Analytics application. You can use the DescribeApplication operation to find the current application version.
addApplicationInput_input :: Lens' AddApplicationInput Input Source #
The Input to add.
Destructuring the Response
data AddApplicationInputResponse Source #
See: newAddApplicationInputResponse smart constructor.
Constructors
| AddApplicationInputResponse' | |
Fields
| |
Instances
newAddApplicationInputResponse Source #
Create a value of AddApplicationInputResponse 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:httpStatus:AddApplicationInputResponse', addApplicationInputResponse_httpStatus - The response's http status code.
Response Lenses
addApplicationInputResponse_httpStatus :: Lens' AddApplicationInputResponse Int Source #
The response's http status code.