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 |
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.
AddApplicationInput' | |
|
Instances
newAddApplicationInput Source #
:: 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:
$sel:applicationName: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.
AddApplicationInputResponse' | |
|
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:applicationARN:AddApplicationInputResponse'
, addApplicationInputResponse_applicationARN
- The Amazon Resource Name (ARN) of the application.
$sel:applicationVersionId:AddApplicationInputResponse'
, addApplicationInputResponse_applicationVersionId
- Provides the current application version.
$sel:inputDescriptions: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.