Class: AWSCDK::Redshift::CfnClusterSubnetGroupProps

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

Overview

Properties for defining a CfnClusterSubnetGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description:, subnet_ids:, tags: nil) ⇒ CfnClusterSubnetGroupProps

Returns a new instance of CfnClusterSubnetGroupProps.

Parameters:

  • description (String)

    A description for the subnet group.

  • subnet_ids (Array<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef>)

    An array of VPC subnet IDs.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Specifies an arbitrary set of tags (key–value pairs) to associate with this subnet group.



12
13
14
15
16
17
18
19
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 12

def initialize(description:, subnet_ids:, tags: nil)
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description")
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU3VibmV0UmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "subnetIds")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString (readonly)

A description for the subnet group.



25
26
27
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 25

def description
  @description
end

#subnet_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef> (readonly)

An array of VPC subnet IDs.

A maximum of 20 subnets can be modified in a single request.



32
33
34
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 32

def subnet_ids
  @subnet_ids
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Specifies an arbitrary set of tags (key–value pairs) to associate with this subnet group.

Use tags to manage your resources.



39
40
41
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 39

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 41

def self.jsii_properties
  {
    :description => "description",
    :subnet_ids => "subnetIds",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



49
50
51
52
53
54
55
56
57
# File 'redshift/cfn_cluster_subnet_group_props.rb', line 49

def to_jsii
  result = {}
  result.merge!({
    "description" => @description,
    "subnetIds" => @subnet_ids,
    "tags" => @tags,
  })
  result.compact
end