composer-update-patch

This commit is contained in:
Manish Verma
2016-11-03 05:44:29 +05:30
parent 2dca47f5a4
commit 5d49d384a0
5118 changed files with 51603 additions and 122575 deletions

View File

@@ -14,6 +14,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeCertificateAsync(array $args = [])
* @method \Aws\Result getCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise getCertificateAsync(array $args = [])
* @method \Aws\Result importCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise importCertificateAsync(array $args = [])
* @method \Aws\Result listCertificates(array $args = [])
* @method \GuzzleHttp\Promise\Promise listCertificatesAsync(array $args = [])
* @method \Aws\Result listTagsForCertificate(array $args = [])

View File

@@ -0,0 +1,35 @@
<?php
namespace Aws\Budgets;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Budgets** service.
* @method \Aws\Result createBudget(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBudgetAsync(array $args = [])
* @method \Aws\Result createNotification(array $args = [])
* @method \GuzzleHttp\Promise\Promise createNotificationAsync(array $args = [])
* @method \Aws\Result createSubscriber(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSubscriberAsync(array $args = [])
* @method \Aws\Result deleteBudget(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteBudgetAsync(array $args = [])
* @method \Aws\Result deleteNotification(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteNotificationAsync(array $args = [])
* @method \Aws\Result deleteSubscriber(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSubscriberAsync(array $args = [])
* @method \Aws\Result describeBudget(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBudgetAsync(array $args = [])
* @method \Aws\Result describeBudgets(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeBudgetsAsync(array $args = [])
* @method \Aws\Result describeNotificationsForBudget(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeNotificationsForBudgetAsync(array $args = [])
* @method \Aws\Result describeSubscribersForNotification(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSubscribersForNotificationAsync(array $args = [])
* @method \Aws\Result updateBudget(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBudgetAsync(array $args = [])
* @method \Aws\Result updateNotification(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateNotificationAsync(array $args = [])
* @method \Aws\Result updateSubscriber(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSubscriberAsync(array $args = [])
*/
class BudgetsClient extends AwsClient {}

View File

@@ -0,0 +1,9 @@
<?php
namespace Aws\Budgets\Exception;
use Aws\Exception\AwsException;
/**
* Represents an error interacting with the **AWS Budgets** service.
*/
class BudgetsException extends AwsException {}

View File

@@ -42,6 +42,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getTemplateSummaryAsync(array $args = [])
* @method \Aws\Result listChangeSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listChangeSetsAsync(array $args = [])
* @method \Aws\Result listExports(array $args = [])
* @method \GuzzleHttp\Promise\Promise listExportsAsync(array $args = [])
* @method \Aws\Result listStackResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise listStackResourcesAsync(array $args = [])
* @method \Aws\Result listStacks(array $args = [])

View File

@@ -50,16 +50,16 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise updateDistributionAsync(array $args = [])
* @method \Aws\Result updateStreamingDistribution(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateStreamingDistributionAsync(array $args = [])
* @method \Aws\Result createDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \GuzzleHttp\Promise\Promise createDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \Aws\Result createStreamingDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \GuzzleHttp\Promise\Promise createStreamingDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \Aws\Result listTagsForResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \Aws\Result tagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \Aws\Result untagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20)
* @method \Aws\Result createDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \GuzzleHttp\Promise\Promise createDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \Aws\Result createStreamingDistributionWithTags(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \GuzzleHttp\Promise\Promise createStreamingDistributionWithTagsAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \Aws\Result listTagsForResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \Aws\Result tagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \Aws\Result untagResource(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = []) (supported in versions 2016-08-01, 2016-08-20, 2016-09-07, 2016-09-29)
*/
class CloudFrontClient extends AwsClient
{

View File

@@ -10,6 +10,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise addCustomAttributesAsync(array $args = [])
* @method \Aws\Result adminConfirmSignUp(array $args = [])
* @method \GuzzleHttp\Promise\Promise adminConfirmSignUpAsync(array $args = [])
* @method \Aws\Result adminCreateUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise adminCreateUserAsync(array $args = [])
* @method \Aws\Result adminDeleteUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise adminDeleteUserAsync(array $args = [])
* @method \Aws\Result adminDeleteUserAttributes(array $args = [])

View File

@@ -179,7 +179,7 @@ class CredentialProvider
* Defaults to using a simple file-based cache when none provided.
*
* @param callable $provider Credentials provider function to wrap
* @param CacheInterface $cache (optional) Cache to store credentials
* @param CacheInterface $cache Cache to store credentials
* @param string|null $cacheKey (optional) Cache key to use
*
* @return callable

View File

@@ -417,18 +417,22 @@ use Aws\Api\ApiProvider;
* @method \GuzzleHttp\Promise\Promise unassignPrivateIpAddressesAsync(array $args = [])
* @method \Aws\Result unmonitorInstances(array $args = [])
* @method \GuzzleHttp\Promise\Promise unmonitorInstancesAsync(array $args = [])
* @method \Aws\Result describeHostReservationOfferings(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise describeHostReservationOfferingsAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result describeHostReservations(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise describeHostReservationsAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result describeIdentityIdFormat(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise describeIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result getHostReservationPurchasePreview(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise getHostReservationPurchasePreviewAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result modifyIdentityIdFormat(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise modifyIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result purchaseHostReservation(array $args = []) (supported in versions 2016-04-01)
* @method \GuzzleHttp\Promise\Promise purchaseHostReservationAsync(array $args = []) (supported in versions 2016-04-01)
* @method \Aws\Result describeHostReservationOfferings(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise describeHostReservationOfferingsAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result describeHostReservations(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise describeHostReservationsAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result describeIdentityIdFormat(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise describeIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result getHostReservationPurchasePreview(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise getHostReservationPurchasePreviewAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result modifyIdentityIdFormat(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise modifyIdentityIdFormatAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result purchaseHostReservation(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \GuzzleHttp\Promise\Promise purchaseHostReservationAsync(array $args = []) (supported in versions 2016-04-01, 2016-09-15)
* @method \Aws\Result acceptReservedInstancesExchangeQuote(array $args = []) (supported in versions 2016-09-15)
* @method \GuzzleHttp\Promise\Promise acceptReservedInstancesExchangeQuoteAsync(array $args = []) (supported in versions 2016-09-15)
* @method \Aws\Result getReservedInstancesExchangeQuote(array $args = []) (supported in versions 2016-09-15)
* @method \GuzzleHttp\Promise\Promise getReservedInstancesExchangeQuoteAsync(array $args = []) (supported in versions 2016-09-15)
*/
class Ec2Client extends AwsClient
{

View File

@@ -20,6 +20,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteRepositoryAsync(array $args = [])
* @method \Aws\Result deleteRepositoryPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteRepositoryPolicyAsync(array $args = [])
* @method \Aws\Result describeImages(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
* @method \Aws\Result describeRepositories(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeRepositoriesAsync(array $args = [])
* @method \Aws\Result getAuthorizationToken(array $args = [])

View File

@@ -12,10 +12,16 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise addJobFlowStepsAsync(array $args = [])
* @method \Aws\Result addTags(array $args = [])
* @method \GuzzleHttp\Promise\Promise addTagsAsync(array $args = [])
* @method \Aws\Result createSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result deleteSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result describeCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
* @method \Aws\Result describeJobFlows(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeJobFlowsAsync(array $args = [])
* @method \Aws\Result describeSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result describeStep(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeStepAsync(array $args = [])
* @method \Aws\Result listBootstrapActions(array $args = [])
@@ -26,6 +32,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listInstanceGroupsAsync(array $args = [])
* @method \Aws\Result listInstances(array $args = [])
* @method \GuzzleHttp\Promise\Promise listInstancesAsync(array $args = [])
* @method \Aws\Result listSecurityConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSecurityConfigurationsAsync(array $args = [])
* @method \Aws\Result listSteps(array $args = [])
* @method \GuzzleHttp\Promise\Promise listStepsAsync(array $args = [])
* @method \Aws\Result modifyInstanceGroups(array $args = [])

View File

@@ -46,6 +46,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeGameSessionDetailsAsync(array $args = [])
* @method \Aws\Result describeGameSessions(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeGameSessionsAsync(array $args = [])
* @method \Aws\Result describeInstances(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
* @method \Aws\Result describePlayerSessions(array $args = [])
* @method \GuzzleHttp\Promise\Promise describePlayerSessionsAsync(array $args = [])
* @method \Aws\Result describeRuntimeConfiguration(array $args = [])

View File

@@ -6,6 +6,8 @@ use Aws\AwsClient;
/**
* This client is used to interact with the **Amazon Relational Database Service (Amazon RDS)**.
*
* @method \Aws\Result addRoleToDBCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise addRoleToDBClusterAsync(array $args = [])
* @method \Aws\Result addSourceIdentifierToSubscription(array $args = [])
* @method \GuzzleHttp\Promise\Promise addSourceIdentifierToSubscriptionAsync(array $args = [])
* @method \Aws\Result addTagsToResource(array $args = [])
@@ -154,6 +156,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise purchaseReservedDBInstancesOfferingAsync(array $args = [])
* @method \Aws\Result rebootDBInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise rebootDBInstanceAsync(array $args = [])
* @method \Aws\Result removeRoleFromDBCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeRoleFromDBClusterAsync(array $args = [])
* @method \Aws\Result removeSourceIdentifierFromSubscription(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeSourceIdentifierFromSubscriptionAsync(array $args = [])
* @method \Aws\Result removeTagsFromResource(array $args = [])

View File

@@ -1,90 +0,0 @@
<?php
namespace Aws\S3;
use Aws\CommandInterface;
use Psr\Http\Message\RequestInterface;
/**
* Used to update the URL used for S3 requests to suport S3 Accelerate.
*
* IMPORTANT: this middleware must be added after the "build" step.
*
* @internal
*/
class AccelerateMiddleware
{
private static $exclusions = [
'CreateBucket' => true,
'DeleteBucket' => true,
'ListBuckets' => true,
];
/** @var bool */
private $accelerateByDefault;
/** @var callable */
private $nextHandler;
/**
* Create a middleware wrapper function.
*
* @param bool $accelerateByDefault
*
* @return callable
*/
public static function wrap($accelerateByDefault = false)
{
return function (callable $handler) use ($accelerateByDefault) {
return new self($handler, $accelerateByDefault);
};
}
public function __construct(callable $nextHandler, $accelerateByDefault = false)
{
$this->accelerateByDefault = (bool) $accelerateByDefault;
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request)
{
if ($this->shouldAccelerate($command)) {
$request = $request->withUri(
$request->getUri()
->withHost($this->getAccelerateHost($command))
->withPath($this->getBucketlessPath(
$request->getUri()->getPath(),
$command
))
);
}
$nextHandler = $this->nextHandler;
return $nextHandler($command, $request);
}
private function shouldAccelerate(CommandInterface $command)
{
if ($this->canAccelerate($command)) {
return isset($command['@use_accelerate_endpoint'])
? $command['@use_accelerate_endpoint']
: $this->accelerateByDefault;
}
return false;
}
private function canAccelerate(CommandInterface $command)
{
return empty(self::$exclusions[$command->getName()])
&& S3Client::isBucketDnsCompatible($command['Bucket']);
}
private function getAccelerateHost(CommandInterface $command)
{
return "{$command['Bucket']}.s3-accelerate.amazonaws.com";
}
private function getBucketlessPath($path, CommandInterface $command)
{
$pattern = '/^\\/' . preg_quote($command['Bucket'], '/') . '/';
return preg_replace($pattern, '', $path) ?: '/';
}
}

View File

@@ -1,67 +0,0 @@
<?php
namespace Aws\S3;
use Aws\CommandInterface;
use Psr\Http\Message\RequestInterface;
/**
* Dual Stack Endpoints enables customers to access AWS services with IPv6
*
* @internal
*/
class DualStackMiddleware
{
/** @var bool */
private $dualStackByDefault;
/** @var string */
private $region;
/** @var callable */
private $nextHandler;
/**
* Create a middleware wrapper function
*
* @param string $region
* @param bool $dualStackByDefault
*
* @return callable
*/
public static function wrap($region, $dualStackByDefault = false)
{
return function (callable $handler) use ($dualStackByDefault, $region) {
return new self($handler, $region, $dualStackByDefault);
};
}
public function __construct(callable $nextHandler, $region, $dualStackByDefault = false)
{
$this->dualStackByDefault = (bool) $dualStackByDefault;
$this->region = (string) $region;
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request)
{
if ($this->shouldApplyDualStack($command)) {
$request = $request->withUri(
$request->getUri()
->withHost($this->getDualStackHost())
);
}
$nextHandler = $this->nextHandler;
return $nextHandler($command, $request);
}
private function shouldApplyDualStack(CommandInterface $command)
{
return isset($command['@use_dual_stack_endpoint'])
? $command['@use_dual_stack_endpoint']
: $this->dualStackByDefault;
}
private function getDualStackHost()
{
return "s3.dualstack.{$this->region}.amazonaws.com";
}
}

View File

@@ -4,7 +4,6 @@ namespace Aws\S3;
use Aws\Credentials\CredentialsInterface;
use GuzzleHttp\Psr7\Uri;
use Aws\Signature\SignatureTrait;
use Aws\Common\Enum\DateFormat;
use Aws\Signature\SignatureV4 as SignatureV4;
use Aws\Api\TimestampShape as TimestampShape;
@@ -55,6 +54,14 @@ class PostObjectV4
'enctype' => 'multipart/form-data'
];
$credentials = $this->client->getCredentials()->wait();
$securityToken = $credentials->getSecurityToken();
if (null !== $securityToken) {
array_push($options, ['x-amz-security-token' => $securityToken]);
$formInputs['X-Amz-Security-Token'] = $securityToken;
}
// setup basic policy
$policy = [
'expiration' => TimestampShape::format($expiration, 'iso8601'),
@@ -65,7 +72,7 @@ class PostObjectV4
$this->formInputs = $formInputs + ['key' => '${filename}'];
// finalize policy and signature
$credentials = $this->client->getCredentials()->wait();
$this->formInputs += $this->getPolicyAndSignature(
$credentials,
$policy

View File

@@ -176,8 +176,7 @@ class S3Client extends AwsClient implements S3ClientInterface
'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. Note:'
. ' you cannot use it together with an accelerate endpoint.',
. ' \'@use_dual_stack_endpoint\' to true or false.',
'default' => false,
],
];
@@ -219,17 +218,18 @@ class S3Client extends AwsClient implements S3ClientInterface
Middleware::contentType(['PutObject', 'UploadPart']),
's3.content_type'
);
$stack->appendBuild(
AccelerateMiddleware::wrap($this->getConfig('use_accelerate_endpoint')),
's3.use_accelerate_endpoint'
);
$stack->appendBuild(
DualStackMiddleware::wrap(
S3EndpointMiddleware::wrap(
$this->getRegion(),
$this->getConfig('use_dual_stack_endpoint')
[
'dual_stack' => $this->getConfig('use_dual_stack_endpoint'),
'accelerate' => $this->getConfig('use_accelerate_endpoint')
]
),
's3.use_dual_stack_endpoint'
's3.endpoint_middleware'
);
// Use the bucket style middleware when using a "bucket_endpoint" (for cnames)
if ($this->getConfig('bucket_endpoint')) {
$stack->appendBuild(BucketEndpointMiddleware::wrap(), 's3.bucket_endpoint');

View File

@@ -2,6 +2,7 @@
namespace Aws\S3;
use Aws\CommandInterface;
use Aws\Exception\AwsException;
use Aws\HandlerList;
use Aws\ResultInterface;
use Aws\S3\Exception\S3Exception;
@@ -174,6 +175,12 @@ trait S3ClientTrait
return $handler($command)
->then(static function (ResultInterface $result) {
return $result['@metadata']['headers']['x-amz-bucket-region'];
}, static function (AwsException $exception) {
$response = $exception->getResponse();
if ($response === null) {
throw $exception;
}
return $response->getHeaderLine('x-amz-bucket-region');
});
}

View File

@@ -0,0 +1,161 @@
<?php
namespace Aws\S3;
use Aws\CommandInterface;
use Psr\Http\Message\RequestInterface;
/**
* Used to update the URL used for S3 requests to support:
* S3 Accelerate, S3 DualStack or Both
*
* IMPORTANT: this middleware must be added after the "build" step.
*
* @internal
*/
class S3EndpointMiddleware
{
private static $exclusions = [
'CreateBucket' => true,
'DeleteBucket' => true,
'ListBuckets' => true,
];
const NO_PATTERN = 0;
const DUALSTACK = 1;
const ACCELERATE = 2;
const ACCELERATE_DUALSTACK = 3;
/** @var bool */
private $accelerateByDefault;
/** @var bool */
private $dualStackByDefault;
/** @var string */
private $region;
/** @var callable */
private $nextHandler;
/**
* Create a middleware wrapper function
*
* @param string $region
* @param array $options
*
* @return callable
*/
public static function wrap($region, array $options)
{
return function (callable $handler) use ($region, $options) {
return new self($handler, $region, $options);
};
}
public function __construct(
callable $nextHandler,
$region,
array $options
) {
$this->dualStackByDefault = isset($options['dual_stack'])
? (bool) $options['dual_stack'] : false;
$this->accelerateByDefault = isset($options['accelerate'])
? (bool) $options['accelerate'] : false;
$this->region = (string) $region;
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request)
{
$endpointPattern = $this->endpointPatternDecider($command);
switch ($endpointPattern) {
case self::NO_PATTERN:
break;
case self::DUALSTACK:
$request = $this->applyDualStackEndpoint($request);
break;
case self::ACCELERATE:
$request = $this->applyAccelerateEndpoint(
$command,
$request,
's3-accelerate'
);
break;
case self::ACCELERATE_DUALSTACK:
$request = $this->applyAccelerateEndpoint(
$command,
$request,
's3-accelerate.dualstack'
);
break;
}
$nextHandler = $this->nextHandler;
return $nextHandler($command, $request);
}
private function endpointPatternDecider(CommandInterface $command)
{
$accelerate = isset($command['@use_accelerate_endpoint'])
? $command['@use_accelerate_endpoint'] : $this->accelerateByDefault;
$dualStack = isset($command['@use_dual_stack_endpoint'])
? $command['@use_dual_stack_endpoint'] : $this->dualStackByDefault;
if ($accelerate && $dualStack) {
// When try to enable both for operations excluded from s3-accelerate,
// only dualstack endpoints will be enabled.
return $this->canAccelerate($command)
? self::ACCELERATE_DUALSTACK
: self::DUALSTACK;
} elseif ($accelerate && $this->canAccelerate($command)) {
return self::ACCELERATE;
} elseif ($dualStack) {
return self::DUALSTACK;
}
return self::NO_PATTERN;
}
private function canAccelerate(CommandInterface $command)
{
return empty(self::$exclusions[$command->getName()])
&& S3Client::isBucketDnsCompatible($command['Bucket']);
}
private function applyDualStackEndpoint(RequestInterface $request)
{
$request = $request->withUri(
$request->getUri()
->withHost($this->getDualStackHost())
);
return $request;
}
private function getDualStackHost()
{
return "s3.dualstack.{$this->region}.amazonaws.com";
}
private function applyAccelerateEndpoint(
CommandInterface $command,
RequestInterface $request,
$pattern
) {
$request = $request->withUri(
$request->getUri()
->withHost($this->getAccelerateHost($command, $pattern))
->withPath($this->getBucketlessPath(
$request->getUri()->getPath(),
$command
))
);
return $request;
}
private function getAccelerateHost(CommandInterface $command, $pattern)
{
return "{$command['Bucket']}.{$pattern}.amazonaws.com";
}
private function getBucketlessPath($path, CommandInterface $command)
{
$pattern = '/^\\/' . preg_quote($command['Bucket'], '/') . '/';
return preg_replace($pattern, '', $path) ?: '/';
}
}

View File

@@ -14,6 +14,8 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionApplicationDiscoveryService(array $args = [])
* @method \Aws\AutoScaling\AutoScalingClient createAutoScaling(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionAutoScaling(array $args = [])
* @method \Aws\Budgets\BudgetsClient createBudgets(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionBudgets(array $args = [])
* @method \Aws\CloudFormation\CloudFormationClient createCloudFormation(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionCloudFormation(array $args = [])
* @method \Aws\CloudFront\CloudFrontClient createCloudFront(array $args = [])
@@ -128,6 +130,8 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionServiceCatalog(array $args = [])
* @method \Aws\Ses\SesClient createSes(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionSes(array $args = [])
* @method \Aws\Sms\SmsClient createSms(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionSms(array $args = [])
* @method \Aws\SnowBall\SnowBallClient createSnowBall(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionSnowBall(array $args = [])
* @method \Aws\Sns\SnsClient createSns(array $args = [])
@@ -151,7 +155,7 @@ namespace Aws;
*/
class Sdk
{
const VERSION = '3.19.5';
const VERSION = '3.19.22';
/** @var array Arguments for creating clients */
private $args;

View File

@@ -8,12 +8,20 @@ use Aws\Credentials\CredentialsInterface;
*
* @method \Aws\Result cloneReceiptRuleSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise cloneReceiptRuleSetAsync(array $args = [])
* @method \Aws\Result createConfigurationSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise createConfigurationSetAsync(array $args = [])
* @method \Aws\Result createConfigurationSetEventDestination(array $args = [])
* @method \GuzzleHttp\Promise\Promise createConfigurationSetEventDestinationAsync(array $args = [])
* @method \Aws\Result createReceiptFilter(array $args = [])
* @method \GuzzleHttp\Promise\Promise createReceiptFilterAsync(array $args = [])
* @method \Aws\Result createReceiptRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise createReceiptRuleAsync(array $args = [])
* @method \Aws\Result createReceiptRuleSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise createReceiptRuleSetAsync(array $args = [])
* @method \Aws\Result deleteConfigurationSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteConfigurationSetAsync(array $args = [])
* @method \Aws\Result deleteConfigurationSetEventDestination(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteConfigurationSetEventDestinationAsync(array $args = [])
* @method \Aws\Result deleteIdentity(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteIdentityAsync(array $args = [])
* @method \Aws\Result deleteIdentityPolicy(array $args = [])
@@ -28,6 +36,8 @@ use Aws\Credentials\CredentialsInterface;
* @method \GuzzleHttp\Promise\Promise deleteVerifiedEmailAddressAsync(array $args = [])
* @method \Aws\Result describeActiveReceiptRuleSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeActiveReceiptRuleSetAsync(array $args = [])
* @method \Aws\Result describeConfigurationSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeConfigurationSetAsync(array $args = [])
* @method \Aws\Result describeReceiptRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeReceiptRuleAsync(array $args = [])
* @method \Aws\Result describeReceiptRuleSet(array $args = [])
@@ -46,6 +56,8 @@ use Aws\Credentials\CredentialsInterface;
* @method \GuzzleHttp\Promise\Promise getSendQuotaAsync(array $args = [])
* @method \Aws\Result getSendStatistics(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSendStatisticsAsync(array $args = [])
* @method \Aws\Result listConfigurationSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listConfigurationSetsAsync(array $args = [])
* @method \Aws\Result listIdentities(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIdentitiesAsync(array $args = [])
* @method \Aws\Result listIdentityPolicies(array $args = [])
@@ -80,6 +92,8 @@ use Aws\Credentials\CredentialsInterface;
* @method \GuzzleHttp\Promise\Promise setIdentityNotificationTopicAsync(array $args = [])
* @method \Aws\Result setReceiptRulePosition(array $args = [])
* @method \GuzzleHttp\Promise\Promise setReceiptRulePositionAsync(array $args = [])
* @method \Aws\Result updateConfigurationSetEventDestination(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateConfigurationSetEventDestinationAsync(array $args = [])
* @method \Aws\Result updateReceiptRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateReceiptRuleAsync(array $args = [])
* @method \Aws\Result verifyDomainDkim(array $args = [])

View File

@@ -0,0 +1,9 @@
<?php
namespace Aws\Sms\Exception;
use Aws\Exception\AwsException;
/**
* Represents an error interacting with the **AWS Server Migration Service** service.
*/
class SmsException extends AwsException {}

View File

@@ -0,0 +1,31 @@
<?php
namespace Aws\Sms;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Server Migration Service** service.
* @method \Aws\Result createReplicationJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise createReplicationJobAsync(array $args = [])
* @method \Aws\Result deleteReplicationJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteReplicationJobAsync(array $args = [])
* @method \Aws\Result deleteServerCatalog(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteServerCatalogAsync(array $args = [])
* @method \Aws\Result disassociateConnector(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateConnectorAsync(array $args = [])
* @method \Aws\Result getConnectors(array $args = [])
* @method \GuzzleHttp\Promise\Promise getConnectorsAsync(array $args = [])
* @method \Aws\Result getReplicationJobs(array $args = [])
* @method \GuzzleHttp\Promise\Promise getReplicationJobsAsync(array $args = [])
* @method \Aws\Result getReplicationRuns(array $args = [])
* @method \GuzzleHttp\Promise\Promise getReplicationRunsAsync(array $args = [])
* @method \Aws\Result getServers(array $args = [])
* @method \GuzzleHttp\Promise\Promise getServersAsync(array $args = [])
* @method \Aws\Result importServerCatalog(array $args = [])
* @method \GuzzleHttp\Promise\Promise importServerCatalogAsync(array $args = [])
* @method \Aws\Result startOnDemandReplicationRun(array $args = [])
* @method \GuzzleHttp\Promise\Promise startOnDemandReplicationRunAsync(array $args = [])
* @method \Aws\Result updateReplicationJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateReplicationJobAsync(array $args = [])
*/
class SmsClient extends AwsClient {}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudformation/2010-05-15/waiters-2.json
return [ 'version' => 2, 'waiters' => [ 'StackExists' => [ 'delay' => 5, 'operation' => 'DescribeStacks', 'maxAttempts' => 20, 'acceptors' => [ [ 'matcher' => 'status', 'expected' => 200, 'state' => 'success', ], [ 'matcher' => 'error', 'expected' => 'ValidationError', 'state' => 'retry', ], ], ], 'StackCreateComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is CREATE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'DELETE_IN_PROGRESS', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'argument' => 'Stacks[].StackStatus', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], 'StackDeleteComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is DELETE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'success', ], [ 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], ], ], 'StackUpdateComplete' => [ 'delay' => 30, 'maxAttempts' => 120, 'operation' => 'DescribeStacks', 'description' => 'Wait until stack status is UPDATE_COMPLETE.', 'acceptors' => [ [ 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], ],];
return [ 'version' => 2, 'waiters' => [ 'StackExists' => [ 'delay' => 5, 'operation' => 'DescribeStacks', 'maxAttempts' => 20, 'acceptors' => [ [ 'matcher' => 'status', 'expected' => 200, 'state' => 'success', ], [ 'matcher' => 'error', 'expected' => 'ValidationError', 'state' => 'retry', ], ], ], 'StackCreateComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is CREATE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], 'StackDeleteComplete' => [ 'delay' => 30, 'operation' => 'DescribeStacks', 'maxAttempts' => 120, 'description' => 'Wait until stack status is DELETE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'success', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'DELETE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'CREATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_IN_PROGRESS', 'matcher' => 'pathAny', 'state' => 'failure', ], ], ], 'StackUpdateComplete' => [ 'delay' => 30, 'maxAttempts' => 120, 'operation' => 'DescribeStacks', 'description' => 'Wait until stack status is UPDATE_COMPLETE.', 'acceptors' => [ [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_COMPLETE', 'matcher' => 'pathAll', 'state' => 'success', ], [ 'expected' => 'UPDATE_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'argument' => 'Stacks[].StackStatus', 'expected' => 'UPDATE_ROLLBACK_FAILED', 'matcher' => 'pathAny', 'state' => 'failure', ], [ 'expected' => 'UPDATE_ROLLBACK_COMPLETE', 'matcher' => 'pathAny', 'state' => 'failure', 'argument' => 'Stacks[].StackStatus', ], [ 'expected' => 'ValidationError', 'matcher' => 'error', 'state' => 'failure', ], ], ], ],];

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/paginators-1.json
return [ 'pagination' => [ 'ListCloudFrontOriginAccessIdentities' => [ 'input_token' => 'Marker', 'output_token' => 'CloudFrontOriginAccessIdentityList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'CloudFrontOriginAccessIdentityList.IsTruncated', 'result_key' => 'CloudFrontOriginAccessIdentityList.Items', ], 'ListDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'DistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'DistributionList.IsTruncated', 'result_key' => 'DistributionList.Items', ], 'ListInvalidations' => [ 'input_token' => 'Marker', 'output_token' => 'InvalidationList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'InvalidationList.IsTruncated', 'result_key' => 'InvalidationList.Items', ], 'ListStreamingDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'StreamingDistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'StreamingDistributionList.IsTruncated', 'result_key' => 'StreamingDistributionList.Items', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/waiters-1.json
return [ 'waiters' => [ '__default__' => [ 'success_type' => 'output', 'success_path' => 'Status', ], 'StreamingDistributionDeployed' => [ 'operation' => 'GetStreamingDistribution', 'description' => 'Wait until a streaming distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'DistributionDeployed' => [ 'operation' => 'GetDistribution', 'description' => 'Wait until a distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'InvalidationCompleted' => [ 'operation' => 'GetInvalidation', 'description' => 'Wait until an invalidation has completed.', 'interval' => 20, 'max_attempts' => 30, 'success_value' => 'Completed', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-07/waiters-2.json
return [ 'version' => 2, 'waiters' => [ 'DistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Distribution.Status', ], ], ], 'InvalidationCompleted' => [ 'delay' => 20, 'operation' => 'GetInvalidation', 'maxAttempts' => 30, 'description' => 'Wait until an invalidation has completed.', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Invalidation.Status', ], ], ], 'StreamingDistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetStreamingDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a streaming distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'StreamingDistribution.Status', ], ], ], ],];

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/paginators-1.json
return [ 'pagination' => [ 'ListCloudFrontOriginAccessIdentities' => [ 'input_token' => 'Marker', 'output_token' => 'CloudFrontOriginAccessIdentityList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'CloudFrontOriginAccessIdentityList.IsTruncated', 'result_key' => 'CloudFrontOriginAccessIdentityList.Items', ], 'ListDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'DistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'DistributionList.IsTruncated', 'result_key' => 'DistributionList.Items', ], 'ListInvalidations' => [ 'input_token' => 'Marker', 'output_token' => 'InvalidationList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'InvalidationList.IsTruncated', 'result_key' => 'InvalidationList.Items', ], 'ListStreamingDistributions' => [ 'input_token' => 'Marker', 'output_token' => 'StreamingDistributionList.NextMarker', 'limit_key' => 'MaxItems', 'more_results' => 'StreamingDistributionList.IsTruncated', 'result_key' => 'StreamingDistributionList.Items', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/waiters-1.json
return [ 'waiters' => [ '__default__' => [ 'success_type' => 'output', 'success_path' => 'Status', ], 'StreamingDistributionDeployed' => [ 'operation' => 'GetStreamingDistribution', 'description' => 'Wait until a streaming distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'DistributionDeployed' => [ 'operation' => 'GetDistribution', 'description' => 'Wait until a distribution is deployed.', 'interval' => 60, 'max_attempts' => 25, 'success_value' => 'Deployed', ], 'InvalidationCompleted' => [ 'operation' => 'GetInvalidation', 'description' => 'Wait until an invalidation has completed.', 'interval' => 20, 'max_attempts' => 30, 'success_value' => 'Completed', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-09-29/waiters-2.json
return [ 'version' => 2, 'waiters' => [ 'DistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Distribution.Status', ], ], ], 'InvalidationCompleted' => [ 'delay' => 20, 'operation' => 'GetInvalidation', 'maxAttempts' => 30, 'description' => 'Wait until an invalidation has completed.', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'Invalidation.Status', ], ], ], 'StreamingDistributionDeployed' => [ 'delay' => 60, 'operation' => 'GetStreamingDistribution', 'maxAttempts' => 25, 'description' => 'Wait until a streaming distribution is deployed.', 'acceptors' => [ [ 'expected' => 'Deployed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'StreamingDistribution.Status', ], ], ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/ec2/2016-09-15/paginators-1.json
return [ 'pagination' => [ 'DescribeAccountAttributes' => [ 'result_key' => 'AccountAttributes', ], 'DescribeAddresses' => [ 'result_key' => 'Addresses', ], 'DescribeAvailabilityZones' => [ 'result_key' => 'AvailabilityZones', ], 'DescribeBundleTasks' => [ 'result_key' => 'BundleTasks', ], 'DescribeConversionTasks' => [ 'result_key' => 'ConversionTasks', ], 'DescribeCustomerGateways' => [ 'result_key' => 'CustomerGateways', ], 'DescribeDhcpOptions' => [ 'result_key' => 'DhcpOptions', ], 'DescribeExportTasks' => [ 'result_key' => 'ExportTasks', ], 'DescribeImages' => [ 'result_key' => 'Images', ], 'DescribeInstanceStatus' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'InstanceStatuses', ], 'DescribeInstances' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Reservations', ], 'DescribeInternetGateways' => [ 'result_key' => 'InternetGateways', ], 'DescribeKeyPairs' => [ 'result_key' => 'KeyPairs', ], 'DescribeNetworkAcls' => [ 'result_key' => 'NetworkAcls', ], 'DescribeNetworkInterfaces' => [ 'result_key' => 'NetworkInterfaces', ], 'DescribePlacementGroups' => [ 'result_key' => 'PlacementGroups', ], 'DescribeRegions' => [ 'result_key' => 'Regions', ], 'DescribeReservedInstances' => [ 'result_key' => 'ReservedInstances', ], 'DescribeReservedInstancesListings' => [ 'result_key' => 'ReservedInstancesListings', ], 'DescribeReservedInstancesOfferings' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'ReservedInstancesOfferings', ], 'DescribeReservedInstancesModifications' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'result_key' => 'ReservedInstancesModifications', ], 'DescribeRouteTables' => [ 'result_key' => 'RouteTables', ], 'DescribeSecurityGroups' => [ 'result_key' => 'SecurityGroups', ], 'DescribeSnapshots' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Snapshots', ], 'DescribeSpotInstanceRequests' => [ 'result_key' => 'SpotInstanceRequests', ], 'DescribeSpotFleetRequests' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'SpotFleetRequestConfigs', ], 'DescribeSpotPriceHistory' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'SpotPriceHistory', ], 'DescribeSubnets' => [ 'result_key' => 'Subnets', ], 'DescribeTags' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Tags', ], 'DescribeVolumeStatus' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'VolumeStatuses', ], 'DescribeVolumes' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Volumes', ], 'DescribeVpcs' => [ 'result_key' => 'Vpcs', ], 'DescribeVpcPeeringConnections' => [ 'result_key' => 'VpcPeeringConnections', ], 'DescribeVpnConnections' => [ 'result_key' => 'VpnConnections', ], 'DescribeVpnGateways' => [ 'result_key' => 'VpnGateways', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/ec2/2016-09-15/waiters-1.json
return [ 'waiters' => [ '__default__' => [ 'interval' => 15, 'max_attempts' => 40, 'acceptor_type' => 'output', ], '__InstanceState' => [ 'operation' => 'DescribeInstances', 'acceptor_path' => 'Reservations[].Instances[].State.Name', ], '__InstanceStatus' => [ 'operation' => 'DescribeInstanceStatus', 'success_value' => 'ok', ], 'SystemStatusOk' => [ 'extends' => '__InstanceStatus', 'acceptor_path' => 'InstanceStatuses[].SystemStatus.Status', ], 'InstanceStatusOk' => [ 'extends' => '__InstanceStatus', 'acceptor_path' => 'InstanceStatuses[].InstanceStatus.Status', ], 'ImageAvailable' => [ 'operation' => 'DescribeImages', 'acceptor_path' => 'Images[].State', 'success_value' => 'available', 'failure_value' => [ 'failed', ], ], 'InstanceRunning' => [ 'extends' => '__InstanceState', 'success_value' => 'running', 'failure_value' => [ 'shutting-down', 'terminated', 'stopping', ], ], 'InstanceStopped' => [ 'extends' => '__InstanceState', 'success_value' => 'stopped', 'failure_value' => [ 'pending', 'terminated', ], ], 'InstanceTerminated' => [ 'extends' => '__InstanceState', 'success_value' => 'terminated', 'failure_value' => [ 'pending', 'stopping', ], ], '__ExportTaskState' => [ 'operation' => 'DescribeExportTasks', 'acceptor_path' => 'ExportTasks[].State', ], 'ExportTaskCompleted' => [ 'extends' => '__ExportTaskState', 'success_value' => 'completed', ], 'ExportTaskCancelled' => [ 'extends' => '__ExportTaskState', 'success_value' => 'cancelled', ], 'SnapshotCompleted' => [ 'operation' => 'DescribeSnapshots', 'success_path' => 'Snapshots[].State', 'success_value' => 'completed', ], 'SubnetAvailable' => [ 'operation' => 'DescribeSubnets', 'success_path' => 'Subnets[].State', 'success_value' => 'available', ], '__VolumeStatus' => [ 'operation' => 'DescribeVolumes', 'acceptor_path' => 'Volumes[].State', ], 'VolumeAvailable' => [ 'extends' => '__VolumeStatus', 'success_value' => 'available', 'failure_value' => [ 'deleted', ], ], 'VolumeInUse' => [ 'extends' => '__VolumeStatus', 'success_value' => 'in-use', 'failure_value' => [ 'deleted', ], ], 'VolumeDeleted' => [ 'extends' => '__VolumeStatus', 'success_type' => 'error', 'success_value' => 'InvalidVolume.NotFound', ], 'VpcAvailable' => [ 'operation' => 'DescribeVpcs', 'success_path' => 'Vpcs[].State', 'success_value' => 'available', ], '__VpnConnectionState' => [ 'operation' => 'DescribeVpnConnections', 'acceptor_path' => 'VpnConnections[].State', ], 'VpnConnectionAvailable' => [ 'extends' => '__VpnConnectionState', 'success_value' => 'available', 'failure_value' => [ 'deleting', 'deleted', ], ], 'VpnConnectionDeleted' => [ 'extends' => '__VpnConnectionState', 'success_value' => 'deleted', 'failure_value' => [ 'pending', ], ], 'BundleTaskComplete' => [ 'operation' => 'DescribeBundleTasks', 'acceptor_path' => 'BundleTasks[].State', 'success_value' => 'complete', 'failure_value' => [ 'failed', ], ], '__ConversionTaskState' => [ 'operation' => 'DescribeConversionTasks', 'acceptor_path' => 'ConversionTasks[].State', ], 'ConversionTaskCompleted' => [ 'extends' => '__ConversionTaskState', 'success_value' => 'completed', 'failure_value' => [ 'cancelled', 'cancelling', ], ], 'ConversionTaskCancelled' => [ 'extends' => '__ConversionTaskState', 'success_value' => 'cancelled', ], '__CustomerGatewayState' => [ 'operation' => 'DescribeCustomerGateways', 'acceptor_path' => 'CustomerGateways[].State', ], 'CustomerGatewayAvailable' => [ 'extends' => '__CustomerGatewayState', 'success_value' => 'available', 'failure_value' => [ 'deleted', 'deleting', ], ], 'ConversionTaskDeleted' => [ 'extends' => '__CustomerGatewayState', 'success_value' => 'deleted', ], '__SpotInstanceRequestState' => [ 'operation' => 'DescribeSpotInstanceRequests', 'acceptor_path' => 'SpotInstanceRequests[].Status.Code', ], 'SpotInstanceRequestFulfilled' => [ 'extends' => '__SpotInstanceRequestState', 'success_value' => 'fulfilled', 'failure_value' => [ 'schedule-expired', 'canceled-before-fulfillment', 'bad-parameters', 'system-error', ], ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/ecr/2015-09-21/paginators-1.json
return [ 'pagination' => [ 'ListImages' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'imageIds', ], 'DescribeImages' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'imageDetails', ], 'DescribeRepositories' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'repositories', ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/redshift/2012-12-01/waiters-1.json
return [ 'waiters' => [ '__default__' => [ 'acceptor_type' => 'output', ], '__ClusterState' => [ 'interval' => 60, 'max_attempts' => 30, 'operation' => 'DescribeClusters', 'acceptor_path' => 'Clusters[].ClusterStatus', ], 'ClusterAvailable' => [ 'extends' => '__ClusterState', 'ignore_errors' => [ 'ClusterNotFound', ], 'success_value' => 'available', 'failure_value' => [ 'deleting', ], ], 'ClusterDeleted' => [ 'extends' => '__ClusterState', 'success_type' => 'error', 'success_value' => 'ClusterNotFound', 'failure_value' => [ 'creating', 'rebooting', ], ], 'SnapshotAvailable' => [ 'interval' => 15, 'max_attempts' => 20, 'operation' => 'DescribeClusterSnapshots', 'acceptor_path' => 'Snapshots[].Status', 'success_value' => 'available', 'failure_value' => [ 'failed', 'deleted', ], ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/s3/2006-03-01/waiters-1.json
return [ 'waiters' => [ '__default__' => [ 'interval' => 5, 'max_attempts' => 20, ], 'BucketExists' => [ 'operation' => 'HeadBucket', 'ignore_errors' => [ 'NoSuchBucket', ], 'success_type' => 'output', ], 'BucketNotExists' => [ 'operation' => 'HeadBucket', 'success_type' => 'error', 'success_value' => 'NoSuchBucket', ], 'ObjectExists' => [ 'operation' => 'HeadObject', 'ignore_errors' => [ 'NoSuchKey', ], 'success_type' => 'output', ], 'ObjectNotExists' => [ 'operation' => 'HeadObject', 'success_type' => 'error', 'success_value' => 'NoSuchKey', ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/sms/2016-10-24/paginators-1.json
return [ 'pagination' => [ 'GetReplicationJobs' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'replicationJobList', ], 'GetReplicationRuns' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'replicationRunList', ], 'GetConnectors' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'connectorList', ], 'GetServers' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', 'result_key' => 'serverList', ], ],];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long