Class CfnExperimentTemplatePropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.fis.CfnExperimentTemplatePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:59.430Z")
@Stability(Stable)
public class CfnExperimentTemplatePropsMixin
extends Mixin
implements software.constructs.IMixin
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.fis.*;
import software.amazon.awscdk.*;
Object cloudWatchLogsConfiguration;
IMergeStrategy mergeStrategy;
Object s3Configuration;
CfnExperimentTemplatePropsMixin cfnExperimentTemplatePropsMixin = CfnExperimentTemplatePropsMixin.Builder.create(CfnExperimentTemplateMixinProps.builder()
.actions(Map.of(
"actionsKey", ExperimentTemplateActionProperty.builder()
.actionId("actionId")
.description("description")
.parameters(Map.of(
"parametersKey", "parameters"))
.startAfter(List.of("startAfter"))
.targets(Map.of(
"targetsKey", "targets"))
.build()))
.description("description")
.experimentOptions(ExperimentTemplateExperimentOptionsProperty.builder()
.accountTargeting("accountTargeting")
.emptyTargetResolutionMode("emptyTargetResolutionMode")
.build())
.experimentReportConfiguration(ExperimentTemplateExperimentReportConfigurationProperty.builder()
.dataSources(DataSourcesProperty.builder()
.cloudWatchDashboards(List.of(CloudWatchDashboardProperty.builder()
.dashboardIdentifier("dashboardIdentifier")
.build()))
.build())
.outputs(OutputsProperty.builder()
.experimentReportS3Configuration(ExperimentReportS3ConfigurationProperty.builder()
.bucketName("bucketName")
.prefix("prefix")
.build())
.build())
.postExperimentDuration("postExperimentDuration")
.preExperimentDuration("preExperimentDuration")
.build())
.logConfiguration(ExperimentTemplateLogConfigurationProperty.builder()
.cloudWatchLogsConfiguration(cloudWatchLogsConfiguration)
.logSchemaVersion(123)
.s3Configuration(s3Configuration)
.build())
.roleArn("roleArn")
.stopConditions(List.of(ExperimentTemplateStopConditionProperty.builder()
.source("source")
.value("value")
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.targets(Map.of(
"targetsKey", ExperimentTemplateTargetProperty.builder()
.filters(List.of(ExperimentTemplateTargetFilterProperty.builder()
.path("path")
.values(List.of("values"))
.build()))
.parameters(Map.of(
"parametersKey", "parameters"))
.resourceArns(List.of("resourceArns"))
.resourceTags(Map.of(
"resourceTagsKey", "resourceTags"))
.resourceType("resourceType")
.selectionMode("selectionMode")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnExperimentTemplatePropsMixin.static interfaceThe CloudWatch dashboards to include as data sources in the experiment report.static interfaceDescribes the data sources for the experiment report.static interfaceThe S3 destination for the experiment report.static interfaceSpecifies an action for an experiment template.static interfaceDescribes the experiment options for an experiment template.static interfaceDescribes the report configuration for the experiment template.static interfaceSpecifies the configuration for experiment logging.static interfaceSpecifies a stop condition for an experiment template.static interfaceSpecifies a filter used for the target resource input in an experiment template.static interfaceSpecifies a target for an experiment.static interfaceDescribes the output destinations of the experiment report.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::FIS::ExperimentTemplate.CfnExperimentTemplatePropsMixin(CfnExperimentTemplateMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::FIS::ExperimentTemplate.protectedCfnExperimentTemplatePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnExperimentTemplatePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnExperimentTemplateMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnExperimentTemplatePropsMixin
protected CfnExperimentTemplatePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnExperimentTemplatePropsMixin
protected CfnExperimentTemplatePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnExperimentTemplatePropsMixin
@Stability(Stable) public CfnExperimentTemplatePropsMixin(@NotNull CfnExperimentTemplateMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::FIS::ExperimentTemplate.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnExperimentTemplatePropsMixin
@Stability(Stable) public CfnExperimentTemplatePropsMixin(@NotNull CfnExperimentTemplateMixinProps props) Create a mixin to apply properties toAWS::FIS::ExperimentTemplate.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-