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

Description

Creates a new DB security group. DB security groups control access to a DB instance.

A DB security group controls access to EC2-Classic DB instances that are not in a VPC.

EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.

Synopsis

Creating a Request

data CreateDBSecurityGroup Source #

See: newCreateDBSecurityGroup smart constructor.

Constructors

CreateDBSecurityGroup' 

Fields

  • tags :: Maybe [Tag]

    Tags to assign to the DB security group.

  • dbSecurityGroupName :: Text

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

    Constraints:

    • Must be 1 to 255 letters, numbers, or hyphens.
    • First character must be a letter
    • Can't end with a hyphen or contain two consecutive hyphens
    • Must not be "Default"

    Example: mysecuritygroup

  • dbSecurityGroupDescription :: Text

    The description for the DB security group.

Instances

Instances details
ToHeaders CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

ToPath CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

ToQuery CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

AWSRequest CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type AWSResponse CreateDBSecurityGroup #

Generic CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type Rep CreateDBSecurityGroup :: Type -> Type #

Read CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Show CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

NFData CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Methods

rnf :: CreateDBSecurityGroup -> () #

Eq CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Hashable CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type AWSResponse CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type Rep CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type Rep CreateDBSecurityGroup = D1 ('MetaData "CreateDBSecurityGroup" "Amazonka.RDS.CreateDBSecurityGroup" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "CreateDBSecurityGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "dbSecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dbSecurityGroupDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateDBSecurityGroup Source #

Create a value of CreateDBSecurityGroup 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:CreateDBSecurityGroup', createDBSecurityGroup_tags - Tags to assign to the DB security group.

CreateDBSecurityGroup, createDBSecurityGroup_dbSecurityGroupName - The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.
  • First character must be a letter
  • Can't end with a hyphen or contain two consecutive hyphens
  • Must not be "Default"

Example: mysecuritygroup

CreateDBSecurityGroup, createDBSecurityGroup_dbSecurityGroupDescription - The description for the DB security group.

Request Lenses

createDBSecurityGroup_tags :: Lens' CreateDBSecurityGroup (Maybe [Tag]) Source #

Tags to assign to the DB security group.

createDBSecurityGroup_dbSecurityGroupName :: Lens' CreateDBSecurityGroup Text Source #

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

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.
  • First character must be a letter
  • Can't end with a hyphen or contain two consecutive hyphens
  • Must not be "Default"

Example: mysecuritygroup

Destructuring the Response

data CreateDBSecurityGroupResponse Source #

See: newCreateDBSecurityGroupResponse smart constructor.

Constructors

CreateDBSecurityGroupResponse' 

Fields

Instances

Instances details
Generic CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type Rep CreateDBSecurityGroupResponse :: Type -> Type #

Read CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Show CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

NFData CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Eq CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type Rep CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type Rep CreateDBSecurityGroupResponse = D1 ('MetaData "CreateDBSecurityGroupResponse" "Amazonka.RDS.CreateDBSecurityGroup" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "CreateDBSecurityGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDBSecurityGroupResponse Source #

Create a value of CreateDBSecurityGroupResponse 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:dbSecurityGroup:CreateDBSecurityGroupResponse', createDBSecurityGroupResponse_dbSecurityGroup - Undocumented member.

$sel:httpStatus:CreateDBSecurityGroupResponse', createDBSecurityGroupResponse_httpStatus - The response's http status code.

Response Lenses