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 |
Updates a specified application. An application has to be in a stopped or created state in order to be updated.
Synopsis
- data UpdateApplication = UpdateApplication' {
- architecture :: Maybe Architecture
- autoStartConfiguration :: Maybe AutoStartConfig
- autoStopConfiguration :: Maybe AutoStopConfig
- imageConfiguration :: Maybe ImageConfigurationInput
- initialCapacity :: Maybe (HashMap Text InitialCapacityConfig)
- maximumCapacity :: Maybe MaximumAllowedResources
- networkConfiguration :: Maybe NetworkConfiguration
- workerTypeSpecifications :: Maybe (HashMap Text WorkerTypeSpecificationInput)
- applicationId :: Text
- clientToken :: Text
- newUpdateApplication :: Text -> Text -> UpdateApplication
- updateApplication_architecture :: Lens' UpdateApplication (Maybe Architecture)
- updateApplication_autoStartConfiguration :: Lens' UpdateApplication (Maybe AutoStartConfig)
- updateApplication_autoStopConfiguration :: Lens' UpdateApplication (Maybe AutoStopConfig)
- updateApplication_imageConfiguration :: Lens' UpdateApplication (Maybe ImageConfigurationInput)
- updateApplication_initialCapacity :: Lens' UpdateApplication (Maybe (HashMap Text InitialCapacityConfig))
- updateApplication_maximumCapacity :: Lens' UpdateApplication (Maybe MaximumAllowedResources)
- updateApplication_networkConfiguration :: Lens' UpdateApplication (Maybe NetworkConfiguration)
- updateApplication_workerTypeSpecifications :: Lens' UpdateApplication (Maybe (HashMap Text WorkerTypeSpecificationInput))
- updateApplication_applicationId :: Lens' UpdateApplication Text
- updateApplication_clientToken :: Lens' UpdateApplication Text
- data UpdateApplicationResponse = UpdateApplicationResponse' {}
- newUpdateApplicationResponse :: Int -> Application -> UpdateApplicationResponse
- updateApplicationResponse_httpStatus :: Lens' UpdateApplicationResponse Int
- updateApplicationResponse_application :: Lens' UpdateApplicationResponse Application
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:
UpdateApplication
, updateApplication_architecture
- The CPU architecture of an application.
UpdateApplication
, updateApplication_autoStartConfiguration
- The configuration for an application to automatically start on job
submission.
UpdateApplication
, updateApplication_autoStopConfiguration
- The configuration for an application to automatically stop after a
certain amount of time being idle.
UpdateApplication
, updateApplication_imageConfiguration
- The image configuration to be used for all worker types. You can either
set this parameter or imageConfiguration
for each worker type in
WorkerTypeSpecificationInput
.
UpdateApplication
, updateApplication_initialCapacity
- The capacity to initialize when the application is updated.
UpdateApplication
, updateApplication_maximumCapacity
- The maximum capacity to allocate when the application is updated. This
is cumulative across all workers at any given point in time during the
lifespan of the application. No new resources will be created once any
one of the defined limits is hit.
UpdateApplication
, updateApplication_networkConfiguration
- Undocumented member.
UpdateApplication
, updateApplication_workerTypeSpecifications
- The key-value pairs that specify worker type to
WorkerTypeSpecificationInput
. This parameter must contain all valid
worker types for a Spark or Hive application. Valid worker types include
Driver
and Executor
for Spark applications and HiveDriver
and
TezTask
for Hive applications. You can either set image details in
this parameter for each worker type, or in imageConfiguration
for all
worker types.
UpdateApplication
, updateApplication_applicationId
- The ID of the application to update.
$sel:clientToken:UpdateApplication'
, updateApplication_clientToken
- The client idempotency token of the application to update. Its value
must be unique for each request.
Request Lenses
updateApplication_architecture :: Lens' UpdateApplication (Maybe Architecture) Source #
The CPU architecture of an application.
updateApplication_autoStartConfiguration :: Lens' UpdateApplication (Maybe AutoStartConfig) Source #
The configuration for an application to automatically start on job submission.
updateApplication_autoStopConfiguration :: Lens' UpdateApplication (Maybe AutoStopConfig) Source #
The configuration for an application to automatically stop after a certain amount of time being idle.
updateApplication_imageConfiguration :: Lens' UpdateApplication (Maybe ImageConfigurationInput) Source #
The image configuration to be used for all worker types. You can either
set this parameter or imageConfiguration
for each worker type in
WorkerTypeSpecificationInput
.
updateApplication_initialCapacity :: Lens' UpdateApplication (Maybe (HashMap Text InitialCapacityConfig)) Source #
The capacity to initialize when the application is updated.
updateApplication_maximumCapacity :: Lens' UpdateApplication (Maybe MaximumAllowedResources) Source #
The maximum capacity to allocate when the application is updated. This is cumulative across all workers at any given point in time during the lifespan of the application. No new resources will be created once any one of the defined limits is hit.
updateApplication_networkConfiguration :: Lens' UpdateApplication (Maybe NetworkConfiguration) Source #
Undocumented member.
updateApplication_workerTypeSpecifications :: Lens' UpdateApplication (Maybe (HashMap Text WorkerTypeSpecificationInput)) Source #
The key-value pairs that specify worker type to
WorkerTypeSpecificationInput
. This parameter must contain all valid
worker types for a Spark or Hive application. Valid worker types include
Driver
and Executor
for Spark applications and HiveDriver
and
TezTask
for Hive applications. You can either set image details in
this parameter for each worker type, or in imageConfiguration
for all
worker types.
updateApplication_applicationId :: Lens' UpdateApplication Text Source #
The ID of the application to update.
updateApplication_clientToken :: Lens' UpdateApplication Text Source #
The client idempotency token of the application to update. Its value must be unique for each request.
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:application:UpdateApplicationResponse'
, updateApplicationResponse_application
- Information about the updated application.
Response Lenses
updateApplicationResponse_httpStatus :: Lens' UpdateApplicationResponse Int Source #
The response's http status code.
updateApplicationResponse_application :: Lens' UpdateApplicationResponse Application Source #
Information about the updated application.