AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::FIS::ExperimentTemplate

CfnExperimentTemplate

Specifies an experiment template. An experiment template includes the following components: - *Targets* : A target can be a specific resource in your AWS environment, or one or more resources that match criteria that you specify, for example, resources that have specific tags. - *Actions* : The actions to carry out on the target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment. - *Stop conditions* : If a stop condition is triggered while an experiment is running, the experiment is automatically stopped. You can define a stop condition as a CloudWatch alarm. For more information, see [Experiment templates](https://docs.aws.amazon.com/fis/latest/userguide/experiment-templates.html) in the *AWS Fault Injection Service User Guide* .

Import

import { CfnExperimentTemplate } from 'aws-cdk-lib/aws-fis';

Or use the module namespace:

import * as fis from 'aws-cdk-lib/aws-fis';
// fis.CfnExperimentTemplate

Properties

Configuration passed to the constructor as CfnExperimentTemplateProps.

descriptionRequired
string

The description for the experiment template.

roleArnRequired
string | IRoleRef

The Amazon Resource Name (ARN) of an IAM role.

stopConditionsRequired
IResolvable | IResolvable | ExperimentTemplateStopConditionProperty[]

The stop conditions for the experiment.

targetsRequired
IResolvable | { [key: string]: IResolvable | ExperimentTemplateTargetProperty }

The targets for the experiment.

actionsOptional
IResolvable | { [key: string]: IResolvable | ExperimentTemplateActionProperty }

The actions for the experiment.

experimentOptionsOptional
IResolvable | ExperimentTemplateExperimentOptionsProperty

The experiment options for an experiment template.

experimentReportConfigurationOptional
IResolvable | ExperimentTemplateExperimentReportConfigurationProperty

Describes the report configuration for the experiment template.

logConfigurationOptional
IResolvable | ExperimentTemplateLogConfigurationProperty

The configuration for experiment logging.

tagsOptional
{ [key: string]: string }

The tags for the experiment template.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-fis
CFN TypeAWS::FIS::ExperimentTemplate
Properties9

Related Constructs

External Links