Class CfnExperimentTemplate
A CloudFormation AWS::FIS::ExperimentTemplate
.
Inherited Members
Namespace: Amazon.CDK.AWS.FIS
Assembly: Amazon.CDK.AWS.FIS.dll
Syntax (csharp)
public class CfnExperimentTemplate : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnExperimentTemplate
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specifies an experiment template.
An experiment template includes the following components:
For more information, see Experiment templates in the AWS Fault Injection Simulator 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"
} },
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
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" }
}
} }
},
LogConfiguration = new ExperimentTemplateLogConfigurationProperty {
LogSchemaVersion = 123,
// the properties below are optional
CloudWatchLogsConfiguration = cloudWatchLogsConfiguration,
S3Configuration = s3Configuration
}
});
Synopsis
Constructors
CfnExperimentTemplate(Construct, String, ICfnExperimentTemplateProps) | Create a new |
CfnExperimentTemplate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnExperimentTemplate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Actions | The actions for the experiment. |
AttrId | The ID of the experiment template. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description for the experiment template. |
LogConfiguration | The configuration for experiment logging. |
RoleArn | The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf. |
StopConditions | The stop conditions. |
Tags | The tags to apply to the experiment template. |
Targets | The targets for the experiment. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnExperimentTemplate(Construct, String, ICfnExperimentTemplateProps)
Create a new AWS::FIS::ExperimentTemplate
.
public CfnExperimentTemplate(Construct scope, string id, ICfnExperimentTemplateProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnExperimentTemplateProps
- resource properties.
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.ByRefValue
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.DeputyBase.DeputyProps
The deputy props
Properties
Actions
The actions for the experiment.
public virtual object Actions { get; set; }
Property Value
System.Object
Remarks
AttrId
The ID of the experiment template.
public virtual string AttrId { get; }
Property Value
System.String
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.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
A description for the experiment template.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
LogConfiguration
The configuration for experiment logging.
public virtual object LogConfiguration { get; set; }
Property Value
System.Object
Remarks
RoleArn
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
public virtual string RoleArn { get; set; }
Property Value
System.String
Remarks
StopConditions
The stop conditions.
public virtual object StopConditions { get; set; }
Property Value
System.Object
Remarks
Tags
The tags to apply to the experiment template.
public virtual TagManager Tags { get; }
Property Value
Remarks
Targets
The targets for the experiment.
public virtual object Targets { get; set; }
Property Value
System.Object
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- 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.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>