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.

CompleteMultipartUploadInput

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

type CompleteMultipartUploadInput struct { AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` ArchiveSize *string `location:"header" locationName:"x-amz-archive-size" type:"string"` Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" 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 complete a multipart upload operation. This informs Amazon Glacier that all the archive parts have been uploaded and Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource.

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

ArchiveSize

Type: *string

The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

Checksum

Type: *string

The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

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 CompleteMultipartUploadInput) GoString() string

GoString returns the string representation

SetAccountId

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

SetAccountId sets the AccountId field's value.

SetArchiveSize

func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput

SetArchiveSize sets the ArchiveSize field's value.

SetChecksum

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

SetChecksum sets the Checksum field's value.

SetUploadId

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

SetUploadId sets the UploadId field's value.

SetVaultName

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

SetVaultName sets the VaultName field's value.

String

func (s CompleteMultipartUploadInput) String() string

String returns the string representation

Validate

func (s *CompleteMultipartUploadInput) Validate() error

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

On this page: