Class: AWSCDK::DataZone::CfnConnection::RedshiftStoragePropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_zone/cfn_connection.rb

Overview

The Amazon Redshift storage properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_name: nil, workgroup_name: nil) ⇒ RedshiftStoragePropertiesProperty

Returns a new instance of RedshiftStoragePropertiesProperty.

Parameters:

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

    The cluster name in the Amazon Redshift storage properties.

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

    The workgroup name in the Amazon Redshift storage properties.



1942
1943
1944
1945
1946
1947
# File 'data_zone/cfn_connection.rb', line 1942

def initialize(cluster_name: nil, workgroup_name: nil)
  @cluster_name = cluster_name
  Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName") unless @cluster_name.nil?
  @workgroup_name = workgroup_name
  Jsii::Type.check_type(@workgroup_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workgroupName") unless @workgroup_name.nil?
end

Instance Attribute Details

#cluster_nameString? (readonly)

The cluster name in the Amazon Redshift storage properties.



1953
1954
1955
# File 'data_zone/cfn_connection.rb', line 1953

def cluster_name
  @cluster_name
end

#workgroup_nameString? (readonly)

The workgroup name in the Amazon Redshift storage properties.



1958
1959
1960
# File 'data_zone/cfn_connection.rb', line 1958

def workgroup_name
  @workgroup_name
end

Class Method Details

.jsii_propertiesObject



1960
1961
1962
1963
1964
1965
# File 'data_zone/cfn_connection.rb', line 1960

def self.jsii_properties
  {
    :cluster_name => "clusterName",
    :workgroup_name => "workgroupName",
  }
end

Instance Method Details

#to_jsiiObject



1967
1968
1969
1970
1971
1972
1973
1974
# File 'data_zone/cfn_connection.rb', line 1967

def to_jsii
  result = {}
  result.merge!({
    "clusterName" => @cluster_name,
    "workgroupName" => @workgroup_name,
  })
  result.compact
end