Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateLogConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_schema_version:, cloud_watch_logs_configuration: nil, s3_configuration: nil) ⇒ ExperimentTemplateLogConfigurationProperty

Returns a new instance of ExperimentTemplateLogConfigurationProperty.

Parameters:

  • log_schema_version (Numeric)

    The schema version.

  • cloud_watch_logs_configuration (Object, nil) (defaults to: nil)

    The configuration for experiment logging to CloudWatch Logs .

  • s3_configuration (Object, nil) (defaults to: nil)

    The configuration for experiment logging to Amazon S3 .



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_configurationObject? (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_versionNumeric (readonly)

The schema version.



971
972
973
# File 'fis/cfn_experiment_template.rb', line 971

def log_schema_version
  @log_schema_version
end

#s3_configurationObject? (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_propertiesObject



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_jsiiObject



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