CfnExperimentTemplateProps
- class aws_cdk.aws_fis.CfnExperimentTemplateProps(*, description, role_arn, stop_conditions, targets, actions=None, experiment_options=None, experiment_report_configuration=None, log_configuration=None, tags=None)
Bases:
objectProperties for defining a
CfnExperimentTemplate.- Parameters:
description (
str) – The description for the experiment template.role_arn (
str) – The Amazon Resource Name (ARN) of an IAM role.stop_conditions (
Union[IResolvable,Sequence[Union[IResolvable,ExperimentTemplateStopConditionProperty,Dict[str,Any]]]]) – The stop conditions for the experiment.targets (
Union[IResolvable,Mapping[str,Union[IResolvable,ExperimentTemplateTargetProperty,Dict[str,Any]]]]) – The targets for the experiment.actions (
Union[IResolvable,Mapping[str,Union[IResolvable,ExperimentTemplateActionProperty,Dict[str,Any]]],None]) – The actions for the experiment.experiment_options (
Union[IResolvable,ExperimentTemplateExperimentOptionsProperty,Dict[str,Any],None]) – The experiment options for an experiment template.experiment_report_configuration (
Union[IResolvable,ExperimentTemplateExperimentReportConfigurationProperty,Dict[str,Any],None]) – Describes the report configuration for the experiment template.log_configuration (
Union[IResolvable,ExperimentTemplateLogConfigurationProperty,Dict[str,Any],None]) – The configuration for experiment logging.tags (
Optional[Mapping[str,str]]) – The tags for the experiment template.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_fis as fis # cloud_watch_logs_configuration: Any # s3_configuration: Any cfn_experiment_template_props = fis.CfnExperimentTemplateProps( description="description", role_arn="roleArn", stop_conditions=[fis.CfnExperimentTemplate.ExperimentTemplateStopConditionProperty( source="source", # the properties below are optional value="value" )], targets={ "targets_key": fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty( resource_type="resourceType", selection_mode="selectionMode", # the properties below are optional filters=[fis.CfnExperimentTemplate.ExperimentTemplateTargetFilterProperty( path="path", values=["values"] )], parameters={ "parameters_key": "parameters" }, resource_arns=["resourceArns"], resource_tags={ "resource_tags_key": "resourceTags" } ) }, # the properties below are optional actions={ "actions_key": fis.CfnExperimentTemplate.ExperimentTemplateActionProperty( action_id="actionId", # the properties below are optional description="description", parameters={ "parameters_key": "parameters" }, start_after=["startAfter"], targets={ "targets_key": "targets" } ) }, experiment_options=fis.CfnExperimentTemplate.ExperimentTemplateExperimentOptionsProperty( account_targeting="accountTargeting", empty_target_resolution_mode="emptyTargetResolutionMode" ), experiment_report_configuration=fis.CfnExperimentTemplate.ExperimentTemplateExperimentReportConfigurationProperty( outputs=fis.CfnExperimentTemplate.OutputsProperty( experiment_report_s3_configuration=fis.CfnExperimentTemplate.ExperimentReportS3ConfigurationProperty( bucket_name="bucketName", # the properties below are optional prefix="prefix" ) ), # the properties below are optional data_sources=fis.CfnExperimentTemplate.DataSourcesProperty( cloud_watch_dashboards=[fis.CfnExperimentTemplate.CloudWatchDashboardProperty( dashboard_identifier="dashboardIdentifier" )] ), post_experiment_duration="postExperimentDuration", pre_experiment_duration="preExperimentDuration" ), log_configuration=fis.CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty( log_schema_version=123, # the properties below are optional cloud_watch_logs_configuration=cloud_watch_logs_configuration, s3_configuration=s3_configuration ), tags={ "tags_key": "tags" } )
Attributes
- actions
The actions for the experiment.
- description
The description for the experiment template.
- experiment_options
The experiment options for an experiment template.
- experiment_report_configuration
Describes the report configuration for the experiment template.
- log_configuration
The configuration for experiment logging.
- role_arn
The Amazon Resource Name (ARN) of an IAM role.
- stop_conditions
The stop conditions for the experiment.
- tags
The tags for the experiment template.
- targets
The targets for the experiment.