aws-cdk-lib.aws_rds.CfnDBSecurityGroupIngressProps

interface CfnDBSecurityGroupIngressProps

LanguageType name
.NETAmazon.CDK.AWS.RDS.CfnDBSecurityGroupIngressProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#CfnDBSecurityGroupIngressProps
Javasoftware.amazon.awscdk.services.rds.CfnDBSecurityGroupIngressProps
Pythonaws_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

NameTypeDescription
dbSecurityGroupNamestringThe name of the DB security group to add authorization to.
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.

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.