Class: AWSCDK::Omics::CfnConfigurationProps

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

Overview

Properties for defining a CfnConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, run_configurations:, description: nil, tags: nil) ⇒ CfnConfigurationProps

Returns a new instance of CfnConfigurationProps.

Parameters:



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

def initialize(name:, run_configurations:, description: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @run_configurations = run_configurations.is_a?(Hash) ? ::AWSCDK::Omics::CfnConfiguration::RunConfigurationsProperty.new(**run_configurations.transform_keys(&:to_sym)) : run_configurations
  Jsii::Type.check_type(@run_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vbWljcy5DZm5Db25maWd1cmF0aW9uLlJ1bkNvbmZpZ3VyYXRpb25zUHJvcGVydHkifV19fQ==")), "runConfigurations")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

Optional description for the configuration.



36
37
38
# File 'omics/cfn_configuration_props.rb', line 36

def description
  @description
end

#nameString (readonly)

User-friendly name for the configuration.



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

def name
  @name
end

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

A map of resource tags.



41
42
43
# File 'omics/cfn_configuration_props.rb', line 41

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
50
# File 'omics/cfn_configuration_props.rb', line 43

def self.jsii_properties
  {
    :name => "name",
    :run_configurations => "runConfigurations",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



52
53
54
55
56
57
58
59
60
61
# File 'omics/cfn_configuration_props.rb', line 52

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