Class: Aws::FIS::Types::CreateExperimentTemplateTargetInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb

Overview

Note:

When making an API call, you may pass CreateExperimentTemplateTargetInput data as a hash:

{
  resource_type: "TargetResourceTypeId", # required
  resource_arns: ["ResourceArn"],
  resource_tags: {
    "TagKey" => "TagValue",
  },
  filters: [
    {
      path: "ExperimentTemplateTargetFilterPath", # required
      values: ["ExperimentTemplateTargetFilterValue"], # required
    },
  ],
  selection_mode: "ExperimentTemplateTargetSelectionMode", # required
  parameters: {
    "ExperimentTemplateTargetParameterName" => "ExperimentTemplateTargetParameterValue",
  },
}

Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or at least one resource tag. You cannot specify both ARNs and tags.

For more information, see Targets in the Fault Injection Simulator User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#filtersArray<Types::ExperimentTemplateTargetInputFilter>

The filters to apply to identify target resources using specific attributes.



451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#parametersHash<String,String>

The resource type parameters.

Returns:

  • (Hash<String,String>)


451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnsArray<String>

The Amazon Resource Names (ARNs) of the resources.

Returns:

  • (Array<String>)


451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#resource_tagsHash<String,String>

The tags for the target resources.

Returns:

  • (Hash<String,String>)


451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#resource_typeString

The resource type. The resource type must be supported for the specified action.

Returns:

  • (String)


451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#selection_modeString

Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.

  • ALL - Run the action on all identified targets. This is the default.

  • COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.

  • PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.

Returns:

  • (String)


451
452
453
454
455
456
457
458
459
460
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/types.rb', line 451

class CreateExperimentTemplateTargetInput < Struct.new(
  :resource_type,
  :resource_arns,
  :resource_tags,
  :filters,
  :selection_mode,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end