Class CfnDBSecurityGroup.IngressProperty
The Ingress
property type specifies an individual ingress rule within an AWS::RDS::DBSecurityGroup
resource.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public class IngressProperty : Object, CfnDBSecurityGroup.IIngressProperty
Syntax (vb)
Public Class IngressProperty
Inherits Object
Implements CfnDBSecurityGroup.IIngressProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;
var ingressProperty = new IngressProperty {
Cidrip = "cidrip",
Ec2SecurityGroupId = "ec2SecurityGroupId",
Ec2SecurityGroupName = "ec2SecurityGroupName",
Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
};
Synopsis
Constructors
IngressProperty() |
Properties
Cidrip | The IP range to authorize. |
Ec2SecurityGroupId | Id of the EC2 security group to authorize. |
Ec2SecurityGroupName | Name of the EC2 security group to authorize. |
Ec2SecurityGroupOwnerId | AWS account number of the owner of the EC2 security group specified in the |
Constructors
IngressProperty()
public IngressProperty()
Properties
Cidrip
The IP range to authorize.
public string Cidrip { get; set; }
Property Value
System.String
Remarks
Ec2SecurityGroupId
Id of the EC2 security group to authorize.
public string Ec2SecurityGroupId { get; set; }
Property Value
System.String
Remarks
For VPC DB security groups, EC2SecurityGroupId
must be provided. Otherwise, EC2SecurityGroupOwnerId
and either EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Ec2SecurityGroupName
Name of the EC2 security group to authorize.
public string Ec2SecurityGroupName { get; set; }
Property Value
System.String
Remarks
For VPC DB security groups, EC2SecurityGroupId
must be provided. Otherwise, EC2SecurityGroupOwnerId
and either EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Ec2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName
parameter.
public string Ec2SecurityGroupOwnerId { get; set; }
Property Value
System.String
Remarks
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.