class CfnClusterSecurityGroupIngressPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Redshift.Mixins.CfnClusterSecurityGroupIngressPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsredshift/mixins#CfnClusterSecurityGroupIngressPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.redshift.mixins.CfnClusterSecurityGroupIngressPropsMixin |
Python | aws_cdk.mixins_preview.aws_redshift.mixins.CfnClusterSecurityGroupIngressPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_redshift » mixins » CfnClusterSecurityGroupIngressPropsMixin |
Implements
IMixin
Extends
Mixin
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as redshift_mixins } from '@aws-cdk/mixins-preview/aws-redshift';
const cfnClusterSecurityGroupIngressPropsMixin = new redshift_mixins.CfnClusterSecurityGroupIngressPropsMixin({
cidrip: 'cidrip',
clusterSecurityGroupName: 'clusterSecurityGroupName',
ec2SecurityGroupName: 'ec2SecurityGroupName',
ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnClusterSecurityGroupIngressPropsMixin(props: CfnClusterSecurityGroupIngressMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Cluster Security Group Ingress Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Redshift::ClusterSecurityGroupIngress.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript