@Stability(value=Stable)
public static interface CfnExperimentTemplate.ExperimentTemplateTargetProperty
extends software.amazon.jsii.JsiiSerializable
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 Simulator 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder
A builder for
CfnExperimentTemplate.ExperimentTemplateTargetProperty |
static class |
CfnExperimentTemplate.ExperimentTemplateTargetProperty.Jsii$Proxy
An implementation for
CfnExperimentTemplate.ExperimentTemplateTargetProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder |
builder() |
default Object |
getFilters()
The filters to apply to identify target resources using specific attributes.
|
default Object |
getParameters()
The parameters for the resource type.
|
default List<String> |
getResourceArns()
The Amazon Resource Names (ARNs) of the resources.
|
default Object |
getResourceTags()
The tags for the target resources.
|
String |
getResourceType()
The resource type.
|
String |
getSelectionMode()
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources.
|
@Stability(value=Stable) @NotNull String getResourceType()
The resource type must be supported for the specified action.
@Stability(value=Stable) @NotNull String getSelectionMode()
All identified resources are included in the target.
@Stability(value=Stable) @Nullable default Object getFilters()
@Stability(value=Stable) @Nullable default Object getParameters()
@Stability(value=Stable) @Nullable default List<String> getResourceArns()
@Stability(value=Stable) @Nullable default Object getResourceTags()
@Stability(value=Stable) static CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder builder()
Copyright © 2022. All rights reserved.