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.

AddTagsToVaultInput

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

type AddTagsToVaultInput struct { AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` Tags map[string]*string `type:"map"` VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` }

The input values for AddTagsToVault.

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

Tags

Type: map[string]*string

The tags to add to the vault. Each tag is composed of a key and a value. The value can be an empty string.

VaultName

Type: *string

The name of the vault.

VaultName is a required field

Method

GoString

func (s AddTagsToVaultInput) GoString() string

GoString returns the string representation

SetAccountId

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

SetAccountId sets the AccountId field's value.

SetTags

func (s *AddTagsToVaultInput) SetTags(v map[string]*string) *AddTagsToVaultInput

SetTags sets the Tags field's value.

SetVaultName

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

SetVaultName sets the VaultName field's value.

String

func (s AddTagsToVaultInput) String() string

String returns the string representation

Validate

func (s *AddTagsToVaultInput) Validate() error

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

On this page: