Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateTargetFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fis/cfn_experiment_template.rb

Overview

Specifies a filter used for the target resource input in an experiment template.

For more information, see Resource filters in the AWS Fault Injection Service User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, values:) ⇒ ExperimentTemplateTargetFilterProperty

Returns a new instance of ExperimentTemplateTargetFilterProperty.

Parameters:

  • path (String)

    The attribute path for the filter.

  • values (Array<String>)

    The attribute values for the filter.



1057
1058
1059
1060
1061
1062
# File 'fis/cfn_experiment_template.rb', line 1057

def initialize(path:, values:)
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
end

Instance Attribute Details

#pathString (readonly)

The attribute path for the filter.



1068
1069
1070
# File 'fis/cfn_experiment_template.rb', line 1068

def path
  @path
end

#valuesArray<String> (readonly)

The attribute values for the filter.



1073
1074
1075
# File 'fis/cfn_experiment_template.rb', line 1073

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1075
1076
1077
1078
1079
1080
# File 'fis/cfn_experiment_template.rb', line 1075

def self.jsii_properties
  {
    :path => "path",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1082
1083
1084
1085
1086
1087
1088
1089
# File 'fis/cfn_experiment_template.rb', line 1082

def to_jsii
  result = {}
  result.merge!({
    "path" => @path,
    "values" => @values,
  })
  result.compact
end