amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.ModifyReservedInstances

Description

Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data ModifyReservedInstances Source #

Contains the parameters for ModifyReservedInstances.

See: newModifyReservedInstances smart constructor.

Constructors

ModifyReservedInstances' 

Fields

Instances

Instances details
ToHeaders ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

ToPath ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

ToQuery ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

AWSRequest ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Generic ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Associated Types

type Rep ModifyReservedInstances :: Type -> Type #

Read ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Show ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

NFData ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Methods

rnf :: ModifyReservedInstances -> () #

Eq ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Hashable ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

type AWSResponse ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

type Rep ModifyReservedInstances Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

type Rep ModifyReservedInstances = D1 ('MetaData "ModifyReservedInstances" "Amazonka.EC2.ModifyReservedInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyReservedInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "reservedInstancesIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "targetConfigurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ReservedInstancesConfiguration]))))

newModifyReservedInstances :: ModifyReservedInstances Source #

Create a value of ModifyReservedInstances 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:

ModifyReservedInstances, modifyReservedInstances_clientToken - A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

ModifyReservedInstances, modifyReservedInstances_reservedInstancesIds - The IDs of the Reserved Instances to modify.

$sel:targetConfigurations:ModifyReservedInstances', modifyReservedInstances_targetConfigurations - The configuration settings for the Reserved Instances to modify.

Request Lenses

modifyReservedInstances_clientToken :: Lens' ModifyReservedInstances (Maybe Text) Source #

A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

modifyReservedInstances_targetConfigurations :: Lens' ModifyReservedInstances [ReservedInstancesConfiguration] Source #

The configuration settings for the Reserved Instances to modify.

Destructuring the Response

data ModifyReservedInstancesResponse Source #

Contains the output of ModifyReservedInstances.

See: newModifyReservedInstancesResponse smart constructor.

Constructors

ModifyReservedInstancesResponse' 

Fields

Instances

Instances details
Generic ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Associated Types

type Rep ModifyReservedInstancesResponse :: Type -> Type #

Read ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Show ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

NFData ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

Eq ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

type Rep ModifyReservedInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyReservedInstances

type Rep ModifyReservedInstancesResponse = D1 ('MetaData "ModifyReservedInstancesResponse" "Amazonka.EC2.ModifyReservedInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyReservedInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservedInstancesModificationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyReservedInstancesResponse Source #

Create a value of ModifyReservedInstancesResponse 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:

ModifyReservedInstancesResponse, modifyReservedInstancesResponse_reservedInstancesModificationId - The ID for the modification.

$sel:httpStatus:ModifyReservedInstancesResponse', modifyReservedInstancesResponse_httpStatus - The response's http status code.

Response Lenses