Struct aws_sdk_fis::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for AWS Fault Injection Simulator
Client for invoking operations on AWS Fault Injection Simulator. Each operation on AWS Fault Injection Simulator is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_fis::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_fis::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_fis::Client::from_conf(config);
Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
Constructs a fluent builder for the CreateExperimentTemplate
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
description(impl Into<String>)
/set_description(Option<String>)
:A description for the experiment template.
stop_conditions(Vec<CreateExperimentTemplateStopConditionInput>)
/set_stop_conditions(Option<Vec<CreateExperimentTemplateStopConditionInput>>)
:The stop conditions.
targets(HashMap<String, CreateExperimentTemplateTargetInput>)
/set_targets(Option<HashMap<String, CreateExperimentTemplateTargetInput>>)
:The targets for the experiment.
actions(HashMap<String, CreateExperimentTemplateActionInput>)
/set_actions(Option<HashMap<String, CreateExperimentTemplateActionInput>>)
:The actions for the experiment.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to apply to the experiment template.
- On success, responds with
CreateExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<CreateExperimentTemplateError>
Constructs a fluent builder for the DeleteExperimentTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the experiment template.
- On success, responds with
DeleteExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<DeleteExperimentTemplateError>
Constructs a fluent builder for the GetAction
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the action.
- On success, responds with
GetActionOutput
with field(s):action(Option<Action>)
:Information about the action.
- On failure, responds with
SdkError<GetActionError>
Constructs a fluent builder for the GetExperiment
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the experiment.
- On success, responds with
GetExperimentOutput
with field(s):experiment(Option<Experiment>)
:Information about the experiment.
- On failure, responds with
SdkError<GetExperimentError>
Constructs a fluent builder for the GetExperimentTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the experiment template.
- On success, responds with
GetExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<GetExperimentTemplateError>
Constructs a fluent builder for the ListActions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token for the next page of results.
- On success, responds with
ListActionsOutput
with field(s):actions(Option<Vec<ActionSummary>>)
:The actions.
next_token(Option<String>)
:The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
- On failure, responds with
SdkError<ListActionsError>
Constructs a fluent builder for the ListExperiments
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token for the next page of results.
- On success, responds with
ListExperimentsOutput
with field(s):experiments(Option<Vec<ExperimentSummary>>)
:The experiments.
next_token(Option<String>)
:The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
- On failure, responds with
SdkError<ListExperimentsError>
Constructs a fluent builder for the ListExperimentTemplates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token for the next page of results.
- On success, responds with
ListExperimentTemplatesOutput
with field(s):experiment_templates(Option<Vec<ExperimentTemplateSummary>>)
:The experiment templates.
next_token(Option<String>)
:The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
- On failure, responds with
SdkError<ListExperimentTemplatesError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags for the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Constructs a fluent builder for the StartExperiment
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
experiment_template_id(impl Into<String>)
/set_experiment_template_id(Option<String>)
:The ID of the experiment template.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to apply to the experiment.
- On success, responds with
StartExperimentOutput
with field(s):experiment(Option<Experiment>)
:Information about the experiment.
- On failure, responds with
SdkError<StartExperimentError>
Constructs a fluent builder for the StopExperiment
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the experiment.
- On success, responds with
StopExperimentOutput
with field(s):experiment(Option<Experiment>)
:Information about the experiment.
- On failure, responds with
SdkError<StopExperimentError>
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags for the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The tag keys to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateExperimentTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the experiment template.
description(impl Into<String>)
/set_description(Option<String>)
:A description for the template.
stop_conditions(Vec<UpdateExperimentTemplateStopConditionInput>)
/set_stop_conditions(Option<Vec<UpdateExperimentTemplateStopConditionInput>>)
:The stop conditions for the experiment.
targets(HashMap<String, UpdateExperimentTemplateTargetInput>)
/set_targets(Option<HashMap<String, UpdateExperimentTemplateTargetInput>>)
:The targets for the experiment.
actions(HashMap<String, UpdateExperimentTemplateActionInputItem>)
/set_actions(Option<HashMap<String, UpdateExperimentTemplateActionInputItem>>)
:The actions for the experiment.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
- On success, responds with
UpdateExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<UpdateExperimentTemplateError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<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