aws-cdk-lib.aws_rds.CfnDBSecurityGroup.IngressProperty

interface IngressProperty

LanguageType name
.NETAmazon.CDK.AWS.RDS.CfnDBSecurityGroup.IngressProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#CfnDBSecurityGroup_IngressProperty
Javasoftware.amazon.awscdk.services.rds.CfnDBSecurityGroup.IngressProperty
Pythonaws_cdk.aws_rds.CfnDBSecurityGroup.IngressProperty
TypeScript aws-cdk-lib » aws_rds » CfnDBSecurityGroup » IngressProperty

The Ingress property type specifies an individual ingress rule within an AWS::RDS::DBSecurityGroup resource.

EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide , the blog EC2-Classic Networking is Retiring – Here’s How to Prepare , and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide .

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 ingressProperty: rds.CfnDBSecurityGroup.IngressProperty = {
  cidrip: 'cidrip',
  ec2SecurityGroupId: 'ec2SecurityGroupId',
  ec2SecurityGroupName: 'ec2SecurityGroupName',
  ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
};

Properties

NameTypeDescription
cidrip?stringThe IP range to authorize.
ec2SecurityGroupId?stringId of the EC2 security group to authorize.
ec2SecurityGroupName?stringName of the EC2 security group to authorize.
ec2SecurityGroupOwnerId?stringAWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter.

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.