Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ModifyReservedInstances = ModifyReservedInstances' {}
- newModifyReservedInstances :: ModifyReservedInstances
- modifyReservedInstances_clientToken :: Lens' ModifyReservedInstances (Maybe Text)
- modifyReservedInstances_reservedInstancesIds :: Lens' ModifyReservedInstances [Text]
- modifyReservedInstances_targetConfigurations :: Lens' ModifyReservedInstances [ReservedInstancesConfiguration]
- data ModifyReservedInstancesResponse = ModifyReservedInstancesResponse' {}
- newModifyReservedInstancesResponse :: Int -> ModifyReservedInstancesResponse
- modifyReservedInstancesResponse_reservedInstancesModificationId :: Lens' ModifyReservedInstancesResponse (Maybe Text)
- modifyReservedInstancesResponse_httpStatus :: Lens' ModifyReservedInstancesResponse Int
Creating a Request
data ModifyReservedInstances Source #
Contains the parameters for ModifyReservedInstances.
See: newModifyReservedInstances
smart constructor.
ModifyReservedInstances' | |
|
Instances
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_reservedInstancesIds :: Lens' ModifyReservedInstances [Text] Source #
The IDs of the Reserved Instances to modify.
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.
ModifyReservedInstancesResponse' | |
|
Instances
Generic ModifyReservedInstancesResponse Source # | |
Read ModifyReservedInstancesResponse Source # | |
Show ModifyReservedInstancesResponse Source # | |
Defined in Amazonka.EC2.ModifyReservedInstances | |
NFData ModifyReservedInstancesResponse Source # | |
Defined in Amazonka.EC2.ModifyReservedInstances rnf :: ModifyReservedInstancesResponse -> () # | |
Eq ModifyReservedInstancesResponse Source # | |
type Rep ModifyReservedInstancesResponse Source # | |
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
modifyReservedInstancesResponse_reservedInstancesModificationId :: Lens' ModifyReservedInstancesResponse (Maybe Text) Source #
The ID for the modification.
modifyReservedInstancesResponse_httpStatus :: Lens' ModifyReservedInstancesResponse Int Source #
The response's http status code.