| 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.KinesisAnalyticsV2.AddApplicationInput
Description
Adds a streaming source to your SQL-based Kinesis Data Analytics application.
You can add a streaming source 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.
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' {}
- newAddApplicationInputResponse :: Int -> AddApplicationInputResponse
- addApplicationInputResponse_applicationARN :: Lens' AddApplicationInputResponse (Maybe Text)
- addApplicationInputResponse_applicationVersionId :: Lens' AddApplicationInputResponse (Maybe Natural)
- addApplicationInputResponse_inputDescriptions :: Lens' AddApplicationInputResponse (Maybe [InputDescription])
- 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 - The name of your existing application to which you want to add the
streaming source.
$sel:currentApplicationVersionId:AddApplicationInput', addApplicationInput_currentApplicationVersionId - The current version of your application. You must provide the
ApplicationVersionID or the ConditionalToken.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 #
The name of your existing application to which you want to add the streaming source.
addApplicationInput_currentApplicationVersionId :: Lens' AddApplicationInput Natural Source #
The current version of your application. You must provide the
ApplicationVersionID or the ConditionalToken.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:
AddApplicationInputResponse, addApplicationInputResponse_applicationARN - The Amazon Resource Name (ARN) of the application.
AddApplicationInputResponse, addApplicationInputResponse_applicationVersionId - Provides the current application version.
AddApplicationInputResponse, addApplicationInputResponse_inputDescriptions - Describes the application input configuration.
$sel:httpStatus:AddApplicationInputResponse', addApplicationInputResponse_httpStatus - The response's http status code.
Response Lenses
addApplicationInputResponse_applicationARN :: Lens' AddApplicationInputResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the application.
addApplicationInputResponse_applicationVersionId :: Lens' AddApplicationInputResponse (Maybe Natural) Source #
Provides the current application version.
addApplicationInputResponse_inputDescriptions :: Lens' AddApplicationInputResponse (Maybe [InputDescription]) Source #
Describes the application input configuration.
addApplicationInputResponse_httpStatus :: Lens' AddApplicationInputResponse Int Source #
The response's http status code.