Skip to content

Commit

Permalink
s3 tm upload req resp (#3761)
Browse files Browse the repository at this point in the history
## Description
Follow up PR to #3756 that
is one part of an initial multipart upload support.

This PR is simple, it just defines new request and response types for
the upload API. These are nearly identical to what is found in the
`aws_sdk_s3` crate with the exception of the body type that leverages
the new `InputStream` type (naming bikeshed still planned for later) for
the body rather than `ByteStream`.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
aajtodd authored Jul 16, 2024
1 parent b521339 commit 18e5dfd
Show file tree
Hide file tree
Showing 4 changed files with 2,085 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/hll/aws-s3-transfer-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ pub mod download;
pub mod error;

/// Types and helpers for I/O
#[allow(unused)] // FIXME(aws-sdk-rust#1159) - remove when consumed internally by other modules
pub mod io;

/// Abstractions for downloading objects from Amazon S3
pub mod upload;
14 changes: 14 additions & 0 deletions aws/hll/aws-s3-transfer-manager/src/upload.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/

pub use crate::upload::request::UploadRequest;
pub use crate::upload::response::UploadResponse;


/// Request types for uploads to Amazon S3
pub mod request;

/// Response types for uploads to Amazon S3
pub mod response;
Loading

0 comments on commit 18e5dfd

Please sign in to comment.