Class: AWSCDK::GroundStation::CfnConfigProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ground_station/cfn_config_props.rb

Overview

Properties for defining a CfnConfig.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_data:, name:, tags: nil) ⇒ CfnConfigProps

Returns a new instance of CfnConfigProps.

Parameters:



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

def initialize(config_data:, name:, tags: nil)
  @config_data = config_data.is_a?(Hash) ? ::AWSCDK::GroundStation::CfnConfig::ConfigDataProperty.new(**config_data.transform_keys(&:to_sym)) : config_data
  Jsii::Type.check_type(@config_data, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncm91bmRzdGF0aW9uLkNmbkNvbmZpZy5Db25maWdEYXRhUHJvcGVydHkifV19fQ==")), "configData")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @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

#config_dataAWSCDK::IResolvable, AWSCDK::GroundStation::CfnConfig::ConfigDataProperty (readonly)

Object containing the parameters of a config.

Only one subtype may be specified per config. See the subtype definitions for a description of each config subtype.



27
28
29
# File 'ground_station/cfn_config_props.rb', line 27

def config_data
  @config_data
end

#nameString (readonly)

The name of the config object.



32
33
34
# File 'ground_station/cfn_config_props.rb', line 32

def name
  @name
end

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

Tags assigned to a resource.



37
38
39
# File 'ground_station/cfn_config_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'ground_station/cfn_config_props.rb', line 39

def self.jsii_properties
  {
    :config_data => "configData",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'ground_station/cfn_config_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "configData" => @config_data,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end