MemoryDB / Client / purchase_reserved_nodes_offering

purchase_reserved_nodes_offering#

MemoryDB.Client.purchase_reserved_nodes_offering(**kwargs)#

Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.

See also: AWS API Documentation

Request Syntax

response = client.purchase_reserved_nodes_offering(
    ReservedNodesOfferingId='string',
    ReservationId='string',
    NodeCount=123,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ReservedNodesOfferingId (string) –

    [REQUIRED]

    The ID of the reserved node offering to purchase.

  • ReservationId (string) – A customer-specified identifier to track this reservation.

  • NodeCount (integer) – The number of node instances to reserve.

  • Tags (list) –

    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.

    • (dict) –

      A tag that can be added to an MemoryDB resource. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. A tag with a null Value is permitted. For more information, see Tagging your MemoryDB resources

      • Key (string) –

        The key for the tag. May not be null.

      • Value (string) –

        The tag’s value. May be null.

Return type:

dict

Returns:

Response Syntax

{
    'ReservedNode': {
        'ReservationId': 'string',
        'ReservedNodesOfferingId': 'string',
        'NodeType': 'string',
        'StartTime': datetime(2015, 1, 1),
        'Duration': 123,
        'FixedPrice': 123.0,
        'NodeCount': 123,
        'OfferingType': 'string',
        'State': 'string',
        'RecurringCharges': [
            {
                'RecurringChargeAmount': 123.0,
                'RecurringChargeFrequency': 'string'
            },
        ],
        'ARN': 'string'
    }
}

Response Structure

  • (dict) –

    • ReservedNode (dict) –

      Represents the output of a PurchaseReservedNodesOffering operation.

      • ReservationId (string) –

        A customer-specified identifier to track this reservation.

      • ReservedNodesOfferingId (string) –

        The ID of the reserved node offering to purchase.

      • NodeType (string) –

        The node type for the reserved nodes.

      • StartTime (datetime) –

        The time the reservation started.

      • Duration (integer) –

        The duration of the reservation in seconds.

      • FixedPrice (float) –

        The fixed price charged for this reserved node.

      • NodeCount (integer) –

        The number of nodes that have been reserved.

      • OfferingType (string) –

        The offering type of this reserved node.

      • State (string) –

        The state of the reserved node.

      • RecurringCharges (list) –

        The recurring price charged to run this reserved node.

        • (dict) –

          The recurring charge to run this reserved node.

          • RecurringChargeAmount (float) –

            The amount of the recurring charge to run this reserved node.

          • RecurringChargeFrequency (string) –

            The frequency of the recurring price charged to run this reserved node.

      • ARN (string) –

        The Amazon Resource Name (ARN) of the reserved node.

Exceptions