Class CfnDBSecurityGroupIngressPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBSecurityGroupIngressPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T21:55:33.001Z") @Stability(Stable) public class CfnDBSecurityGroupIngressPropsMixin extends Mixin implements software.constructs.IMixin
The AWS::RDS::DBSecurityGroupIngress resource enables ingress to a DB security group using one of two forms of authorization.

First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.

This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .

For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .

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.cfnpropertymixins.services.rds.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnDBSecurityGroupIngressPropsMixin cfnDBSecurityGroupIngressPropsMixin = CfnDBSecurityGroupIngressPropsMixin.Builder.create(CfnDBSecurityGroupIngressMixinProps.builder()
         .cidrip("cidrip")
         .dbSecurityGroupName("dbSecurityGroupName")
         .ec2SecurityGroupId("ec2SecurityGroupId")
         .ec2SecurityGroupName("ec2SecurityGroupName")
         .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId")
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnDBSecurityGroupIngressPropsMixin

      protected CfnDBSecurityGroupIngressPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDBSecurityGroupIngressPropsMixin

      protected CfnDBSecurityGroupIngressPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDBSecurityGroupIngressPropsMixin

      @Stability(Stable) public CfnDBSecurityGroupIngressPropsMixin(@NotNull CfnDBSecurityGroupIngressMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::RDS::DBSecurityGroupIngress.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnDBSecurityGroupIngressPropsMixin

      @Stability(Stable) public CfnDBSecurityGroupIngressPropsMixin(@NotNull CfnDBSecurityGroupIngressMixinProps props)
      Create a mixin to apply properties to AWS::RDS::DBSecurityGroupIngress.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnDBSecurityGroupIngressMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()