CfnClusterSecurityGroupIngressPropsMixin

class aws_cdk.mixins_preview.aws_redshift.mixins.CfnClusterSecurityGroupIngressPropsMixin(props, *, strategy=None)

Bases: 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 .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html

CloudformationResource:

AWS::Redshift::ClusterSecurityGroupIngress

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_redshift import mixins as redshift_mixins

cfn_cluster_security_group_ingress_props_mixin = redshift_mixins.CfnClusterSecurityGroupIngressPropsMixin(redshift_mixins.CfnClusterSecurityGroupIngressMixinProps(
    cidrip="cidrip",
    cluster_security_group_name="clusterSecurityGroupName",
    ec2_security_group_name="ec2SecurityGroupName",
    ec2_security_group_owner_id="ec2SecurityGroupOwnerId"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Redshift::ClusterSecurityGroupIngress.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['cidrip', 'clusterSecurityGroupName', 'ec2SecurityGroupName', 'ec2SecurityGroupOwnerId']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental