Class CfnClusterSecurityGroupIngressPropsMixin

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:04.429Z") @Stability(Stable) public class CfnClusterSecurityGroupIngressPropsMixin extends Mixin implements software.constructs.IMixin
Adds an inbound (ingress) rule to an Amazon Redshift security group.

Depending on whether the application accessing your cluster is running on the Internet or an Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName and EC2SecurityGroupOwnerId . The Amazon EC2 security group and Amazon Redshift cluster must be in the same AWS Region .

If you authorize access to a CIDR/IP address range, specify CIDRIP . For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing .

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management 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.redshift.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnClusterSecurityGroupIngressPropsMixin cfnClusterSecurityGroupIngressPropsMixin = CfnClusterSecurityGroupIngressPropsMixin.Builder.create(CfnClusterSecurityGroupIngressMixinProps.builder()
         .cidrip("cidrip")
         .clusterSecurityGroupName("clusterSecurityGroupName")
         .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

    • CfnClusterSecurityGroupIngressPropsMixin

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

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

      @Stability(Stable) public CfnClusterSecurityGroupIngressPropsMixin(@NotNull CfnClusterSecurityGroupIngressMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Redshift::ClusterSecurityGroupIngress.

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

      @Stability(Stable) public CfnClusterSecurityGroupIngressPropsMixin(@NotNull CfnClusterSecurityGroupIngressMixinProps props)
      Create a mixin to apply properties to AWS::Redshift::ClusterSecurityGroupIngress.

      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 CfnClusterSecurityGroupIngressMixinProps getProps()
    • getStrategy

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