Struct: s3.UploadPartInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Body io.ReadSeeker
Object data.
-
Bucket *string
The name of the bucket to which the multipart upload was initiated.
-
ContentLength *int64
Size of the body in bytes.
-
ContentMD5 *string
The base64-encoded 128-bit MD5 digest of the part data.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
Object key for which the multipart upload was initiated.
-
PartNumber *int64
Part number of part being uploaded.
-
RequestPayer *string
Confirms that the requester knows that they will be charged for the request.
-
SSECustomerAlgorithm *string
Specifies the algorithm to use to when encrypting the object (for example, AES256).
-
SSECustomerKey *string
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.
-
SSECustomerKeyMD5 *string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
-
UploadId *string
Upload ID identifying the multipart upload whose part is being uploaded.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBody(io.ReadSeeker) *UploadPartInput
operation
SetBody sets the Body field's value.
-
SetBucket(string) *UploadPartInput
operation
SetBucket sets the Bucket field's value.
-
SetContentLength(int64) *UploadPartInput
operation
SetContentLength sets the ContentLength field's value.
-
SetContentMD5(string) *UploadPartInput
operation
SetContentMD5 sets the ContentMD5 field's value.
-
SetExpectedBucketOwner(string) *UploadPartInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetKey(string) *UploadPartInput
operation
SetKey sets the Key field's value.
-
SetPartNumber(int64) *UploadPartInput
operation
SetPartNumber sets the PartNumber field's value.
-
SetRequestPayer(string) *UploadPartInput
operation
SetRequestPayer sets the RequestPayer field's value.
-
SetSSECustomerAlgorithm(string) *UploadPartInput
operation
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
-
SetSSECustomerKey(string) *UploadPartInput
operation
SetSSECustomerKey sets the SSECustomerKey field's value.
-
SetSSECustomerKeyMD5(string) *UploadPartInput
operation
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
-
SetUploadId(string) *UploadPartInput
operation
SetUploadId sets the UploadId field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
Body io.ReadSeeker
`type:"blob"`
Object data.
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The name of the bucket to which the multipart upload was initiated.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.
When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? (docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the Amazon S3 User Guide.
Bucket is a required field
ContentLength *int64
`location:"header" locationName:"Content-Length" type:"long"`
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.
ContentMD5 *string
`location:"header" locationName:"Content-MD5" type:"string"`
The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
Key *string
`location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
Object key for which the multipart upload was initiated.
Key is a required field
PartNumber *int64
`location:"querystring" locationName:"partNumber" type:"integer" required:"true"`
Part number of part being uploaded. This is a positive integer between 1 and 10,000.
PartNumber is a required field
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination Amazon S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets (docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 User Guide.
SSECustomerAlgorithm *string
`location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
Specifies the algorithm to use to when encrypting the object (for example, AES256).
SSECustomerKey *string
`marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.
SSECustomerKey is a sensitive parameter and its value will be replaced with “sensitive” in string returned by UploadPartInput's String and GoString methods.
SSECustomerKeyMD5 *string
`location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
UploadId *string
`location:"querystring" locationName:"uploadId" type:"string" required:"true"`
Upload ID identifying the multipart upload whose part is being uploaded.
UploadId is a required field
_ struct{}
`locationName:"UploadPartRequest" type:"structure" payload:"Body"`
Method Details
func (s UploadPartInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
22568 22569 22570 |
// File 'service/s3/api.go', line 22568
|
func (s *UploadPartInput) SetBody(v io.ReadSeeker) *UploadPartInput
SetBody sets the Body field's value.
22601 22602 22603 22604 |
// File 'service/s3/api.go', line 22601
|
func (s *UploadPartInput) SetBucket(v string) *UploadPartInput
SetBucket sets the Bucket field's value.
22607 22608 22609 22610 |
// File 'service/s3/api.go', line 22607
|
func (s *UploadPartInput) SetContentLength(v int64) *UploadPartInput
SetContentLength sets the ContentLength field's value.
22620 22621 22622 22623 |
// File 'service/s3/api.go', line 22620
|
func (s *UploadPartInput) SetContentMD5(v string) *UploadPartInput
SetContentMD5 sets the ContentMD5 field's value.
22626 22627 22628 22629 |
// File 'service/s3/api.go', line 22626
|
func (s *UploadPartInput) SetExpectedBucketOwner(v string) *UploadPartInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
22632 22633 22634 22635 |
// File 'service/s3/api.go', line 22632
|
func (s *UploadPartInput) SetKey(v string) *UploadPartInput
SetKey sets the Key field's value.
22638 22639 22640 22641 |
// File 'service/s3/api.go', line 22638
|
func (s *UploadPartInput) SetPartNumber(v int64) *UploadPartInput
SetPartNumber sets the PartNumber field's value.
22644 22645 22646 22647 |
// File 'service/s3/api.go', line 22644
|
func (s *UploadPartInput) SetRequestPayer(v string) *UploadPartInput
SetRequestPayer sets the RequestPayer field's value.
22650 22651 22652 22653 |
// File 'service/s3/api.go', line 22650
|
func (s *UploadPartInput) SetSSECustomerAlgorithm(v string) *UploadPartInput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
22656 22657 22658 22659 |
// File 'service/s3/api.go', line 22656
|
func (s *UploadPartInput) SetSSECustomerKey(v string) *UploadPartInput
SetSSECustomerKey sets the SSECustomerKey field's value.
22662 22663 22664 22665 |
// File 'service/s3/api.go', line 22662
|
func (s *UploadPartInput) SetSSECustomerKeyMD5(v string) *UploadPartInput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
22675 22676 22677 22678 |
// File 'service/s3/api.go', line 22675
|
func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput
SetUploadId sets the UploadId field's value.
22681 22682 22683 22684 |
// File 'service/s3/api.go', line 22681
|
func (s UploadPartInput) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
22559 22560 22561 |
// File 'service/s3/api.go', line 22559
|
func (s *UploadPartInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 |
// File 'service/s3/api.go', line 22573
|