purchase_reserved_elasticsearch_instance_offering
async
¶
purchase_reserved_elasticsearch_instance_offering(
reserved_elasticsearch_instance_offering_id: GUID,
reservation_name: ReservationToken,
*,
config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
instance_count: Optional[InstanceCount] = None,
) -> PurchaseReservedElasticsearchInstanceOfferingResponse
Allows you to purchase reserved Elasticsearch instances.
Parameters:
-
reserved_elasticsearch_instance_offering_id(GUID) –The ID of the reserved Elasticsearch instance offering to purchase.
-
reservation_name(ReservationToken) –A customer-specified identifier to track this reservation.
-
instance_count(Optional[InstanceCount], default:None) –The number of Elasticsearch instances to reserve.
Raises:
-
DisabledOperationException–An error occured because the client wanted to access a not supported operation. Gives http status code of 409.
-
InternalException–The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.
-
LimitExceededException–An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists. Gives http status code of 400.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
-
ValidationException–An exception for missing / invalid input fields. Gives http status code of 400.
-
UnknownServiceError–The service returned an error code this client does not model.