aws-cdk-lib.aws_rds.CfnDBSecurityGroupProps

interface CfnDBSecurityGroupProps

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

Properties for defining a CfnDBSecurityGroup.

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 cfnDBSecurityGroupProps: rds.CfnDBSecurityGroupProps = {
  dbSecurityGroupIngress: [{
    cidrip: 'cidrip',
    ec2SecurityGroupId: 'ec2SecurityGroupId',
    ec2SecurityGroupName: 'ec2SecurityGroupName',
    ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
  }],
  groupDescription: 'groupDescription',

  // the properties below are optional
  ec2VpcId: 'ec2VpcId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
dbSecurityGroupIngressIResolvable | IResolvable | IngressProperty[]Ingress rules to be applied to the DB security group.
groupDescriptionstringProvides the description of the DB security group.
ec2VpcId?stringThe identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.
tags?CfnTag[]An optional array of key-value pairs to apply to this DB security group.

dbSecurityGroupIngress

Type: IResolvable | IResolvable | IngressProperty[]

Ingress rules to be applied to the DB security group.


groupDescription

Type: string

Provides the description of the DB security group.


ec2VpcId?

Type: string (optional)

The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.

The EC2VpcId property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.


tags?

Type: CfnTag[] (optional)

An optional array of key-value pairs to apply to this DB security group.