Interface CfnExperimentTemplate.IExperimentTemplateTargetProperty
Specifies a target for an experiment.
Namespace: Amazon.CDK.AWS.FIS
Assembly: Amazon.CDK.Lib.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 Service 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 targets. |
ResourceTags | The tags for the target resources. |
ResourceType | The resource type. |
SelectionMode | Scopes the identified resources to a specific count or percentage. |
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 targets.
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
SelectionMode
Scopes the identified resources to a specific count or percentage.
string SelectionMode { get; }
Property Value
System.String