Interface CfnDBSecurityGroup.IngressProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDBSecurityGroup.IngressProperty.Jsii$Proxy
- Enclosing class:
CfnDBSecurityGroup
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 software.amazon.awscdk.services.rds.*; IngressProperty ingressProperty = IngressProperty.builder() .cidrip("cidrip") .ec2SecurityGroupId("ec2SecurityGroupId") .ec2SecurityGroupName("ec2SecurityGroupName") .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDBSecurityGroup.IngressProperty
static final class
An implementation forCfnDBSecurityGroup.IngressProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The IP range to authorize.default String
Id of the EC2 security group to authorize.default String
Name of the EC2 security group to authorize.default String
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidrip
The IP range to authorize.- See Also:
-
getEc2SecurityGroupId
Id of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- See Also:
-
getEc2SecurityGroupName
Name of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- See Also:
-
getEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.The AWS access key ID isn't an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- See Also:
-
builder
-