CfnClusterSecurityGroupIngressProps
Struct External
Properties for defining a CfnClusterSecurityGroupIngress.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnClusterSecurityGroupIngressProps: redshift.CfnClusterSecurityGroupIngressProps = {
clusterSecurityGroupName: 'clusterSecurityGroupName',
// the properties below are optional
cidrip: 'cidrip',
ec2SecurityGroupName: 'ec2SecurityGroupName',
ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift
cfn_cluster_security_group_ingress_props = redshift.CfnClusterSecurityGroupIngressProps(
cluster_security_group_name="clusterSecurityGroupName",
# the properties below are optional
cidrip="cidrip",
ec2_security_group_name="ec2SecurityGroupName",
ec2_security_group_owner_id="ec2SecurityGroupOwnerId"
)
java
// 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.*;
CfnClusterSecurityGroupIngressProps cfnClusterSecurityGroupIngressProps = CfnClusterSecurityGroupIngressProps.builder()
.clusterSecurityGroupName("clusterSecurityGroupName")
// the properties below are optional
.cidrip("cidrip")
.ec2SecurityGroupName("ec2SecurityGroupName")
.ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnClusterSecurityGroupIngressProps = new CfnClusterSecurityGroupIngressProps {
ClusterSecurityGroupName = "clusterSecurityGroupName",
// the properties below are optional
Cidrip = "cidrip",
Ec2SecurityGroupName = "ec2SecurityGroupName",
Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnClusterSecurityGroupIngressProps := &CfnClusterSecurityGroupIngressProps{
ClusterSecurityGroupName: jsii.String("clusterSecurityGroupName"),
// the properties below are optional
Cidrip: jsii.String("cidrip"),
Ec2SecurityGroupName: jsii.String("ec2SecurityGroupName"),
Ec2SecurityGroupOwnerId: jsii.String("ec2SecurityGroupOwnerId"),
}
Properties
cidripoptionalstringcidripoptionalstrcidripoptionalStringCidripoptionalstringCidripoptional*string #The IP range to be added the Amazon Redshift security group.
clusterSecurityGroupNamestringcluster_security_group_namestrclusterSecurityGroupNameStringClusterSecurityGroupNamestringClusterSecurityGroupName*string required #The name of the security group to which the ingress rule is added.
ec2SecurityGroupNameoptionalstringec2_security_group_nameoptionalstrec2SecurityGroupNameoptionalStringEc2SecurityGroupNameoptionalstringEc2SecurityGroupNameoptional*string #The EC2 security group to be added the Amazon Redshift security group.
ec2SecurityGroupOwnerIdoptionalstringec2_security_group_owner_idoptionalstrec2SecurityGroupOwnerIdoptionalStringEc2SecurityGroupOwnerIdoptionalstringEc2SecurityGroupOwnerIdoptional*string #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: 111122223333
Conditional. If you specify the EC2SecurityGroupName property, you must specify this property.