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.

ModifyDBClusterSnapshotAttributeInput

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

type ModifyDBClusterSnapshotAttributeInput struct { AttributeName *string `type:"string" required:"true"` DBClusterSnapshotIdentifier *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 cluster snapshot attribute to modify.

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

AttributeName is a required field

DBClusterSnapshotIdentifier

Type: *string

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

DBClusterSnapshotIdentifier is a required field

ValuesToAdd

Type: []*string

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

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

ValuesToRemove

Type: []*string

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

To remove authorization for other AWS accounts to copy or restore a manual DB cluster 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 cluster snapshot. If you specify all, an AWS account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.

Method

GoString

func (s ModifyDBClusterSnapshotAttributeInput) GoString() string

GoString returns the string representation

SetAttributeName

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

SetAttributeName sets the AttributeName field's value.

SetDBClusterSnapshotIdentifier

func (s *ModifyDBClusterSnapshotAttributeInput) SetDBClusterSnapshotIdentifier(v string) *ModifyDBClusterSnapshotAttributeInput

SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.

SetValuesToAdd

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

SetValuesToAdd sets the ValuesToAdd field's value.

SetValuesToRemove

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

SetValuesToRemove sets the ValuesToRemove field's value.

String

func (s ModifyDBClusterSnapshotAttributeInput) String() string

String returns the string representation

Validate

func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error

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

On this page: