Fugue.AWS.Elasticache.CacheSubnetGroup

Module Members

external

(Function)

Create a reference to an externally managed CacheSubnetGroup.

Example usage:

subnets: Elasticache.CacheSubnetGroup.external("MySubnets", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> CacheSubnetGroup
Argument: name

The name of the target CacheSubnetGroup.

Type: String

Argument: region

The region containing the target CacheSubnetGroup.

Type: Region

Returns:

A reference to the specified CacheSubnetGroup.

Type: CacheSubnetGroup

new

(Function)

CacheSubnetGroup Constructor

Call this constructor to create a new Fugue.AWS.Elasticache.CacheSubnetGroup value.

Example usage:

import Fugue.AWS.Elasticache as Elasticache
import Fugue.AWS.Pattern.Network as Network
import Fugue.Core.AWS.Common as AWS

net: Network.new {
  name: "EXAMPLE",
  cidr: "10.42.0.0/16",
  region: AWS.Us-east-1,
  publicSubnets: [
    (AWS.B, "10.42.12.0/24"),
    (AWS.C, "10.42.13.0/24")
  ],
  privateSubnets: [
    (AWS.B, "10.42.22.0/24"),
    (AWS.C, "10.42.23.0/24")
  ]
}

subnetGroup: Elasticache.CacheSubnetGroup.new {
  name: "private",
  description: "private subnets",
  subnets: net.privateSubnets,
}

Type Signature

 fun (Spec) -> CacheSubnetGroup
Argument: spec

A CacheSubnetGroup specification.

Type: Spec

Returns:

A CacheSubnetGroup value.

Type: CacheSubnetGroup

Spec

(Type)

type Spec:
  name: String
  description: String
  subnets: List<Subnet>

CacheSubnetGroup Specification

Record {

Field: name

The name of the CacheSubnetGroup. A string of up to 255 lowercase alphanumeric characters. May include -.

Type: String

Field: description

Description of the CacheSubnetGroup.

Type: String

Field: subnets

The list of Subnets to include in the CacheSubnetGroup.

Type: List<Subnet>

}