Class: AWSCDK::Redshift::CfnClusterSecurityGroupIngressProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Redshift::CfnClusterSecurityGroupIngressProps
- Defined in:
- redshift/cfn_cluster_security_group_ingress_props.rb
Overview
Properties for defining a CfnClusterSecurityGroupIngress.
Instance Attribute Summary collapse
-
#cidrip ⇒ String?
readonly
The IP range to be added the Amazon Redshift security group.
-
#cluster_security_group_name ⇒ String
readonly
The name of the security group to which the ingress rule is added.
-
#ec2_security_group_name ⇒ String?
readonly
The EC2 security group to be added the Amazon Redshift security group.
-
#ec2_security_group_owner_id ⇒ String?
readonly
The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_security_group_name:, cidrip: nil, ec2_security_group_name: nil, ec2_security_group_owner_id: nil) ⇒ CfnClusterSecurityGroupIngressProps
constructor
A new instance of CfnClusterSecurityGroupIngressProps.
- #to_jsii ⇒ Object
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.
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
#cidrip ⇒ String? (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_name ⇒ String (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_name ⇒ String? (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_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |