@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.366Z") @Stability(value=Stable) public class CfnExperimentTemplate extends CfnResource implements IInspectable
Specifies an experiment template.
An experiment template includes the following components:
For more information, see Experiment templates in the AWS Fault Injection Simulator 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.services.fis.*;
Object cloudWatchLogsConfiguration;
Object s3Configuration;
CfnExperimentTemplate cfnExperimentTemplate = CfnExperimentTemplate.Builder.create(this, "MyCfnExperimentTemplate")
.description("description")
.roleArn("roleArn")
.stopConditions(List.of(ExperimentTemplateStopConditionProperty.builder()
.source("source")
// the properties below are optional
.value("value")
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.targets(Map.of(
"targetsKey", ExperimentTemplateTargetProperty.builder()
.resourceType("resourceType")
.selectionMode("selectionMode")
// the properties below are optional
.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"))
.build()))
// the properties below are optional
.actions(Map.of(
"actionsKey", ExperimentTemplateActionProperty.builder()
.actionId("actionId")
// the properties below are optional
.description("description")
.parameters(Map.of(
"parametersKey", "parameters"))
.startAfter(List.of("startAfter"))
.targets(Map.of(
"targetsKey", "targets"))
.build()))
.logConfiguration(ExperimentTemplateLogConfigurationProperty.builder()
.logSchemaVersion(123)
// the properties below are optional
.cloudWatchLogsConfiguration(cloudWatchLogsConfiguration)
.s3Configuration(s3Configuration)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnExperimentTemplate.Builder
A fluent builder for
CfnExperimentTemplate. |
static interface |
CfnExperimentTemplate.ExperimentTemplateActionProperty
Specifies an action for an experiment template.
|
static interface |
CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty
Specifies the configuration for experiment logging.
|
static interface |
CfnExperimentTemplate.ExperimentTemplateStopConditionProperty
Specifies a stop condition for an experiment template.
|
static interface |
CfnExperimentTemplate.ExperimentTemplateTargetFilterProperty
Specifies a filter used for the target resource input in an experiment template.
|
static interface |
CfnExperimentTemplate.ExperimentTemplateTargetProperty
Specifies a target for an experiment.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnExperimentTemplate(software.constructs.Construct scope,
String id,
CfnExperimentTemplateProps props)
Create a new `AWS::FIS::ExperimentTemplate`.
|
protected |
CfnExperimentTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnExperimentTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActions()
The actions for the experiment.
|
String |
getAttrId()
The ID of the experiment template.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the experiment template.
|
Object |
getLogConfiguration()
The configuration for experiment logging.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
|
Object |
getStopConditions()
The stop conditions.
|
TagManager |
getTags()
The tags to apply to the experiment template.
|
Object |
getTargets()
The targets for the experiment.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActions(IResolvable value)
The actions for the experiment.
|
void |
setActions(Map<String,Object> value)
The actions for the experiment.
|
void |
setDescription(String value)
A description for the experiment template.
|
void |
setLogConfiguration(CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty value)
The configuration for experiment logging.
|
void |
setLogConfiguration(IResolvable value)
The configuration for experiment logging.
|
void |
setRoleArn(String value)
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
|
void |
setStopConditions(IResolvable value)
The stop conditions.
|
void |
setStopConditions(List<Object> value)
The stop conditions.
|
void |
setTargets(IResolvable value)
The targets for the experiment.
|
void |
setTargets(Map<String,Object> value)
The targets for the experiment.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnExperimentTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnExperimentTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnExperimentTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnExperimentTemplateProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getDescription()
@Stability(value=Stable)
public void setDescription(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getRoleArn()
@Stability(value=Stable)
public void setRoleArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getStopConditions()
@Stability(value=Stable)
public void setStopConditions(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setStopConditions(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public Object getTargets()
@Stability(value=Stable)
public void setTargets(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setTargets(@NotNull
Map<String,Object> value)
@Stability(value=Stable) @Nullable public Object getActions()
@Stability(value=Stable)
public void setActions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setActions(@Nullable
Map<String,Object> value)
@Stability(value=Stable) @Nullable public Object getLogConfiguration()
@Stability(value=Stable)
public void setLogConfiguration(@Nullable
CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty value)
@Stability(value=Stable)
public void setLogConfiguration(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.