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

Description

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

Synopsis

Creating a Request

data GetReservedInstancesExchangeQuote Source #

Contains the parameters for GetReservedInstanceExchangeQuote.

See: newGetReservedInstancesExchangeQuote smart constructor.

Constructors

GetReservedInstancesExchangeQuote' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • targetConfigurations :: Maybe [TargetConfigurationRequest]

    The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

  • reservedInstanceIds :: [Text]

    The IDs of the Convertible Reserved Instances to exchange.

Instances

Instances details
ToHeaders GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

ToPath GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

ToQuery GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

AWSRequest GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Generic GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Associated Types

type Rep GetReservedInstancesExchangeQuote :: Type -> Type #

Read GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Show GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

NFData GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Eq GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Hashable GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

type AWSResponse GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

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

newGetReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote Source #

Create a value of GetReservedInstancesExchangeQuote 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:dryRun:GetReservedInstancesExchangeQuote', getReservedInstancesExchangeQuote_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:targetConfigurations:GetReservedInstancesExchangeQuote', getReservedInstancesExchangeQuote_targetConfigurations - The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

$sel:reservedInstanceIds:GetReservedInstancesExchangeQuote', getReservedInstancesExchangeQuote_reservedInstanceIds - The IDs of the Convertible Reserved Instances to exchange.

Request Lenses

getReservedInstancesExchangeQuote_dryRun :: Lens' GetReservedInstancesExchangeQuote (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

getReservedInstancesExchangeQuote_targetConfigurations :: Lens' GetReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest]) Source #

The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

getReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' GetReservedInstancesExchangeQuote [Text] Source #

The IDs of the Convertible Reserved Instances to exchange.

Destructuring the Response

data GetReservedInstancesExchangeQuoteResponse Source #

Contains the output of GetReservedInstancesExchangeQuote.

See: newGetReservedInstancesExchangeQuoteResponse smart constructor.

Constructors

GetReservedInstancesExchangeQuoteResponse' 

Fields

Instances

Instances details
Generic GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Read GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Show GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

NFData GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

Eq GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuoteResponse = D1 ('MetaData "GetReservedInstancesExchangeQuoteResponse" "Amazonka.EC2.GetReservedInstancesExchangeQuote" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "GetReservedInstancesExchangeQuoteResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "currencyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "isValidExchange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "outputReservedInstancesWillExpireAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "paymentDue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "reservedInstanceValueRollup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservationValue))))) :*: ((S1 ('MetaSel ('Just "reservedInstanceValueSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReservedInstanceReservationValue])) :*: S1 ('MetaSel ('Just "targetConfigurationValueRollup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservationValue))) :*: (S1 ('MetaSel ('Just "targetConfigurationValueSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TargetReservationValue])) :*: (S1 ('MetaSel ('Just "validationFailureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newGetReservedInstancesExchangeQuoteResponse Source #

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

GetReservedInstancesExchangeQuoteResponse, getReservedInstancesExchangeQuoteResponse_currencyCode - The currency of the transaction.

$sel:isValidExchange:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_isValidExchange - If true, the exchange is valid. If false, the exchange cannot be completed.

$sel:outputReservedInstancesWillExpireAt:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_outputReservedInstancesWillExpireAt - The new end date of the reservation term.

$sel:paymentDue:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_paymentDue - The total true upfront charge for the exchange.

$sel:reservedInstanceValueRollup:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_reservedInstanceValueRollup - The cost associated with the Reserved Instance.

$sel:reservedInstanceValueSet:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_reservedInstanceValueSet - The configuration of your Convertible Reserved Instances.

$sel:targetConfigurationValueRollup:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_targetConfigurationValueRollup - The cost associated with the Reserved Instance.

$sel:targetConfigurationValueSet:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_targetConfigurationValueSet - The values of the target Convertible Reserved Instances.

$sel:validationFailureReason:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_validationFailureReason - Describes the reason why the exchange cannot be completed.

$sel:httpStatus:GetReservedInstancesExchangeQuoteResponse', getReservedInstancesExchangeQuoteResponse_httpStatus - The response's http status code.

Response Lenses

getReservedInstancesExchangeQuoteResponse_isValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool) Source #

If true, the exchange is valid. If false, the exchange cannot be completed.