libZSservicesZSamazonka-rdsZSamazonka-rds
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.RDS.CreateDBSubnetGroup

Description

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region.

Synopsis

Creating a Request

data CreateDBSubnetGroup Source #

See: newCreateDBSubnetGroup smart constructor.

Constructors

CreateDBSubnetGroup' 

Fields

  • tags :: Maybe [Tag]

    Tags to assign to the DB subnet group.

  • dbSubnetGroupName :: Text

    The name for the DB 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 DB subnet group.

  • subnetIds :: [Text]

    The EC2 Subnet IDs for the DB subnet group.

Instances

Instances details
Eq CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Read CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Show CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Generic CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroup :: Type -> Type #

NFData CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Methods

rnf :: CreateDBSubnetGroup -> () #

Hashable CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

AWSRequest CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type AWSResponse CreateDBSubnetGroup #

ToHeaders CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

ToPath CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

ToQuery CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

type Rep CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

type Rep CreateDBSubnetGroup = D1 ('MetaData "CreateDBSubnetGroup" "Amazonka.RDS.CreateDBSubnetGroup" "libZSservicesZSamazonka-rdsZSamazonka-rds" '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.RDS.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 - Tags to assign to the DB subnet group.

$sel:dbSubnetGroupName:CreateDBSubnetGroup', createDBSubnetGroup_dbSubnetGroupName - The name for the DB 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 DB subnet group.

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

Request Lenses

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

Tags to assign to the DB subnet group.

createDBSubnetGroup_dbSubnetGroupName :: Lens' CreateDBSubnetGroup Text Source #

The name for the DB 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 EC2 Subnet IDs for the DB 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.RDS.CreateDBSubnetGroup

Read CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Show CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Generic CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroupResponse :: Type -> Type #

NFData CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

type Rep CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

type Rep CreateDBSubnetGroupResponse = D1 ('MetaData "CreateDBSubnetGroupResponse" "Amazonka.RDS.CreateDBSubnetGroup" "libZSservicesZSamazonka-rdsZSamazonka-rds" '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