aws_sdk_memorydb/client/
purchase_reserved_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 [`PurchaseReservedNodesOffering`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`reserved_nodes_offering_id(impl Into<String>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::reserved_nodes_offering_id) / [`set_reserved_nodes_offering_id(Option<String>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::set_reserved_nodes_offering_id):<br>required: **true**<br><p>The ID of the reserved node offering to purchase.</p><br>
7    ///   - [`reservation_id(impl Into<String>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::reservation_id) / [`set_reservation_id(Option<String>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::set_reservation_id):<br>required: **false**<br><p>A customer-specified identifier to track this reservation.</p><br>
8    ///   - [`node_count(i32)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::node_count) / [`set_node_count(Option<i32>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::set_node_count):<br>required: **false**<br><p>The number of node instances to reserve.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::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 [`PurchaseReservedNodesOfferingOutput`](crate::operation::purchase_reserved_nodes_offering::PurchaseReservedNodesOfferingOutput) with field(s):
11    ///   - [`reserved_node(Option<ReservedNode>)`](crate::operation::purchase_reserved_nodes_offering::PurchaseReservedNodesOfferingOutput::reserved_node): <p>Represents the output of a <code>PurchaseReservedNodesOffering</code> operation.</p>
12    /// - On failure, responds with [`SdkError<PurchaseReservedNodesOfferingError>`](crate::operation::purchase_reserved_nodes_offering::PurchaseReservedNodesOfferingError)
13    pub fn purchase_reserved_nodes_offering(
14        &self,
15    ) -> crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder {
16        crate::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingFluentBuilder::new(self.handle.clone())
17    }
18}