#[non_exhaustive]pub struct CreateExperimentTemplateTargetInput {
pub resource_type: Option<String>,
pub resource_arns: Option<Vec<String>>,
pub resource_tags: Option<HashMap<String, String>>,
pub filters: Option<Vec<ExperimentTemplateTargetInputFilter>>,
pub selection_mode: Option<String>,
}
Expand description
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.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: Option<String>
The Amazon Web Services resource type. The resource type must be supported for the specified action.
resource_arns: Option<Vec<String>>
The Amazon Resource Names (ARNs) of the resources.
The tags for the target resources.
filters: Option<Vec<ExperimentTemplateTargetInputFilter>>
The filters to apply to identify target resources using specific attributes.
selection_mode: Option<String>
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.
Implementations
The Amazon Web Services resource type. The resource type must be supported for the specified action.
The Amazon Resource Names (ARNs) of the resources.
The tags for the target resources.
The filters to apply to identify target resources using specific attributes.
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.
Creates a new builder-style object to manufacture CreateExperimentTemplateTargetInput
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for CreateExperimentTemplateTargetInput
impl Sync for CreateExperimentTemplateTargetInput
impl Unpin for CreateExperimentTemplateTargetInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more