CfnDBSecurityGroupIngressProps

class aws_cdk.aws_rds.CfnDBSecurityGroupIngressProps(*, db_security_group_name, cidrip=None, ec2_security_group_id=None, ec2_security_group_name=None, ec2_security_group_owner_id=None)

Bases: object

Properties for defining a CfnDBSecurityGroupIngress.

Parameters
  • db_security_group_name (str) – The name of the DB security group to add authorization to.

  • cidrip (Optional[str]) – The IP range to authorize.

  • ec2_security_group_id (Optional[str]) – Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

  • ec2_security_group_name (Optional[str]) – Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

  • ec2_security_group_owner_id (Optional[str]) – AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS access key ID isn’t an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.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_ingress_props = rds.CfnDBSecurityGroupIngressProps(
    db_security_group_name="dbSecurityGroupName",

    # the properties below are optional
    cidrip="cidrip",
    ec2_security_group_id="ec2SecurityGroupId",
    ec2_security_group_name="ec2SecurityGroupName",
    ec2_security_group_owner_id="ec2SecurityGroupOwnerId"
)

Attributes

cidrip

The IP range to authorize.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-cidrip

Return type

Optional[str]

db_security_group_name

The name of the DB security group to add authorization to.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-dbsecuritygroupname

Return type

str

ec2_security_group_id

Id of the EC2 security group to authorize.

For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupid

Return type

Optional[str]

ec2_security_group_name

Name of the EC2 security group to authorize.

For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupname

Return type

Optional[str]

ec2_security_group_owner_id

AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter.

The AWS access key ID isn’t an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupownerid

Return type

Optional[str]