Struct aws_sdk_fis::Client
source · [−]pub struct Client { /* 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
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_experiment_template(&self) -> CreateExperimentTemplate
pub fn create_experiment_template(&self) -> CreateExperimentTemplate
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.
log_configuration(CreateExperimentTemplateLogConfigurationInput)
/set_log_configuration(Option<CreateExperimentTemplateLogConfigurationInput>)
:The configuration for experiment logging.
- On success, responds with
CreateExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<CreateExperimentTemplateError>
sourcepub fn delete_experiment_template(&self) -> DeleteExperimentTemplate
pub fn delete_experiment_template(&self) -> DeleteExperimentTemplate
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>
sourcepub fn get_action(&self) -> GetAction
pub fn get_action(&self) -> GetAction
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>
sourcepub fn get_experiment(&self) -> GetExperiment
pub fn get_experiment(&self) -> GetExperiment
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>
sourcepub fn get_experiment_template(&self) -> GetExperimentTemplate
pub fn get_experiment_template(&self) -> GetExperimentTemplate
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>
sourcepub fn get_target_resource_type(&self) -> GetTargetResourceType
pub fn get_target_resource_type(&self) -> GetTargetResourceType
Constructs a fluent builder for the GetTargetResourceType
operation.
- The fluent builder is configurable:
resource_type(impl Into<String>)
/set_resource_type(Option<String>)
:The resource type.
- On success, responds with
GetTargetResourceTypeOutput
with field(s):target_resource_type(Option<TargetResourceType>)
:Information about the resource type.
- On failure, responds with
SdkError<GetTargetResourceTypeError>
sourcepub fn list_actions(&self) -> ListActions
pub fn list_actions(&self) -> ListActions
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>
sourcepub fn list_experiments(&self) -> ListExperiments
pub fn list_experiments(&self) -> ListExperiments
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>
sourcepub fn list_experiment_templates(&self) -> ListExperimentTemplates
pub fn list_experiment_templates(&self) -> ListExperimentTemplates
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>
sourcepub fn list_target_resource_types(&self) -> ListTargetResourceTypes
pub fn list_target_resource_types(&self) -> ListTargetResourceTypes
Constructs a fluent builder for the ListTargetResourceTypes
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
ListTargetResourceTypesOutput
with field(s):target_resource_types(Option<Vec<TargetResourceTypeSummary>>)
:The target resource types.
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<ListTargetResourceTypesError>
sourcepub fn start_experiment(&self) -> StartExperiment
pub fn start_experiment(&self) -> StartExperiment
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>
sourcepub fn stop_experiment(&self) -> StopExperiment
pub fn stop_experiment(&self) -> StopExperiment
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>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
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>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
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>
sourcepub fn update_experiment_template(&self) -> UpdateExperimentTemplate
pub fn update_experiment_template(&self) -> UpdateExperimentTemplate
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.
log_configuration(UpdateExperimentTemplateLogConfigurationInput)
/set_log_configuration(Option<UpdateExperimentTemplateLogConfigurationInput>)
:The configuration for experiment logging.
- On success, responds with
UpdateExperimentTemplateOutput
with field(s):experiment_template(Option<ExperimentTemplate>)
:Information about the experiment template.
- On failure, responds with
SdkError<UpdateExperimentTemplateError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more