Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances
operation.
The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings
operation.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide .
Synopsis
- createReservedInstancesListing :: Text -> Int -> Text -> CreateReservedInstancesListing
- data CreateReservedInstancesListing
- crilClientToken :: Lens' CreateReservedInstancesListing Text
- crilInstanceCount :: Lens' CreateReservedInstancesListing Int
- crilPriceSchedules :: Lens' CreateReservedInstancesListing [PriceScheduleSpecification]
- crilReservedInstancesId :: Lens' CreateReservedInstancesListing Text
- createReservedInstancesListingResponse :: Int -> CreateReservedInstancesListingResponse
- data CreateReservedInstancesListingResponse
- crilrrsReservedInstancesListings :: Lens' CreateReservedInstancesListingResponse [ReservedInstancesListing]
- crilrrsResponseStatus :: Lens' CreateReservedInstancesListingResponse Int
Creating a Request
createReservedInstancesListing Source #
:: Text | |
-> Int | |
-> Text | |
-> CreateReservedInstancesListing |
Creates a value of CreateReservedInstancesListing
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crilClientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency .crilInstanceCount
- The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.crilPriceSchedules
- A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.crilReservedInstancesId
- The ID of the active Standard Reserved Instance.
data CreateReservedInstancesListing Source #
Contains the parameters for CreateReservedInstancesListing.
See: createReservedInstancesListing
smart constructor.
Instances
Request Lenses
crilClientToken :: Lens' CreateReservedInstancesListing Text Source #
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency .
crilInstanceCount :: Lens' CreateReservedInstancesListing Int Source #
The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
crilPriceSchedules :: Lens' CreateReservedInstancesListing [PriceScheduleSpecification] Source #
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
crilReservedInstancesId :: Lens' CreateReservedInstancesListing Text Source #
The ID of the active Standard Reserved Instance.
Destructuring the Response
createReservedInstancesListingResponse Source #
Creates a value of CreateReservedInstancesListingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crilrrsReservedInstancesListings
- Information about the Standard Reserved Instance listing.crilrrsResponseStatus
- -- | The response status code.
data CreateReservedInstancesListingResponse Source #
Contains the output of CreateReservedInstancesListing.
See: createReservedInstancesListingResponse
smart constructor.
Instances
Response Lenses
crilrrsReservedInstancesListings :: Lens' CreateReservedInstancesListingResponse [ReservedInstancesListing] Source #
Information about the Standard Reserved Instance listing.
crilrrsResponseStatus :: Lens' CreateReservedInstancesListingResponse Int Source #
- - | The response status code.