Struct aws_sdk_dlm::client::Client
source · [−]pub struct Client { /* 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
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_lifecycle_policy(&self) -> CreateLifecyclePolicy
pub fn create_lifecycle_policy(&self) -> CreateLifecyclePolicy
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>
sourcepub fn delete_lifecycle_policy(&self) -> DeleteLifecyclePolicy
pub fn delete_lifecycle_policy(&self) -> DeleteLifecyclePolicy
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>
sourcepub fn get_lifecycle_policies(&self) -> GetLifecyclePolicies
pub fn get_lifecycle_policies(&self) -> GetLifecyclePolicies
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>
sourcepub fn get_lifecycle_policy(&self) -> GetLifecyclePolicy
pub fn get_lifecycle_policy(&self) -> GetLifecyclePolicy
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>
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>>)
:One or more tags.
- 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.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_lifecycle_policy(&self) -> UpdateLifecyclePolicy
pub fn update_lifecycle_policy(&self) -> UpdateLifecyclePolicy
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>
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
Converts to this type from the input type.
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