Class CfnExperimentTemplate
Specifies an experiment template.
Inherited Members
Namespace: Amazon.CDK.AWS.FIS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnExperimentTemplate : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnExperimentTemplate
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
An experiment template includes the following components:
For more information, see Experiment templates in the AWS Fault Injection Service User Guide .
CloudformationResource: AWS::FIS::ExperimentTemplate
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 cloudWatchLogsConfiguration;
var s3Configuration;
var cfnExperimentTemplate = new CfnExperimentTemplate(this, "MyCfnExperimentTemplate", new CfnExperimentTemplateProps {
Description = "description",
RoleArn = "roleArn",
StopConditions = new [] { new ExperimentTemplateStopConditionProperty {
Source = "source",
// the properties below are optional
Value = "value"
} },
Targets = new Dictionary<string, object> {
{ "targetsKey", 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" }
}
} }
},
// the properties below are optional
Actions = new Dictionary<string, object> {
{ "actionsKey", new ExperimentTemplateActionProperty {
ActionId = "actionId",
// the properties below are optional
Description = "description",
Parameters = new Dictionary<string, string> {
{ "parametersKey", "parameters" }
},
StartAfter = new [] { "startAfter" },
Targets = new Dictionary<string, string> {
{ "targetsKey", "targets" }
}
} }
},
ExperimentOptions = new ExperimentTemplateExperimentOptionsProperty {
AccountTargeting = "accountTargeting",
EmptyTargetResolutionMode = "emptyTargetResolutionMode"
},
ExperimentReportConfiguration = new ExperimentTemplateExperimentReportConfigurationProperty {
Outputs = new OutputsProperty {
ExperimentReportS3Configuration = new ExperimentReportS3ConfigurationProperty {
BucketName = "bucketName",
// the properties below are optional
Prefix = "prefix"
}
},
// the properties below are optional
DataSources = new DataSourcesProperty {
CloudWatchDashboards = new [] { new CloudWatchDashboardProperty {
DashboardIdentifier = "dashboardIdentifier"
} }
},
PostExperimentDuration = "postExperimentDuration",
PreExperimentDuration = "preExperimentDuration"
},
LogConfiguration = new ExperimentTemplateLogConfigurationProperty {
LogSchemaVersion = 123,
// the properties below are optional
CloudWatchLogsConfiguration = cloudWatchLogsConfiguration,
S3Configuration = s3Configuration
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Actions | The actions for the experiment. |
Attr |
The ID of the experiment template. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Description | The description for the experiment template. |
Experiment |
The experiment options for an experiment template. |
Experiment |
Describes the report configuration for the experiment template. |
Log |
The configuration for experiment logging. |
Role |
The Amazon Resource Name (ARN) of an IAM role. |
Stop |
The stop conditions for the experiment. |
Tags | Tag Manager which manages the tags for this resource. |
Tags |
The tags for the experiment template. |
Targets | The targets for the experiment. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnExperimentTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnExperimentTemplate(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnExperimentTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnExperimentTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnExperimentTemplate(Construct, String, ICfnExperimentTemplateProps)
public CfnExperimentTemplate(Construct scope, string id, ICfnExperimentTemplateProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Experiment Template Props Resource properties.
Properties
Actions
The actions for the experiment.
public virtual object Actions { get; set; }
Property Value
System.
AttrId
The ID of the experiment template.
public virtual string AttrId { get; }
Property Value
System.
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
Description
The description for the experiment template.
public virtual string Description { get; set; }
Property Value
System.
ExperimentOptions
The experiment options for an experiment template.
public virtual object ExperimentOptions { get; set; }
Property Value
System.
ExperimentReportConfiguration
Describes the report configuration for the experiment template.
public virtual object ExperimentReportConfiguration { get; set; }
Property Value
System.
LogConfiguration
The configuration for experiment logging.
public virtual object LogConfiguration { get; set; }
Property Value
System.
RoleArn
The Amazon Resource Name (ARN) of an IAM role.
public virtual string RoleArn { get; set; }
Property Value
System.
StopConditions
The stop conditions for the experiment.
public virtual object StopConditions { get; set; }
Property Value
System.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags for the experiment template.
public virtual IDictionary<string, string> TagsRaw { get; set; }
Property Value
System.
Targets
The targets for the experiment.
public virtual object Targets { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.