Interface CfnDBSecurityGroup.IngressProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDBSecurityGroup.IngressProperty.Jsii$Proxy
Enclosing class:
CfnDBSecurityGroup

@Stability(Stable) public static interface CfnDBSecurityGroup.IngressProperty extends software.amazon.jsii.JsiiSerializable
The 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();
 
  • Method Details

    • getCidrip

      @Stability(Stable) @Nullable default String getCidrip()
      The IP range to authorize.
    • getEc2SecurityGroupId

      @Stability(Stable) @Nullable default String getEc2SecurityGroupId()
      Id of the EC2 security group to authorize.

      For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    • getEc2SecurityGroupName

      @Stability(Stable) @Nullable default String getEc2SecurityGroupName()
      Name of the EC2 security group to authorize.

      For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    • getEc2SecurityGroupOwnerId

      @Stability(Stable) @Nullable default String getEc2SecurityGroupOwnerId()
      AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter.

      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.

    • builder

      @Stability(Stable) static CfnDBSecurityGroup.IngressProperty.Builder builder()
      Returns:
      a CfnDBSecurityGroup.IngressProperty.Builder of CfnDBSecurityGroup.IngressProperty