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.

PromoteReadReplicaInput

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

type PromoteReadReplicaInput struct { BackupRetentionPeriod *int64 `type:"integer"` DBInstanceIdentifier *string `type:"string" required:"true"` PreferredBackupWindow *string `type:"string"` }

BackupRetentionPeriod

Type: *int64

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8

DBInstanceIdentifier

Type: *string

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must match the identifier of an existing Read Replica DB instance.

Example: mydbinstance

DBInstanceIdentifier is a required field

PreferredBackupWindow

Type: *string

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) in the Amazon RDS User Guide.

Constraints:

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

  • Must be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

Method

GoString

func (s PromoteReadReplicaInput) GoString() string

GoString returns the string representation

SetBackupRetentionPeriod

func (s *PromoteReadReplicaInput) SetBackupRetentionPeriod(v int64) *PromoteReadReplicaInput

SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.

SetDBInstanceIdentifier

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

SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.

SetPreferredBackupWindow

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

SetPreferredBackupWindow sets the PreferredBackupWindow field's value.

String

func (s PromoteReadReplicaInput) String() string

String returns the string representation

Validate

func (s *PromoteReadReplicaInput) Validate() error

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

On this page: