amazonka-emr-serverless-2.0: Amazon EMR Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EMRServerless.CreateApplication

Description

Creates an application.

Synopsis

Creating a Request

data CreateApplication Source #

See: newCreateApplication smart constructor.

Constructors

CreateApplication' 

Fields

Instances

Instances details
ToJSON CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

ToHeaders CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

ToPath CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

ToQuery CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

AWSRequest CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Associated Types

type AWSResponse CreateApplication #

Generic CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Associated Types

type Rep CreateApplication :: Type -> Type #

Read CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Show CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

NFData CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Methods

rnf :: CreateApplication -> () #

Eq CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Hashable CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

type AWSResponse CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

type Rep CreateApplication Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

type Rep CreateApplication = D1 ('MetaData "CreateApplication" "Amazonka.EMRServerless.CreateApplication" "amazonka-emr-serverless-2.0-Zw6ehwruaDFJFsqn31iYt" 'False) (C1 ('MetaCons "CreateApplication'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "architecture") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Architecture)) :*: (S1 ('MetaSel ('Just "autoStartConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoStartConfig)) :*: S1 ('MetaSel ('Just "autoStopConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoStopConfig)))) :*: (S1 ('MetaSel ('Just "imageConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageConfigurationInput)) :*: (S1 ('MetaSel ('Just "initialCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text InitialCapacityConfig))) :*: S1 ('MetaSel ('Just "maximumCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaximumAllowedResources))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "networkConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NetworkConfiguration)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: ((S1 ('MetaSel ('Just "workerTypeSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text WorkerTypeSpecificationInput))) :*: S1 ('MetaSel ('Just "releaseLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateApplication Source #

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_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_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.

Constructors

CreateApplicationResponse' 

Fields

Instances

Instances details
Generic CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Associated Types

type Rep CreateApplicationResponse :: Type -> Type #

Read CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Show CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

NFData CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

Eq CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

type Rep CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.EMRServerless.CreateApplication

type Rep CreateApplicationResponse = D1 ('MetaData "CreateApplicationResponse" "Amazonka.EMRServerless.CreateApplication" "amazonka-emr-serverless-2.0-Zw6ehwruaDFJFsqn31iYt" 'False) (C1 ('MetaCons "CreateApplicationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateApplicationResponse Source #

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_arn :: Lens' CreateApplicationResponse Text Source #

The output contains the ARN of the application.