Class CfnExperimentTemplate.ExperimentTemplateTargetProperty
Specifies a target for an experiment.
Inheritance
Namespace: Amazon.CDK.AWS.FIS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ExperimentTemplateTargetProperty : Object, CfnExperimentTemplate.IExperimentTemplateTargetProperty
Syntax (vb)
Public Class ExperimentTemplateTargetProperty
Inherits Object
Implements CfnExperimentTemplate.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
Constructors
ExperimentTemplateTargetProperty() |
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. |
Constructors
ExperimentTemplateTargetProperty()
public ExperimentTemplateTargetProperty()
Properties
Filters
The filters to apply to identify target resources using specific attributes.
public object Filters { get; set; }
Property Value
System.Object
Remarks
Parameters
The parameters for the resource type.
public object Parameters { get; set; }
Property Value
System.Object
Remarks
ResourceArns
The Amazon Resource Names (ARNs) of the targets.
public string[] ResourceArns { get; set; }
Property Value
System.String[]
Remarks
ResourceTags
The tags for the target resources.
public object ResourceTags { get; set; }
Property Value
System.Object
Remarks
ResourceType
The resource type.
public string ResourceType { get; set; }
Property Value
System.String
Remarks
SelectionMode
Scopes the identified resources to a specific count or percentage.
public string SelectionMode { get; set; }
Property Value
System.String