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 eitherEC2SecurityGroupName
orEC2SecurityGroupId
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 eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.ec2_security_group_owner_id (
Optional
[str
]) – AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter. The AWS access key ID isn’t an acceptable value. For VPC DB security groups,EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.
- See:
- 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_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.
- db_security_group_name
The name of the DB security group to add authorization to.
- ec2_security_group_id
Id of the EC2 security group to authorize.
For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.
- ec2_security_group_name
Name of the EC2 security group to authorize.
For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.
- 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 eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.