Class: AWSCDK::Omics::CfnReferenceStoreProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_reference_store_props.rb

Overview

Properties for defining a CfnReferenceStore.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, sse_config: nil, tags: nil) ⇒ CfnReferenceStoreProps

Returns a new instance of CfnReferenceStoreProps.

Parameters:

  • name (String)

    A name for the store.

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

    A description for the store.

  • sse_config (AWSCDK::IResolvable, AWSCDK::Omics::CfnReferenceStore::SseConfigProperty, nil) (defaults to: nil)

    Server-side encryption (SSE) settings for the store.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Tags for the store.



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

def initialize(name:, description: nil, sse_config: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @sse_config = sse_config.is_a?(Hash) ? ::AWSCDK::Omics::CfnReferenceStore::SseConfigProperty.new(**sse_config.transform_keys(&:to_sym)) : sse_config
  Jsii::Type.check_type(@sse_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vbWljcy5DZm5SZWZlcmVuY2VTdG9yZS5Tc2VDb25maWdQcm9wZXJ0eSJ9XX19")), "sseConfig") unless @sse_config.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description for the store.



33
34
35
# File 'omics/cfn_reference_store_props.rb', line 33

def description
  @description
end

#nameString (readonly)

A name for the store.



28
29
30
# File 'omics/cfn_reference_store_props.rb', line 28

def name
  @name
end

#sse_configAWSCDK::IResolvable, ... (readonly)

Server-side encryption (SSE) settings for the store.



38
39
40
# File 'omics/cfn_reference_store_props.rb', line 38

def sse_config
  @sse_config
end

#tagsHash{String => String}? (readonly)

Tags for the store.



43
44
45
# File 'omics/cfn_reference_store_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'omics/cfn_reference_store_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :sse_config => "sseConfig",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'omics/cfn_reference_store_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "sseConfig" => @sse_config,
    "tags" => @tags,
  })
  result.compact
end