Inital commit for unit test configuration

This commit is contained in:
Manish Verma
2018-09-05 12:36:46 +05:30
committed by Manish Verma
parent 2f0796e954
commit e0436b7757
252 changed files with 3219 additions and 1631 deletions

32
vendor/aws/aws-sdk-php/.changes/3.64.14 vendored Normal file
View File

@@ -0,0 +1,32 @@
[
{
"type": "enhancement",
"category": "TraceMiddleware",
"description": "Removed potential PCRE vulnerability."
},
{
"type": "api-change",
"category": "EC2",
"description": "The 'Attribute' parameter DescribeVolumeAttribute request has been marked as required - the API has always required this parameter, but up until now this wasn't reflected appropriately in the SDK."
},
{
"type": "api-change",
"category": "SSM",
"description": "AWS Systems Manager Inventory now supports groups to quickly see a count of which managed instances are and arent configured to collect one or more Inventory types"
},
{
"type": "api-change",
"category": "ApplicationDiscoveryService",
"description": "The Application Discovery Service's Continuous Export APIs allow you to analyze your on-premises server inventory data, including system performance and network dependencies, in Amazon Athena."
},
{
"type": "api-change",
"category": "Redshift",
"description": "You can now resize your Amazon Redshift cluster quickly. With the new ResizeCluster action, your cluster is available for read and write operations within minutes"
},
{
"type": "api-change",
"category": "MediaConvert",
"description": "Added WriteSegmentTimelineInRepresentation option for Dash Outputs"
}
]

17
vendor/aws/aws-sdk-php/.changes/3.64.15 vendored Normal file
View File

@@ -0,0 +1,17 @@
[
{
"type": "enhancement",
"category": "SecretsManager",
"description": "Documentation updates for Secrets Manager"
},
{
"type": "api-change",
"category": "DAX",
"description": "DAX CreateClusterRequest is updated to include IamRoleArn as a required request parameter. "
},
{
"type": "api-change",
"category": "SageMaker",
"description": "Added an optional boolean parameter, 'DisassociateLifecycleConfig', to the UpdateNotebookInstance operation. When set to true, the lifecycle configuration associated with the notebook instance will be removed, allowing a new one to be set via a new 'LifecycleConfigName' parameter."
}
]

27
vendor/aws/aws-sdk-php/.changes/3.65.0 vendored Normal file
View File

@@ -0,0 +1,27 @@
[
{
"type": "enhancement",
"category": "Test",
"description": "Refactored exception tests to prepare for PHPUnit6"
},
{
"type": "enhancement",
"category": "Test",
"description": "Refactored namespaces of tests to prepare for PHPUnit6"
},
{
"type": "feature",
"category": "Signature\\SignatureV4",
"description": "Add support for pre-signing additional headers. Any additional headers that are supplied and signed must be included when sending the request."
},
{
"type": "api-change",
"category": "DynamoDB",
"description": "Added SSESpecification block to update-table command which allows users to modify table Server-Side Encryption. Added two new fields (SSEType and KMSMasterKeyId) to SSESpecification block used by create-table and update-table commands. Added new SSEDescription Status value UPDATING."
},
{
"type": "api-change",
"category": "MediaConvert",
"description": "This release fixes backward-incompatible changes from a previous release. That previous release changed non-required job settings to required, which prevented jobs and job templates from merging correctly. The current change removes validation of required settings from the SDK and instead centralizes the validation in the service API. For information on required settings, see the Resources chapter of the AWS Elemental MediaConvert API Reference https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/apireference\/resources.html"
}
]

27
vendor/aws/aws-sdk-php/.changes/3.65.1 vendored Normal file
View File

@@ -0,0 +1,27 @@
[
{
"type": "bugfix",
"category": "Signature\\SignatureV4",
"description": "Updates the SignatureV4 presigning process to not sign, and subsequently require on use, the X-Amz-Security-Token header when it's already signed in the query string."
},
{
"type": "api-change",
"category": "EC2",
"description": "Added support for T3 Instance type in EC2. To learn more about T3 instances, please see https:\/\/aws.amazon.com\/ec2\/instance-types\/t3\/"
},
{
"type": "enhancement",
"category": "DLM",
"description": "Documentation updates for Lifecycle"
},
{
"type": "api-change",
"category": "ElasticBeanstalk",
"description": "Elastic Beanstalk adds the \"Privileged\" field to the \"CPUUtilization\" type, to support enhanced health reporting in Windows environments."
},
{
"type": "api-change",
"category": "RDS",
"description": "Adds a paginator for the DescribeDBClusters operation."
}
]

View File

@@ -0,0 +1,7 @@
[
{
"type": "api-change",
"category": "Snowball",
"description": "Snowball job states allow customers to track the status of the Snowball job. We are launching a new Snowball job state \"WithSortingFacility\"! When customer returns the Snowball to AWS, the device first goes to a sorting facility before it reaches an AWS data center. Many customers have requested us to add a new state to reflect the presence of the device at the sorting facility for better tracking. Today when a customer returns the Snowball, the state first changes from \"InTransitToAWS\" to \"WithAWS\". With the addition of new state, the device will move from \"InTransitToAWS\" to \"WithAWSSortingFacility\", and then to \"WithAWS\". There are no other changes to the API at this time besides adding this new state."
}
]

32
vendor/aws/aws-sdk-php/.changes/3.66.0 vendored Normal file
View File

@@ -0,0 +1,32 @@
[
{
"type": "feature",
"category": "Credentials",
"description": "Update ini parsing to handle unquoted components that contain equals signs."
},
{
"type": "api-change",
"category": "Rekognition",
"description": "This release introduces a new API called DescribeCollection to Amazon Rekognition. You can use DescribeCollection to get information about an existing face collection. Given the ID for a face collection, DescribeCollection returns the following information: the number of faces indexed into the collection, the version of the face detection model used by the collection, the Amazon Resource Name (ARN) of the collection and the creation date\/time of the collection."
},
{
"type": "api-change",
"category": "IoT",
"description": "This release adds support for IoT Thing Group Indexing and Searching functionality."
},
{
"type": "api-change",
"category": "LexModelBuildingService",
"description": "Amazon Lex builds bot in two stages. After the first it sets status to READY_BASIC_TESTING. In this state the bot will match user inputs that exactly match the utterances configured for the bot's intents and values in the slot types. "
},
{
"type": "api-change",
"category": "IoTAnalytics",
"description": "AWS IoT Analytics announces three new features: (1) Bring Your Custom Container - import your custom authored code containers. (2) Automate Container Execution - lets you automate the execution of containers hosting custom authored analytical code or Jupyter Notebooks to perform continuous analysis. (3) Incremental Data Capture with Customizable Time Windows - enables users to perform analysis on new incremental data captured since the last analysis."
},
{
"type": "api-change",
"category": "MediaLive",
"description": "Adds two APIs for working with Channel Schedules: BatchUpdateSchedule and DescribeSchedule. These APIs allow scheduling actions for SCTE-35 message insertion and for static image overlays."
}
]

12
vendor/aws/aws-sdk-php/.changes/3.66.1 vendored Normal file
View File

@@ -0,0 +1,12 @@
[
{
"type": "api-change",
"category": "CognitoIdentityProvider",
"description": "Amazon Cognito now has API support for creating custom domains for our hosted UI for User Pools."
},
{
"type": "api-change",
"category": "CloudWatchEvents",
"description": "Added Fargate and NetworkConfiguration support to EcsParameters."
}
]

View File

@@ -0,0 +1,7 @@
[
{
"type": "api-change",
"category": "Glue",
"description": "AWS Glue now supports data encryption at rest for ETL jobs and development endpoints. With encryption enabled, when you run ETL jobs, or development endpoints, Glue will use AWS KMS keys to write encrypted data at rest. You can also encrypt the metadata stored in the Glue Data Catalog using keys that you manage with AWS KMS. Additionally, you can use AWS KMS keys to encrypt the logs generated by crawlers and ETL jobs as well as encrypt ETL job bookmarks. Encryption settings for Glue crawlers, ETL jobs, and development endpoints can be configured using the security configurations in Glue. Glue Data Catalog encryption can be enabled via the settings for the Glue Data Catalog."
}
]

22
vendor/aws/aws-sdk-php/.changes/3.67.0 vendored Normal file
View File

@@ -0,0 +1,22 @@
[
{
"type": "feature",
"category": "signer",
"description": "AWS Signer is a new feature that allows Amazon FreeRTOS (AFR) Over The Air (OTA) customers to cryptographically sign code using code-signing certificates managed by AWS Certificate Manager. "
},
{
"type": "api-change",
"category": "IoT",
"description": "This release adds support to create a Stream and Code signing for Amazon FreeRTOS job along with Over-the-air updates."
},
{
"type": "enhancement",
"category": "Redshift",
"description": "Documentation updates for redshift"
},
{
"type": "api-change",
"category": "IoTAnalytics",
"description": "Added new listDatasetContent API that shows you the list of dataset contents for the corresponding versions"
}
]

12
vendor/aws/aws-sdk-php/.changes/3.67.1 vendored Normal file
View File

@@ -0,0 +1,12 @@
[
{
"type": "api-change",
"category": "XRay",
"description": "Support for new APIs that enable management of sampling rules."
},
{
"type": "api-change",
"category": "Glue",
"description": "New Glue APIs for creating, updating, reading and deleting Data Catalog resource-based policies."
}
]

17
vendor/aws/aws-sdk-php/.changes/3.67.2 vendored Normal file
View File

@@ -0,0 +1,17 @@
[
{
"type": "api-change",
"category": "MediaPackage",
"description": "MediaPackage now provides input redundancy. Channels have two ingest endpoints that can receive input from encoders. OriginEndpoints pick one of the inputs receiving content for playback and automatically switch to the other input if the active input stops receiving content. Refer to the User Guide (https:\/\/docs.aws.amazon.com\/mediapackage\/latest\/ug\/what-is.html) for more details on this feature."
},
{
"type": "api-change",
"category": "Glue",
"description": "AWS Glue now supports data encryption at rest for ETL jobs and development endpoints. With encryption enabled, when you run ETL jobs, or development endpoints, Glue will use AWS KMS keys to write encrypted data at rest. You can also encrypt the metadata stored in the Glue Data Catalog using keys that you manage with AWS KMS. Additionally, you can use AWS KMS keys to encrypt the logs generated by crawlers and ETL jobs as well as encrypt ETL job bookmarks. Encryption settings for Glue crawlers, ETL jobs, and development endpoints can be configured using the security configurations in Glue. Glue Data Catalog encryption can be enabled via the settings for the Glue Data Catalog."
},
{
"type": "api-change",
"category": "SageMakerRuntime",
"description": "SageMaker Runtime supports CustomAttributes header which allows customers provide additional information in a request for an inference submitted to a model or in the response about the inference returned by a model hosted at an Amazon SageMaker endpoint."
}
]

12
vendor/aws/aws-sdk-php/.changes/3.67.3 vendored Normal file
View File

@@ -0,0 +1,12 @@
[
{
"type": "api-change",
"category": "SageMaker",
"description": "VolumeKmsKeyId now available in Batch Transform Job "
},
{
"type": "api-change",
"category": "CodeBuild",
"description": "Support multiple sources and artifacts for CodeBuild projects. "
}
]

17
vendor/aws/aws-sdk-php/.changes/3.67.4 vendored Normal file
View File

@@ -0,0 +1,17 @@
[
{
"type": "api-change",
"category": "WAFRegional",
"description": "This change includes support for the WAF FullLogging feature through which Customers will have access to all the logs of requests that are inspected by a WAF WebACL. The new APIs allow Customers to manage association of a WebACL with one or more supported \"LogDestination\" and redact any request fields from the logs. "
},
{
"type": "api-change",
"category": "WAF",
"description": "This change includes support for the WAF FullLogging feature through which Customers will have access to all the logs of requests that are inspected by a WAF WebACL. The new APIs allow Customers to manage association of a WebACL with one or more supported \"LogDestination\" and redact any request fields from the logs. "
},
{
"type": "api-change",
"category": "EKS",
"description": "Amazon EKS DescribeCluster API returns a platformVersion attribute which allows you to identify the features that are currently enabled for your clusters. The Amazon EKS platform version represents capabilities of the cluster control plane, such as which Kubernetes API server flags are enabled, as well as the current Kubernetes patch version. "
}
]

12
vendor/aws/aws-sdk-php/.changes/3.67.5 vendored Normal file
View File

@@ -0,0 +1,12 @@
[
{
"type": "enhancement",
"category": "RDS",
"description": "Updating cross references for the new Aurora User Guide."
},
{
"type": "api-change",
"category": "Rekognition",
"description": "This release introduces a new API called DescribeCollection to Amazon Rekognition. You can use DescribeCollection to get information about an existing face collection. Given the ID for a face collection, DescribeCollection returns the following information: the number of faces indexed into the collection, the version of the face detection model used by the collection, the Amazon Resource Name (ARN) of the collection and the creation date\/time of the collection."
}
]

View File

@@ -19,6 +19,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeAgentsAsync(array $args = [])
* @method \Aws\Result describeConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeConfigurationsAsync(array $args = [])
* @method \Aws\Result describeContinuousExports(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeContinuousExportsAsync(array $args = [])
* @method \Aws\Result describeExportConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeExportConfigurationsAsync(array $args = [])
* @method \Aws\Result describeExportTasks(array $args = [])
@@ -35,10 +37,14 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listConfigurationsAsync(array $args = [])
* @method \Aws\Result listServerNeighbors(array $args = [])
* @method \GuzzleHttp\Promise\Promise listServerNeighborsAsync(array $args = [])
* @method \Aws\Result startContinuousExport(array $args = [])
* @method \GuzzleHttp\Promise\Promise startContinuousExportAsync(array $args = [])
* @method \Aws\Result startDataCollectionByAgentIds(array $args = [])
* @method \GuzzleHttp\Promise\Promise startDataCollectionByAgentIdsAsync(array $args = [])
* @method \Aws\Result startExportTask(array $args = [])
* @method \GuzzleHttp\Promise\Promise startExportTaskAsync(array $args = [])
* @method \Aws\Result stopContinuousExport(array $args = [])
* @method \GuzzleHttp\Promise\Promise stopContinuousExportAsync(array $args = [])
* @method \Aws\Result stopDataCollectionByAgentIds(array $args = [])
* @method \GuzzleHttp\Promise\Promise stopDataCollectionByAgentIdsAsync(array $args = [])
* @method \Aws\Result updateApplication(array $args = [])

View File

@@ -289,7 +289,7 @@ class CredentialProvider
if (!is_readable($filename)) {
return self::reject("Cannot read credentials from $filename");
}
$data = parse_ini_file($filename, true);
$data = parse_ini_file($filename, true, INI_SCANNER_RAW);
if ($data === false) {
return self::reject("Invalid credentials file: $filename");
}

View File

@@ -35,6 +35,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise createPartitionAsync(array $args = [])
* @method \Aws\Result createScript(array $args = [])
* @method \GuzzleHttp\Promise\Promise createScriptAsync(array $args = [])
* @method \Aws\Result createSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result createTable(array $args = [])
* @method \GuzzleHttp\Promise\Promise createTableAsync(array $args = [])
* @method \Aws\Result createTrigger(array $args = [])
@@ -55,6 +57,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteJobAsync(array $args = [])
* @method \Aws\Result deletePartition(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePartitionAsync(array $args = [])
* @method \Aws\Result deleteSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result deleteTable(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteTableAsync(array $args = [])
* @method \Aws\Result deleteTableVersion(array $args = [])
@@ -105,6 +109,10 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getPartitionsAsync(array $args = [])
* @method \Aws\Result getPlan(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPlanAsync(array $args = [])
* @method \Aws\Result getSecurityConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSecurityConfigurationAsync(array $args = [])
* @method \Aws\Result getSecurityConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSecurityConfigurationsAsync(array $args = [])
* @method \Aws\Result getTable(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTableAsync(array $args = [])
* @method \Aws\Result getTableVersion(array $args = [])
@@ -123,6 +131,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getUserDefinedFunctionsAsync(array $args = [])
* @method \Aws\Result importCatalogToGlue(array $args = [])
* @method \GuzzleHttp\Promise\Promise importCatalogToGlueAsync(array $args = [])
* @method \Aws\Result putDataCatalogEncryptionSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise putDataCatalogEncryptionSettingsAsync(array $args = [])
* @method \Aws\Result resetJobBookmark(array $args = [])
* @method \GuzzleHttp\Promise\Promise resetJobBookmarkAsync(array $args = [])
* @method \Aws\Result startCrawler(array $args = [])

View File

@@ -43,6 +43,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getDatasetContentAsync(array $args = [])
* @method \Aws\Result listChannels(array $args = [])
* @method \GuzzleHttp\Promise\Promise listChannelsAsync(array $args = [])
* @method \Aws\Result listDatasetContents(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDatasetContentsAsync(array $args = [])
* @method \Aws\Result listDatasets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDatasetsAsync(array $args = [])
* @method \Aws\Result listDatastores(array $args = [])

View File

@@ -5,6 +5,8 @@ use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Elemental MediaLive** service.
* @method \Aws\Result batchUpdateSchedule(array $args = [])
* @method \GuzzleHttp\Promise\Promise batchUpdateScheduleAsync(array $args = [])
* @method \Aws\Result createChannel(array $args = [])
* @method \GuzzleHttp\Promise\Promise createChannelAsync(array $args = [])
* @method \Aws\Result createInput(array $args = [])
@@ -29,6 +31,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeOfferingAsync(array $args = [])
* @method \Aws\Result describeReservation(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeReservationAsync(array $args = [])
* @method \Aws\Result describeSchedule(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeScheduleAsync(array $args = [])
* @method \Aws\Result listChannels(array $args = [])
* @method \GuzzleHttp\Promise\Promise listChannelsAsync(array $args = [])
* @method \Aws\Result listInputSecurityGroups(array $args = [])

View File

@@ -23,6 +23,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listOriginEndpointsAsync(array $args = [])
* @method \Aws\Result rotateChannelCredentials(array $args = [])
* @method \GuzzleHttp\Promise\Promise rotateChannelCredentialsAsync(array $args = [])
* @method \Aws\Result rotateIngestEndpointCredentials(array $args = [])
* @method \GuzzleHttp\Promise\Promise rotateIngestEndpointCredentialsAsync(array $args = [])
* @method \Aws\Result updateChannel(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateChannelAsync(array $args = [])
* @method \Aws\Result updateOriginEndpoint(array $args = [])

View File

@@ -132,6 +132,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise rebootClusterAsync(array $args = [])
* @method \Aws\Result resetClusterParameterGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise resetClusterParameterGroupAsync(array $args = [])
* @method \Aws\Result resizeCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise resizeClusterAsync(array $args = [])
* @method \Aws\Result restoreFromClusterSnapshot(array $args = [])
* @method \GuzzleHttp\Promise\Promise restoreFromClusterSnapshotAsync(array $args = [])
* @method \Aws\Result restoreTableFromClusterSnapshot(array $args = [])

View File

@@ -17,6 +17,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteFacesAsync(array $args = [])
* @method \Aws\Result deleteStreamProcessor(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteStreamProcessorAsync(array $args = [])
* @method \Aws\Result describeCollection(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeCollectionAsync(array $args = [])
* @method \Aws\Result describeStreamProcessor(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeStreamProcessorAsync(array $args = [])
* @method \Aws\Result detectFaces(array $args = [])

View File

@@ -290,10 +290,12 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionWorkSpaces(array $args = [])
* @method \Aws\XRay\XRayClient createXRay(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionXRay(array $args = [])
* @method \Aws\signer\signerClient createsigner(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionsigner(array $args = [])
*/
class Sdk
{
const VERSION = '3.64.13';
const VERSION = '3.67.5';
/** @var array Arguments for creating clients */
private $args;

View File

@@ -15,6 +15,7 @@ class SignatureV4 implements SignatureInterface
use SignatureTrait;
const ISO8601_BASIC = 'Ymd\THis\Z';
const UNSIGNED_PAYLOAD = 'UNSIGNED-PAYLOAD';
const AMZ_CONTENT_SHA256_HEADER = 'X-Amz-Content-Sha256';
/** @var string */
private $service;
@@ -25,6 +26,41 @@ class SignatureV4 implements SignatureInterface
/** @var bool */
private $unsigned;
/**
* The following headers are not signed because signing these headers
* would potentially cause a signature mismatch when sending a request
* through a proxy or if modified at the HTTP client level.
*
* @return array
*/
private function getHeaderBlacklist()
{
return [
'cache-control' => true,
'content-type' => true,
'content-length' => true,
'expect' => true,
'max-forwards' => true,
'pragma' => true,
'range' => true,
'te' => true,
'if-match' => true,
'if-none-match' => true,
'if-modified-since' => true,
'if-unmodified-since' => true,
'if-range' => true,
'accept' => true,
'authorization' => true,
'proxy-authorization' => true,
'from' => true,
'referer' => true,
'user-agent' => true,
'x-amzn-trace-id' => true,
'aws-sdk-invocation-id' => true,
'aws-sdk-retry' => true,
];
}
/**
* @param string $service Service name to use when signing
* @param string $region Region name to use when signing
@@ -55,7 +91,7 @@ class SignatureV4 implements SignatureInterface
$payload = $this->getPayload($request);
if ($payload == self::UNSIGNED_PAYLOAD) {
$parsed['headers']['X-Amz-Content-Sha256'] = [$payload];
$parsed['headers'][self::AMZ_CONTENT_SHA256_HEADER] = [$payload];
}
$context = $this->createContext($parsed, $payload);
@@ -76,6 +112,28 @@ class SignatureV4 implements SignatureInterface
return $this->buildRequest($parsed);
}
/**
* Get the headers that were used to pre-sign the request.
* Used for the X-Amz-SignedHeaders header.
*
* @param array $headers
* @return array
*/
private function getPresignHeaders(array $headers)
{
$presignHeaders = [];
$blacklist = $this->getHeaderBlacklist();
foreach ($headers as $name => $value) {
$lName = strtolower($name);
if (!isset($blacklist[$lName])
&& $name !== self::AMZ_CONTENT_SHA256_HEADER
) {
$presignHeaders[] = $lName;
}
}
return $presignHeaders;
}
public function presign(
RequestInterface $request,
CredentialsInterface $credentials,
@@ -86,7 +144,7 @@ class SignatureV4 implements SignatureInterface
$startTimestamp = isset($options['start_time'])
? $this->convertToTimestamp($options['start_time'], null)
: time();
$expiresTimestamp = $this->convertToTimestamp($expires, $startTimestamp);
$parsed = $this->createPresignedRequest($request, $credentials);
@@ -95,10 +153,13 @@ class SignatureV4 implements SignatureInterface
$shortDate = substr($httpDate, 0, 8);
$scope = $this->createScope($shortDate, $this->region, $this->service);
$credential = $credentials->getAccessKeyId() . '/' . $scope;
if ($credentials->getSecurityToken()) {
unset($parsed['headers']['X-Amz-Security-Token']);
}
$parsed['query']['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256';
$parsed['query']['X-Amz-Credential'] = $credential;
$parsed['query']['X-Amz-Date'] = gmdate('Ymd\THis\Z', $startTimestamp);
$parsed['query']['X-Amz-SignedHeaders'] = 'host';
$parsed['query']['X-Amz-SignedHeaders'] = implode(';', $this->getPresignHeaders($parsed['headers']));
$parsed['query']['X-Amz-Expires'] = $this->convertExpires($expiresTimestamp, $startTimestamp);
$context = $this->createContext($parsed, $payload);
$stringToSign = $this->createStringToSign($httpDate, $scope, $context['creq']);
@@ -151,9 +212,9 @@ class SignatureV4 implements SignatureInterface
return self::UNSIGNED_PAYLOAD;
}
// Calculate the request signature payload
if ($request->hasHeader('X-Amz-Content-Sha256')) {
if ($request->hasHeader(self::AMZ_CONTENT_SHA256_HEADER)) {
// Handle streaming operations (e.g. Glacier.UploadArchive)
return $request->getHeaderLine('X-Amz-Content-Sha256');
return $request->getHeaderLine(self::AMZ_CONTENT_SHA256_HEADER);
}
if (!$request->getBody()->isSeekable()) {
@@ -207,31 +268,7 @@ class SignatureV4 implements SignatureInterface
*/
private function createContext(array $parsedRequest, $payload)
{
// The following headers are not signed because signing these headers
// would potentially cause a signature mismatch when sending a request
// through a proxy or if modified at the HTTP client level.
static $blacklist = [
'cache-control' => true,
'content-type' => true,
'content-length' => true,
'expect' => true,
'max-forwards' => true,
'pragma' => true,
'range' => true,
'te' => true,
'if-match' => true,
'if-none-match' => true,
'if-modified-since' => true,
'if-unmodified-since' => true,
'if-range' => true,
'accept' => true,
'authorization' => true,
'proxy-authorization' => true,
'from' => true,
'referer' => true,
'user-agent' => true,
'x-amzn-trace-id' => true
];
$blacklist = $this->getHeaderBlacklist();
// Normalize the path as required by SigV4
$canon = $parsedRequest['method'] . "\n"
@@ -326,7 +363,10 @@ class SignatureV4 implements SignatureInterface
if (substr($lname, 0, 5) == 'x-amz') {
$parsedRequest['query'][$name] = $header;
}
if ($lname !== 'host') {
$blacklist = $this->getHeaderBlacklist();
if (isset($blacklist[$lname])
|| $lname === strtolower(self::AMZ_CONTENT_SHA256_HEADER)
) {
unset($parsedRequest['headers'][$name]);
}
}

View File

@@ -290,7 +290,13 @@ class TraceMiddleware
{
if ($this->config['scrub_auth']) {
foreach ($this->config['auth_strings'] as $pattern => $replacement) {
$value = preg_replace($pattern, $replacement, $value);
$value = preg_replace_callback(
$pattern,
function ($matches) use ($replacement) {
return $replacement;
},
$value
);
}
}

View File

@@ -36,6 +36,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteGeoMatchSetAsync(array $args = [])
* @method \Aws\Result deleteIPSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteIPSetAsync(array $args = [])
* @method \Aws\Result deleteLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result deletePermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePermissionPolicyAsync(array $args = [])
* @method \Aws\Result deleteRateBasedRule(array $args = [])
@@ -66,6 +68,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getGeoMatchSetAsync(array $args = [])
* @method \Aws\Result getIPSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise getIPSetAsync(array $args = [])
* @method \Aws\Result getLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result getPermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPermissionPolicyAsync(array $args = [])
* @method \Aws\Result getRateBasedRule(array $args = [])
@@ -98,6 +102,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listGeoMatchSetsAsync(array $args = [])
* @method \Aws\Result listIPSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIPSetsAsync(array $args = [])
* @method \Aws\Result listLoggingConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listLoggingConfigurationsAsync(array $args = [])
* @method \Aws\Result listRateBasedRules(array $args = [])
* @method \GuzzleHttp\Promise\Promise listRateBasedRulesAsync(array $args = [])
* @method \Aws\Result listRegexMatchSets(array $args = [])
@@ -118,6 +124,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listWebACLsAsync(array $args = [])
* @method \Aws\Result listXssMatchSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listXssMatchSetsAsync(array $args = [])
* @method \Aws\Result putLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise putLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result putPermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise putPermissionPolicyAsync(array $args = [])
* @method \Aws\Result updateByteMatchSet(array $args = [])

View File

@@ -37,6 +37,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteGeoMatchSetAsync(array $args = [])
* @method \Aws\Result deleteIPSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteIPSetAsync(array $args = [])
* @method \Aws\Result deleteLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result deletePermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePermissionPolicyAsync(array $args = [])
* @method \Aws\Result deleteRateBasedRule(array $args = [])
@@ -69,6 +71,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getGeoMatchSetAsync(array $args = [])
* @method \Aws\Result getIPSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise getIPSetAsync(array $args = [])
* @method \Aws\Result getLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result getPermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPermissionPolicyAsync(array $args = [])
* @method \Aws\Result getRateBasedRule(array $args = [])
@@ -103,6 +107,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listGeoMatchSetsAsync(array $args = [])
* @method \Aws\Result listIPSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIPSetsAsync(array $args = [])
* @method \Aws\Result listLoggingConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listLoggingConfigurationsAsync(array $args = [])
* @method \Aws\Result listRateBasedRules(array $args = [])
* @method \GuzzleHttp\Promise\Promise listRateBasedRulesAsync(array $args = [])
* @method \Aws\Result listRegexMatchSets(array $args = [])
@@ -125,6 +131,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listWebACLsAsync(array $args = [])
* @method \Aws\Result listXssMatchSets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listXssMatchSetsAsync(array $args = [])
* @method \Aws\Result putLoggingConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise putLoggingConfigurationAsync(array $args = [])
* @method \Aws\Result putPermissionPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise putPermissionPolicyAsync(array $args = [])
* @method \Aws\Result updateByteMatchSet(array $args = [])

View File

@@ -7,8 +7,18 @@ use Aws\AwsClient;
* This client is used to interact with the **AWS X-Ray** service.
* @method \Aws\Result batchGetTraces(array $args = [])
* @method \GuzzleHttp\Promise\Promise batchGetTracesAsync(array $args = [])
* @method \Aws\Result createSamplingRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSamplingRuleAsync(array $args = [])
* @method \Aws\Result deleteSamplingRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSamplingRuleAsync(array $args = [])
* @method \Aws\Result getEncryptionConfig(array $args = [])
* @method \GuzzleHttp\Promise\Promise getEncryptionConfigAsync(array $args = [])
* @method \Aws\Result getSamplingRules(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSamplingRulesAsync(array $args = [])
* @method \Aws\Result getSamplingStatisticSummaries(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSamplingStatisticSummariesAsync(array $args = [])
* @method \Aws\Result getSamplingTargets(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSamplingTargetsAsync(array $args = [])
* @method \Aws\Result getServiceGraph(array $args = [])
* @method \GuzzleHttp\Promise\Promise getServiceGraphAsync(array $args = [])
* @method \Aws\Result getTraceGraph(array $args = [])
@@ -21,5 +31,7 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise putTelemetryRecordsAsync(array $args = [])
* @method \Aws\Result putTraceSegments(array $args = [])
* @method \GuzzleHttp\Promise\Promise putTraceSegmentsAsync(array $args = [])
* @method \Aws\Result updateSamplingRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSamplingRuleAsync(array $args = [])
*/
class XRayClient extends AwsClient {}

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/cognito-idp/2016-04-18/smoke.json
return [ 'version' => 1, 'defaultRegion' => 'us-west-2', 'testCases' => [ [ 'operationName' => 'ListUserPools', 'input' => [ 'MaxResults' => 10, ], 'errorExpectedFromService' => false, ], [ 'operationName' => 'DescribeUserPool', 'input' => [ 'UserPoolId' => 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee', ], 'errorExpectedFromService' => true, ], ],];

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/discovery/2015-11-01/paginators-1.json
return [ 'pagination' => [],];
return [ 'pagination' => [ 'DescribeContinuousExports' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/discovery/2015-11-01/smoke.json
return [ 'version' => 1, 'defaultRegion' => 'us-west-2', 'testCases' => [ [ 'operationName' => 'DescribeAgents', 'input' => [], 'errorExpectedFromService' => false, ], ],];

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

@@ -1,3 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/iotanalytics/2017-11-27/paginators-1.json
return [ 'pagination' => [ 'ListChannels' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListDatasets' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListDatastores' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListPipelines' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], ],];
return [ 'pagination' => [ 'ListChannels' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListDatasetContents' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListDatasets' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListDatastores' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListPipelines' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], ],];

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/medialive/2017-10-14/paginators-1.json
return [ 'pagination' => [ 'ListInputs' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Inputs', ], 'ListChannels' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Channels', ], 'ListInputSecurityGroups' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'InputSecurityGroups', ], 'ListOfferings' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Offerings', ], 'ListReservations' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Reservations', ], ],];
return [ 'pagination' => [ 'DescribeSchedule' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'ScheduleActions', ], 'ListChannels' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Channels', ], 'ListInputSecurityGroups' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'InputSecurityGroups', ], 'ListInputs' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Inputs', ], 'ListOfferings' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Offerings', ], 'ListReservations' => [ 'input_token' => 'NextToken', 'output_token' => 'NextToken', 'limit_key' => 'MaxResults', 'result_key' => 'Reservations', ], ],];

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/rds/2014-10-31/paginators-1.json
return [ 'pagination' => [ 'DescribeDBEngineVersions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBEngineVersions', ], 'DescribeDBInstances' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBInstances', ], 'DescribeDBLogFiles' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DescribeDBLogFiles', ], 'DescribeDBParameterGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBParameterGroups', ], 'DescribeDBParameters' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'Parameters', ], 'DescribeDBSecurityGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSecurityGroups', ], 'DescribeDBSnapshots' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSnapshots', ], 'DescribeDBSubnetGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSubnetGroups', ], 'DescribeEngineDefaultParameters' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'EngineDefaults.Marker', 'result_key' => 'EngineDefaults.Parameters', ], 'DescribeEventSubscriptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'EventSubscriptionsList', ], 'DescribeEvents' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'Events', ], 'DescribeOptionGroupOptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OptionGroupOptions', ], 'DescribeOptionGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OptionGroupsList', ], 'DescribeOrderableDBInstanceOptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OrderableDBInstanceOptions', ], 'DescribeReservedDBInstances' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'ReservedDBInstances', ], 'DescribeReservedDBInstancesOfferings' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'ReservedDBInstancesOfferings', ], 'DownloadDBLogFilePortion' => [ 'input_token' => 'Marker', 'limit_key' => 'NumberOfLines', 'more_results' => 'AdditionalDataPending', 'output_token' => 'Marker', 'result_key' => 'LogFileData', ], 'ListTagsForResource' => [ 'result_key' => 'TagList', ], ],];
return [ 'pagination' => [ 'DescribeDBClusters' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBClusters', ], 'DescribeDBEngineVersions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBEngineVersions', ], 'DescribeDBInstances' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBInstances', ], 'DescribeDBLogFiles' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DescribeDBLogFiles', ], 'DescribeDBParameterGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBParameterGroups', ], 'DescribeDBParameters' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'Parameters', ], 'DescribeDBSecurityGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSecurityGroups', ], 'DescribeDBSnapshots' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSnapshots', ], 'DescribeDBSubnetGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'DBSubnetGroups', ], 'DescribeEngineDefaultParameters' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'EngineDefaults.Marker', 'result_key' => 'EngineDefaults.Parameters', ], 'DescribeEventSubscriptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'EventSubscriptionsList', ], 'DescribeEvents' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'Events', ], 'DescribeOptionGroupOptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OptionGroupOptions', ], 'DescribeOptionGroups' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OptionGroupsList', ], 'DescribeOrderableDBInstanceOptions' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'OrderableDBInstanceOptions', ], 'DescribeReservedDBInstances' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'ReservedDBInstances', ], 'DescribeReservedDBInstancesOfferings' => [ 'input_token' => 'Marker', 'limit_key' => 'MaxRecords', 'output_token' => 'Marker', 'result_key' => 'ReservedDBInstancesOfferings', ], 'DownloadDBLogFilePortion' => [ 'input_token' => 'Marker', 'limit_key' => 'NumberOfLines', 'more_results' => 'AdditionalDataPending', 'output_token' => 'Marker', 'result_key' => 'LogFileData', ], 'ListTagsForResource' => [ 'result_key' => 'TagList', ], ],];

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/rekognition/2016-06-27/smoke.json
return [ 'version' => 1, 'defaultRegion' => 'us-west-2', 'testCases' => [ [ 'operationName' => 'ListCollections', 'input' => [], 'errorExpectedFromService' => false, ], ],];

View File

@@ -1,3 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/runtime.sagemaker/2017-05-13/api-2.json
return [ 'version' => '2.0', 'metadata' => [ 'apiVersion' => '2017-05-13', 'endpointPrefix' => 'runtime.sagemaker', 'jsonVersion' => '1.1', 'protocol' => 'rest-json', 'serviceFullName' => 'Amazon SageMaker Runtime', 'serviceId' => 'SageMaker Runtime', 'signatureVersion' => 'v4', 'signingName' => 'sagemaker', 'uid' => 'runtime.sagemaker-2017-05-13', ], 'operations' => [ 'InvokeEndpoint' => [ 'name' => 'InvokeEndpoint', 'http' => [ 'method' => 'POST', 'requestUri' => '/endpoints/{EndpointName}/invocations', ], 'input' => [ 'shape' => 'InvokeEndpointInput', ], 'output' => [ 'shape' => 'InvokeEndpointOutput', ], 'errors' => [ [ 'shape' => 'InternalFailure', ], [ 'shape' => 'ServiceUnavailable', ], [ 'shape' => 'ValidationError', ], [ 'shape' => 'ModelError', ], ], ], ], 'shapes' => [ 'BodyBlob' => [ 'type' => 'blob', 'max' => 5242880, 'sensitive' => true, ], 'EndpointName' => [ 'type' => 'string', 'max' => 63, 'pattern' => '^[a-zA-Z0-9](-*[a-zA-Z0-9])*', ], 'Header' => [ 'type' => 'string', 'max' => 1024, ], 'InternalFailure' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 500, ], 'exception' => true, 'fault' => true, ], 'InvokeEndpointInput' => [ 'type' => 'structure', 'required' => [ 'EndpointName', 'Body', ], 'members' => [ 'EndpointName' => [ 'shape' => 'EndpointName', 'location' => 'uri', 'locationName' => 'EndpointName', ], 'Body' => [ 'shape' => 'BodyBlob', ], 'ContentType' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Accept' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Accept', ], ], 'payload' => 'Body', ], 'InvokeEndpointOutput' => [ 'type' => 'structure', 'required' => [ 'Body', ], 'members' => [ 'Body' => [ 'shape' => 'BodyBlob', ], 'ContentType' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Content-Type', ], 'InvokedProductionVariant' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'x-Amzn-Invoked-Production-Variant', ], ], 'payload' => 'Body', ], 'LogStreamArn' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', 'max' => 2048, ], 'ModelError' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], 'OriginalStatusCode' => [ 'shape' => 'StatusCode', ], 'OriginalMessage' => [ 'shape' => 'Message', ], 'LogStreamArn' => [ 'shape' => 'LogStreamArn', ], ], 'error' => [ 'httpStatusCode' => 424, ], 'exception' => true, ], 'ServiceUnavailable' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 503, ], 'exception' => true, 'fault' => true, ], 'StatusCode' => [ 'type' => 'integer', ], 'ValidationError' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 400, ], 'exception' => true, ], ],];
return [ 'version' => '2.0', 'metadata' => [ 'apiVersion' => '2017-05-13', 'endpointPrefix' => 'runtime.sagemaker', 'jsonVersion' => '1.1', 'protocol' => 'rest-json', 'serviceFullName' => 'Amazon SageMaker Runtime', 'serviceId' => 'SageMaker Runtime', 'signatureVersion' => 'v4', 'signingName' => 'sagemaker', 'uid' => 'runtime.sagemaker-2017-05-13', ], 'operations' => [ 'InvokeEndpoint' => [ 'name' => 'InvokeEndpoint', 'http' => [ 'method' => 'POST', 'requestUri' => '/endpoints/{EndpointName}/invocations', ], 'input' => [ 'shape' => 'InvokeEndpointInput', ], 'output' => [ 'shape' => 'InvokeEndpointOutput', ], 'errors' => [ [ 'shape' => 'InternalFailure', ], [ 'shape' => 'ServiceUnavailable', ], [ 'shape' => 'ValidationError', ], [ 'shape' => 'ModelError', ], ], ], ], 'shapes' => [ 'BodyBlob' => [ 'type' => 'blob', 'max' => 5242880, 'sensitive' => true, ], 'CustomAttributesHeader' => [ 'type' => 'string', 'max' => 1024, 'sensitive' => true, ], 'EndpointName' => [ 'type' => 'string', 'max' => 63, 'pattern' => '^[a-zA-Z0-9](-*[a-zA-Z0-9])*', ], 'Header' => [ 'type' => 'string', 'max' => 1024, ], 'InternalFailure' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 500, ], 'exception' => true, 'fault' => true, 'synthetic' => true, ], 'InvokeEndpointInput' => [ 'type' => 'structure', 'required' => [ 'EndpointName', 'Body', ], 'members' => [ 'EndpointName' => [ 'shape' => 'EndpointName', 'location' => 'uri', 'locationName' => 'EndpointName', ], 'Body' => [ 'shape' => 'BodyBlob', ], 'ContentType' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Accept' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Accept', ], 'CustomAttributes' => [ 'shape' => 'CustomAttributesHeader', 'location' => 'header', 'locationName' => 'X-Amzn-SageMaker-Custom-Attributes', ], ], 'payload' => 'Body', ], 'InvokeEndpointOutput' => [ 'type' => 'structure', 'required' => [ 'Body', ], 'members' => [ 'Body' => [ 'shape' => 'BodyBlob', ], 'ContentType' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'Content-Type', ], 'InvokedProductionVariant' => [ 'shape' => 'Header', 'location' => 'header', 'locationName' => 'x-Amzn-Invoked-Production-Variant', ], 'CustomAttributes' => [ 'shape' => 'CustomAttributesHeader', 'location' => 'header', 'locationName' => 'X-Amzn-SageMaker-Custom-Attributes', ], ], 'payload' => 'Body', ], 'LogStreamArn' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', 'max' => 2048, ], 'ModelError' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], 'OriginalStatusCode' => [ 'shape' => 'StatusCode', ], 'OriginalMessage' => [ 'shape' => 'Message', ], 'LogStreamArn' => [ 'shape' => 'LogStreamArn', ], ], 'error' => [ 'httpStatusCode' => 424, ], 'exception' => true, ], 'ServiceUnavailable' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 503, ], 'exception' => true, 'fault' => true, 'synthetic' => true, ], 'StatusCode' => [ 'type' => 'integer', ], 'ValidationError' => [ 'type' => 'structure', 'members' => [ 'Message' => [ 'shape' => 'Message', ], ], 'error' => [ 'httpStatusCode' => 400, ], 'exception' => true, 'synthetic' => true, ], ],];

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/signer/2017-08-25/paginators-1.json
return [ 'pagination' => [ 'ListSigningJobs' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSigningPlatforms' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSigningProfiles' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/signer/2017-08-25/waiters-2.json
return [ 'version' => 2, 'waiters' => [ 'SuccessfulSigningJob' => [ 'delay' => 20, 'operation' => 'DescribeSigningJob', 'maxAttempts' => 25, 'acceptors' => [ [ 'expected' => 'Succeeded', 'matcher' => 'path', 'state' => 'success', 'argument' => 'status', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'status', ], [ 'expected' => 'ResourceNotFoundException', 'matcher' => 'error', 'state' => 'failure', ], ], ], ],];

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,9 @@
<?php
namespace Aws\signer\Exception;
use Aws\Exception\AwsException;
/**
* Represents an error interacting with the **AWS Signer** service.
*/
class signerException extends AwsException {}

View File

@@ -0,0 +1,27 @@
<?php
namespace Aws\signer;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Signer** service.
* @method \Aws\Result cancelSigningProfile(array $args = [])
* @method \GuzzleHttp\Promise\Promise cancelSigningProfileAsync(array $args = [])
* @method \Aws\Result describeSigningJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSigningJobAsync(array $args = [])
* @method \Aws\Result getSigningPlatform(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSigningPlatformAsync(array $args = [])
* @method \Aws\Result getSigningProfile(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSigningProfileAsync(array $args = [])
* @method \Aws\Result listSigningJobs(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSigningJobsAsync(array $args = [])
* @method \Aws\Result listSigningPlatforms(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSigningPlatformsAsync(array $args = [])
* @method \Aws\Result listSigningProfiles(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSigningProfilesAsync(array $args = [])
* @method \Aws\Result putSigningProfile(array $args = [])
* @method \GuzzleHttp\Promise\Promise putSigningProfileAsync(array $args = [])
* @method \Aws\Result startSigningJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise startSigningJobAsync(array $args = [])
*/
class signerClient extends AwsClient {}