libZSservicesZSamazonka-elasticacheZSamazonka-elasticache
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ElastiCache.CreateCacheSubnetGroup

Description

Creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).

Synopsis

Creating a Request

data CreateCacheSubnetGroup Source #

Represents the input of a CreateCacheSubnetGroup operation.

See: newCreateCacheSubnetGroup smart constructor.

Constructors

CreateCacheSubnetGroup' 

Fields

  • tags :: Maybe [Tag]

    A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

  • cacheSubnetGroupName :: Text

    A name for the cache subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

    Example: mysubnetgroup

  • cacheSubnetGroupDescription :: Text

    A description for the cache subnet group.

  • subnetIds :: [Text]

    A list of VPC subnet IDs for the cache subnet group.

Instances

Instances details
Eq CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Read CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Show CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Generic CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Associated Types

type Rep CreateCacheSubnetGroup :: Type -> Type #

NFData CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Methods

rnf :: CreateCacheSubnetGroup -> () #

Hashable CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

AWSRequest CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Associated Types

type AWSResponse CreateCacheSubnetGroup #

ToHeaders CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

ToPath CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

ToQuery CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

type Rep CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

type Rep CreateCacheSubnetGroup = D1 ('MetaData "CreateCacheSubnetGroup" "Amazonka.ElastiCache.CreateCacheSubnetGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "CreateCacheSubnetGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "cacheSubnetGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "cacheSubnetGroupDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse CreateCacheSubnetGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

newCreateCacheSubnetGroup Source #

Create a value of CreateCacheSubnetGroup with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:CreateCacheSubnetGroup', createCacheSubnetGroup_tags - A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

$sel:cacheSubnetGroupName:CreateCacheSubnetGroup', createCacheSubnetGroup_cacheSubnetGroupName - A name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

$sel:cacheSubnetGroupDescription:CreateCacheSubnetGroup', createCacheSubnetGroup_cacheSubnetGroupDescription - A description for the cache subnet group.

$sel:subnetIds:CreateCacheSubnetGroup', createCacheSubnetGroup_subnetIds - A list of VPC subnet IDs for the cache subnet group.

Request Lenses

createCacheSubnetGroup_tags :: Lens' CreateCacheSubnetGroup (Maybe [Tag]) Source #

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

createCacheSubnetGroup_cacheSubnetGroupName :: Lens' CreateCacheSubnetGroup Text Source #

A name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

createCacheSubnetGroup_subnetIds :: Lens' CreateCacheSubnetGroup [Text] Source #

A list of VPC subnet IDs for the cache subnet group.

Destructuring the Response

data CreateCacheSubnetGroupResponse Source #

See: newCreateCacheSubnetGroupResponse smart constructor.

Constructors

CreateCacheSubnetGroupResponse' 

Fields

Instances

Instances details
Eq CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Read CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Show CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Generic CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

Associated Types

type Rep CreateCacheSubnetGroupResponse :: Type -> Type #

NFData CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

type Rep CreateCacheSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup

type Rep CreateCacheSubnetGroupResponse = D1 ('MetaData "CreateCacheSubnetGroupResponse" "Amazonka.ElastiCache.CreateCacheSubnetGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "CreateCacheSubnetGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cacheSubnetGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheSubnetGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCacheSubnetGroupResponse Source #

Create a value of CreateCacheSubnetGroupResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cacheSubnetGroup:CreateCacheSubnetGroupResponse', createCacheSubnetGroupResponse_cacheSubnetGroup - Undocumented member.

$sel:httpStatus:CreateCacheSubnetGroupResponse', createCacheSubnetGroupResponse_httpStatus - The response's http status code.

Response Lenses