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

Description

Updates the configuration details for a specific runtime environment.

Synopsis

Creating a Request

data UpdateEnvironment Source #

See: newUpdateEnvironment smart constructor.

Constructors

UpdateEnvironment' 

Fields

  • applyDuringMaintenanceWindow :: Maybe Bool

    Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion parameter only if applyDuringMaintenanceWindow is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, it will fail if applyDuringMaintenanceWindow is set to true.

  • desiredCapacity :: Maybe Natural

    The desired capacity for the runtime environment to update.

  • engineVersion :: Maybe Text

    The version of the runtime engine for the runtime environment.

  • instanceType :: Maybe Text

    The instance type for the runtime environment to update.

  • preferredMaintenanceWindow :: Maybe Text

    Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.

  • environmentId :: Text

    The unique identifier of the runtime environment that you want to update.

Instances

Instances details
ToJSON UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

ToHeaders UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

ToPath UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

ToQuery UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

AWSRequest UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Associated Types

type AWSResponse UpdateEnvironment #

Generic UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Associated Types

type Rep UpdateEnvironment :: Type -> Type #

Read UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Show UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

NFData UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Methods

rnf :: UpdateEnvironment -> () #

Eq UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Hashable UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

type AWSResponse UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

type Rep UpdateEnvironment Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

type Rep UpdateEnvironment = D1 ('MetaData "UpdateEnvironment" "Amazonka.M2.UpdateEnvironment" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "UpdateEnvironment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "applyDuringMaintenanceWindow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "desiredCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "engineVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "preferredMaintenanceWindow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "environmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateEnvironment Source #

Create a value of UpdateEnvironment 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:applyDuringMaintenanceWindow:UpdateEnvironment', updateEnvironment_applyDuringMaintenanceWindow - Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion parameter only if applyDuringMaintenanceWindow is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, it will fail if applyDuringMaintenanceWindow is set to true.

UpdateEnvironment, updateEnvironment_desiredCapacity - The desired capacity for the runtime environment to update.

UpdateEnvironment, updateEnvironment_engineVersion - The version of the runtime engine for the runtime environment.

UpdateEnvironment, updateEnvironment_instanceType - The instance type for the runtime environment to update.

$sel:preferredMaintenanceWindow:UpdateEnvironment', updateEnvironment_preferredMaintenanceWindow - Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.

UpdateEnvironment, updateEnvironment_environmentId - The unique identifier of the runtime environment that you want to update.

Request Lenses

updateEnvironment_applyDuringMaintenanceWindow :: Lens' UpdateEnvironment (Maybe Bool) Source #

Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion parameter only if applyDuringMaintenanceWindow is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, it will fail if applyDuringMaintenanceWindow is set to true.

updateEnvironment_desiredCapacity :: Lens' UpdateEnvironment (Maybe Natural) Source #

The desired capacity for the runtime environment to update.

updateEnvironment_engineVersion :: Lens' UpdateEnvironment (Maybe Text) Source #

The version of the runtime engine for the runtime environment.

updateEnvironment_instanceType :: Lens' UpdateEnvironment (Maybe Text) Source #

The instance type for the runtime environment to update.

updateEnvironment_preferredMaintenanceWindow :: Lens' UpdateEnvironment (Maybe Text) Source #

Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.

updateEnvironment_environmentId :: Lens' UpdateEnvironment Text Source #

The unique identifier of the runtime environment that you want to update.

Destructuring the Response

data UpdateEnvironmentResponse Source #

See: newUpdateEnvironmentResponse smart constructor.

Constructors

UpdateEnvironmentResponse' 

Fields

Instances

Instances details
Generic UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Associated Types

type Rep UpdateEnvironmentResponse :: Type -> Type #

Read UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Show UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

NFData UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

Eq UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

type Rep UpdateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.M2.UpdateEnvironment

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

newUpdateEnvironmentResponse Source #

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

UpdateEnvironment, updateEnvironmentResponse_environmentId - The unique identifier of the runtime environment that was updated.

Response Lenses

updateEnvironmentResponse_environmentId :: Lens' UpdateEnvironmentResponse Text Source #

The unique identifier of the runtime environment that was updated.