amazonka-m2-2.0: Amazon MainframeModernization 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.M2.CreateApplication

Description

Creates a new application with given parameters. Requires an existing runtime environment and application definition file.

Synopsis

Creating a Request

data CreateApplication Source #

See: newCreateApplication smart constructor.

Constructors

CreateApplication' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

  • description :: Maybe Text

    The description of the application.

  • kmsKeyId :: Maybe Text

    The identifier of a customer managed key.

  • tags :: Maybe (HashMap Text Text)

    A list of tags to apply to the application.

  • definition :: Definition

    The application definition for this application. You can specify either inline JSON or an S3 bucket location.

  • engineType :: EngineType

    The type of the target platform for this application.

  • name :: Text

    The unique identifier of the application.

Instances

Instances details
ToJSON CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

ToHeaders CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

ToPath CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

ToQuery CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

AWSRequest CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Associated Types

type AWSResponse CreateApplication #

Generic CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Associated Types

type Rep CreateApplication :: Type -> Type #

Read CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Show CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

NFData CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Methods

rnf :: CreateApplication -> () #

Eq CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Hashable CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

type AWSResponse CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

type Rep CreateApplication Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

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:

$sel:clientToken:CreateApplication', createApplication_clientToken - Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

CreateApplication, createApplication_description - The description of the application.

$sel:kmsKeyId:CreateApplication', createApplication_kmsKeyId - The identifier of a customer managed key.

$sel:tags:CreateApplication', createApplication_tags - A list of tags to apply to the application.

$sel:definition:CreateApplication', createApplication_definition - The application definition for this application. You can specify either inline JSON or an S3 bucket location.

CreateApplication, createApplication_engineType - The type of the target platform for this application.

CreateApplication, createApplication_name - The unique identifier of the application.

Request Lenses

createApplication_clientToken :: Lens' CreateApplication (Maybe Text) Source #

Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

createApplication_description :: Lens' CreateApplication (Maybe Text) Source #

The description of the application.

createApplication_kmsKeyId :: Lens' CreateApplication (Maybe Text) Source #

The identifier of a customer managed key.

createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the application.

createApplication_definition :: Lens' CreateApplication Definition Source #

The application definition for this application. You can specify either inline JSON or an S3 bucket location.

createApplication_engineType :: Lens' CreateApplication EngineType Source #

The type of the target platform for this application.

createApplication_name :: Lens' CreateApplication Text Source #

The unique identifier of the application.

Destructuring the Response

data CreateApplicationResponse Source #

See: newCreateApplicationResponse smart constructor.

Constructors

CreateApplicationResponse' 

Fields

Instances

Instances details
Generic CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Associated Types

type Rep CreateApplicationResponse :: Type -> Type #

Read CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Show CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

NFData CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

Eq CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

type Rep CreateApplicationResponse Source # 
Instance details

Defined in Amazonka.M2.CreateApplication

type Rep CreateApplicationResponse = D1 ('MetaData "CreateApplicationResponse" "Amazonka.M2.CreateApplication" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "CreateApplicationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "applicationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "applicationVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))))

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:

$sel:httpStatus:CreateApplicationResponse', createApplicationResponse_httpStatus - The response's http status code.

CreateApplicationResponse, createApplicationResponse_applicationArn - The Amazon Resource Name (ARN) of the application.

CreateApplicationResponse, createApplicationResponse_applicationId - The unique application identifier.

CreateApplicationResponse, createApplicationResponse_applicationVersion - The version number of the application.

Response Lenses

createApplicationResponse_applicationArn :: Lens' CreateApplicationResponse Text Source #

The Amazon Resource Name (ARN) of the application.