amazonka-rds: Support DestinationRegion pseudo-parameter #661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cross-region replication on RDS is performed by making a request
against the destination region. In that request, you need to pass a
PreSignedUrl
for the source region, with theDestionationRegion
parameter set to the destination region.
There are five such requests at the moment, specified by
https://github.com/boto/botocore/blob/77359646878e261eaa9debad888fc8f3b20832ef/botocore/data/rds/2014-10-31/service-2.sdk-extras.json
These specify a
SourceRegion
parameter because botocore rearrangesthe rds requests internally, stripping
SourceRegion
from the requestitself and injecting a
DestinationRegion
parameter into thePreSignedUrl
field:https://github.com/boto/botocore/blob/ec0eb680d6e6e753c7d7ddf0242b8ae1c3b38db5/botocore/handlers.py#L1080-L1089
Fixes #378