describe_reserved_instances_offerings
¶
describe_reserved_instances_offerings(
*,
config_overrides: Optional[EC2ClientConfig] = None,
availability_zone: Optional[String] = None,
include_marketplace: Optional[Boolean] = None,
instance_type: Optional[InstanceType] = None,
max_duration: Optional[Long] = None,
max_instance_count: Optional[Integer] = None,
min_duration: Optional[Long] = None,
offering_class: Optional[OfferingClassType] = None,
product_description: Optional[RIProductDescription] = None,
reserved_instances_offering_ids: Optional[
ReservedInstancesOfferingIdStringList
] = None,
availability_zone_id: Optional[AvailabilityZoneId] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
instance_tenancy: Optional[Tenancy] = None,
offering_type: Optional[OfferingTypeValues] = None,
next_token: Optional[String] = None,
max_results: Optional[Integer] = None,
) -> DescribeReservedInstancesOfferingsResult
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.
If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.
For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Parameters:
-
availability_zone(Optional[String], default:None) –The Availability Zone in which the Reserved Instance can be used.
Either
AvailabilityZoneorAvailabilityZoneIdcan be specified, but not both. -
include_marketplace(Optional[Boolean], default:None) –Include Reserved Instance Marketplace offerings in the response.
-
instance_type(Optional[InstanceType], default:None) –The instance type that the reservation will cover (for example,
m1.small). For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide. -
max_duration(Optional[Long], default:None) –The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
-
max_instance_count(Optional[Integer], default:None) –The maximum number of instances to filter when searching for offerings.
Default: 20
-
min_duration(Optional[Long], default:None) –The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
-
offering_class(Optional[OfferingClassType], default:None) –The offering class of the Reserved Instance. Can be
standardorconvertible. -
product_description(Optional[RIProductDescription], default:None) –The Reserved Instance product platform description. Instances that include
(Amazon VPC)in the description are for use with Amazon VPC. -
reserved_instances_offering_ids(Optional[ReservedInstancesOfferingIdStringList], default:None) –One or more Reserved Instances offering IDs.
-
availability_zone_id(Optional[AvailabilityZoneId], default:None) –The ID of the Availability Zone.
Either
AvailabilityZoneorAvailabilityZoneIdcan be specified, but not both. -
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
filters(Optional[FilterList], default:None) –One or more filters.
-
availability-zone- The Availability Zone where the Reserved Instance can be used. -
availability-zone-id- The ID of the Availability Zone where the Reserved Instance can be used. -
duration- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000|94608000). -
fixed-price- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type- The instance type that is covered by the reservation. -
marketplace- Set totrueto show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description- The Reserved Instance product platform description (Linux/UNIX|Linux with SQL Server Standard|Linux with SQL Server Web|Linux with SQL Server Enterprise|SUSE Linux|Red Hat Enterprise Linux|Red Hat Enterprise Linux with HA|Windows|Windows with SQL Server Standard|Windows with SQL Server Web|Windows with SQL Server Enterprise). -
reserved-instances-offering-id- The Reserved Instances offering ID. -
scope- The scope of the Reserved Instance (Availability ZoneorRegion). -
usage-price- The usage price of the Reserved Instance, per hour (for example, 0.84).
-
-
instance_tenancy(Optional[Tenancy], default:None) –The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of
dedicatedis applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).Important: The
hostvalue cannot be used with this parameter. Use thedefaultordedicatedvalues only.Default:
default -
offering_type(Optional[OfferingTypeValues], default:None) –The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the
Medium UtilizationReserved Instance offering type. -
next_token(Optional[String], default:None) –The token to retrieve the next page of results.
-
max_results(Optional[Integer], default:None) –The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned
NextTokenvalue. The maximum is 100.Default: 100
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 31752 31753 31754 31755 31756 | |