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.

CreateDBSnapshotInput

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

type CreateDBSnapshotInput struct { DBInstanceIdentifier *string `type:"string" required:"true"` DBSnapshotIdentifier *string `type:"string" required:"true"` Tags []*Tag `locationNameList:"Tag" type:"list"` }

DBInstanceIdentifier

Type: *string

The identifier of the DB instance that you want to create the snapshot of.

Constraints:

  • Must match the identifier of an existing DBInstance.

DBInstanceIdentifier is a required field

DBSnapshotIdentifier

Type: *string

The identifier for the DB snapshot.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

DBSnapshotIdentifier is a required field

Tags

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

Method

GoString

func (s CreateDBSnapshotInput) GoString() string

GoString returns the string representation

SetDBInstanceIdentifier

func (s *CreateDBSnapshotInput) SetDBInstanceIdentifier(v string) *CreateDBSnapshotInput

SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.

SetDBSnapshotIdentifier

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

SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.

SetTags

func (s *CreateDBSnapshotInput) SetTags(v []*Tag) *CreateDBSnapshotInput

SetTags sets the Tags field's value.

String

func (s CreateDBSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateDBSnapshotInput) Validate() error

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

On this page: