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.

DeleteRelationalDatabaseInput

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

type DeleteRelationalDatabaseInput struct { FinalRelationalDatabaseSnapshotName *string `locationName:"finalRelationalDatabaseSnapshotName" type:"string"` RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` SkipFinalSnapshot *bool `locationName:"skipFinalSnapshot" type:"boolean"` }

FinalRelationalDatabaseSnapshotName

Type: *string

The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.

Specifying this parameter and also specifying the skip final snapshot parameter to true results in an error.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.

  • The first and last character must be a letter or number.

RelationalDatabaseName

Type: *string

The name of the database that you are deleting.

RelationalDatabaseName is a required field

SkipFinalSnapshot

Type: *bool

Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted.

You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.

Default: false

Method

GoString

func (s DeleteRelationalDatabaseInput) GoString() string

GoString returns the string representation

SetFinalRelationalDatabaseSnapshotName

func (s *DeleteRelationalDatabaseInput) SetFinalRelationalDatabaseSnapshotName(v string) *DeleteRelationalDatabaseInput

SetFinalRelationalDatabaseSnapshotName sets the FinalRelationalDatabaseSnapshotName field's value.

SetRelationalDatabaseName

func (s *DeleteRelationalDatabaseInput) SetRelationalDatabaseName(v string) *DeleteRelationalDatabaseInput

SetRelationalDatabaseName sets the RelationalDatabaseName field's value.

SetSkipFinalSnapshot

func (s *DeleteRelationalDatabaseInput) SetSkipFinalSnapshot(v bool) *DeleteRelationalDatabaseInput

SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value.

String

func (s DeleteRelationalDatabaseInput) String() string

String returns the string representation

Validate

func (s *DeleteRelationalDatabaseInput) Validate() error

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

On this page: