123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?php
- namespace Aws\Rds;
- use Aws\AwsClient;
- use Aws\Api\Service;
- use Aws\Api\DocModel;
- use Aws\Api\ApiProvider;
- use Aws\PresignUrlMiddleware;
- class RdsClient extends AwsClient
- {
- public function __construct(array $args)
- {
- $args['with_resolved'] = function (array $args) {
- $this->getHandlerList()->appendInit(
- PresignUrlMiddleware::wrap(
- $this,
- $args['endpoint_provider'],
- [
- 'operations' => [
- 'CopyDBSnapshot',
- 'CreateDBInstanceReadReplica',
- 'CopyDBClusterSnapshot',
- 'CreateDBCluster',
- 'StartDBInstanceAutomatedBackupsReplication'
- ],
- 'service' => 'rds',
- 'presign_param' => 'PreSignedUrl',
- 'require_different_region' => true,
- ]
- ),
- 'rds.presigner'
- );
- };
- parent::__construct($args);
- }
-
- public static function applyDocFilters(array $api, array $docs)
- {
-
- $docs['shapes']['SourceRegion']['base'] = 'A required parameter that indicates '
- . 'the region that the DB snapshot will be copied from.';
- $api['shapes']['SourceRegion'] = ['type' => 'string'];
- $api['shapes']['CopyDBSnapshotMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion'];
- $api['shapes']['CreateDBInstanceReadReplicaMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion'];
-
- $docs['shapes']['DestinationRegion']['base']
- = '<div class="alert alert-info">The SDK will populate this '
- . 'parameter on your behalf using the configured region value of '
- . 'the client.</div>';
- $api['shapes']['DestinationRegion'] = ['type' => 'string'];
- $api['shapes']['CopyDBSnapshotMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion'];
- $api['shapes']['CreateDBInstanceReadReplicaMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion'];
-
- $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$PreSignedUrl']
- = '<div class="alert alert-info">The SDK will compute this value '
- . 'for you on your behalf.</div>';
- $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$DestinationRegion']
- = '<div class="alert alert-info">The SDK will populate this '
- . 'parameter on your behalf using the configured region value of '
- . 'the client.</div>';
-
- $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$PreSignedUrl']
- = '<div class="alert alert-info">The SDK will compute this value '
- . 'for you on your behalf.</div>';
- $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$DestinationRegion']
- = '<div class="alert alert-info">The SDK will populate this '
- . 'parameter on your behalf using the configured region value of '
- . 'the client.</div>';
- if ($api['metadata']['apiVersion'] != '2014-09-01') {
- $api['shapes']['CopyDBClusterSnapshotMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion'];
- $api['shapes']['CreateDBClusterMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion'];
- $api['shapes']['CopyDBClusterSnapshotMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion'];
- $api['shapes']['CreateDBClusterMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion'];
-
- $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$PreSignedUrl']
- = '<div class="alert alert-info">The SDK will compute this value '
- . 'for you on your behalf.</div>';
- $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$DestinationRegion']
- = '<div class="alert alert-info">The SDK will populate this '
- . 'parameter on your behalf using the configured region value of '
- . 'the client.</div>';
-
- $docs['shapes']['String']['refs']['CreateDBClusterMessage$PreSignedUrl']
- = '<div class="alert alert-info">The SDK will compute this value '
- . 'for you on your behalf.</div>';
- $docs['shapes']['String']['refs']['CreateDBClusterMessage$DestinationRegion']
- = '<div class="alert alert-info">The SDK will populate this '
- . 'parameter on your behalf using the configured region value of '
- . 'the client.</div>';
- }
- return [
- new Service($api, ApiProvider::defaultProvider()),
- new DocModel($docs)
- ];
- }
- }
|