Class: AWSCDK::Redshift::CfnClusterSecurityGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Redshift::CfnClusterSecurityGroupProps
- Defined in:
- redshift/cfn_cluster_security_group_props.rb
Overview
Properties for defining a CfnClusterSecurityGroup.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
A description for the security group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Specifies an arbitrary set of tags (key–value pairs) to associate with this security group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description:, tags: nil) ⇒ CfnClusterSecurityGroupProps
constructor
A new instance of CfnClusterSecurityGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description:, tags: nil) ⇒ CfnClusterSecurityGroupProps
Returns a new instance of CfnClusterSecurityGroupProps.
11 12 13 14 15 16 |
# File 'redshift/cfn_cluster_security_group_props.rb', line 11 def initialize(description:, tags: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String (readonly)
A description for the security group.
22 23 24 |
# File 'redshift/cfn_cluster_security_group_props.rb', line 22 def description @description end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Specifies an arbitrary set of tags (key–value pairs) to associate with this security group.
Use tags to manage your resources.
29 30 31 |
# File 'redshift/cfn_cluster_security_group_props.rb', line 29 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'redshift/cfn_cluster_security_group_props.rb', line 31 def self.jsii_properties { :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'redshift/cfn_cluster_security_group_props.rb', line 38 def to_jsii result = {} result.merge!({ "description" => @description, "tags" => @tags, }) result.compact end |