Class CfnClusterSecurityGroupIngress
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Redshift::ClusterSecurityGroupIngress.
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 software.amazon.awscdk.services.redshift.*;
CfnClusterSecurityGroupIngress cfnClusterSecurityGroupIngress = CfnClusterSecurityGroupIngress.Builder.create(this, "MyCfnClusterSecurityGroupIngress")
.clusterSecurityGroupName("clusterSecurityGroupName")
// the properties below are optional
.cidrip("cidrip")
.ec2SecurityGroupName("ec2SecurityGroupName")
.ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnClusterSecurityGroupIngress.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnClusterSecurityGroupIngress(Construct scope, String id, CfnClusterSecurityGroupIngressProps props) Create a newAWS::Redshift::ClusterSecurityGroupIngress.protectedCfnClusterSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnClusterSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe IP range to be added the Amazon Redshift security group.The name of the security group to which the ingress rule is added.The EC2 security group to be added the Amazon Redshift security group.The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe IP range to be added the Amazon Redshift security group.voidThe name of the security group to which the ingress rule is added.voidsetEc2SecurityGroupName(String value) The EC2 security group to be added the Amazon Redshift security group.voidsetEc2SecurityGroupOwnerId(String value) The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnClusterSecurityGroupIngress
protected CfnClusterSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) -
CfnClusterSecurityGroupIngress
protected CfnClusterSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnClusterSecurityGroupIngress
@Stability(Stable) public CfnClusterSecurityGroupIngress(@NotNull Construct scope, @NotNull String id, @NotNull CfnClusterSecurityGroupIngressProps props) Create a newAWS::Redshift::ClusterSecurityGroupIngress.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getClusterSecurityGroupName
The name of the security group to which the ingress rule is added. -
setClusterSecurityGroupName
The name of the security group to which the ingress rule is added. -
getCidrip
The IP range to be added the Amazon Redshift security group. -
setCidrip
The IP range to be added the Amazon Redshift security group. -
getEc2SecurityGroupName
The EC2 security group to be added the Amazon Redshift security group. -
setEc2SecurityGroupName
The EC2 security group to be added the Amazon Redshift security group. -
getEc2SecurityGroupOwnerId
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.The AWS Access Key ID is not an acceptable value.
Example:
111122223333Conditional. If you specify the
EC2SecurityGroupNameproperty, you must specify this property. -
setEc2SecurityGroupOwnerId
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.The AWS Access Key ID is not an acceptable value.
Example:
111122223333Conditional. If you specify the
EC2SecurityGroupNameproperty, you must specify this property.
-