Class: AWSCDK::BCMDataExports::CfnExportProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bcm_data_exports/cfn_export_props.rb

Overview

Properties for defining a CfnExport.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(export:, tags: nil) ⇒ CfnExportProps

Returns a new instance of CfnExportProps.

Parameters:



11
12
13
14
15
16
# File 'bcm_data_exports/cfn_export_props.rb', line 11

def initialize(export:, tags: nil)
  @export = export.is_a?(Hash) ? ::AWSCDK::BCMDataExports::CfnExport::ExportProperty.new(**export.transform_keys(&:to_sym)) : export
  Jsii::Type.check_type(@export, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iY21kYXRhZXhwb3J0cy5DZm5FeHBvcnQuRXhwb3J0UHJvcGVydHkifV19fQ==")), "export")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::BCMDataExports::CfnExport::ResourceTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iY21kYXRhZXhwb3J0cy5DZm5FeHBvcnQuUmVzb3VyY2VUYWdQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#exportAWSCDK::IResolvable, AWSCDK::BCMDataExports::CfnExport::ExportProperty (readonly)

The details that are available for an export.



22
23
24
# File 'bcm_data_exports/cfn_export_props.rb', line 22

def export
  @export
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'bcm_data_exports/cfn_export_props.rb', line 27

def self.jsii_properties
  {
    :export => "export",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'bcm_data_exports/cfn_export_props.rb', line 34

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