interface CfnDBSecurityGroupIngressProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RDS.CfnDBSecurityGroupIngressProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#CfnDBSecurityGroupIngressProps |
Java | software.amazon.awscdk.services.rds.CfnDBSecurityGroupIngressProps |
Python | aws_cdk.aws_rds.CfnDBSecurityGroupIngressProps |
TypeScript | aws-cdk-lib » aws_rds » CfnDBSecurityGroupIngressProps |
Properties for defining a CfnDBSecurityGroupIngress.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const cfnDBSecurityGroupIngressProps: rds.CfnDBSecurityGroupIngressProps = {
dbSecurityGroupName: 'dbSecurityGroupName',
// the properties below are optional
cidrip: 'cidrip',
ec2SecurityGroupId: 'ec2SecurityGroupId',
ec2SecurityGroupName: 'ec2SecurityGroupName',
ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
};
Properties
| Name | Type | Description |
|---|---|---|
| db | string | The name of the DB security group to add authorization to. |
| cidrip? | string | The IP range to authorize. |
| ec2 | string | Id of the EC2 security group to authorize. |
| ec2 | string | Name of the EC2 security group to authorize. |
| ec2 | string | AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. |
dbSecurityGroupName
Type:
string
The name of the DB security group to add authorization to.
cidrip?
Type:
string
(optional)
The IP range to authorize.
ec2SecurityGroupId?
Type:
string
(optional)
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.
ec2SecurityGroupName?
Type:
string
(optional)
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.
ec2SecurityGroupOwnerId?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript