libZSservicesZSamazonka-docdbZSamazonka-docdb
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.DocumentDB.CreateDBSubnetGroup

Description

Creates a new subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the Region.

Synopsis

Creating a Request

data CreateDBSubnetGroup Source #

Represents the input to CreateDBSubnetGroup.

See: newCreateDBSubnetGroup smart constructor.

Constructors

CreateDBSubnetGroup' 

Fields

  • tags :: Maybe [Tag]

    The tags to be assigned to the subnet group.

  • dbSubnetGroupName :: Text

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

    Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

  • dbSubnetGroupDescription :: Text

    The description for the subnet group.

  • subnetIds :: [Text]

    The Amazon EC2 subnet IDs for the subnet group.

Instances

Instances details
Eq CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Read CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Show CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Generic CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroup :: Type -> Type #

NFData CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Methods

rnf :: CreateDBSubnetGroup -> () #

Hashable CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

AWSRequest CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Associated Types

type AWSResponse CreateDBSubnetGroup #

ToHeaders CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

ToPath CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

ToQuery CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

type Rep CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

type Rep CreateDBSubnetGroup = D1 ('MetaData "CreateDBSubnetGroup" "Amazonka.DocumentDB.CreateDBSubnetGroup" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "CreateDBSubnetGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "dbSubnetGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "dbSubnetGroupDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

newCreateDBSubnetGroup Source #

Create a value of CreateDBSubnetGroup 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:CreateDBSubnetGroup', createDBSubnetGroup_tags - The tags to be assigned to the subnet group.

$sel:dbSubnetGroupName:CreateDBSubnetGroup', createDBSubnetGroup_dbSubnetGroupName - The name for the subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.

Example: mySubnetgroup

$sel:dbSubnetGroupDescription:CreateDBSubnetGroup', createDBSubnetGroup_dbSubnetGroupDescription - The description for the subnet group.

$sel:subnetIds:CreateDBSubnetGroup', createDBSubnetGroup_subnetIds - The Amazon EC2 subnet IDs for the subnet group.

Request Lenses

createDBSubnetGroup_tags :: Lens' CreateDBSubnetGroup (Maybe [Tag]) Source #

The tags to be assigned to the subnet group.

createDBSubnetGroup_dbSubnetGroupName :: Lens' CreateDBSubnetGroup Text Source #

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

Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.

Example: mySubnetgroup

createDBSubnetGroup_subnetIds :: Lens' CreateDBSubnetGroup [Text] Source #

The Amazon EC2 subnet IDs for the subnet group.

Destructuring the Response

data CreateDBSubnetGroupResponse Source #

See: newCreateDBSubnetGroupResponse smart constructor.

Constructors

CreateDBSubnetGroupResponse' 

Fields

Instances

Instances details
Eq CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Read CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Show CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Generic CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroupResponse :: Type -> Type #

NFData CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

type Rep CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateDBSubnetGroup

type Rep CreateDBSubnetGroupResponse = D1 ('MetaData "CreateDBSubnetGroupResponse" "Amazonka.DocumentDB.CreateDBSubnetGroup" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "CreateDBSubnetGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSubnetGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSubnetGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDBSubnetGroupResponse Source #

Create a value of CreateDBSubnetGroupResponse 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:dbSubnetGroup:CreateDBSubnetGroupResponse', createDBSubnetGroupResponse_dbSubnetGroup - Undocumented member.

$sel:httpStatus:CreateDBSubnetGroupResponse', createDBSubnetGroupResponse_httpStatus - The response's http status code.

Response Lenses