libZSservicesZSamazonka-memorydbZSamazonka-memorydb
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.MemoryDb.CreateSubnetGroup

Description

Creates a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.

Synopsis

Creating a Request

data CreateSubnetGroup Source #

See: newCreateSubnetGroup smart constructor.

Constructors

CreateSubnetGroup' 

Fields

  • description :: Maybe Text

    A description for the subnet group.

  • 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.

  • subnetGroupName :: Text

    The name of the subnet group.

  • subnetIds :: [Text]

    A list of VPC subnet IDs for the subnet group.

Instances

Instances details
Eq CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Read CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Show CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Generic CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type Rep CreateSubnetGroup :: Type -> Type #

NFData CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Methods

rnf :: CreateSubnetGroup -> () #

Hashable CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

ToJSON CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

AWSRequest CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type AWSResponse CreateSubnetGroup #

ToHeaders CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

ToPath CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

ToQuery CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

type Rep CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

type Rep CreateSubnetGroup = D1 ('MetaData "CreateSubnetGroup" "Amazonka.MemoryDb.CreateSubnetGroup" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateSubnetGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "subnetGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

newCreateSubnetGroup Source #

Create a value of CreateSubnetGroup 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:description:CreateSubnetGroup', createSubnetGroup_description - A description for the subnet group.

$sel:tags:CreateSubnetGroup', createSubnetGroup_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:subnetGroupName:CreateSubnetGroup', createSubnetGroup_subnetGroupName - The name of the subnet group.

$sel:subnetIds:CreateSubnetGroup', createSubnetGroup_subnetIds - A list of VPC subnet IDs for the subnet group.

Request Lenses

createSubnetGroup_description :: Lens' CreateSubnetGroup (Maybe Text) Source #

A description for the subnet group.

createSubnetGroup_tags :: Lens' CreateSubnetGroup (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.

createSubnetGroup_subnetIds :: Lens' CreateSubnetGroup [Text] Source #

A list of VPC subnet IDs for the subnet group.

Destructuring the Response

data CreateSubnetGroupResponse Source #

See: newCreateSubnetGroupResponse smart constructor.

Constructors

CreateSubnetGroupResponse' 

Fields

Instances

Instances details
Eq CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Read CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Show CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Generic CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type Rep CreateSubnetGroupResponse :: Type -> Type #

NFData CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

type Rep CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

type Rep CreateSubnetGroupResponse = D1 ('MetaData "CreateSubnetGroupResponse" "Amazonka.MemoryDb.CreateSubnetGroup" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateSubnetGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subnetGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SubnetGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSubnetGroupResponse Source #

Create a value of CreateSubnetGroupResponse 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:subnetGroup:CreateSubnetGroupResponse', createSubnetGroupResponse_subnetGroup - The newly-created subnet group

$sel:httpStatus:CreateSubnetGroupResponse', createSubnetGroupResponse_httpStatus - The response's http status code.

Response Lenses