CreateExperimentTemplateTargetInput
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 AWS Fault Injection Service User Guide.
Contents
- resourceType
-
The resource type. The resource type must be supported for the specified action.
Type: String
Length Constraints: Maximum length of 128.
Pattern:
[\S]+
Required: Yes
- selectionMode
-
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.
Type: String
Length Constraints: Maximum length of 64.
Pattern:
[\S]+
Required: Yes
-
- filters
-
The filters to apply to identify target resources using specific attributes.
Type: Array of ExperimentTemplateTargetInputFilter objects
Required: No
- parameters
-
The resource type parameters.
Type: String to string map
Key Length Constraints: Maximum length of 64.
Key Pattern:
[\S]+
Value Length Constraints: Minimum length of 1. Maximum length of 1024.
Value Pattern:
^[\p{L}\p{Z}\p{N}_.:/=+\-@]+$
Required: No
- resourceArns
-
The Amazon Resource Names (ARNs) of the resources.
Type: Array of strings
Array Members: Maximum number of 5 items.
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern:
[\S]+
Required: No
- resourceTags
-
The tags for the target resources.
Type: String to string map
Map Entries: Maximum number of 50 items.
Key Length Constraints: Maximum length of 128.
Key Pattern:
[\s\S]+
Value Length Constraints: Maximum length of 256.
Value Pattern:
[\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: