1. Packages
  2. AWS
  3. API Docs
  4. elasticache
  5. getReservedCacheNodeOffering
AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi

aws.elasticache.getReservedCacheNodeOffering

Explore with Pulumi AI

Information about a single ElastiCache Reserved Cache Node Offering.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.elasticache.getReservedCacheNodeOffering({
    cacheNodeType: "cache.t4g.small",
    duration: "P1Y",
    offeringType: "No Upfront",
    productDescription: "redis",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.elasticache.get_reserved_cache_node_offering(cache_node_type="cache.t4g.small",
    duration="P1Y",
    offering_type="No Upfront",
    product_description="redis")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticache"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := elasticache.GetReservedCacheNodeOffering(ctx, &elasticache.GetReservedCacheNodeOfferingArgs{
			CacheNodeType:      "cache.t4g.small",
			Duration:           "P1Y",
			OfferingType:       "No Upfront",
			ProductDescription: "redis",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.ElastiCache.GetReservedCacheNodeOffering.Invoke(new()
    {
        CacheNodeType = "cache.t4g.small",
        Duration = "P1Y",
        OfferingType = "No Upfront",
        ProductDescription = "redis",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.ElasticacheFunctions;
import com.pulumi.aws.elasticache.inputs.GetReservedCacheNodeOfferingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = ElasticacheFunctions.getReservedCacheNodeOffering(GetReservedCacheNodeOfferingArgs.builder()
            .cacheNodeType("cache.t4g.small")
            .duration("P1Y")
            .offeringType("No Upfront")
            .productDescription("redis")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:elasticache:getReservedCacheNodeOffering
      arguments:
        cacheNodeType: cache.t4g.small
        duration: P1Y
        offeringType: No Upfront
        productDescription: redis
Copy

Using getReservedCacheNodeOffering

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getReservedCacheNodeOffering(args: GetReservedCacheNodeOfferingArgs, opts?: InvokeOptions): Promise<GetReservedCacheNodeOfferingResult>
function getReservedCacheNodeOfferingOutput(args: GetReservedCacheNodeOfferingOutputArgs, opts?: InvokeOptions): Output<GetReservedCacheNodeOfferingResult>
Copy
def get_reserved_cache_node_offering(cache_node_type: Optional[str] = None,
                                     duration: Optional[str] = None,
                                     offering_type: Optional[str] = None,
                                     product_description: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetReservedCacheNodeOfferingResult
def get_reserved_cache_node_offering_output(cache_node_type: Optional[pulumi.Input[str]] = None,
                                     duration: Optional[pulumi.Input[str]] = None,
                                     offering_type: Optional[pulumi.Input[str]] = None,
                                     product_description: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetReservedCacheNodeOfferingResult]
Copy
func GetReservedCacheNodeOffering(ctx *Context, args *GetReservedCacheNodeOfferingArgs, opts ...InvokeOption) (*GetReservedCacheNodeOfferingResult, error)
func GetReservedCacheNodeOfferingOutput(ctx *Context, args *GetReservedCacheNodeOfferingOutputArgs, opts ...InvokeOption) GetReservedCacheNodeOfferingResultOutput
Copy

> Note: This function is named GetReservedCacheNodeOffering in the Go SDK.

public static class GetReservedCacheNodeOffering 
{
    public static Task<GetReservedCacheNodeOfferingResult> InvokeAsync(GetReservedCacheNodeOfferingArgs args, InvokeOptions? opts = null)
    public static Output<GetReservedCacheNodeOfferingResult> Invoke(GetReservedCacheNodeOfferingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetReservedCacheNodeOfferingResult> getReservedCacheNodeOffering(GetReservedCacheNodeOfferingArgs args, InvokeOptions options)
public static Output<GetReservedCacheNodeOfferingResult> getReservedCacheNodeOffering(GetReservedCacheNodeOfferingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:elasticache/getReservedCacheNodeOffering:getReservedCacheNodeOffering
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CacheNodeType This property is required. string
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
Duration This property is required. string
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
OfferingType This property is required. string
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
ProductDescription This property is required. string
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
CacheNodeType This property is required. string
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
Duration This property is required. string
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
OfferingType This property is required. string
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
ProductDescription This property is required. string
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
cacheNodeType This property is required. String
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
duration This property is required. String
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
offeringType This property is required. String
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
productDescription This property is required. String
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
cacheNodeType This property is required. string
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
duration This property is required. string
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
offeringType This property is required. string
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
productDescription This property is required. string
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
cache_node_type This property is required. str
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
duration This property is required. str
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
offering_type This property is required. str
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
product_description This property is required. str
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
cacheNodeType This property is required. String
Node type for the reserved cache node. See AWS documentation for information on supported node types for Redis and guidance on selecting node types for Redis. See AWS documentation for information on supported node types for Memcached and guidance on selecting node types for Memcached.
duration This property is required. String
Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
offeringType This property is required. String
Offering type of this reserved cache node. For the latest generation of nodes (e.g. M5, R5, T4 and newer) valid values are No Upfront, Partial Upfront, and All Upfront. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value is Heavy Utilization. For previous generation modes (i.e. T1, M1, M2, or C1) valid values are Heavy Utilization, Medium Utilization, and Light Utilization.
productDescription This property is required. String
Engine type for the reserved cache node. Valid values are redis, valkey and memcached.

getReservedCacheNodeOffering Result

The following output properties are available:

CacheNodeType string
Duration string
FixedPrice double
Fixed price charged for this reserved cache node.
Id string
The provider-assigned unique ID for this managed resource.
OfferingId string
Unique identifier for the reservation.
OfferingType string
ProductDescription string
CacheNodeType string
Duration string
FixedPrice float64
Fixed price charged for this reserved cache node.
Id string
The provider-assigned unique ID for this managed resource.
OfferingId string
Unique identifier for the reservation.
OfferingType string
ProductDescription string
cacheNodeType String
duration String
fixedPrice Double
Fixed price charged for this reserved cache node.
id String
The provider-assigned unique ID for this managed resource.
offeringId String
Unique identifier for the reservation.
offeringType String
productDescription String
cacheNodeType string
duration string
fixedPrice number
Fixed price charged for this reserved cache node.
id string
The provider-assigned unique ID for this managed resource.
offeringId string
Unique identifier for the reservation.
offeringType string
productDescription string
cache_node_type str
duration str
fixed_price float
Fixed price charged for this reserved cache node.
id str
The provider-assigned unique ID for this managed resource.
offering_id str
Unique identifier for the reservation.
offering_type str
product_description str
cacheNodeType String
duration String
fixedPrice Number
Fixed price charged for this reserved cache node.
id String
The provider-assigned unique ID for this managed resource.
offeringId String
Unique identifier for the reservation.
offeringType String
productDescription String

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.