aws_sdk_redshift/client/
purchase_reserved_node_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 [`PurchaseReservedNodeOffering`](crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`reserved_node_offering_id(impl Into<String>)`](crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder::reserved_node_offering_id) / [`set_reserved_node_offering_id(Option<String>)`](crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder::set_reserved_node_offering_id):<br>required: **true**<br><p>The unique identifier of the reserved node offering you want to purchase.</p><br>
7    ///   - [`node_count(i32)`](crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder::node_count) / [`set_node_count(Option<i32>)`](crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder::set_node_count):<br>required: **false**<br><p>The number of reserved nodes that you want to purchase.</p> <p>Default: <code>1</code></p><br>
8    /// - On success, responds with [`PurchaseReservedNodeOfferingOutput`](crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingOutput) with field(s):
9    ///   - [`reserved_node(Option<ReservedNode>)`](crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingOutput::reserved_node): <p>Describes a reserved node. You can call the <code>DescribeReservedNodeOfferings</code> API to obtain the available reserved node offerings.</p>
10    /// - On failure, responds with [`SdkError<PurchaseReservedNodeOfferingError>`](crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError)
11    pub fn purchase_reserved_node_offering(
12        &self,
13    ) -> crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder {
14        crate::operation::purchase_reserved_node_offering::builders::PurchaseReservedNodeOfferingFluentBuilder::new(self.handle.clone())
15    }
16}