amazonka-rds-2.0: Amazon Relational Database Service 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.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.
    • First character must be a letter.

    Example: mydbsubnetgroup

  • dbSubnetGroupDescription :: Text

    The description for the DB subnet group.

  • subnetIds :: [Text]

    The EC2 Subnet IDs for the DB subnet group.

Instances

Instances details
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

AWSRequest CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type AWSResponse CreateDBSubnetGroup #

Generic CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroup :: Type -> Type #

Read CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Show CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

NFData CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Methods

rnf :: CreateDBSubnetGroup -> () #

Eq CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Hashable CreateDBSubnetGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

type AWSResponse 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" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" '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]))))

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.

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.
  • First character must be a letter.

Example: mydbsubnetgroup

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.
  • First character must be a letter.

Example: mydbsubnetgroup

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

Defined in Amazonka.RDS.CreateDBSubnetGroup

Associated Types

type Rep CreateDBSubnetGroupResponse :: Type -> Type #

Read CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Show CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

NFData CreateDBSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSubnetGroup

Eq 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" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" '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:

CreateDBSubnetGroupResponse, createDBSubnetGroupResponse_dbSubnetGroup - Undocumented member.

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

Response Lenses