Class CfnClusterSecurityGroupIngress
A CloudFormation AWS::Redshift::ClusterSecurityGroupIngress
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.Redshift
Assembly: Amazon.CDK.AWS.Redshift.dll
Syntax (csharp)
public class CfnClusterSecurityGroupIngress : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnClusterSecurityGroupIngress
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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 .
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(Construct, String, ICfnClusterSecurityGroupIngressProps) | Create a new |
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 |
Properties
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(Construct, String, ICfnClusterSecurityGroupIngressProps)
Create a new AWS::Redshift::ClusterSecurityGroupIngress
.
public CfnClusterSecurityGroupIngress(Construct scope, string id, ICfnClusterSecurityGroupIngressProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnClusterSecurityGroupIngressProps
- resource properties.
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
Properties
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
Remarks
ClusterSecurityGroupName
The name of the security group to which the ingress rule is added.
public virtual string ClusterSecurityGroupName { get; set; }
Property Value
System.String
Remarks
Ec2SecurityGroupName
The EC2 security group to be added the Amazon Redshift security group.
public virtual string Ec2SecurityGroupName { get; set; }
Property Value
System.String
Remarks
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
Remarks
The AWS Access Key ID is not an acceptable value.
Example: 111122223333
Conditional. If you specify the EC2SecurityGroupName
property, you must specify this property.
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>