ReservedCacheNodeArgs

data class ReservedCacheNodeArgs(val cacheNodeCount: Output<Int>? = null, val reservedCacheNodesOfferingId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ReservedCacheNodeTimeoutsArgs>? = null) : ConvertibleToJava<ReservedCacheNodeArgs>

Manages an ElastiCache Reserved Cache Node.

NOTE: Once created, a reservation is valid for the duration of the provided offering_id and cannot be deleted. Performing a destroy will only remove the resource from state. For more information see ElastiCache Reserved Nodes Documentation and PurchaseReservedCacheNodesOffering. NOTE: Due to the expense of testing this resource, we provide it as best effort. If you find it useful, and have the ability to help test or notice issues, consider reaching out to us on GitHub.

Example Usage

resources:
exampleReservedCacheNode:
type: aws:elasticache:ReservedCacheNode
name: example
properties:
reservedCacheNodesOfferingId: ${example.offeringId}
id: optionalCustomReservationID
cacheNodeCount: 3
variables:
example:
fn::invoke:
function: aws:elasticache:getReservedCacheNodeOffering
arguments:
cacheNodeType: cache.t4g.small
duration: P1Y
offeringType: No Upfront
productDescription: redis

Import

Using pulumi import, import ElastiCache Reserved Cache Node using the id. For example:

$ pulumi import aws:elasticache/reservedCacheNode:ReservedCacheNode example CustomReservationID

Constructors

Link copied to clipboard
constructor(cacheNodeCount: Output<Int>? = null, reservedCacheNodesOfferingId: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<ReservedCacheNodeTimeoutsArgs>? = null)

Properties

Link copied to clipboard
val cacheNodeCount: Output<Int>? = null

Number of cache node instances to reserve. Default value is 1.

Link copied to clipboard

ID of the reserved cache node offering to purchase. To determine an reserved_cache_nodes_offering_id, see the aws.elasticache.getReservedCacheNodeOffering data source. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of tags to assign to the reservation. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJava(): ReservedCacheNodeArgs