1. Packages
  2. AWS
  3. API Docs
  4. elasticache
  5. getReservedCacheNodeOffering
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.elasticache.getReservedCacheNodeOffering

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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:

    CacheNodeType 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 string
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
    OfferingType 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 string
    Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
    CacheNodeType 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 string
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
    OfferingType 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 string
    Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
    cacheNodeType 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 String
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
    offeringType 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 String
    Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
    cacheNodeType 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 string
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
    offeringType 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 string
    Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
    cache_node_type 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 str
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (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, 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 str
    Engine type for the reserved cache node. Valid values are redis, valkey and memcached.
    cacheNodeType 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 String
    Duration of the reservation in RFC3339 duration format. Valid values are P1Y (one year) and P3Y (three years).
    offeringType 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 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.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi