Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateLogConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateLogConfigurationProperty
- Defined in:
- fis/cfn_experiment_template.rb
Overview
Specifies the configuration for experiment logging.
For more information, see Experiment logging in the AWS Fault Injection Service User Guide .
Instance Attribute Summary collapse
-
#cloud_watch_logs_configuration ⇒ Object?
readonly
The configuration for experiment logging to CloudWatch Logs .
-
#log_schema_version ⇒ Numeric
readonly
The schema version.
-
#s3_configuration ⇒ Object?
readonly
The configuration for experiment logging to Amazon S3 .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_schema_version:, cloud_watch_logs_configuration: nil, s3_configuration: nil) ⇒ ExperimentTemplateLogConfigurationProperty
constructor
A new instance of ExperimentTemplateLogConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_schema_version:, cloud_watch_logs_configuration: nil, s3_configuration: nil) ⇒ ExperimentTemplateLogConfigurationProperty
Returns a new instance of ExperimentTemplateLogConfigurationProperty.
958 959 960 961 962 963 964 965 |
# File 'fis/cfn_experiment_template.rb', line 958 def initialize(log_schema_version:, cloud_watch_logs_configuration: nil, s3_configuration: nil) @log_schema_version = log_schema_version Jsii::Type.check_type(@log_schema_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "logSchemaVersion") @cloud_watch_logs_configuration = cloud_watch_logs_configuration Jsii::Type.check_type(@cloud_watch_logs_configuration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "cloudWatchLogsConfiguration") unless @cloud_watch_logs_configuration.nil? @s3_configuration = s3_configuration Jsii::Type.check_type(@s3_configuration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "s3Configuration") unless @s3_configuration.nil? end |
Instance Attribute Details
#cloud_watch_logs_configuration ⇒ Object? (readonly)
The configuration for experiment logging to CloudWatch Logs .
976 977 978 |
# File 'fis/cfn_experiment_template.rb', line 976 def cloud_watch_logs_configuration @cloud_watch_logs_configuration end |
#log_schema_version ⇒ Numeric (readonly)
The schema version.
971 972 973 |
# File 'fis/cfn_experiment_template.rb', line 971 def log_schema_version @log_schema_version end |
#s3_configuration ⇒ Object? (readonly)
The configuration for experiment logging to Amazon S3 .
981 982 983 |
# File 'fis/cfn_experiment_template.rb', line 981 def s3_configuration @s3_configuration end |
Class Method Details
.jsii_properties ⇒ Object
983 984 985 986 987 988 989 |
# File 'fis/cfn_experiment_template.rb', line 983 def self.jsii_properties { :log_schema_version => "logSchemaVersion", :cloud_watch_logs_configuration => "cloudWatchLogsConfiguration", :s3_configuration => "s3Configuration", } end |
Instance Method Details
#to_jsii ⇒ Object
991 992 993 994 995 996 997 998 999 |
# File 'fis/cfn_experiment_template.rb', line 991 def to_jsii result = {} result.merge!({ "logSchemaVersion" => @log_schema_version, "cloudWatchLogsConfiguration" => @cloud_watch_logs_configuration, "s3Configuration" => @s3_configuration, }) result.compact end |