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.

ModifyDBSnapshotAttributeInput

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

type ModifyDBSnapshotAttributeInput struct { AttributeName *string `type:"string" required:"true"` DBSnapshotIdentifier *string `type:"string" required:"true"` ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"` ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"` }

AttributeName

Type: *string

The name of the DB snapshot attribute to modify.

To manage authorization for other AWS accounts to copy or restore a manual DB snapshot, set this value to restore.

AttributeName is a required field

DBSnapshotIdentifier

Type: *string

The identifier for the DB snapshot to modify the attributes for.

DBSnapshotIdentifier is a required field

ValuesToAdd

Type: []*string

A list of DB snapshot attributes to add to the attribute specified by AttributeName.

To authorize other AWS accounts to copy or restore a manual snapshot, set this list to include one or more AWS account IDs, or all to make the manual DB snapshot restorable by any AWS account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all AWS accounts.

ValuesToRemove

Type: []*string

A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

To remove authorization for other AWS accounts to copy or restore a manual snapshot, set this list to include one or more AWS account identifiers, or all to remove authorization for any AWS account to copy or restore the DB snapshot. If you specify all, an AWS account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

Method

GoString

func (s ModifyDBSnapshotAttributeInput) GoString() string

GoString returns the string representation

SetAttributeName

func (s *ModifyDBSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBSnapshotAttributeInput

SetAttributeName sets the AttributeName field's value.

SetDBSnapshotIdentifier

func (s *ModifyDBSnapshotAttributeInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotAttributeInput

SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.

SetValuesToAdd

func (s *ModifyDBSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBSnapshotAttributeInput

SetValuesToAdd sets the ValuesToAdd field's value.

SetValuesToRemove

func (s *ModifyDBSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBSnapshotAttributeInput

SetValuesToRemove sets the ValuesToRemove field's value.

String

func (s ModifyDBSnapshotAttributeInput) String() string

String returns the string representation

Validate

func (s *ModifyDBSnapshotAttributeInput) Validate() error

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

On this page: