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.

InitiateMultipartUploadInput

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

type InitiateMultipartUploadInput struct { AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` ArchiveDescription *string `location:"header" locationName:"x-amz-archive-description" type:"string"` PartSize *string `location:"header" locationName:"x-amz-part-size" type:"string"` VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` }

Provides options for initiating a multipart upload to an Amazon Glacier vault.

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

ArchiveDescription

Type: *string

The archive description that you are uploading in parts.

The part size must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).

PartSize

Type: *string

The size of each part except the last, in bytes. The last part can be smaller than this part size.

VaultName

Type: *string

The name of the vault.

VaultName is a required field

Method

GoString

func (s InitiateMultipartUploadInput) GoString() string

GoString returns the string representation

SetAccountId

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

SetAccountId sets the AccountId field's value.

SetArchiveDescription

func (s *InitiateMultipartUploadInput) SetArchiveDescription(v string) *InitiateMultipartUploadInput

SetArchiveDescription sets the ArchiveDescription field's value.

SetPartSize

func (s *InitiateMultipartUploadInput) SetPartSize(v string) *InitiateMultipartUploadInput

SetPartSize sets the PartSize field's value.

SetVaultName

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

SetVaultName sets the VaultName field's value.

String

func (s InitiateMultipartUploadInput) String() string

String returns the string representation

Validate

func (s *InitiateMultipartUploadInput) Validate() error

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

On this page: