Class CfnClusterSecurityGroupIngress
Adds an inbound (ingress) rule to an Amazon Redshift security group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Redshift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnClusterSecurityGroupIngress : CfnResource, IInspectable
Syntax (vb)
Public Class CfnClusterSecurityGroupIngress
Inherits CfnResource
Implements IInspectable
Remarks
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 .
CloudformationResource: AWS::Redshift::ClusterSecurityGroupIngress
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;
var cfnClusterSecurityGroupIngress = new CfnClusterSecurityGroupIngress(this, "MyCfnClusterSecurityGroupIngress", new CfnClusterSecurityGroupIngressProps {
ClusterSecurityGroupName = "clusterSecurityGroupName",
// the properties below are optional
Cidrip = "cidrip",
Ec2SecurityGroupName = "ec2SecurityGroupName",
Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
});
Synopsis
Constructors
CfnClusterSecurityGroupIngress(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnClusterSecurityGroupIngress(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnClusterSecurityGroupIngress(Construct, String, ICfnClusterSecurityGroupIngressProps) |
Properties
AttrId | Specifies an inbound (ingress) rule for an Amazon Redshift security group. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Cidrip | The IP range to be added the Amazon Redshift security group. |
ClusterSecurityGroupName | The name of the security group to which the ingress rule is added. |
Ec2SecurityGroupName | The EC2 security group to be added the Amazon Redshift security group. |
Ec2SecurityGroupOwnerId | The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnClusterSecurityGroupIngress(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnClusterSecurityGroupIngress(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnClusterSecurityGroupIngress(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnClusterSecurityGroupIngress(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnClusterSecurityGroupIngress(Construct, String, ICfnClusterSecurityGroupIngressProps)
public CfnClusterSecurityGroupIngress(Construct scope, string id, ICfnClusterSecurityGroupIngressProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnClusterSecurityGroupIngressProps
Resource properties.
Properties
AttrId
Specifies an inbound (ingress) rule for an Amazon Redshift security group.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Cidrip
The IP range to be added the Amazon Redshift security group.
public virtual string Cidrip { get; set; }
Property Value
System.String
ClusterSecurityGroupName
The name of the security group to which the ingress rule is added.
public virtual string ClusterSecurityGroupName { get; set; }
Property Value
System.String
Ec2SecurityGroupName
The EC2 security group to be added the Amazon Redshift security group.
public virtual string Ec2SecurityGroupName { get; set; }
Property Value
System.String
Ec2SecurityGroupOwnerId
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.
public virtual string Ec2SecurityGroupOwnerId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>