1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/// Lower and optional upper bounds on a body size.
///
/// Uploads require `lower <= upper` when an upper bound is present. Equal bounds declare an exact
/// size. The transfer manager rejects output above the upper bound as parts are read, then validates
/// the final size after end-of-stream and all previously yielded parts have drained.