Class: AWSCDK::IoTSiteWise::CfnDataset::DatasetSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_dataset.rb

Overview

The data source for the dataset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_format:, source_type:, source_detail: nil) ⇒ DatasetSourceProperty

Returns a new instance of DatasetSourceProperty.

Parameters:



595
596
597
598
599
600
601
602
# File 'io_t_site_wise/cfn_dataset.rb', line 595

def initialize(source_format:, source_type:, source_detail: nil)
  @source_format = source_format
  Jsii::Type.check_type(@source_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceFormat")
  @source_type = source_type
  Jsii::Type.check_type(@source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceType")
  @source_detail = source_detail.is_a?(Hash) ? ::AWSCDK::IoTSiteWise::CfnDataset::SourceDetailProperty.new(**source_detail.transform_keys(&:to_sym)) : source_detail
  Jsii::Type.check_type(@source_detail, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RzaXRld2lzZS5DZm5EYXRhc2V0LlNvdXJjZURldGFpbFByb3BlcnR5In1dfX0=")), "sourceDetail") unless @source_detail.nil?
end

Instance Attribute Details

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

The details of the dataset source associated with the dataset.



618
619
620
# File 'io_t_site_wise/cfn_dataset.rb', line 618

def source_detail
  @source_detail
end

#source_formatString (readonly)

The format of the dataset source associated with the dataset.



608
609
610
# File 'io_t_site_wise/cfn_dataset.rb', line 608

def source_format
  @source_format
end

#source_typeString (readonly)

The type of data source for the dataset.



613
614
615
# File 'io_t_site_wise/cfn_dataset.rb', line 613

def source_type
  @source_type
end

Class Method Details

.jsii_propertiesObject



620
621
622
623
624
625
626
# File 'io_t_site_wise/cfn_dataset.rb', line 620

def self.jsii_properties
  {
    :source_format => "sourceFormat",
    :source_type => "sourceType",
    :source_detail => "sourceDetail",
  }
end

Instance Method Details

#to_jsiiObject



628
629
630
631
632
633
634
635
636
# File 'io_t_site_wise/cfn_dataset.rb', line 628

def to_jsii
  result = {}
  result.merge!({
    "sourceFormat" => @source_format,
    "sourceType" => @source_type,
    "sourceDetail" => @source_detail,
  })
  result.compact
end