describe_reserved_instances_offerings
async
¶
describe_reserved_instances_offerings(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
32072 32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 | |