interface ExperimentTemplateTargetProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.FIS.CfnExperimentTemplate.ExperimentTemplateTargetProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsfis#CfnExperimentTemplate_ExperimentTemplateTargetProperty |
Java | software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty |
Python | aws_cdk.aws_fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty |
TypeScript | aws-cdk-lib » aws_fis » CfnExperimentTemplate » ExperimentTemplateTargetProperty |
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 { aws_fis as fis } from 'aws-cdk-lib';
const experimentTemplateTargetProperty: fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty = {
resourceType: 'resourceType',
selectionMode: 'selectionMode',
// the properties below are optional
filters: [{
path: 'path',
values: ['values'],
}],
parameters: {
parametersKey: 'parameters',
},
resourceArns: ['resourceArns'],
resourceTags: {
resourceTagsKey: 'resourceTags',
},
};
Properties
Name | Type | Description |
---|---|---|
resource | string | The resource type. |
selection | string | Scopes the identified resources to a specific count or percentage. |
filters? | IResolvable | IResolvable | Experiment [] | The filters to apply to identify target resources using specific attributes. |
parameters? | IResolvable | { [string]: string } | The parameters for the resource type. |
resource | string[] | The Amazon Resource Names (ARNs) of the targets. |
resource | IResolvable | { [string]: string } | The tags for the target resources. |
resourceType
Type:
string
The resource type.
selectionMode
Type:
string
Scopes the identified resources to a specific count or percentage.
filters?
Type:
IResolvable
|
IResolvable
|
Experiment
[]
(optional)
The filters to apply to identify target resources using specific attributes.
parameters?
Type:
IResolvable
| { [string]: string }
(optional)
The parameters for the resource type.
resourceArns?
Type:
string[]
(optional)
The Amazon Resource Names (ARNs) of the targets.
resourceTags?
Type:
IResolvable
| { [string]: string }
(optional)
The tags for the target resources.