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

.NET
Go
Java
Python
TypeScript