Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::S3SourceConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lookout_metrics/cfn_anomaly_detector.rb

Overview

Contains information about the configuration of the S3 bucket that contains source files.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_format_descriptor:, role_arn:, historical_data_path_list: nil, templated_path_list: nil) ⇒ S3SourceConfigProperty

Returns a new instance of S3SourceConfigProperty.

Parameters:

  • file_format_descriptor (AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty)

    Contains information about a source file's formatting.

  • role_arn (String)

    The ARN of an IAM role that has read and write access permissions to the source S3 bucket.

  • historical_data_path_list (Array<String>, nil) (defaults to: nil)

    A list of paths to the historical data files.

  • templated_path_list (Array<String>, nil) (defaults to: nil)

    A list of templated paths to the source files.



1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1294

def initialize(file_format_descriptor:, role_arn:, historical_data_path_list: nil, templated_path_list: nil)
  @file_format_descriptor = file_format_descriptor.is_a?(Hash) ? ::AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty.new(**file_format_descriptor.transform_keys(&:to_sym)) : file_format_descriptor
  Jsii::Type.check_type(@file_format_descriptor, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb29rb3V0bWV0cmljcy5DZm5Bbm9tYWx5RGV0ZWN0b3IuRmlsZUZvcm1hdERlc2NyaXB0b3JQcm9wZXJ0eSJ9XX19")), "fileFormatDescriptor")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @historical_data_path_list = historical_data_path_list
  Jsii::Type.check_type(@historical_data_path_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "historicalDataPathList") unless @historical_data_path_list.nil?
  @templated_path_list = templated_path_list
  Jsii::Type.check_type(@templated_path_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "templatedPathList") unless @templated_path_list.nil?
end

Instance Attribute Details

#historical_data_path_listArray<String>? (readonly)

A list of paths to the historical data files.



1319
1320
1321
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1319

def historical_data_path_list
  @historical_data_path_list
end

#role_arnString (readonly)

The ARN of an IAM role that has read and write access permissions to the source S3 bucket.



1314
1315
1316
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1314

def role_arn
  @role_arn
end

#templated_path_listArray<String>? (readonly)

A list of templated paths to the source files.



1324
1325
1326
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1324

def templated_path_list
  @templated_path_list
end

Class Method Details

.jsii_propertiesObject



1326
1327
1328
1329
1330
1331
1332
1333
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1326

def self.jsii_properties
  {
    :file_format_descriptor => "fileFormatDescriptor",
    :role_arn => "roleArn",
    :historical_data_path_list => "historicalDataPathList",
    :templated_path_list => "templatedPathList",
  }
end

Instance Method Details

#to_jsiiObject



1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1335

def to_jsii
  result = {}
  result.merge!({
    "fileFormatDescriptor" => @file_format_descriptor,
    "roleArn" => @role_arn,
    "historicalDataPathList" => @historical_data_path_list,
    "templatedPathList" => @templated_path_list,
  })
  result.compact
end