Struct aws_sdk_backupstorage::client::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Backup Storage
Client for invoking operations on AWS Backup Storage. Each operation on AWS Backup Storage 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_backupstorage::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_backupstorage::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_backupstorage::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 delete_object(&self) -> DeleteObject
pub fn delete_object(&self) -> DeleteObject
Constructs a fluent builder for the DeleteObject
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
: Backup job Id for the in-progress backup.object_name(impl Into<String>)
/set_object_name(Option<String>)
: The name of the Object.
- On success, responds with
DeleteObjectOutput
- On failure, responds with
SdkError<DeleteObjectError>
sourcepub fn get_chunk(&self) -> GetChunk
pub fn get_chunk(&self) -> GetChunk
Constructs a fluent builder for the GetChunk
operation.
- The fluent builder is configurable:
storage_job_id(impl Into<String>)
/set_storage_job_id(Option<String>)
: Storage job idchunk_token(impl Into<String>)
/set_chunk_token(Option<String>)
: Chunk token
- On success, responds with
GetChunkOutput
with field(s):data(ByteStream)
: Chunk datalength(i64)
: Data lengthchecksum(Option<String>)
: Data checksumchecksum_algorithm(Option<DataChecksumAlgorithm>)
: Checksum algorithm
- On failure, responds with
SdkError<GetChunkError>
sourcepub fn get_object_metadata(&self) -> GetObjectMetadata
pub fn get_object_metadata(&self) -> GetObjectMetadata
Constructs a fluent builder for the GetObjectMetadata
operation.
- The fluent builder is configurable:
storage_job_id(impl Into<String>)
/set_storage_job_id(Option<String>)
: Backup job id for the in-progress backup.object_token(impl Into<String>)
/set_object_token(Option<String>)
: Object token.
- On success, responds with
GetObjectMetadataOutput
with field(s):metadata_string(Option<String>)
: Metadata string.metadata_blob(ByteStream)
: Metadata blob.metadata_blob_length(i64)
: The size of MetadataBlob.metadata_blob_checksum(Option<String>)
: MetadataBlob checksum.metadata_blob_checksum_algorithm(Option<DataChecksumAlgorithm>)
: Checksum algorithm.
- On failure, responds with
SdkError<GetObjectMetadataError>
sourcepub fn list_chunks(&self) -> ListChunks
pub fn list_chunks(&self) -> ListChunks
Constructs a fluent builder for the ListChunks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
storage_job_id(impl Into<String>)
/set_storage_job_id(Option<String>)
: Storage job idobject_token(impl Into<String>)
/set_object_token(Option<String>)
: Object tokenmax_results(i32)
/set_max_results(i32)
: Maximum number of chunksnext_token(impl Into<String>)
/set_next_token(Option<String>)
: Pagination token
- On success, responds with
ListChunksOutput
with field(s):chunk_list(Option<Vec<Chunk>>)
: List of chunksnext_token(Option<String>)
: Pagination token
- On failure, responds with
SdkError<ListChunksError>
sourcepub fn list_objects(&self) -> ListObjects
pub fn list_objects(&self) -> ListObjects
Constructs a fluent builder for the ListObjects
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
storage_job_id(impl Into<String>)
/set_storage_job_id(Option<String>)
: Storage job idstarting_object_name(impl Into<String>)
/set_starting_object_name(Option<String>)
: Optional, specifies the starting Object name to list from. Ignored if NextToken is not NULLstarting_object_prefix(impl Into<String>)
/set_starting_object_prefix(Option<String>)
: Optional, specifies the starting Object prefix to list from. Ignored if NextToken is not NULLmax_results(i32)
/set_max_results(i32)
: Maximum objects countnext_token(impl Into<String>)
/set_next_token(Option<String>)
: Pagination tokencreated_before(DateTime)
/set_created_before(Option<DateTime>)
: (Optional) Created before filtercreated_after(DateTime)
/set_created_after(Option<DateTime>)
: (Optional) Created after filter
- On success, responds with
ListObjectsOutput
with field(s):object_list(Option<Vec<BackupObject>>)
: Object listnext_token(Option<String>)
: Pagination token
- On failure, responds with
SdkError<ListObjectsError>
sourcepub fn notify_object_complete(&self) -> NotifyObjectComplete
pub fn notify_object_complete(&self) -> NotifyObjectComplete
Constructs a fluent builder for the NotifyObjectComplete
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
: Backup job Id for the in-progress backupupload_id(impl Into<String>)
/set_upload_id(Option<String>)
: Upload Id for the in-progress uploadobject_checksum(impl Into<String>)
/set_object_checksum(Option<String>)
: Object checksumobject_checksum_algorithm(SummaryChecksumAlgorithm)
/set_object_checksum_algorithm(Option<SummaryChecksumAlgorithm>)
: Checksum algorithmmetadata_string(impl Into<String>)
/set_metadata_string(Option<String>)
: Optional metadata associated with an Object. Maximum string length is 256 bytes.metadata_blob(ByteStream)
/set_metadata_blob(ByteStream)
: Optional metadata associated with an Object. Maximum length is 4MB.metadata_blob_length(i64)
/set_metadata_blob_length(i64)
: The size of MetadataBlob.metadata_blob_checksum(impl Into<String>)
/set_metadata_blob_checksum(Option<String>)
: Checksum of MetadataBlob.metadata_blob_checksum_algorithm(DataChecksumAlgorithm)
/set_metadata_blob_checksum_algorithm(Option<DataChecksumAlgorithm>)
: Checksum algorithm.
- On success, responds with
NotifyObjectCompleteOutput
with field(s):object_checksum(Option<String>)
: Object checksumobject_checksum_algorithm(Option<SummaryChecksumAlgorithm>)
: Checksum algorithm
- On failure, responds with
SdkError<NotifyObjectCompleteError>
sourcepub fn put_chunk(&self) -> PutChunk
pub fn put_chunk(&self) -> PutChunk
Constructs a fluent builder for the PutChunk
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
: Backup job Id for the in-progress backup.upload_id(impl Into<String>)
/set_upload_id(Option<String>)
: Upload Id for the in-progress upload.chunk_index(i64)
/set_chunk_index(i64)
: Describes this chunk’s position relative to the other chunksdata(ByteStream)
/set_data(ByteStream)
: Data to be uploadedlength(i64)
/set_length(i64)
: Data lengthchecksum(impl Into<String>)
/set_checksum(Option<String>)
: Data checksumchecksum_algorithm(DataChecksumAlgorithm)
/set_checksum_algorithm(Option<DataChecksumAlgorithm>)
: Checksum algorithm
- On success, responds with
PutChunkOutput
with field(s):chunk_checksum(Option<String>)
: Chunk checksumchunk_checksum_algorithm(Option<DataChecksumAlgorithm>)
: Checksum algorithm
- On failure, responds with
SdkError<PutChunkError>
sourcepub fn put_object(&self) -> PutObject
pub fn put_object(&self) -> PutObject
Constructs a fluent builder for the PutObject
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
: Backup job Id for the in-progress backup.object_name(impl Into<String>)
/set_object_name(Option<String>)
: The name of the Object to be uploaded.metadata_string(impl Into<String>)
/set_metadata_string(Option<String>)
: Store user defined metadata like backup checksum, disk ids, restore metadata etc.inline_chunk(ByteStream)
/set_inline_chunk(ByteStream)
: Inline chunk data to be uploaded.inline_chunk_length(i64)
/set_inline_chunk_length(i64)
: Length of the inline chunk data.inline_chunk_checksum(impl Into<String>)
/set_inline_chunk_checksum(Option<String>)
: Inline chunk checksuminline_chunk_checksum_algorithm(impl Into<String>)
/set_inline_chunk_checksum_algorithm(Option<String>)
: Inline chunk checksum algorithmobject_checksum(impl Into<String>)
/set_object_checksum(Option<String>)
: object checksumobject_checksum_algorithm(SummaryChecksumAlgorithm)
/set_object_checksum_algorithm(Option<SummaryChecksumAlgorithm>)
: object checksum algorithmthrow_on_duplicate(bool)
/set_throw_on_duplicate(bool)
: Throw an exception if Object name is already exist.
- On success, responds with
PutObjectOutput
with field(s):inline_chunk_checksum(Option<String>)
: Inline chunk checksuminline_chunk_checksum_algorithm(Option<DataChecksumAlgorithm>)
: Inline chunk checksum algorithmobject_checksum(Option<String>)
: object checksumobject_checksum_algorithm(Option<SummaryChecksumAlgorithm>)
: object checksum algorithm
- On failure, responds with
SdkError<PutObjectError>
sourcepub fn start_object(&self) -> StartObject
pub fn start_object(&self) -> StartObject
Constructs a fluent builder for the StartObject
operation.
- The fluent builder is configurable:
backup_job_id(impl Into<String>)
/set_backup_job_id(Option<String>)
: Backup job Id for the in-progress backupobject_name(impl Into<String>)
/set_object_name(Option<String>)
: Name for the object.throw_on_duplicate(bool)
/set_throw_on_duplicate(bool)
: Throw an exception if Object name is already exist.
- On success, responds with
StartObjectOutput
with field(s):upload_id(Option<String>)
: Upload Id for a given upload.
- On failure, responds with
SdkError<StartObjectError>
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> 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