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.

RelationalDatabaseSnapshot

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

type RelationalDatabaseSnapshot struct { Arn *string `locationName:"arn" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` Engine *string `locationName:"engine" type:"string"` EngineVersion *string `locationName:"engineVersion" type:"string"` FromRelationalDatabaseArn *string `locationName:"fromRelationalDatabaseArn" type:"string"` FromRelationalDatabaseBlueprintId *string `locationName:"fromRelationalDatabaseBlueprintId" type:"string"` FromRelationalDatabaseBundleId *string `locationName:"fromRelationalDatabaseBundleId" type:"string"` FromRelationalDatabaseName *string `locationName:"fromRelationalDatabaseName" type:"string"` Location *ResourceLocation `locationName:"location" type:"structure"` Name *string `locationName:"name" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` State *string `locationName:"state" type:"string"` SupportCode *string `locationName:"supportCode" type:"string"` Tags []*Tag `locationName:"tags" type:"list"` }

Describes a database snapshot.

Arn

Type: *string

The Amazon Resource Name (ARN) of the database snapshot.

CreatedAt

Type: *time.Time

The timestamp when the database snapshot was created.

Engine

Type: *string

The software of the database snapshot (for example, MySQL)

EngineVersion

Type: *string

The database engine version for the database snapshot (for example, 5.7.23).

FromRelationalDatabaseArn

Type: *string

The Amazon Resource Name (ARN) of the database from which the database snapshot was created.

FromRelationalDatabaseBlueprintId

Type: *string

The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.

FromRelationalDatabaseBundleId

Type: *string

The bundle ID of the database from which the database snapshot was created.

FromRelationalDatabaseName

Type: *string

The name of the source database from which the database snapshot was created.

Location

Describes the resource location.

Name

Type: *string

The name of the database snapshot.

ResourceType

Type: *string

The Lightsail resource type.

SizeInGb

Type: *int64

The size of the disk in GB (for example, 32) for the database snapshot.

State

Type: *string

The state of the database snapshot.

SupportCode

Type: *string

The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.

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).

Method

GoString

func (s RelationalDatabaseSnapshot) GoString() string

GoString returns the string representation

SetArn

func (s *RelationalDatabaseSnapshot) SetArn(v string) *RelationalDatabaseSnapshot

SetArn sets the Arn field's value.

SetCreatedAt

func (s *RelationalDatabaseSnapshot) SetCreatedAt(v time.Time) *RelationalDatabaseSnapshot

SetCreatedAt sets the CreatedAt field's value.

SetEngine

func (s *RelationalDatabaseSnapshot) SetEngine(v string) *RelationalDatabaseSnapshot

SetEngine sets the Engine field's value.

SetEngineVersion

func (s *RelationalDatabaseSnapshot) SetEngineVersion(v string) *RelationalDatabaseSnapshot

SetEngineVersion sets the EngineVersion field's value.

SetFromRelationalDatabaseArn

func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseArn(v string) *RelationalDatabaseSnapshot

SetFromRelationalDatabaseArn sets the FromRelationalDatabaseArn field's value.

SetFromRelationalDatabaseBlueprintId

func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseBlueprintId(v string) *RelationalDatabaseSnapshot

SetFromRelationalDatabaseBlueprintId sets the FromRelationalDatabaseBlueprintId field's value.

SetFromRelationalDatabaseBundleId

func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseBundleId(v string) *RelationalDatabaseSnapshot

SetFromRelationalDatabaseBundleId sets the FromRelationalDatabaseBundleId field's value.

SetFromRelationalDatabaseName

func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseName(v string) *RelationalDatabaseSnapshot

SetFromRelationalDatabaseName sets the FromRelationalDatabaseName field's value.

SetLocation

func (s *RelationalDatabaseSnapshot) SetLocation(v *ResourceLocation) *RelationalDatabaseSnapshot

SetLocation sets the Location field's value.

SetName

func (s *RelationalDatabaseSnapshot) SetName(v string) *RelationalDatabaseSnapshot

SetName sets the Name field's value.

SetResourceType

func (s *RelationalDatabaseSnapshot) SetResourceType(v string) *RelationalDatabaseSnapshot

SetResourceType sets the ResourceType field's value.

SetSizeInGb

func (s *RelationalDatabaseSnapshot) SetSizeInGb(v int64) *RelationalDatabaseSnapshot

SetSizeInGb sets the SizeInGb field's value.

SetState

func (s *RelationalDatabaseSnapshot) SetState(v string) *RelationalDatabaseSnapshot

SetState sets the State field's value.

SetSupportCode

func (s *RelationalDatabaseSnapshot) SetSupportCode(v string) *RelationalDatabaseSnapshot

SetSupportCode sets the SupportCode field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s RelationalDatabaseSnapshot) String() string

String returns the string representation

On this page: