public static function getArguments() { $args = parent::getArguments(); $args['retries']['fn'] = [__CLASS__, '_applyRetryConfig']; $args['api_provider']['fn'] = [__CLASS__, '_applyApiProvider']; return $args + ['bucket_endpoint' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests to a hardcoded ' . 'bucket endpoint rather than create an endpoint as a ' . 'result of injecting the bucket into the URL. This ' . 'option is useful for interacting with CNAME endpoints.']]; }
public static function getArguments() { $args = parent::getArguments(); $args['retries']['default'] = 11; $args['retries']['fn'] = [DynamoDbClient::class, '_applyRetryConfig']; return $args; }
public static function getArguments() { $args = parent::getArguments(); $args['api_provider']['default'] = [BridgeApiProvider::class, 'defaultProvider']; $args['signature_provider']['default'] = [__CLASS__, '_default_signature_provider']; return $args; }
public static function getArguments() { $args = parent::getArguments(); // STS does not require a region. $args['region']['default'] = 'us-east-1'; return $args; }
public static function getArguments() { $args = parent::getArguments(); $args['retries']['default'] = 11; $args['retries']['fn'] = [__CLASS__, '_applyRetryConfig']; $args['api_provider']['fn'] = [__CLASS__, '_applyApiProvider']; return $args; }
public static function getArguments() { $args = parent::getArguments(); // Apply custom retry strategy for DynamoDB. $args['retries']['default'] = 11; $args['retries']['fn'] = [__CLASS__, '_applyRetryConfig']; return $args; }
public static function getArguments() { $args = parent::getArguments(); $args['endpoint']['required'] = true; $args['region']['default'] = function (array $args) { // Determine the region from the provided endpoint. // (e.g. http://search-blah.{region}.cloudsearch.amazonaws.com) return explode('.', new Uri($args['endpoint']))[1]; }; return $args; }
public static function getArguments() { $args = parent::getArguments(); // S3 does not require a region for the "classic" endpoint. $args['region']['default'] = 'us-east-1'; // Apply custom retry strategy. $args['retries']['fn'] = self::createRetry(); // Handle HEAD request error parsing. $args['api_provider']['fn'] = self::applyApiProvider(); return $args + ['force_path_style' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests using path style ' . 'bucket addressing (e.g., ' . 'https://s3.amazonaws.com/bucket/key).', 'fn' => function ($value, $_, EmitterInterface $em) { if ($value === true) { $em->on('init', function (InitEvent $e) { $e->getCommand()['PathStyle'] = true; }); } }], 'calculate_md5' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to false to disable calculating an MD5 for ' . 'all Amazon S3 signed uploads.', 'default' => function (array &$args) { // S3Client should calculate MD5 checksums for uploads // unless explicitly disabled or using a v4 signer. return $args['config']['signature_version'] != 'v4'; }], 'bucket_endpoint' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests to a hardcoded bucket ' . 'endpoint rather than create an endpoint as a ' . 'result of injecting the bucket into the URL. This ' . 'option is useful for interacting with CNAME ' . 'endpoints.']]; }
public static function getArguments() { $args = parent::getArguments(); $args['retries']['fn'] = [__CLASS__, '_applyRetryConfig']; $args['api_provider']['fn'] = [__CLASS__, '_applyApiProvider']; return $args + ['bucket_endpoint' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests to a hardcoded ' . 'bucket endpoint rather than create an endpoint as a ' . 'result of injecting the bucket into the URL. This ' . 'option is useful for interacting with CNAME endpoints.'], 'use_accelerate_endpoint' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests to an S3 Accelerate' . ' endpoint by default. Can be enabled or disabled on' . ' individual operations by setting' . ' \'@use_accelerate_endpoint\' to true or false. Note:' . ' you must enable S3 Accelerate on a bucket before it can' . ' be accessed via an Accelerate endpoint.', 'default' => false], 'use_dual_stack_endpoint' => ['type' => 'config', 'valid' => ['bool'], 'doc' => 'Set to true to send requests to an S3 Dual Stack' . ' endpoint by default, which enables IPv6 Protocol.' . ' Can be enabled or disabled on individual operations by setting' . ' \'@use_dual_stack_endpoint\' to true or false.', 'default' => false]]; }