amazonka-memorydb-2.0: Amazon MemoryDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.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

AWSRequest CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type AWSResponse CreateSubnetGroup #

Generic CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type Rep CreateSubnetGroup :: Type -> Type #

Read CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Show CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

NFData CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Methods

rnf :: CreateSubnetGroup -> () #

Eq CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Hashable CreateSubnetGroup Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

type AWSResponse 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" "amazonka-memorydb-2.0-7JvPQiLpSKi6naAXiKMLiu" '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]))))

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:

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.

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
Generic CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Associated Types

type Rep CreateSubnetGroupResponse :: Type -> Type #

Read CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Show CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

NFData CreateSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSubnetGroup

Eq 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" "amazonka-memorydb-2.0-7JvPQiLpSKi6naAXiKMLiu" '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