Interface CfnExperimentTemplate.ExperimentTemplateTargetProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnExperimentTemplate.ExperimentTemplateTargetProperty.Jsii$Proxy
Enclosing class:
CfnExperimentTemplate

@Stability(Stable) public static interface CfnExperimentTemplate.ExperimentTemplateTargetProperty extends software.amazon.jsii.JsiiSerializable
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 .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.fis.*;
 ExperimentTemplateTargetProperty experimentTemplateTargetProperty = ExperimentTemplateTargetProperty.builder()
         .resourceType("resourceType")
         .selectionMode("selectionMode")
         // the properties below are optional
         .filters(List.of(ExperimentTemplateTargetFilterProperty.builder()
                 .path("path")
                 .values(List.of("values"))
                 .build()))
         .parameters(Map.of(
                 "parametersKey", "parameters"))
         .resourceArns(List.of("resourceArns"))
         .resourceTags(Map.of(
                 "resourceTagsKey", "resourceTags"))
         .build();
 

See Also: