Struct aws_sdk_dlm::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for Amazon Data Lifecycle Manager
Client for invoking operations on Amazon Data Lifecycle Manager. Each operation on Amazon Data Lifecycle Manager 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_dlm::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_dlm::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_dlm::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 CreateLifecyclePolicy
operation.
- The fluent builder is configurable:
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
state(SettablePolicyStateValues)
/set_state(Option<SettablePolicyStateValues>)
:The desired activation state of the lifecycle policy after creation.
policy_details(PolicyDetails)
/set_policy_details(Option<PolicyDetails>)
:The configuration details of the lifecycle policy.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to apply to the lifecycle policy during creation.
- On success, responds with
CreateLifecyclePolicyOutput
with field(s):policy_id(Option<String>)
:The identifier of the lifecycle policy.
- On failure, responds with
SdkError<CreateLifecyclePolicyError>
Constructs a fluent builder for the DeleteLifecyclePolicy
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The identifier of the lifecycle policy.
- On success, responds with
DeleteLifecyclePolicyOutput
- On failure, responds with
SdkError<DeleteLifecyclePolicyError>
Constructs a fluent builder for the GetLifecyclePolicies
operation.
- The fluent builder is configurable:
policy_ids(Vec<String>)
/set_policy_ids(Option<Vec<String>>)
:The identifiers of the data lifecycle policies.
state(GettablePolicyStateValues)
/set_state(Option<GettablePolicyStateValues>)
:The activation state.
resource_types(Vec<ResourceTypeValues>)
/set_resource_types(Option<Vec<ResourceTypeValues>>)
:The resource type.
target_tags(Vec<String>)
/set_target_tags(Option<Vec<String>>)
:The target tag for a policy.
Tags are strings in the format
key=value
.tags_to_add(Vec<String>)
/set_tags_to_add(Option<Vec<String>>)
:The tags to add to objects created by the policy.
Tags are strings in the format
key=value
.These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
- On success, responds with
GetLifecyclePoliciesOutput
with field(s):policies(Option<Vec<LifecyclePolicySummary>>)
:Summary information about the lifecycle policies.
- On failure, responds with
SdkError<GetLifecyclePoliciesError>
Constructs a fluent builder for the GetLifecyclePolicy
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The identifier of the lifecycle policy.
- On success, responds with
GetLifecyclePolicyOutput
with field(s):policy(Option<LifecyclePolicy>)
:Detailed information about the lifecycle policy.
- On failure, responds with
SdkError<GetLifecyclePolicyError>
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>>)
:Information about the tags.
- On failure, responds with
SdkError<ListTagsForResourceError>
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>>)
:One or more tags.
- 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.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateLifecyclePolicy
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The identifier of the lifecycle policy.
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
state(SettablePolicyStateValues)
/set_state(Option<SettablePolicyStateValues>)
:The desired activation state of the lifecycle policy after creation.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the lifecycle policy.
policy_details(PolicyDetails)
/set_policy_details(Option<PolicyDetails>)
:The configuration of the lifecycle policy. You cannot update the policy type or the resource type.
- On success, responds with
UpdateLifecyclePolicyOutput
- On failure, responds with
SdkError<UpdateLifecyclePolicyError>
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