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

Description

Creates and starts a deployment to deploy an application into a runtime environment.

Synopsis

Creating a Request

data CreateDeployment Source #

See: newCreateDeployment smart constructor.

Constructors

CreateDeployment' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. 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.

  • applicationId :: Text

    The application identifier.

  • applicationVersion :: Natural

    The version of the application to deploy.

  • environmentId :: Text

    The identifier of the runtime environment where you want to deploy this application.

Instances

Instances details
ToJSON CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

ToHeaders CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Associated Types

type AWSResponse CreateDeployment #

Generic CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Read CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

Eq CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Hashable CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

type AWSResponse CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

type Rep CreateDeployment Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

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

newCreateDeployment Source #

Create a value of CreateDeployment 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:CreateDeployment', createDeployment_clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. 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.

CreateDeployment, createDeployment_applicationId - The application identifier.

CreateDeployment, createDeployment_applicationVersion - The version of the application to deploy.

CreateDeployment, createDeployment_environmentId - The identifier of the runtime environment where you want to deploy this application.

Request Lenses

createDeployment_clientToken :: Lens' CreateDeployment (Maybe Text) Source #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. 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.

createDeployment_applicationVersion :: Lens' CreateDeployment Natural Source #

The version of the application to deploy.

createDeployment_environmentId :: Lens' CreateDeployment Text Source #

The identifier of the runtime environment where you want to deploy this application.

Destructuring the Response

data CreateDeploymentResponse Source #

See: newCreateDeploymentResponse smart constructor.

Constructors

CreateDeploymentResponse' 

Fields

Instances

Instances details
Generic CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Associated Types

type Rep CreateDeploymentResponse :: Type -> Type #

Read CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Show CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

NFData CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

Eq CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

type Rep CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.M2.CreateDeployment

type Rep CreateDeploymentResponse = D1 ('MetaData "CreateDeploymentResponse" "Amazonka.M2.CreateDeployment" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "CreateDeploymentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateDeploymentResponse Source #

Create a value of CreateDeploymentResponse 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:CreateDeploymentResponse', createDeploymentResponse_httpStatus - The response's http status code.

CreateDeploymentResponse, createDeploymentResponse_deploymentId - The unique identifier of the deployment.

Response Lenses