Class CfnClusterSecurityGroupIngressPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnClusterSecurityGroupIngressPropsMixin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Redshift::ClusterSecurityGroupIngress.CfnClusterSecurityGroupIngressPropsMixin(CfnClusterSecurityGroupIngressMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Redshift::ClusterSecurityGroupIngress.protectedCfnClusterSecurityGroupIngressPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnClusterSecurityGroupIngressPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnClusterSecurityGroupIngressMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 toAWS::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 toAWS::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. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-