CfnExperimentTemplateProps
- class aws_cdk.aws_fis.CfnExperimentTemplateProps(*, description, role_arn, stop_conditions, tags, targets, actions=None, log_configuration=None)
Bases:
objectProperties for defining a
CfnExperimentTemplate.- Parameters:
description (
str) – A description for the experiment template.role_arn (
str) – The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.stop_conditions (
Union[IResolvable,Sequence[Union[ExperimentTemplateStopConditionProperty,Dict[str,Any],IResolvable]]]) – The stop conditions.tags (
Mapping[str,str]) – The tags to apply to the experiment template.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.log_configuration (
Union[IResolvable,ExperimentTemplateLogConfigurationProperty,Dict[str,Any],None]) – The configuration for experiment logging.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.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" )], tags={ "tags_key": "tags" }, 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" } ) }, 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 ) )
Attributes
- actions
The actions for the experiment.
- description
A description for the experiment template.
- log_configuration
The configuration for experiment logging.
- role_arn
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
- stop_conditions
The stop conditions.
- tags
The tags to apply to the experiment template.
- targets
The targets for the experiment.