Class: AWSCDK::Redshift::CfnClusterSecurityGroupIngressProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
redshift/cfn_cluster_security_group_ingress_props.rb

Overview

Properties for defining a CfnClusterSecurityGroupIngress.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_security_group_name:, cidrip: nil, ec2_security_group_name: nil, ec2_security_group_owner_id: nil) ⇒ CfnClusterSecurityGroupIngressProps

Returns a new instance of CfnClusterSecurityGroupIngressProps.

Parameters:

  • cluster_security_group_name (String)

    The name of the security group to which the ingress rule is added.

  • cidrip (String, nil) (defaults to: nil)

    The IP range to be added the Amazon Redshift security group.

  • ec2_security_group_name (String, nil) (defaults to: nil)

    The EC2 security group to be added the Amazon Redshift security group.

  • ec2_security_group_owner_id (String, nil) (defaults to: nil)

    The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.



13
14
15
16
17
18
19
20
21
22
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 13

def initialize(cluster_security_group_name:, cidrip: nil, ec2_security_group_name: nil, ec2_security_group_owner_id: nil)
  @cluster_security_group_name = cluster_security_group_name
  Jsii::Type.check_type(@cluster_security_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterSecurityGroupName")
  @cidrip = cidrip
  Jsii::Type.check_type(@cidrip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidrip") unless @cidrip.nil?
  @ec2_security_group_name = ec2_security_group_name
  Jsii::Type.check_type(@ec2_security_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2SecurityGroupName") unless @ec2_security_group_name.nil?
  @ec2_security_group_owner_id = ec2_security_group_owner_id
  Jsii::Type.check_type(@ec2_security_group_owner_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2SecurityGroupOwnerId") unless @ec2_security_group_owner_id.nil?
end

Instance Attribute Details

#cidripString? (readonly)

The IP range to be added the Amazon Redshift security group.



33
34
35
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 33

def cidrip
  @cidrip
end

#cluster_security_group_nameString (readonly)

The name of the security group to which the ingress rule is added.



28
29
30
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 28

def cluster_security_group_name
  @cluster_security_group_name
end

#ec2_security_group_nameString? (readonly)

The EC2 security group to be added the Amazon Redshift security group.



38
39
40
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 38

def ec2_security_group_name
  @ec2_security_group_name
end

#ec2_security_group_owner_idString? (readonly)

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.



49
50
51
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 49

def ec2_security_group_owner_id
  @ec2_security_group_owner_id
end

Class Method Details

.jsii_propertiesObject



51
52
53
54
55
56
57
58
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 51

def self.jsii_properties
  {
    :cluster_security_group_name => "clusterSecurityGroupName",
    :cidrip => "cidrip",
    :ec2_security_group_name => "ec2SecurityGroupName",
    :ec2_security_group_owner_id => "ec2SecurityGroupOwnerId",
  }
end

Instance Method Details

#to_jsiiObject



60
61
62
63
64
65
66
67
68
69
# File 'redshift/cfn_cluster_security_group_ingress_props.rb', line 60

def to_jsii
  result = {}
  result.merge!({
    "clusterSecurityGroupName" => @cluster_security_group_name,
    "cidrip" => @cidrip,
    "ec2SecurityGroupName" => @ec2_security_group_name,
    "ec2SecurityGroupOwnerId" => @ec2_security_group_owner_id,
  })
  result.compact
end