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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDBSecurityGroup.IngressPropertystatic final classAn implementation forCfnDBSecurityGroup.IngressProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe IP range to authorize.default StringId of the EC2 security group to authorize.default StringName of the EC2 security group to authorize.default StringAWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupNameparameter.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,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided.- See Also:
-
getEc2SecurityGroupName
Name of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided.- See Also:
-
getEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupNameparameter.The AWS access key ID isn't an acceptable value. For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided.- See Also:
-
builder
-