interface CfnDBSecurityGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.CfnDBSecurityGroupProps |
Java | software.amazon.awscdk.services.rds.CfnDBSecurityGroupProps |
Python | aws_cdk.aws_rds.CfnDBSecurityGroupProps |
TypeScript | @aws-cdk/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 * as rds from '@aws-cdk/aws-rds';
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
Name | Type | Description |
---|---|---|
db | IResolvable | IResolvable | Ingress [] | Ingress rules to be applied to the DB security group. |
group | string | Provides the description of the DB security group. |
ec2 | string | The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to. |
tags? | Cfn [] | An optional array of key-value pairs to apply to this DB security group. |
dbSecurityGroupIngress
Type:
IResolvable
|
IResolvable
|
Ingress
[]
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:
Cfn
[]
(optional)
An optional array of key-value pairs to apply to this DB security group.