AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

UploadMultipartPartInput

import "github.com/aws/aws-sdk-go/service/glacier"

type UploadMultipartPartInput struct { AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` Body io.ReadSeeker `locationName:"body" type:"blob"` Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` Range *string `location:"header" locationName:"Content-Range" type:"string"` UploadId *string `location:"uri" locationName:"uploadId" type:"string" required:"true"` VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` }

Provides options to upload a part of an archive in a multipart upload operation.

AccountId

Type: *string

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

AccountId is a required field

Body

Type: io.ReadSeeker

The data to upload.

Checksum

Type: *string

The SHA256 tree hash of the data being uploaded.

Range

Type: *string

Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

UploadId

Type: *string

The upload ID of the multipart upload.

UploadId is a required field

VaultName

Type: *string

The name of the vault.

VaultName is a required field

Method

GoString

func (s UploadMultipartPartInput) GoString() string

GoString returns the string representation

SetAccountId

func (s *UploadMultipartPartInput) SetAccountId(v string) *UploadMultipartPartInput

SetAccountId sets the AccountId field's value.

SetBody

func (s *UploadMultipartPartInput) SetBody(v io.ReadSeeker) *UploadMultipartPartInput

SetBody sets the Body field's value.

SetChecksum

func (s *UploadMultipartPartInput) SetChecksum(v string) *UploadMultipartPartInput

SetChecksum sets the Checksum field's value.

SetRange

func (s *UploadMultipartPartInput) SetRange(v string) *UploadMultipartPartInput

SetRange sets the Range field's value.

SetUploadId

func (s *UploadMultipartPartInput) SetUploadId(v string) *UploadMultipartPartInput

SetUploadId sets the UploadId field's value.

SetVaultName

func (s *UploadMultipartPartInput) SetVaultName(v string) *UploadMultipartPartInput

SetVaultName sets the VaultName field's value.

String

func (s UploadMultipartPartInput) String() string

String returns the string representation

Validate

func (s *UploadMultipartPartInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: