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 |
Creates an application.
Synopsis
- data CreateApplication = CreateApplication' {
- architecture :: Maybe Architecture
- autoStartConfiguration :: Maybe AutoStartConfig
- autoStopConfiguration :: Maybe AutoStopConfig
- imageConfiguration :: Maybe ImageConfigurationInput
- initialCapacity :: Maybe (HashMap Text InitialCapacityConfig)
- maximumCapacity :: Maybe MaximumAllowedResources
- name :: Maybe Text
- networkConfiguration :: Maybe NetworkConfiguration
- tags :: Maybe (HashMap Text Text)
- workerTypeSpecifications :: Maybe (HashMap Text WorkerTypeSpecificationInput)
- releaseLabel :: Text
- type' :: Text
- clientToken :: Text
- newCreateApplication :: Text -> Text -> Text -> CreateApplication
- createApplication_architecture :: Lens' CreateApplication (Maybe Architecture)
- createApplication_autoStartConfiguration :: Lens' CreateApplication (Maybe AutoStartConfig)
- createApplication_autoStopConfiguration :: Lens' CreateApplication (Maybe AutoStopConfig)
- createApplication_imageConfiguration :: Lens' CreateApplication (Maybe ImageConfigurationInput)
- createApplication_initialCapacity :: Lens' CreateApplication (Maybe (HashMap Text InitialCapacityConfig))
- createApplication_maximumCapacity :: Lens' CreateApplication (Maybe MaximumAllowedResources)
- createApplication_name :: Lens' CreateApplication (Maybe Text)
- createApplication_networkConfiguration :: Lens' CreateApplication (Maybe NetworkConfiguration)
- createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text))
- createApplication_workerTypeSpecifications :: Lens' CreateApplication (Maybe (HashMap Text WorkerTypeSpecificationInput))
- createApplication_releaseLabel :: Lens' CreateApplication Text
- createApplication_type :: Lens' CreateApplication Text
- createApplication_clientToken :: Lens' CreateApplication Text
- data CreateApplicationResponse = CreateApplicationResponse' {
- name :: Maybe Text
- httpStatus :: Int
- applicationId :: Text
- arn :: Text
- newCreateApplicationResponse :: Int -> Text -> Text -> CreateApplicationResponse
- createApplicationResponse_name :: Lens' CreateApplicationResponse (Maybe Text)
- createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int
- createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text
- createApplicationResponse_arn :: Lens' CreateApplicationResponse Text
Creating a Request
data CreateApplication Source #
See: newCreateApplication
smart constructor.
CreateApplication' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateApplication |
Create a value of CreateApplication
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:
CreateApplication
, createApplication_architecture
- The CPU architecture of an application.
CreateApplication
, createApplication_autoStartConfiguration
- The configuration for an application to automatically start on job
submission.
CreateApplication
, createApplication_autoStopConfiguration
- The configuration for an application to automatically stop after a
certain amount of time being idle.
CreateApplication
, createApplication_imageConfiguration
- The image configuration for all worker types. You can either set this
parameter or imageConfiguration
for each worker type in
workerTypeSpecifications
.
CreateApplication
, createApplication_initialCapacity
- The capacity to initialize when the application is created.
CreateApplication
, createApplication_maximumCapacity
- The maximum capacity to allocate when the application is created. This
is cumulative across all workers at any given point in time, not just
when an application is created. No new resources will be created once
any one of the defined limits is hit.
CreateApplication
, createApplication_name
- The name of the application.
CreateApplication
, createApplication_networkConfiguration
- The network configuration for customer VPC connectivity.
CreateApplication
, createApplication_tags
- The tags assigned to the application.
CreateApplication
, createApplication_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.
CreateApplication
, createApplication_releaseLabel
- The EMR release associated with the application.
CreateApplication
, createApplication_type
- The type of application you want to start, such as Spark or Hive.
$sel:clientToken:CreateApplication'
, createApplication_clientToken
- The client idempotency token of the application to create. Its value
must be unique for each request.
Request Lenses
createApplication_architecture :: Lens' CreateApplication (Maybe Architecture) Source #
The CPU architecture of an application.
createApplication_autoStartConfiguration :: Lens' CreateApplication (Maybe AutoStartConfig) Source #
The configuration for an application to automatically start on job submission.
createApplication_autoStopConfiguration :: Lens' CreateApplication (Maybe AutoStopConfig) Source #
The configuration for an application to automatically stop after a certain amount of time being idle.
createApplication_imageConfiguration :: Lens' CreateApplication (Maybe ImageConfigurationInput) Source #
The image configuration for all worker types. You can either set this
parameter or imageConfiguration
for each worker type in
workerTypeSpecifications
.
createApplication_initialCapacity :: Lens' CreateApplication (Maybe (HashMap Text InitialCapacityConfig)) Source #
The capacity to initialize when the application is created.
createApplication_maximumCapacity :: Lens' CreateApplication (Maybe MaximumAllowedResources) Source #
The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
createApplication_name :: Lens' CreateApplication (Maybe Text) Source #
The name of the application.
createApplication_networkConfiguration :: Lens' CreateApplication (Maybe NetworkConfiguration) Source #
The network configuration for customer VPC connectivity.
createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text)) Source #
The tags assigned to the application.
createApplication_workerTypeSpecifications :: Lens' CreateApplication (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.
createApplication_releaseLabel :: Lens' CreateApplication Text Source #
The EMR release associated with the application.
createApplication_type :: Lens' CreateApplication Text Source #
The type of application you want to start, such as Spark or Hive.
createApplication_clientToken :: Lens' CreateApplication Text Source #
The client idempotency token of the application to create. Its value must be unique for each request.
Destructuring the Response
data CreateApplicationResponse Source #
See: newCreateApplicationResponse
smart constructor.
CreateApplicationResponse' | |
|
Instances
newCreateApplicationResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateApplicationResponse |
Create a value of CreateApplicationResponse
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:
CreateApplication
, createApplicationResponse_name
- The output contains the name of the application.
$sel:httpStatus:CreateApplicationResponse'
, createApplicationResponse_httpStatus
- The response's http status code.
CreateApplicationResponse
, createApplicationResponse_applicationId
- The output contains the application ID.
CreateApplicationResponse
, createApplicationResponse_arn
- The output contains the ARN of the application.
Response Lenses
createApplicationResponse_name :: Lens' CreateApplicationResponse (Maybe Text) Source #
The output contains the name of the application.
createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int Source #
The response's http status code.
createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text Source #
The output contains the application ID.
createApplicationResponse_arn :: Lens' CreateApplicationResponse Text Source #
The output contains the ARN of the application.