Struct aws_sdk_redshift::types::ReservedNode
source · #[non_exhaustive]pub struct ReservedNode { /* private fields */ }
Expand description
Describes a reserved node. You can call the DescribeReservedNodeOfferings
API to obtain the available reserved node offerings.
Implementations§
source§impl ReservedNode
impl ReservedNode
sourcepub fn reserved_node_id(&self) -> Option<&str>
pub fn reserved_node_id(&self) -> Option<&str>
The unique identifier for the reservation.
sourcepub fn reserved_node_offering_id(&self) -> Option<&str>
pub fn reserved_node_offering_id(&self) -> Option<&str>
The identifier for the reserved node offering.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
sourcepub fn fixed_price(&self) -> f64
pub fn fixed_price(&self) -> f64
The fixed cost Amazon Redshift charges you for this reserved node.
sourcepub fn usage_price(&self) -> f64
pub fn usage_price(&self) -> f64
The hourly rate Amazon Redshift charges you for this reserved node.
sourcepub fn currency_code(&self) -> Option<&str>
pub fn currency_code(&self) -> Option<&str>
The currency code for the reserved cluster.
sourcepub fn node_count(&self) -> i32
pub fn node_count(&self) -> i32
The number of reserved compute nodes.
sourcepub fn state(&self) -> Option<&str>
pub fn state(&self) -> Option<&str>
The state of the reserved compute node.
Possible Values:
-
pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
-
active-This reserved node is owned by the caller and is available for use.
-
payment-failed-Payment failed for the purchase attempt.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
sourcepub fn offering_type(&self) -> Option<&str>
pub fn offering_type(&self) -> Option<&str>
The anticipated utilization of the reserved node, as defined in the reserved node offering.
sourcepub fn recurring_charges(&self) -> Option<&[RecurringCharge]>
pub fn recurring_charges(&self) -> Option<&[RecurringCharge]>
The recurring charges for the reserved node.
sourcepub fn reserved_node_offering_type(&self) -> Option<&ReservedNodeOfferingType>
pub fn reserved_node_offering_type(&self) -> Option<&ReservedNodeOfferingType>
source§impl ReservedNode
impl ReservedNode
sourcepub fn builder() -> ReservedNodeBuilder
pub fn builder() -> ReservedNodeBuilder
Creates a new builder-style object to manufacture ReservedNode
.
Trait Implementations§
source§impl Clone for ReservedNode
impl Clone for ReservedNode
source§fn clone(&self) -> ReservedNode
fn clone(&self) -> ReservedNode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservedNode
impl Debug for ReservedNode
source§impl PartialEq<ReservedNode> for ReservedNode
impl PartialEq<ReservedNode> for ReservedNode
source§fn eq(&self, other: &ReservedNode) -> bool
fn eq(&self, other: &ReservedNode) -> bool
self
and other
values to be equal, and is used
by ==
.