Struct aws_sdk_fis::client::fluent_builders::CreateExperimentTemplate [−][src]
pub struct CreateExperimentTemplate<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateExperimentTemplate
.
Creates an experiment template.
To create a template, specify the following information:
-
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 the AWS Fault Injection Simulator User Guide.
Implementations
impl<C, M, R> CreateExperimentTemplate<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateExperimentTemplate<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateExperimentTemplateOutput, SdkError<CreateExperimentTemplateError>> where
R::Policy: SmithyRetryPolicy<CreateExperimentTemplateInputOperationOutputAlias, CreateExperimentTemplateOutput, CreateExperimentTemplateError, CreateExperimentTemplateInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateExperimentTemplateOutput, SdkError<CreateExperimentTemplateError>> where
R::Policy: SmithyRetryPolicy<CreateExperimentTemplateInputOperationOutputAlias, CreateExperimentTemplateOutput, CreateExperimentTemplateError, CreateExperimentTemplateInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
A description for the experiment template. Can contain up to 64 letters (A-Z and a-z).
A description for the experiment template. Can contain up to 64 letters (A-Z and a-z).
Appends an item to stopConditions
.
To override the contents of this collection use set_stop_conditions
.
The stop conditions.
pub fn set_stop_conditions(
self,
input: Option<Vec<CreateExperimentTemplateStopConditionInput>>
) -> Self
pub fn set_stop_conditions(
self,
input: Option<Vec<CreateExperimentTemplateStopConditionInput>>
) -> Self
The stop conditions.
Adds a key-value pair to targets
.
To override the contents of this collection use set_targets
.
The targets for the experiment.
pub fn set_targets(
self,
input: Option<HashMap<String, CreateExperimentTemplateTargetInput>>
) -> Self
pub fn set_targets(
self,
input: Option<HashMap<String, CreateExperimentTemplateTargetInput>>
) -> Self
The targets for the experiment.
Adds a key-value pair to actions
.
To override the contents of this collection use set_actions
.
The actions for the experiment.
pub fn set_actions(
self,
input: Option<HashMap<String, CreateExperimentTemplateActionInput>>
) -> Self
pub fn set_actions(
self,
input: Option<HashMap<String, CreateExperimentTemplateActionInput>>
) -> Self
The actions for the experiment.
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags to apply to the experiment template.
The tags to apply to the experiment template.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateExperimentTemplate<C, M, R>
impl<C, M, R> Send for CreateExperimentTemplate<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateExperimentTemplate<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateExperimentTemplate<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateExperimentTemplate<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more