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.

CreateRelationalDatabaseFromSnapshotInput

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

type CreateRelationalDatabaseFromSnapshotInput struct { AvailabilityZone *string `locationName:"availabilityZone" type:"string"` PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` RelationalDatabaseBundleId *string `locationName:"relationalDatabaseBundleId" type:"string"` RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string"` RestoreTime *time.Time `locationName:"restoreTime" type:"timestamp"` SourceRelationalDatabaseName *string `locationName:"sourceRelationalDatabaseName" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` UseLatestRestorableTime *bool `locationName:"useLatestRestorableTime" type:"boolean"` }

AvailabilityZone

Type: *string

The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

You can get a list of Availability Zones by using the get regions operation. Be sure to add the include relational database Availability Zones parameter to your request.

PubliclyAccessible

Type: *bool

Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

RelationalDatabaseBundleId

Type: *string

The bundle ID for your new database. A bundle describes the performance specifications for your database.

You can get a list of database bundle IDs by using the get relational database bundles operation.

When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.

RelationalDatabaseName

Type: *string

The name to use for your new database.

Constraints:

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

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

RelationalDatabaseName is a required field

RelationalDatabaseSnapshotName

Type: *string

The name of the database snapshot from which to create your new database.

RestoreTime

Type: *time.Time

The date and time to restore your database from.

Constraints:

  • Must be before the latest restorable time for the database.

  • Cannot be specified if the use latest restorable time parameter is true.

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

For example, if you wish to use a restore time of October 1, 2018, at 8 PM

UTC, then you input 1538424000 as the restore time.
SourceRelationalDatabaseName

Type: *string

The name of the source database.

Tags

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags).

UseLatestRestorableTime

Type: *bool

Specifies whether your database is restored from the latest backup time. A value of true restores from the latest backup time.

Default: false

Constraints: Cannot be specified if the restore time parameter is provided.

Method

GoString

func (s CreateRelationalDatabaseFromSnapshotInput) GoString() string

GoString returns the string representation

SetAvailabilityZone

func (s *CreateRelationalDatabaseFromSnapshotInput) SetAvailabilityZone(v string) *CreateRelationalDatabaseFromSnapshotInput

SetAvailabilityZone sets the AvailabilityZone field's value.

SetPubliclyAccessible

func (s *CreateRelationalDatabaseFromSnapshotInput) SetPubliclyAccessible(v bool) *CreateRelationalDatabaseFromSnapshotInput

SetPubliclyAccessible sets the PubliclyAccessible field's value.

SetRelationalDatabaseBundleId

func (s *CreateRelationalDatabaseFromSnapshotInput) SetRelationalDatabaseBundleId(v string) *CreateRelationalDatabaseFromSnapshotInput

SetRelationalDatabaseBundleId sets the RelationalDatabaseBundleId field's value.

SetRelationalDatabaseName

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

SetRelationalDatabaseName sets the RelationalDatabaseName field's value.

SetRelationalDatabaseSnapshotName

func (s *CreateRelationalDatabaseFromSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *CreateRelationalDatabaseFromSnapshotInput

SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value.

SetRestoreTime

func (s *CreateRelationalDatabaseFromSnapshotInput) SetRestoreTime(v time.Time) *CreateRelationalDatabaseFromSnapshotInput

SetRestoreTime sets the RestoreTime field's value.

SetSourceRelationalDatabaseName

func (s *CreateRelationalDatabaseFromSnapshotInput) SetSourceRelationalDatabaseName(v string) *CreateRelationalDatabaseFromSnapshotInput

SetSourceRelationalDatabaseName sets the SourceRelationalDatabaseName field's value.

SetTags

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

SetTags sets the Tags field's value.

SetUseLatestRestorableTime

func (s *CreateRelationalDatabaseFromSnapshotInput) SetUseLatestRestorableTime(v bool) *CreateRelationalDatabaseFromSnapshotInput

SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value.

String

func (s CreateRelationalDatabaseFromSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateRelationalDatabaseFromSnapshotInput) Validate() error

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

On this page: