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.

UpdateRelationalDatabaseInput

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

type UpdateRelationalDatabaseInput struct { ApplyImmediately *bool `locationName:"applyImmediately" type:"boolean"` DisableBackupRetention *bool `locationName:"disableBackupRetention" type:"boolean"` EnableBackupRetention *bool `locationName:"enableBackupRetention" type:"boolean"` MasterUserPassword *string `locationName:"masterUserPassword" type:"string" sensitive:"true"` PreferredBackupWindow *string `locationName:"preferredBackupWindow" type:"string"` PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` RotateMasterUserPassword *bool `locationName:"rotateMasterUserPassword" type:"boolean"` }

ApplyImmediately

Type: *bool

When true, applies changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.

Default: false

DisableBackupRetention

Type: *bool

When true, disables automated backup retention for your database.

Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot operation.

Updates are applied during the next maintenance window because this can result in an outage.

EnableBackupRetention

Type: *bool

When true, enables automated backup retention for your database.

Updates are applied during the next maintenance window because this can result in an outage.

MasterUserPassword

Type: *string

The password for the master user of your database. The password can include any printable ASCII character except "/", """, or "@".

Constraints: Must contain 8 to 41 characters.

PreferredBackupWindow

Type: *string

The daily time range during which automated backups are created for your database if automated backups are enabled.

Constraints:

  • Must be in the hh24:mi-hh24:mi format.

Example: 16:00-16:30

  • Specified in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

PreferredMaintenanceWindow

Type: *string

The weekly time range during which system maintenance can occur on your database.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

Constraints:

  • Must be in the ddd:hh24:mi-ddd:hh24:mi format.

  • Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

  • Must be at least 30 minutes.

  • Specified in Universal Coordinated Time (UTC).

  • Example: Tue:17:00-Tue:17:30

PubliclyAccessible

Type: *bool

Specifies the accessibility options for your 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.

RelationalDatabaseName

Type: *string

The name of your database to update.

RelationalDatabaseName is a required field

RotateMasterUserPassword

Type: *bool

When true, the master user password is changed to a new strong password generated by Lightsail.

Use the get relational database master user password operation to get the new password.

Method

GoString

func (s UpdateRelationalDatabaseInput) GoString() string

GoString returns the string representation

SetApplyImmediately

func (s *UpdateRelationalDatabaseInput) SetApplyImmediately(v bool) *UpdateRelationalDatabaseInput

SetApplyImmediately sets the ApplyImmediately field's value.

SetDisableBackupRetention

func (s *UpdateRelationalDatabaseInput) SetDisableBackupRetention(v bool) *UpdateRelationalDatabaseInput

SetDisableBackupRetention sets the DisableBackupRetention field's value.

SetEnableBackupRetention

func (s *UpdateRelationalDatabaseInput) SetEnableBackupRetention(v bool) *UpdateRelationalDatabaseInput

SetEnableBackupRetention sets the EnableBackupRetention field's value.

SetMasterUserPassword

func (s *UpdateRelationalDatabaseInput) SetMasterUserPassword(v string) *UpdateRelationalDatabaseInput

SetMasterUserPassword sets the MasterUserPassword field's value.

SetPreferredBackupWindow

func (s *UpdateRelationalDatabaseInput) SetPreferredBackupWindow(v string) *UpdateRelationalDatabaseInput

SetPreferredBackupWindow sets the PreferredBackupWindow field's value.

SetPreferredMaintenanceWindow

func (s *UpdateRelationalDatabaseInput) SetPreferredMaintenanceWindow(v string) *UpdateRelationalDatabaseInput

SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.

SetPubliclyAccessible

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

SetPubliclyAccessible sets the PubliclyAccessible field's value.

SetRelationalDatabaseName

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

SetRelationalDatabaseName sets the RelationalDatabaseName field's value.

SetRotateMasterUserPassword

func (s *UpdateRelationalDatabaseInput) SetRotateMasterUserPassword(v bool) *UpdateRelationalDatabaseInput

SetRotateMasterUserPassword sets the RotateMasterUserPassword field's value.

String

func (s UpdateRelationalDatabaseInput) String() string

String returns the string representation

Validate

func (s *UpdateRelationalDatabaseInput) Validate() error

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

On this page: