CfnDBSecurityGroupProps

class aws_cdk.aws_rds.CfnDBSecurityGroupProps(*, db_security_group_ingress, group_description, ec2_vpc_id=None, tags=None)

Bases: object

Properties for defining a CfnDBSecurityGroup.

Parameters:
  • db_security_group_ingress (Union[IResolvable, Sequence[Union[IResolvable, IngressProperty, Dict[str, Any]]]]) – Ingress rules to be applied to the DB security group.

  • group_description (str) – Provides the description of the DB security group.

  • ec2_vpc_id (Optional[str]) – The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to. .. epigraph:: The EC2VpcId property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An optional array of key-value pairs to apply to this DB security group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds

cfn_dBSecurity_group_props = rds.CfnDBSecurityGroupProps(
    db_security_group_ingress=[rds.CfnDBSecurityGroup.IngressProperty(
        cidrip="cidrip",
        ec2_security_group_id="ec2SecurityGroupId",
        ec2_security_group_name="ec2SecurityGroupName",
        ec2_security_group_owner_id="ec2SecurityGroupOwnerId"
    )],
    group_description="groupDescription",

    # the properties below are optional
    ec2_vpc_id="ec2VpcId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

db_security_group_ingress

Ingress rules to be applied to the DB security group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-dbsecuritygroupingress

ec2_vpc_id

The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.

The EC2VpcId property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-ec2vpcid

group_description

Provides the description of the DB security group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-groupdescription

tags

An optional array of key-value pairs to apply to this DB security group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags