start_db_instance_automated_backups_replication
async
¶
start_db_instance_automated_backups_replication(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
source_db_instance_arn: Optional[String] = None,
backup_retention_period: Optional[IntegerOptional] = None,
kms_key_id: Optional[String] = None,
pre_signed_url: Optional[SensitiveString] = None,
tags: Optional[TagList] = None,
) -> StartDBInstanceAutomatedBackupsReplicationResult
Enables replication of automated backups to a different Amazon Web Services Region.
This command doesn't apply to RDS Custom.
For more information, see Replicating Automated Backups to Another Amazon Web Services Region in the Amazon RDS User Guide.
Parameters:
-
source_db_instance_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example,
arn:aws:rds:us-west-2:123456789012:db:mydatabase. -
backup_retention_period(Optional[IntegerOptional], default:None) –The retention period for the replicated automated backups.
-
kms_key_id(Optional[String], default:None) –The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services Region, for example,
arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE. -
pre_signed_url(Optional[SensitiveString], default:None) –In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request for the
StartDBInstanceAutomatedBackupsReplicationoperation to call in the Amazon Web Services Region of the source DB instance. The presigned URL must be a valid request for theStartDBInstanceAutomatedBackupsReplicationAPI operation that can run in the Amazon Web Services Region that contains the source DB instance.This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web Services Regions.
To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process.
If you are using an Amazon Web Services SDK tool or the CLI, you can specify
SourceRegion(or--source-regionfor the CLI) instead of specifyingPreSignedUrlmanually. SpecifyingSourceRegionautogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region. -
tags(Optional[TagList], default:None) –A list of tags to associate with the replicated automated backups.
Raises:
-
DBInstanceAutomatedBackupQuotaExceededFault–The quota for retained automated backups was exceeded. This prevents you from retaining any additional automated backups. The retained automated backups quota is the same as your DB instance quota.
-
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
InvalidDBInstanceAutomatedBackupStateFault–The automated backup is in an invalid state. For example, this automated backup is associated with an active instance.
-
InvalidDBInstanceStateFault–The DB instance isn't in a valid state.
-
KMSKeyNotAccessibleFault–An error occurred accessing an Amazon Web Services KMS key.
-
StorageTypeNotSupportedFault–The specified
StorageTypecan't be associated with the DB instance. -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To enable cross-Region automated backups The following example replicates automated backups from a DB instance in the US East (N. Virginia) Region. The backup retention period is 14 days.
>>> await client.start_db_instance_automated_backups_replication(source_db_instance_arn='arn:aws:rds:us-east-1:123456789012:db:new-orcl-db', backup_retention_period=14)
Source code in docs_src/capo_rds/_services/async_rds.py
15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 | |