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]]]]) – Tags to assign to the DB security group.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, IngressProperty]]]

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.

Link

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

Return type

Optional[str]

group_description

Provides the description of the DB security group.

Link

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

Return type

str

tags

Tags to assign to the DB security group.

Link

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

Return type

Optional[List[CfnTag]]