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 |
Updates an existing Kinesis Data Analytics application. Using this operation, you can update application code, input configuration, and output configuration.
Kinesis Data Analytics updates the ApplicationVersionId
each time you
update your application.
You cannot update the RuntimeEnvironment
of an existing application.
If you need to update an application's RuntimeEnvironment
, you must
delete the application and create it again.
Synopsis
- data UpdateApplication = UpdateApplication' {
- currentApplicationVersionId :: Maybe Natural
- serviceExecutionRoleUpdate :: Maybe Text
- cloudWatchLoggingOptionUpdates :: Maybe [CloudWatchLoggingOptionUpdate]
- conditionalToken :: Maybe Text
- applicationConfigurationUpdate :: Maybe ApplicationConfigurationUpdate
- runConfigurationUpdate :: Maybe RunConfigurationUpdate
- applicationName :: Text
- newUpdateApplication :: Text -> UpdateApplication
- updateApplication_currentApplicationVersionId :: Lens' UpdateApplication (Maybe Natural)
- updateApplication_serviceExecutionRoleUpdate :: Lens' UpdateApplication (Maybe Text)
- updateApplication_cloudWatchLoggingOptionUpdates :: Lens' UpdateApplication (Maybe [CloudWatchLoggingOptionUpdate])
- updateApplication_conditionalToken :: Lens' UpdateApplication (Maybe Text)
- updateApplication_applicationConfigurationUpdate :: Lens' UpdateApplication (Maybe ApplicationConfigurationUpdate)
- updateApplication_runConfigurationUpdate :: Lens' UpdateApplication (Maybe RunConfigurationUpdate)
- updateApplication_applicationName :: Lens' UpdateApplication Text
- data UpdateApplicationResponse = UpdateApplicationResponse' {}
- newUpdateApplicationResponse :: Int -> ApplicationDetail -> UpdateApplicationResponse
- updateApplicationResponse_httpStatus :: Lens' UpdateApplicationResponse Int
- updateApplicationResponse_applicationDetail :: Lens' UpdateApplicationResponse ApplicationDetail
Creating a Request
data UpdateApplication Source #
See: newUpdateApplication
smart constructor.
UpdateApplication' | |
|
Instances
Create a value of UpdateApplication
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:currentApplicationVersionId:UpdateApplication'
, updateApplication_currentApplicationVersionId
- The current application version ID. You must provide the
CurrentApplicationVersionId
or the ConditionalToken
.You can retrieve
the application version ID using DescribeApplication. For better
concurrency support, use the ConditionalToken
parameter instead of
CurrentApplicationVersionId
.
$sel:serviceExecutionRoleUpdate:UpdateApplication'
, updateApplication_serviceExecutionRoleUpdate
- Describes updates to the service execution role.
$sel:cloudWatchLoggingOptionUpdates:UpdateApplication'
, updateApplication_cloudWatchLoggingOptionUpdates
- Describes application Amazon CloudWatch logging option updates. You can
only update existing CloudWatch logging options with this action. To add
a new CloudWatch logging option, use
AddApplicationCloudWatchLoggingOption.
$sel:conditionalToken:UpdateApplication'
, updateApplication_conditionalToken
- A value you use to implement strong concurrency for application updates.
You must provide the CurrentApplicationVersionId
or the
ConditionalToken
. You get the application's current
ConditionalToken
using DescribeApplication. For better concurrency
support, use the ConditionalToken
parameter instead of
CurrentApplicationVersionId
.
$sel:applicationConfigurationUpdate:UpdateApplication'
, updateApplication_applicationConfigurationUpdate
- Describes application configuration updates.
$sel:runConfigurationUpdate:UpdateApplication'
, updateApplication_runConfigurationUpdate
- Describes updates to the application's starting parameters.
$sel:applicationName:UpdateApplication'
, updateApplication_applicationName
- The name of the application to update.
Request Lenses
updateApplication_currentApplicationVersionId :: Lens' UpdateApplication (Maybe Natural) Source #
The current application version ID. You must provide the
CurrentApplicationVersionId
or the ConditionalToken
.You can retrieve
the application version ID using DescribeApplication. For better
concurrency support, use the ConditionalToken
parameter instead of
CurrentApplicationVersionId
.
updateApplication_serviceExecutionRoleUpdate :: Lens' UpdateApplication (Maybe Text) Source #
Describes updates to the service execution role.
updateApplication_cloudWatchLoggingOptionUpdates :: Lens' UpdateApplication (Maybe [CloudWatchLoggingOptionUpdate]) Source #
Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use AddApplicationCloudWatchLoggingOption.
updateApplication_conditionalToken :: Lens' UpdateApplication (Maybe Text) Source #
A value you use to implement strong concurrency for application updates.
You must provide the CurrentApplicationVersionId
or the
ConditionalToken
. You get the application's current
ConditionalToken
using DescribeApplication. For better concurrency
support, use the ConditionalToken
parameter instead of
CurrentApplicationVersionId
.
updateApplication_applicationConfigurationUpdate :: Lens' UpdateApplication (Maybe ApplicationConfigurationUpdate) Source #
Describes application configuration updates.
updateApplication_runConfigurationUpdate :: Lens' UpdateApplication (Maybe RunConfigurationUpdate) Source #
Describes updates to the application's starting parameters.
updateApplication_applicationName :: Lens' UpdateApplication Text Source #
The name of the application to update.
Destructuring the Response
data UpdateApplicationResponse Source #
See: newUpdateApplicationResponse
smart constructor.
UpdateApplicationResponse' | |
|
Instances
newUpdateApplicationResponse Source #
Create a value of UpdateApplicationResponse
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:UpdateApplicationResponse'
, updateApplicationResponse_httpStatus
- The response's http status code.
$sel:applicationDetail:UpdateApplicationResponse'
, updateApplicationResponse_applicationDetail
- Describes application updates.
Response Lenses
updateApplicationResponse_httpStatus :: Lens' UpdateApplicationResponse Int Source #
The response's http status code.
updateApplicationResponse_applicationDetail :: Lens' UpdateApplicationResponse ApplicationDetail Source #
Describes application updates.