Skip to content
v2.273.0

CfnExperimentTemplatePropsMixin Mixin ​

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 in the AWS Fault Injection Service User Guide .

Initializer ​

ts
new CfnExperimentTemplatePropsMixin(props: CfnExperimentTemplateMixinProps, options?: CfnPropertyMixinOptions)
python
CfnExperimentTemplatePropsMixin(props: CfnExperimentTemplateMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnExperimentTemplatePropsMixin(CfnExperimentTemplateMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnExperimentTemplatePropsMixin(CfnExperimentTemplateMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnExperimentTemplatePropsMixin(Props CfnExperimentTemplateMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.