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

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
Eq CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Read CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Show CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Generic CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type Rep CreateDBSecurityGroup :: Type -> Type #

NFData CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Methods

rnf :: CreateDBSecurityGroup -> () #

Hashable CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

AWSRequest CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type AWSResponse CreateDBSecurityGroup #

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

type Rep CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

type Rep CreateDBSecurityGroup = D1 ('MetaData "CreateDBSecurityGroup" "Amazonka.RDS.CreateDBSecurityGroup" "libZSservicesZSamazonka-rdsZSamazonka-rds" '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))))
type AWSResponse CreateDBSecurityGroup Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

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.

$sel:dbSecurityGroupName: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

$sel:dbSecurityGroupDescription: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
Eq CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Read CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Show CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Generic CreateDBSecurityGroupResponse Source # 
Instance details

Defined in Amazonka.RDS.CreateDBSecurityGroup

Associated Types

type Rep CreateDBSecurityGroupResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-rdsZSamazonka-rds" '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