AWS v6.60.0 published on Tuesday, Nov 19, 2024 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",
});
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")
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
})
}
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 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
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>
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]
func GetReservedCacheNodeOffering(ctx *Context, args *GetReservedCacheNodeOfferingArgs, opts ...InvokeOption) (*GetReservedCacheNodeOfferingResult, error)
func GetReservedCacheNodeOfferingOutput(ctx *Context, args *GetReservedCacheNodeOfferingOutputArgs, opts ...InvokeOption) GetReservedCacheNodeOfferingResultOutput
> 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)
}
public static CompletableFuture<GetReservedCacheNodeOfferingResult> getReservedCacheNodeOffering(GetReservedCacheNodeOfferingArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:elasticache/getReservedCacheNodeOffering:getReservedCacheNodeOffering
arguments:
# arguments dictionary
The following arguments are supported:
- Cache
Node stringType - 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 string
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - Offering
Type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - Product
Description string - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
- Cache
Node stringType - 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 string
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - Offering
Type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - Product
Description string - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
- cache
Node StringType - 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 String
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - offering
Type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - product
Description String - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
- cache
Node stringType - 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 string
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - offering
Type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - product
Description string - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
- cache_
node_ strtype - 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 str
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - offering_
type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - product_
description str - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
- cache
Node StringType - 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 String
- Duration of the reservation in RFC3339 duration format.
Valid values are
P1Y
(one year) andP3Y
(three years). - offering
Type 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
, andAll Upfront
. For other current generation nodes (i.e. T2, M3, M4, R3, or R4) the only valid value isHeavy Utilization
. For previous generation modes (i.e. T1, M1, M2, or C1) valid values areHeavy Utilization
,Medium Utilization
, andLight Utilization
. - product
Description String - Engine type for the reserved cache node.
Valid values are
redis
,valkey
andmemcached
.
getReservedCacheNodeOffering Result
The following output properties are available:
- Cache
Node stringType - Duration string
- Fixed
Price double - Fixed price charged for this reserved cache node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offering
Id string - Unique identifier for the reservation.
- Offering
Type string - Product
Description string
- Cache
Node stringType - Duration string
- Fixed
Price float64 - Fixed price charged for this reserved cache node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offering
Id string - Unique identifier for the reservation.
- Offering
Type string - Product
Description string
- cache
Node StringType - duration String
- fixed
Price Double - Fixed price charged for this reserved cache node.
- id String
- The provider-assigned unique ID for this managed resource.
- offering
Id String - Unique identifier for the reservation.
- offering
Type String - product
Description String
- cache
Node stringType - duration string
- fixed
Price number - Fixed price charged for this reserved cache node.
- id string
- The provider-assigned unique ID for this managed resource.
- offering
Id string - Unique identifier for the reservation.
- offering
Type string - product
Description string
- cache_
node_ strtype - 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
- cache
Node StringType - duration String
- fixed
Price Number - Fixed price charged for this reserved cache node.
- id String
- The provider-assigned unique ID for this managed resource.
- offering
Id String - Unique identifier for the reservation.
- offering
Type String - product
Description String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.