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.

CreateBackupVaultInput

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

type CreateBackupVaultInput struct { BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` BackupVaultTags map[string]*string `type:"map" sensitive:"true"` CreatorRequestId *string `type:"string"` EncryptionKeyArn *string `type:"string"` }

BackupVaultName

Type: *string

The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.

BackupVaultName is a required field

BackupVaultTags

Type: map[string]*string

Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair.

CreatorRequestId

Type: *string

A unique string that identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

EncryptionKeyArn

Type: *string

The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

Method

GoString

func (s CreateBackupVaultInput) GoString() string

GoString returns the string representation

SetBackupVaultName

func (s *CreateBackupVaultInput) SetBackupVaultName(v string) *CreateBackupVaultInput

SetBackupVaultName sets the BackupVaultName field's value.

SetBackupVaultTags

func (s *CreateBackupVaultInput) SetBackupVaultTags(v map[string]*string) *CreateBackupVaultInput

SetBackupVaultTags sets the BackupVaultTags field's value.

SetCreatorRequestId

func (s *CreateBackupVaultInput) SetCreatorRequestId(v string) *CreateBackupVaultInput

SetCreatorRequestId sets the CreatorRequestId field's value.

SetEncryptionKeyArn

func (s *CreateBackupVaultInput) SetEncryptionKeyArn(v string) *CreateBackupVaultInput

SetEncryptionKeyArn sets the EncryptionKeyArn field's value.

String

func (s CreateBackupVaultInput) String() string

String returns the string representation

Validate

func (s *CreateBackupVaultInput) Validate() error

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

On this page: