Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::S3SourceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::S3SourceConfigProperty
- 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
-
#file_format_descriptor ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty
readonly
Contains information about a source file's formatting.
-
#historical_data_path_list ⇒ Array<String>?
readonly
A list of paths to the historical data files.
-
#role_arn ⇒ String
readonly
The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
-
#templated_path_list ⇒ Array<String>?
readonly
A list of templated paths to the source files.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_format_descriptor:, role_arn:, historical_data_path_list: nil, templated_path_list: nil) ⇒ S3SourceConfigProperty
constructor
A new instance of S3SourceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_format_descriptor:, role_arn:, historical_data_path_list: nil, templated_path_list: nil) ⇒ S3SourceConfigProperty
Returns a new instance of S3SourceConfigProperty.
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
#file_format_descriptor ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty (readonly)
Contains information about a source file's formatting.
1309 1310 1311 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1309 def file_format_descriptor @file_format_descriptor end |
#historical_data_path_list ⇒ Array<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_arn ⇒ String (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_list ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |