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

Description

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

Synopsis

Creating a Request

data AcceptReservedInstancesExchangeQuote Source #

Contains the parameters for accepting the quote.

See: newAcceptReservedInstancesExchangeQuote smart constructor.

Constructors

AcceptReservedInstancesExchangeQuote' 

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 for another Convertible Reserved Instance of the same or higher value.

Instances

Instances details
ToHeaders AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

ToPath AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

ToQuery AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

AWSRequest AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Generic AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Read AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Show AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

NFData AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Eq AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Hashable AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

type AWSResponse AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

type Rep AcceptReservedInstancesExchangeQuote Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

type Rep AcceptReservedInstancesExchangeQuote = D1 ('MetaData "AcceptReservedInstancesExchangeQuote" "Amazonka.EC2.AcceptReservedInstancesExchangeQuote" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AcceptReservedInstancesExchangeQuote'" '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]))))

newAcceptReservedInstancesExchangeQuote :: AcceptReservedInstancesExchangeQuote Source #

Create a value of AcceptReservedInstancesExchangeQuote 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:AcceptReservedInstancesExchangeQuote', acceptReservedInstancesExchangeQuote_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:AcceptReservedInstancesExchangeQuote', acceptReservedInstancesExchangeQuote_targetConfigurations - The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

$sel:reservedInstanceIds:AcceptReservedInstancesExchangeQuote', acceptReservedInstancesExchangeQuote_reservedInstanceIds - The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value.

Request Lenses

acceptReservedInstancesExchangeQuote_dryRun :: Lens' AcceptReservedInstancesExchangeQuote (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.

acceptReservedInstancesExchangeQuote_targetConfigurations :: Lens' AcceptReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest]) Source #

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

acceptReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' AcceptReservedInstancesExchangeQuote [Text] Source #

The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value.

Destructuring the Response

data AcceptReservedInstancesExchangeQuoteResponse Source #

The result of the exchange and whether it was successful.

See: newAcceptReservedInstancesExchangeQuoteResponse smart constructor.

Constructors

AcceptReservedInstancesExchangeQuoteResponse' 

Fields

Instances

Instances details
Generic AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Read AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Show AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

NFData AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

Eq AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

type Rep AcceptReservedInstancesExchangeQuoteResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptReservedInstancesExchangeQuote

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

Response Lenses