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.

UploadArchiveInput

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

type UploadArchiveInput struct { AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` ArchiveDescription *string `location:"header" locationName:"x-amz-archive-description" type:"string"` Body io.ReadSeeker `locationName:"body" type:"blob"` Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` }

Provides options to add an archive to a 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 optional description of the archive you are uploading.

Body

Type: io.ReadSeeker

The data to upload.

Checksum

Type: *string

The SHA256 tree hash of the data being uploaded.

VaultName

Type: *string

The name of the vault.

VaultName is a required field

Method

GoString

func (s UploadArchiveInput) GoString() string

GoString returns the string representation

SetAccountId

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

SetAccountId sets the AccountId field's value.

SetArchiveDescription

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

SetArchiveDescription sets the ArchiveDescription field's value.

SetBody

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

SetBody sets the Body field's value.

SetChecksum

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

SetChecksum sets the Checksum field's value.

SetVaultName

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

SetVaultName sets the VaultName field's value.

String

func (s UploadArchiveInput) String() string

String returns the string representation

Validate

func (s *UploadArchiveInput) Validate() error

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

On this page: