getHandlerList()->appendInit( PresignUrlMiddleware::wrap( $this, $args['endpoint_provider'], [ 'operations' => [ 'CopySnapshot', ], 'service' => 'ec2', 'presign_param' => 'PresignedUrl', ] ), 'ec2.copy_snapshot' ); }; parent::__construct($args); } /** * @internal * @codeCoverageIgnore */ public static function applyDocFilters(array $api, array $docs) { // Several copy snapshot parameters are optional. $docs['shapes']['String']['refs']['CopySnapshotRequest$PresignedUrl'] = '
The SDK will compute this value ' . 'for you on your behalf.
'; $docs['shapes']['String']['refs']['CopySnapshotRequest$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) ]; } }