Файл: sngine-v2.8/Script/includes/libs/AWS/Aws/S3Control/S3ControlClient.php
Строк: 123
<?php
namespace AwsS3Control;
use AwsAwsClient;
/**
* This client is used to interact with the **AWS S3 Control** service.
* @method AwsResult createAccessPoint(array $args = [])
* @method GuzzleHttpPromisePromise createAccessPointAsync(array $args = [])
* @method AwsResult createJob(array $args = [])
* @method GuzzleHttpPromisePromise createJobAsync(array $args = [])
* @method AwsResult deleteAccessPoint(array $args = [])
* @method GuzzleHttpPromisePromise deleteAccessPointAsync(array $args = [])
* @method AwsResult deleteAccessPointPolicy(array $args = [])
* @method GuzzleHttpPromisePromise deleteAccessPointPolicyAsync(array $args = [])
* @method AwsResult deleteJobTagging(array $args = [])
* @method GuzzleHttpPromisePromise deleteJobTaggingAsync(array $args = [])
* @method AwsResult deletePublicAccessBlock(array $args = [])
* @method GuzzleHttpPromisePromise deletePublicAccessBlockAsync(array $args = [])
* @method AwsResult describeJob(array $args = [])
* @method GuzzleHttpPromisePromise describeJobAsync(array $args = [])
* @method AwsResult getAccessPoint(array $args = [])
* @method GuzzleHttpPromisePromise getAccessPointAsync(array $args = [])
* @method AwsResult getAccessPointPolicy(array $args = [])
* @method GuzzleHttpPromisePromise getAccessPointPolicyAsync(array $args = [])
* @method AwsResult getAccessPointPolicyStatus(array $args = [])
* @method GuzzleHttpPromisePromise getAccessPointPolicyStatusAsync(array $args = [])
* @method AwsResult getJobTagging(array $args = [])
* @method GuzzleHttpPromisePromise getJobTaggingAsync(array $args = [])
* @method AwsResult getPublicAccessBlock(array $args = [])
* @method GuzzleHttpPromisePromise getPublicAccessBlockAsync(array $args = [])
* @method AwsResult listAccessPoints(array $args = [])
* @method GuzzleHttpPromisePromise listAccessPointsAsync(array $args = [])
* @method AwsResult listJobs(array $args = [])
* @method GuzzleHttpPromisePromise listJobsAsync(array $args = [])
* @method AwsResult putAccessPointPolicy(array $args = [])
* @method GuzzleHttpPromisePromise putAccessPointPolicyAsync(array $args = [])
* @method AwsResult putJobTagging(array $args = [])
* @method GuzzleHttpPromisePromise putJobTaggingAsync(array $args = [])
* @method AwsResult putPublicAccessBlock(array $args = [])
* @method GuzzleHttpPromisePromise putPublicAccessBlockAsync(array $args = [])
* @method AwsResult updateJobPriority(array $args = [])
* @method GuzzleHttpPromisePromise updateJobPriorityAsync(array $args = [])
* @method AwsResult updateJobStatus(array $args = [])
* @method GuzzleHttpPromisePromise updateJobStatusAsync(array $args = [])
*/
class S3ControlClient extends AwsClient
{
public static function getArguments()
{
$args = parent::getArguments();
return $args + [
'use_dual_stack_endpoint' => [
'type' => 'config',
'valid' => ['bool'],
'doc' => 'Set to true to send requests to an S3 Control 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,
],
];
}
/**
* {@inheritdoc}
*
* In addition to the options available to
* {@see AwsAwsClient::__construct}, S3ControlClient accepts the following
* option:
*
* - use_dual_stack_endpoint: (bool) Set to true to send requests to an S3
* Control 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. Note:
* you cannot use it together with an accelerate endpoint.
*
* @param array $args
*/
public function __construct(array $args)
{
parent::__construct($args);
$stack = $this->getHandlerList();
$stack->appendBuild(
S3ControlEndpointMiddleware::wrap(
$this->getRegion(),
[
'dual_stack' => $this->getConfig('use_dual_stack_endpoint'),
]
),
's3control.endpoint_middleware'
);
}
}