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); } /** * @internal * @codeCoverageIgnore */ public static function applyDocFilters(array $api, array $docs) { // Add the SourceRegion parameter $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']; // Add the DestinationRegion parameter $docs['shapes']['DestinationRegion']['base'] = '
The SDK will populate this ' . 'parameter on your behalf using the configured region value of ' . 'the client.
'; $api['shapes']['DestinationRegion'] = ['type' => 'string']; $api['shapes']['CopyDBSnapshotMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; $api['shapes']['CreateDBInstanceReadReplicaMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; // Several parameters in presign APIs are optional. $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$PreSignedUrl'] = '
The SDK will compute this value ' . 'for you on your behalf.
'; $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$DestinationRegion'] = '
The SDK will populate this ' . 'parameter on your behalf using the configured region value of ' . 'the client.
'; // Several parameters in presign APIs are optional. $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$PreSignedUrl'] = '
The SDK will compute this value ' . 'for you on your behalf.
'; $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$DestinationRegion'] = '
The SDK will populate this ' . 'parameter on your behalf using the configured region value of ' . 'the client.
'; 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']; // Several parameters in presign APIs are optional. $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$PreSignedUrl'] = '
The SDK will compute this value ' . 'for you on your behalf.
'; $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$DestinationRegion'] = '
The SDK will populate this ' . 'parameter on your behalf using the configured region value of ' . 'the client.
'; // Several parameters in presign APIs are optional. $docs['shapes']['String']['refs']['CreateDBClusterMessage$PreSignedUrl'] = '
The SDK will compute this value ' . 'for you on your behalf.
'; $docs['shapes']['String']['refs']['CreateDBClusterMessage$DestinationRegion'] = '
The SDK will populate this ' . 'parameter on your behalf using the configured region value of ' . 'the client.
'; } return [ new Service($api, ApiProvider::defaultProvider()), new DocModel($docs) ]; } }