aws_sdk_elasticache/client/purchase_reserved_cache_nodes_offering.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`PurchaseReservedCacheNodesOffering`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`reserved_cache_nodes_offering_id(impl Into<String>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::reserved_cache_nodes_offering_id) / [`set_reserved_cache_nodes_offering_id(Option<String>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::set_reserved_cache_nodes_offering_id):<br>required: **true**<br><p>The ID of the reserved cache node offering to purchase.</p> <p>Example: <code>438012d3-4052-4cc7-b2e3-8d3372e0e706</code></p><br>
7 /// - [`reserved_cache_node_id(impl Into<String>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::reserved_cache_node_id) / [`set_reserved_cache_node_id(Option<String>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::set_reserved_cache_node_id):<br>required: **false**<br><p>A customer-specified identifier to track this reservation.</p><note> <p>The Reserved Cache Node ID is an unique customer-specified identifier to track this reservation. If this parameter is not specified, ElastiCache automatically generates an identifier for the reservation.</p> </note> <p>Example: myreservationID</p><br>
8 /// - [`cache_node_count(i32)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::cache_node_count) / [`set_cache_node_count(Option<i32>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::set_cache_node_count):<br>required: **false**<br><p>The number of cache node instances to reserve.</p> <p>Default: <code>1</code></p><br>
9 /// - [`tags(Tag)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.</p><br>
10 /// - On success, responds with [`PurchaseReservedCacheNodesOfferingOutput`](crate::operation::purchase_reserved_cache_nodes_offering::PurchaseReservedCacheNodesOfferingOutput) with field(s):
11 /// - [`reserved_cache_node(Option<ReservedCacheNode>)`](crate::operation::purchase_reserved_cache_nodes_offering::PurchaseReservedCacheNodesOfferingOutput::reserved_cache_node): <p>Represents the output of a <code>PurchaseReservedCacheNodesOffering</code> operation.</p>
12 /// - On failure, responds with [`SdkError<PurchaseReservedCacheNodesOfferingError>`](crate::operation::purchase_reserved_cache_nodes_offering::PurchaseReservedCacheNodesOfferingError)
13 pub fn purchase_reserved_cache_nodes_offering(
14 &self,
15 ) -> crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder {
16 crate::operation::purchase_reserved_cache_nodes_offering::builders::PurchaseReservedCacheNodesOfferingFluentBuilder::new(self.handle.clone())
17 }
18}