Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Bump aws/aws-sdk-php from 3.171.21 to 3.184.2
Bumps [aws/aws-sdk-php](https://github.com/aws/aws-sdk-php) from 3.171.21 to 3.184.2.
- [Release notes](https://github.com/aws/aws-sdk-php/releases)
- [Changelog](https://github.com/aws/aws-sdk-php/blob/master/CHANGELOG.md)
- [Commits](aws/aws-sdk-php@3.171.21...3.184.2)

---
updated-dependencies:
- dependency-name: aws/aws-sdk-php
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
dependabot[bot] authored and ChristophWurst committed Jun 14, 2021
commit 8927b8997d3f88887de1fe102f7450f0b559af4e
6 changes: 3 additions & 3 deletions aws/aws-sdk-php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0",
"guzzlehttp/psr7": "^1.4.1",
"guzzlehttp/promises": "^1.0",
"mtdowling/jmespath.php": "^2.5",
"guzzlehttp/psr7": "^1.7.0",
"guzzlehttp/promises": "^1.4.0",
"mtdowling/jmespath.php": "^2.6",
"ext-pcre": "*",
"ext-json": "*",
"ext-simplexml": "*"
Expand Down
18 changes: 18 additions & 0 deletions aws/aws-sdk-php/src/AccessAnalyzer/AccessAnalyzerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* This client is used to interact with the **Access Analyzer** service.
* @method \Aws\Result applyArchiveRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise applyArchiveRuleAsync(array $args = [])
* @method \Aws\Result cancelPolicyGeneration(array $args = [])
* @method \GuzzleHttp\Promise\Promise cancelPolicyGenerationAsync(array $args = [])
* @method \Aws\Result createAccessPreview(array $args = [])
* @method \GuzzleHttp\Promise\Promise createAccessPreviewAsync(array $args = [])
* @method \Aws\Result createAnalyzer(array $args = [])
* @method \GuzzleHttp\Promise\Promise createAnalyzerAsync(array $args = [])
* @method \Aws\Result createArchiveRule(array $args = [])
Expand All @@ -15,6 +19,8 @@
* @method \GuzzleHttp\Promise\Promise deleteAnalyzerAsync(array $args = [])
* @method \Aws\Result deleteArchiveRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteArchiveRuleAsync(array $args = [])
* @method \Aws\Result getAccessPreview(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAccessPreviewAsync(array $args = [])
* @method \Aws\Result getAnalyzedResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAnalyzedResourceAsync(array $args = [])
* @method \Aws\Result getAnalyzer(array $args = [])
Expand All @@ -23,6 +29,12 @@
* @method \GuzzleHttp\Promise\Promise getArchiveRuleAsync(array $args = [])
* @method \Aws\Result getFinding(array $args = [])
* @method \GuzzleHttp\Promise\Promise getFindingAsync(array $args = [])
* @method \Aws\Result getGeneratedPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise getGeneratedPolicyAsync(array $args = [])
* @method \Aws\Result listAccessPreviewFindings(array $args = [])
* @method \GuzzleHttp\Promise\Promise listAccessPreviewFindingsAsync(array $args = [])
* @method \Aws\Result listAccessPreviews(array $args = [])
* @method \GuzzleHttp\Promise\Promise listAccessPreviewsAsync(array $args = [])
* @method \Aws\Result listAnalyzedResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise listAnalyzedResourcesAsync(array $args = [])
* @method \Aws\Result listAnalyzers(array $args = [])
Expand All @@ -31,8 +43,12 @@
* @method \GuzzleHttp\Promise\Promise listArchiveRulesAsync(array $args = [])
* @method \Aws\Result listFindings(array $args = [])
* @method \GuzzleHttp\Promise\Promise listFindingsAsync(array $args = [])
* @method \Aws\Result listPolicyGenerations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPolicyGenerationsAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result startPolicyGeneration(array $args = [])
* @method \GuzzleHttp\Promise\Promise startPolicyGenerationAsync(array $args = [])
* @method \Aws\Result startResourceScan(array $args = [])
* @method \GuzzleHttp\Promise\Promise startResourceScanAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
Expand All @@ -43,5 +59,7 @@
* @method \GuzzleHttp\Promise\Promise updateArchiveRuleAsync(array $args = [])
* @method \Aws\Result updateFindings(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateFindingsAsync(array $args = [])
* @method \Aws\Result validatePolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise validatePolicyAsync(array $args = [])
*/
class AccessAnalyzerClient extends AwsClient {}
4 changes: 4 additions & 0 deletions aws/aws-sdk-php/src/Acm/AcmClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* @method \GuzzleHttp\Promise\Promise describeCertificateAsync(array $args = [])
* @method \Aws\Result exportCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise exportCertificateAsync(array $args = [])
* @method \Aws\Result getAccountConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAccountConfigurationAsync(array $args = [])
* @method \Aws\Result getCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise getCertificateAsync(array $args = [])
* @method \Aws\Result importCertificate(array $args = [])
Expand All @@ -22,6 +24,8 @@
* @method \GuzzleHttp\Promise\Promise listCertificatesAsync(array $args = [])
* @method \Aws\Result listTagsForCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForCertificateAsync(array $args = [])
* @method \Aws\Result putAccountConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise putAccountConfigurationAsync(array $args = [])
* @method \Aws\Result removeTagsFromCertificate(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeTagsFromCertificateAsync(array $args = [])
* @method \Aws\Result renewCertificate(array $args = [])
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Api/Parser/Crc32ValidatingParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __invoke(
ResponseInterface $response
) {
if ($expected = $response->getHeaderLine('x-amz-crc32')) {
$hash = hexdec(Psr7\hash($response->getBody(), 'crc32b'));
$hash = hexdec(Psr7\Utils::hash($response->getBody(), 'crc32b'));
if ($expected != $hash) {
throw new AwsException(
"crc32 mismatch. Expected {$expected}, found {$hash}.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private function parseEvent()
$numBytes
) = $this->parseHeaders($prelude[self::LENGTH_HEADERS]);

$event[self::PAYLOAD] = Psr7\stream_for(
$event[self::PAYLOAD] = Psr7\Utils::streamFor(
$this->readAndHashBytes(
$prelude[self::LENGTH_TOTAL] - self::BYTES_PRELUDE
- $numBytes - self::BYTES_TRAILING
Expand Down
6 changes: 3 additions & 3 deletions aws/aws-sdk-php/src/Api/Serializer/RestSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class RestSerializer
public function __construct(Service $api, $endpoint)
{
$this->api = $api;
$this->endpoint = Psr7\uri_for($endpoint);
$this->endpoint = Psr7\Utils::uriFor($endpoint);
}

/**
Expand Down Expand Up @@ -114,7 +114,7 @@ private function applyPayload(StructureShape $input, $name, array $args, array &
) {
// Streaming bodies or payloads that are strings are
// always just a stream of data.
$opts['body'] = Psr7\stream_for($args[$name]);
$opts['body'] = Psr7\Utils::streamFor($args[$name]);
return;
}

Expand Down Expand Up @@ -208,7 +208,7 @@ function (array $matches) use ($varspecs) {

// Add the query string variables or appending to one if needed.
if (!empty($opts['query'])) {
$append = Psr7\build_query($opts['query']);
$append = Psr7\Query::build($opts['query']);
$relative .= strpos($relative, '?') ? "&{$append}" : "?$append";
}

Expand Down
16 changes: 15 additions & 1 deletion aws/aws-sdk-php/src/Api/Serializer/RestXmlSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ public function __construct(
protected function payload(StructureShape $member, array $value, array &$opts)
{
$opts['headers']['Content-Type'] = 'application/xml';
$opts['body'] = (string) $this->xmlBody->build($member, $value);
$opts['body'] = $this->getXmlBody($member, $value);
}

/**
* @param StructureShape $member
* @param array $value
* @return string
*/
private function getXmlBody(StructureShape $member, array $value)
{
$xmlBody = (string)$this->xmlBody->build($member, $value);
$xmlBody = str_replace("'", "&apos;", $xmlBody);
$xmlBody = str_replace('\r', "&#13;", $xmlBody);
$xmlBody = str_replace('\n', "&#10;", $xmlBody);
return $xmlBody;
}
}
53 changes: 53 additions & 0 deletions aws/aws-sdk-php/src/AppRunner/AppRunnerClient.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php
namespace Aws\AppRunner;

use Aws\AwsClient;

/**
* This client is used to interact with the **AWS App Runner** service.
* @method \Aws\Result associateCustomDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateCustomDomainAsync(array $args = [])
* @method \Aws\Result createAutoScalingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise createAutoScalingConfigurationAsync(array $args = [])
* @method \Aws\Result createConnection(array $args = [])
* @method \GuzzleHttp\Promise\Promise createConnectionAsync(array $args = [])
* @method \Aws\Result createService(array $args = [])
* @method \GuzzleHttp\Promise\Promise createServiceAsync(array $args = [])
* @method \Aws\Result deleteAutoScalingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteAutoScalingConfigurationAsync(array $args = [])
* @method \Aws\Result deleteConnection(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteConnectionAsync(array $args = [])
* @method \Aws\Result deleteService(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteServiceAsync(array $args = [])
* @method \Aws\Result describeAutoScalingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeAutoScalingConfigurationAsync(array $args = [])
* @method \Aws\Result describeCustomDomains(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeCustomDomainsAsync(array $args = [])
* @method \Aws\Result describeService(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeServiceAsync(array $args = [])
* @method \Aws\Result disassociateCustomDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateCustomDomainAsync(array $args = [])
* @method \Aws\Result listAutoScalingConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listAutoScalingConfigurationsAsync(array $args = [])
* @method \Aws\Result listConnections(array $args = [])
* @method \GuzzleHttp\Promise\Promise listConnectionsAsync(array $args = [])
* @method \Aws\Result listOperations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listOperationsAsync(array $args = [])
* @method \Aws\Result listServices(array $args = [])
* @method \GuzzleHttp\Promise\Promise listServicesAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result pauseService(array $args = [])
* @method \GuzzleHttp\Promise\Promise pauseServiceAsync(array $args = [])
* @method \Aws\Result resumeService(array $args = [])
* @method \GuzzleHttp\Promise\Promise resumeServiceAsync(array $args = [])
* @method \Aws\Result startDeployment(array $args = [])
* @method \GuzzleHttp\Promise\Promise startDeploymentAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateService(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateServiceAsync(array $args = [])
*/
class AppRunnerClient extends AwsClient {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
namespace Aws\AppRunner\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS App Runner** service.
*/
class AppRunnerException extends AwsException {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
namespace Aws\ApplicationCostProfiler;

use Aws\AwsClient;

/**
* This client is used to interact with the **AWS Application Cost Profiler** service.
* @method \Aws\Result deleteReportDefinition(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteReportDefinitionAsync(array $args = [])
* @method \Aws\Result getReportDefinition(array $args = [])
* @method \GuzzleHttp\Promise\Promise getReportDefinitionAsync(array $args = [])
* @method \Aws\Result importApplicationUsage(array $args = [])
* @method \GuzzleHttp\Promise\Promise importApplicationUsageAsync(array $args = [])
* @method \Aws\Result listReportDefinitions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listReportDefinitionsAsync(array $args = [])
* @method \Aws\Result putReportDefinition(array $args = [])
* @method \GuzzleHttp\Promise\Promise putReportDefinitionAsync(array $args = [])
* @method \Aws\Result updateReportDefinition(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateReportDefinitionAsync(array $args = [])
*/
class ApplicationCostProfilerClient extends AwsClient {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
namespace Aws\ApplicationCostProfiler\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Application Cost Profiler** service.
*/
class ApplicationCostProfilerException extends AwsException {}
2 changes: 2 additions & 0 deletions aws/aws-sdk-php/src/Appstream/AppstreamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* @method \GuzzleHttp\Promise\Promise createStackAsync(array $args = [])
* @method \Aws\Result createStreamingURL(array $args = [])
* @method \GuzzleHttp\Promise\Promise createStreamingURLAsync(array $args = [])
* @method \Aws\Result createUpdatedImage(array $args = [])
* @method \GuzzleHttp\Promise\Promise createUpdatedImageAsync(array $args = [])
* @method \Aws\Result createUsageReportSubscription(array $args = [])
* @method \GuzzleHttp\Promise\Promise createUsageReportSubscriptionAsync(array $args = [])
* @method \Aws\Result createUser(array $args = [])
Expand Down
4 changes: 4 additions & 0 deletions aws/aws-sdk-php/src/Arn/ArnParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Aws\Arn;

use Aws\Arn\S3\AccessPointArn as S3AccessPointArn;
use Aws\Arn\ObjectLambdaAccessPointArn;
use Aws\Arn\S3\OutpostsBucketArn;
use Aws\Arn\S3\RegionalBucketArn;
use Aws\Arn\S3\OutpostsAccessPointArn;
Expand Down Expand Up @@ -35,6 +36,9 @@ public static function isArn($string)
public static function parse($string)
{
$data = Arn::parse($string);
if ($data['service'] === 's3-object-lambda') {
return new ObjectLambdaAccessPointArn($string);
}
$resource = self::explodeResourceComponent($data['resource']);
if ($resource[0] === 'outpost') {
if (isset($resource[2]) && $resource[2] === 'bucket') {
Expand Down
35 changes: 35 additions & 0 deletions aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
namespace Aws\Arn;

/**
* This class represents an S3 Object bucket ARN, which is in the
* following format:
*
* @internal
*/
class ObjectLambdaAccessPointArn extends AccessPointArn
{
/**
* Parses a string into an associative array of components that represent
* a ObjectLambdaAccessPointArn
*
* @param $string
* @return array
*/
public static function parse($string)
{
$data = parent::parse($string);
return parent::parseResourceTypeAndId($data);
}

/**
*
* @param array $data
*/
protected static function validate(array $data)
{
parent::validate($data);
self::validateRegion($data, 'S3 Object Lambda ARN');
self::validateAccountId($data, 'S3 Object Lambda ARN');
}
}
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Arn/ResourceTypeAndIdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function getResourceId()
return $this->data['resource_id'];
}

private static function parseResourceTypeAndId(array $data)
protected static function parseResourceTypeAndId(array $data)
{
$resourceData = preg_split("/[\/:]/", $data['resource'], 2);
$data['resource_type'] = isset($resourceData[0])
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AccessPointArn extends BaseAccessPointArn implements AccessPointArnInterfa
*
* @param array $data
*/
protected static function validate(array $data)
public static function validate(array $data)
{
parent::validate($data);
if ($data['service'] !== 's3') {
Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Arn/S3/OutpostsAccessPointArn.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static function parseOutpostData(array $data)
*
* @param array $data
*/
protected static function validate(array $data)
public static function validate(array $data)
{
Arn::validate($data);

Expand Down
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/Arn/S3/OutpostsBucketArn.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static function parseOutpostData(array $data)
*
* @param array $data
*/
protected static function validate(array $data)
public static function validate(array $data)
{
Arn::validate($data);

Expand Down
12 changes: 12 additions & 0 deletions aws/aws-sdk-php/src/Athena/AthenaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
* @method \GuzzleHttp\Promise\Promise createDataCatalogAsync(array $args = [])
* @method \Aws\Result createNamedQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise createNamedQueryAsync(array $args = [])
* @method \Aws\Result createPreparedStatement(array $args = [])
* @method \GuzzleHttp\Promise\Promise createPreparedStatementAsync(array $args = [])
* @method \Aws\Result createWorkGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise createWorkGroupAsync(array $args = [])
* @method \Aws\Result deleteDataCatalog(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDataCatalogAsync(array $args = [])
* @method \Aws\Result deleteNamedQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteNamedQueryAsync(array $args = [])
* @method \Aws\Result deletePreparedStatement(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePreparedStatementAsync(array $args = [])
* @method \Aws\Result deleteWorkGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteWorkGroupAsync(array $args = [])
* @method \Aws\Result getDataCatalog(array $args = [])
Expand All @@ -27,6 +31,8 @@
* @method \GuzzleHttp\Promise\Promise getDatabaseAsync(array $args = [])
* @method \Aws\Result getNamedQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise getNamedQueryAsync(array $args = [])
* @method \Aws\Result getPreparedStatement(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPreparedStatementAsync(array $args = [])
* @method \Aws\Result getQueryExecution(array $args = [])
* @method \GuzzleHttp\Promise\Promise getQueryExecutionAsync(array $args = [])
* @method \Aws\Result getQueryResults(array $args = [])
Expand All @@ -39,8 +45,12 @@
* @method \GuzzleHttp\Promise\Promise listDataCatalogsAsync(array $args = [])
* @method \Aws\Result listDatabases(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDatabasesAsync(array $args = [])
* @method \Aws\Result listEngineVersions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listEngineVersionsAsync(array $args = [])
* @method \Aws\Result listNamedQueries(array $args = [])
* @method \GuzzleHttp\Promise\Promise listNamedQueriesAsync(array $args = [])
* @method \Aws\Result listPreparedStatements(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPreparedStatementsAsync(array $args = [])
* @method \Aws\Result listQueryExecutions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listQueryExecutionsAsync(array $args = [])
* @method \Aws\Result listTableMetadata(array $args = [])
Expand All @@ -59,6 +69,8 @@
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateDataCatalog(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDataCatalogAsync(array $args = [])
* @method \Aws\Result updatePreparedStatement(array $args = [])
* @method \GuzzleHttp\Promise\Promise updatePreparedStatementAsync(array $args = [])
* @method \Aws\Result updateWorkGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateWorkGroupAsync(array $args = [])
*/
Expand Down
Loading