Interface CfnExperimentTemplate.IExperimentTemplateTargetProperty
Specifies a target for an experiment.
Namespace: Amazon.CDK.AWS.FIS
Assembly: Amazon.CDK.AWS.FIS.dll
Syntax (csharp)
public interface IExperimentTemplateTargetProperty
Syntax (vb)
Public Interface IExperimentTemplateTargetProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.FIS;
var experimentTemplateTargetProperty = new ExperimentTemplateTargetProperty {
ResourceType = "resourceType",
SelectionMode = "selectionMode",
// the properties below are optional
Filters = new [] { new ExperimentTemplateTargetFilterProperty {
Path = "path",
Values = new [] { "values" }
} },
Parameters = new Dictionary<string, string> {
{ "parametersKey", "parameters" }
},
ResourceArns = new [] { "resourceArns" },
ResourceTags = new Dictionary<string, string> {
{ "resourceTagsKey", "resourceTags" }
}
};
Synopsis
Properties
Filters | The filters to apply to identify target resources using specific attributes. |
Parameters | The parameters for the resource type. |
ResourceArns | The Amazon Resource Names (ARNs) of the resources. |
ResourceTags | The tags for the target resources. |
ResourceType | The resource type. |
SelectionMode | Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. |
Properties
Filters
The filters to apply to identify target resources using specific attributes.
virtual object Filters { get; }
Property Value
System.Object
Remarks
Parameters
The parameters for the resource type.
virtual object Parameters { get; }
Property Value
System.Object
Remarks
ResourceArns
The Amazon Resource Names (ARNs) of the resources.
virtual string[] ResourceArns { get; }
Property Value
System.String[]
Remarks
ResourceTags
The tags for the target resources.
virtual object ResourceTags { get; }
Property Value
System.Object
Remarks
ResourceType
The resource type.
string ResourceType { get; }
Property Value
System.String
Remarks
The resource type must be supported for the specified action.
SelectionMode
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources.
string SelectionMode { get; }
Property Value
System.String
Remarks
All identified resources are included in the target.