getReservedCacheNodeOffering

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",
});
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")
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",
});
});
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
})
}
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());
}
}
variables:
example:
fn::invoke:
function: aws:elasticache:getReservedCacheNodeOffering
arguments:
cacheNodeType: cache.t4g.small
duration: P1Y
offeringType: No Upfront
productDescription: redis

Return

A collection of values returned by getReservedCacheNodeOffering.

Parameters

argument

A collection of arguments for invoking getReservedCacheNodeOffering.


suspend fun getReservedCacheNodeOffering(cacheNodeType: String, duration: String, offeringType: String, productDescription: String): GetReservedCacheNodeOfferingResult

Return

A collection of values returned by getReservedCacheNodeOffering.

Parameters

cacheNodeType

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

Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).

offeringType

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

Engine type for the reserved cache node. Valid values are redis, valkey and memcached.

See also


Return

A collection of values returned by getReservedCacheNodeOffering.

Parameters

argument

Builder for com.pulumi.aws.elasticache.kotlin.inputs.GetReservedCacheNodeOfferingPlainArgs.

See also