1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Update socket also to respond http

This commit is contained in:
Daniel Neto 2024-10-07 11:43:06 -03:00
parent cc3af22682
commit 251e5740f0
1246 changed files with 62800 additions and 2951 deletions

View file

@ -19,7 +19,7 @@
"google/apiclient-services": "*",
"google/auth": "^1.14.3",
"guzzlehttp/guzzle": "^7.4",
"guzzlehttp/psr7": "^2.2",
"guzzlehttp/psr7": "^2.7",
"hybridauth/hybridauth": "^3.3",
"james-heinrich/getid3": "^1.9",
"monolog/monolog": "^2.6",
@ -51,6 +51,8 @@
"chillerlan/php-qrcode": "^5.0",
"erusev/parsedown": "^1.7",
"spomky-labs/otphp": "^10.0",
"christian-riesen/base32": "^1.6"
"christian-riesen/base32": "^1.6",
"react/socket": "^1.16",
"react/event-loop": "^1.5"
}
}

4
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "fe54d4d441dca056f6d6f49528d942d2",
"content-hash": "649aafcf62af363171c6aa2ae2bf1ecd",
"packages": [
{
"name": "abraham/twitteroauth",
@ -6610,5 +6610,5 @@
"platform-overrides": {
"php": "8"
},
"plugin-api-version": "2.6.0"
"plugin-api-version": "2.3.0"
}

View file

@ -1,20 +1,28 @@
<?php
$global['debugMemmory'] = 1;
require __DIR__ . '/../../vendor/autoload.php';
use React\EventLoop\Loop;
use React\Async\async;
use React\Socket\SecureServer;
use React\Socket\Server as ReactServer;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\Psr7\ServerRequest;
use Psr\Http\Message\ServerRequestInterface;
use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;
use Socket\Message;
use React\Stream\ReadableStreamInterface;
$global['debugMemmory'] = 1;
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED);
//use React\Socket\Server as Reactor;
if (empty($_SERVER['HTTP_HOST'])) {
$_SERVER['HTTP_HOST'] = 'localhost';
}
require_once dirname(__FILE__) . '/../../videos/configuration.php';
_ob_end_clean();
ini_set('display_errors', 1);
@ -29,11 +37,10 @@ function riseSQLiteError()
echo (";extension=pdo_sqlite.so") . PHP_EOL;
}
$loop = React\EventLoop\Loop::get();
$loop = Loop::get();
if (function_exists('pdo_drivers') && in_array("sqlite", pdo_drivers())) {
_error_log("Socket server SQLite loading");
require_once $global['systemRootPath'] . 'plugin/YPTSocket/db.php';
//require_once $global['systemRootPath'] . 'plugin/YPTSocket/MessageSQLite.php';
require_once $global['systemRootPath'] . 'plugin/YPTSocket/MessageSQLiteV2.php';
} else {
riseSQLiteError();
@ -53,7 +60,6 @@ function findValidCertificate($url)
$certPath = '';
$keyPath = '';
// Check for an exact match folder first (e.g., /etc/letsencrypt/live/example.com)
if (is_dir($letsencryptDir . $domain)) {
$certPath = $letsencryptDir . $domain . '/fullchain.pem';
$keyPath = $letsencryptDir . $domain . '/privkey.pem';
@ -62,7 +68,6 @@ function findValidCertificate($url)
}
}
// If no valid certificate found for the specific domain, check all folders with subdomains
$directories = glob($letsencryptDir . $domain . '-*');
foreach ($directories as $dir) {
if (is_dir($dir)) {
@ -74,7 +79,6 @@ function findValidCertificate($url)
}
}
// If no valid certificate found, return an empty array or handle the case accordingly
return [];
}
@ -84,10 +88,7 @@ function isCertificateValid($certPath)
return false;
}
// Get the current timestamp
$currentTimestamp = time();
// Check if the openssl command is available
$opensslCommand = 'openssl';
$output = [];
exec($opensslCommand . ' x509 -noout -dates -in ' . escapeshellarg($certPath), $output, $returnValue);
@ -96,7 +97,6 @@ function isCertificateValid($certPath)
$validFrom = strtotime($matches[1]);
$validTo = strtotime($matches[2]);
// Check if the certificate is currently valid (notBefore <= current <= notAfter)
if ($validFrom <= $currentTimestamp && $currentTimestamp <= $validTo) {
return true;
}
@ -105,22 +105,19 @@ function isCertificateValid($certPath)
return false;
}
$SocketDataObj = AVideoPlugin::getDataObject("YPTSocket");
$SocketDataObj->serverVersion = YPTSocket::getServerVersion();
@ob_end_flush();
_mysql_close();
_session_write_close();
exec('ulimit -n 20480'); // to handle over 1 k connections
exec('ulimit -n 20480');
$SocketDataObj->port = intval($SocketDataObj->port);
_error_log("Starting Socket server at port {$SocketDataObj->port}");
//killProcessOnPort();
$scheme = parse_url($global['webSiteRootURL'], PHP_URL_SCHEME);
echo "Starting AVideo Socket server version {$SocketDataObj->serverVersion} on port {$SocketDataObj->port}" . PHP_EOL;
if (!isCertificateValid($SocketDataObj->server_crt_file)) {
echo "Certificate is invalid {$SocketDataObj->server_crt_file}" . PHP_EOL;
$validCertPath = findValidCertificate($global['webSiteRootURL']);
@ -168,10 +165,38 @@ if ((strtolower($scheme) !== 'https' || !empty($SocketDataObj->forceNonSecure))
}
echo "DO NOT CLOSE THIS TERMINAL " . PHP_EOL;
// Create WebSocket Server
$webSock = new ReactServer($SocketDataObj->uri . ':' . $SocketDataObj->port, $loop);
$webSock = new SecureServer($webSock, $loop, $parameters);
$webSock = new React\Socket\Server($SocketDataObj->uri . ':' . $SocketDataObj->port, $loop);
$webSock = new React\Socket\SecureServer($webSock, $loop, $parameters);
$webServer = new Ratchet\Server\IoServer(
// Handle HTTP requests using guzzlehttp/psr7
$httpServer = function (ServerRequestInterface $request) {
return new Response(
200,
['Content-Type' => 'text/plain'],
"Socket server is running. SSL is valid."
);
};
// Handle incoming connections and handle HTTP requests
$webSock->on('connection', function ($conn) use ($httpServer) {
$conn->on('data', function ($data) use ($conn, $httpServer) {
// Simulate an HTTP request and return a response indicating the server status
$response = $httpServer(new ServerRequest('GET', '/'));
// Send an HTTP-compliant response back to the client
$headers = "HTTP/1.1 200 OK\r\n";
$headers .= "Content-Type: text/plain\r\n";
$headers .= "Content-Length: " . strlen((string) $response->getBody()) . "\r\n";
$headers .= "Connection: close\r\n\r\n";
$conn->write($headers . $response->getBody());
$conn->end();
});
});
// Create WebSocket server instance
$webServer = new IoServer(
new HttpServer(
new WsServer(
new Message()
@ -180,5 +205,6 @@ if ((strtolower($scheme) !== 'https' || !empty($SocketDataObj->forceNonSecure))
$webSock
);
// Run the loop
$loop->run();
}

View file

@ -72,4 +72,3 @@
}
}
}

View file

@ -205,7 +205,7 @@ class ApiProvider
* @param string $modelsDir Directory containing service models.
* @param array $manifest The API version manifest data.
*/
private function __construct($modelsDir, array $manifest = null)
private function __construct($modelsDir, ?array $manifest = null)
{
$this->manifest = $manifest;
$this->modelsDir = rtrim($modelsDir, '/');

View file

@ -21,7 +21,7 @@ abstract class AbstractErrorParser
/**
* @param Service $api
*/
public function __construct(Service $api = null)
public function __construct(?Service $api = null)
{
$this->api = $api;
}
@ -47,7 +47,7 @@ abstract class AbstractErrorParser
protected function populateShape(
array &$data,
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data['body'] = [];

View file

@ -15,7 +15,7 @@ class JsonRpcErrorParser extends AbstractErrorParser
private $parser;
public function __construct(Service $api = null, JsonParser $parser = null)
public function __construct(?Service $api = null, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
@ -23,7 +23,7 @@ class JsonRpcErrorParser extends AbstractErrorParser
public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data = $this->genericHandler($response);

View file

@ -16,7 +16,7 @@ class RestJsonErrorParser extends AbstractErrorParser
private $parser;
public function __construct(Service $api = null, JsonParser $parser = null)
public function __construct(?Service $api = null, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();
@ -24,7 +24,7 @@ class RestJsonErrorParser extends AbstractErrorParser
public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$data = $this->genericHandler($response);

View file

@ -17,7 +17,7 @@ class XmlErrorParser extends AbstractErrorParser
protected $parser;
public function __construct(Service $api = null, XmlParser $parser = null)
public function __construct(?Service $api = null, ?XmlParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new XmlParser();
@ -25,7 +25,7 @@ class XmlErrorParser extends AbstractErrorParser
public function __invoke(
ResponseInterface $response,
CommandInterface $command = null
?CommandInterface $command = null
) {
$code = (string) $response->getStatusCode();

View file

@ -11,6 +11,7 @@ class Operation extends AbstractModel
private $errors;
private $staticContextParams = [];
private $contextParams;
private $operationContextParams = [];
public function __construct(array $definition, ShapeMap $shapeMap)
{
@ -28,6 +29,10 @@ class Operation extends AbstractModel
$this->staticContextParams = $definition['staticContextParams'];
}
if (isset($definition['operationContextParams'])) {
$this->operationContextParams = $definition['operationContextParams'];
}
parent::__construct($definition, $shapeMap);
$this->contextParams = $this->setContextParams();
}
@ -124,6 +129,17 @@ class Operation extends AbstractModel
return $this->contextParams;
}
/**
* Gets definition of modeled dynamic values used
* for endpoint resolution
*
* @return array
*/
public function getOperationContextParams(): array
{
return $this->operationContextParams;
}
private function setContextParams()
{
$members = $this->getInput()->getMembers();

View file

@ -20,7 +20,7 @@ class JsonRpcParser extends AbstractParser
* @param Service $api Service description
* @param JsonParser $parser JSON body builder
*/
public function __construct(Service $api, JsonParser $parser = null)
public function __construct(Service $api, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();

View file

@ -27,7 +27,7 @@ class QueryParser extends AbstractParser
*/
public function __construct(
Service $api,
XmlParser $xmlParser = null,
?XmlParser $xmlParser = null,
$honorResultWrapper = true
) {
parent::__construct($api);

View file

@ -17,7 +17,7 @@ class RestJsonParser extends AbstractRestParser
* @param Service $api Service description
* @param JsonParser $parser JSON body builder
*/
public function __construct(Service $api, JsonParser $parser = null)
public function __construct(Service $api, ?JsonParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new JsonParser();

View file

@ -17,7 +17,7 @@ class RestXmlParser extends AbstractRestParser
* @param Service $api Service description
* @param XmlParser $parser XML body parser
*/
public function __construct(Service $api, XmlParser $parser = null)
public function __construct(Service $api, ?XmlParser $parser = null)
{
parent::__construct($api);
$this->parser = $parser ?: new XmlParser();

View file

@ -36,7 +36,7 @@ class JsonRpcSerializer
public function __construct(
Service $api,
$endpoint,
JsonBody $jsonFormatter = null
?JsonBody $jsonFormatter = null
) {
$this->endpoint = $endpoint;
$this->api = $api;

View file

@ -24,7 +24,7 @@ class QuerySerializer
public function __construct(
Service $api,
$endpoint,
callable $paramBuilder = null
?callable $paramBuilder = null
) {
$this->api = $api;
$this->endpoint = $endpoint;

View file

@ -24,7 +24,7 @@ class RestJsonSerializer extends RestSerializer
public function __construct(
Service $api,
$endpoint,
JsonBody $jsonFormatter = null
?JsonBody $jsonFormatter = null
) {
parent::__construct($api, $endpoint);
$this->contentType = JsonBody::getContentType($api);

View file

@ -20,7 +20,7 @@ class RestXmlSerializer extends RestSerializer
public function __construct(
Service $api,
$endpoint,
XmlBody $xmlBody = null
?XmlBody $xmlBody = null
) {
parent::__construct($api, $endpoint);
$this->xmlBody = $xmlBody ?: new XmlBody($api);

View file

@ -114,7 +114,7 @@ class Service extends AbstractModel
* @return callable
* @throws \UnexpectedValueException
*/
public static function createErrorParser($protocol, Service $api = null)
public static function createErrorParser($protocol, ?Service $api = null)
{
static $mapping = [
'json' => ErrorParser\JsonRpcErrorParser::class,

View file

@ -25,7 +25,7 @@ class Validator
* "max", and "pattern". If a key is not
* provided, the constraint will assume false.
*/
public function __construct(array $constraints = null)
public function __construct(?array $constraints = null)
{
static $assumedFalseValues = [
'required' => false,

View file

@ -33,6 +33,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteExtensionAssociationAsync(array $args = [])
* @method \Aws\Result deleteHostedConfigurationVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteHostedConfigurationVersionAsync(array $args = [])
* @method \Aws\Result getAccountSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise getAccountSettingsAsync(array $args = [])
* @method \Aws\Result getApplication(array $args = [])
* @method \GuzzleHttp\Promise\Promise getApplicationAsync(array $args = [])
* @method \Aws\Result getConfiguration(array $args = [])
@ -77,6 +79,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateAccountSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateAccountSettingsAsync(array $args = [])
* @method \Aws\Result updateApplication(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateApplicationAsync(array $args = [])
* @method \Aws\Result updateConfigurationProfile(array $args = [])

View file

@ -37,7 +37,7 @@ class AuthSchemeResolver implements AuthSchemeResolverInterface
public function __construct(
callable $credentialProvider,
callable $tokenProvider = null,
?callable $tokenProvider = null,
array $authSchemeMap = []
){
$this->credentialProvider = $credentialProvider;

View file

@ -11,6 +11,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise createPartnershipAsync(array $args = [])
* @method \Aws\Result createProfile(array $args = [])
* @method \GuzzleHttp\Promise\Promise createProfileAsync(array $args = [])
* @method \Aws\Result createStarterMappingTemplate(array $args = [])
* @method \GuzzleHttp\Promise\Promise createStarterMappingTemplateAsync(array $args = [])
* @method \Aws\Result createTransformer(array $args = [])
* @method \GuzzleHttp\Promise\Promise createTransformerAsync(array $args = [])
* @method \Aws\Result deleteCapability(array $args = [])
@ -45,6 +47,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise startTransformerJobAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result testConversion(array $args = [])
* @method \GuzzleHttp\Promise\Promise testConversionAsync(array $args = [])
* @method \Aws\Result testMapping(array $args = [])
* @method \GuzzleHttp\Promise\Promise testMappingAsync(array $args = [])
* @method \Aws\Result testParsing(array $args = [])

View file

@ -43,6 +43,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getGuardrailAsync(array $args = [])
* @method \Aws\Result getImportedModel(array $args = [])
* @method \GuzzleHttp\Promise\Promise getImportedModelAsync(array $args = [])
* @method \Aws\Result getInferenceProfile(array $args = [])
* @method \GuzzleHttp\Promise\Promise getInferenceProfileAsync(array $args = [])
* @method \Aws\Result getModelCopyJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise getModelCopyJobAsync(array $args = [])
* @method \Aws\Result getModelCustomizationJob(array $args = [])
@ -65,6 +67,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listGuardrailsAsync(array $args = [])
* @method \Aws\Result listImportedModels(array $args = [])
* @method \GuzzleHttp\Promise\Promise listImportedModelsAsync(array $args = [])
* @method \Aws\Result listInferenceProfiles(array $args = [])
* @method \GuzzleHttp\Promise\Promise listInferenceProfilesAsync(array $args = [])
* @method \Aws\Result listModelCopyJobs(array $args = [])
* @method \GuzzleHttp\Promise\Promise listModelCopyJobsAsync(array $args = [])
* @method \Aws\Result listModelCustomizationJobs(array $args = [])

View file

@ -105,6 +105,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise prepareFlowAsync(array $args = [])
* @method \Aws\Result startIngestionJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise startIngestionJobAsync(array $args = [])
* @method \Aws\Result stopIngestionJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise stopIngestionJobAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])

View file

@ -1453,7 +1453,7 @@ EOT;
. " or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING"
. " to true.\nMore information can be found at: "
. "https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-php-runtimes-8-0-x-and-below-in-the-aws-sdk-for-php/\n",
E_USER_WARNING
E_USER_DEPRECATED
);
}
}

View file

@ -13,7 +13,6 @@ use Psr\Http\Message\RequestInterface;
*/
class ApiCallMonitoringMiddleware extends AbstractMonitoringMiddleware
{
/**
* Api Call Attempt event keys for each Api Call event key
*

View file

@ -51,7 +51,7 @@ class CloudSearchDomainClient extends AwsClient
return static function (callable $handler) {
return function (
CommandInterface $c,
RequestInterface $r = null
?RequestInterface $r = null
) use ($handler) {
if ($c->getName() !== 'Search') {
return $handler($c, $r);

View file

@ -54,6 +54,8 @@ use Generator;
* @method \GuzzleHttp\Promise\Promise deleteSubscriptionFilterAsync(array $args = [])
* @method \Aws\Result describeAccountPolicies(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeAccountPoliciesAsync(array $args = [])
* @method \Aws\Result describeConfigurationTemplates(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeConfigurationTemplatesAsync(array $args = [])
* @method \Aws\Result describeDeliveries(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDeliveriesAsync(array $args = [])
* @method \Aws\Result describeDeliveryDestinations(array $args = [])
@ -154,6 +156,8 @@ use Generator;
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateAnomaly(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateAnomalyAsync(array $args = [])
* @method \Aws\Result updateDeliveryConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDeliveryConfigurationAsync(array $args = [])
* @method \Aws\Result updateLogAnomalyDetector(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateLogAnomalyDetectorAsync(array $args = [])
*/

View file

@ -26,7 +26,7 @@ class Command implements CommandInterface
* @param array $args Arguments to pass to the command
* @param HandlerList $list Handler list
*/
public function __construct($name, array $args = [], HandlerList $list = null)
public function __construct($name, array $args = [], ?HandlerList $list = null)
{
$this->name = $name;
$this->data = $args;

View file

@ -395,6 +395,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise startContactRecordingAsync(array $args = [])
* @method \Aws\Result startContactStreaming(array $args = [])
* @method \GuzzleHttp\Promise\Promise startContactStreamingAsync(array $args = [])
* @method \Aws\Result startOutboundChatContact(array $args = [])
* @method \GuzzleHttp\Promise\Promise startOutboundChatContactAsync(array $args = [])
* @method \Aws\Result startOutboundVoiceContact(array $args = [])
* @method \GuzzleHttp\Promise\Promise startOutboundVoiceContactAsync(array $args = [])
* @method \Aws\Result startTaskContact(array $args = [])

View file

@ -110,7 +110,7 @@ class Credentials extends AwsCredentialIdentity implements
$this->secret = $data['secret'];
$this->token = $data['token'];
$this->expires = $data['expires'];
$this->accountId = $data['accountId'];
$this->accountId = $data['accountId'] ?? null;
}
/**

View file

@ -9,6 +9,10 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise acceptPredictionsAsync(array $args = [])
* @method \Aws\Result acceptSubscriptionRequest(array $args = [])
* @method \GuzzleHttp\Promise\Promise acceptSubscriptionRequestAsync(array $args = [])
* @method \Aws\Result addEntityOwner(array $args = [])
* @method \GuzzleHttp\Promise\Promise addEntityOwnerAsync(array $args = [])
* @method \Aws\Result addPolicyGrant(array $args = [])
* @method \GuzzleHttp\Promise\Promise addPolicyGrantAsync(array $args = [])
* @method \Aws\Result associateEnvironmentRole(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateEnvironmentRoleAsync(array $args = [])
* @method \Aws\Result cancelMetadataGenerationRun(array $args = [])
@ -31,6 +35,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise createDataSourceAsync(array $args = [])
* @method \Aws\Result createDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise createDomainAsync(array $args = [])
* @method \Aws\Result createDomainUnit(array $args = [])
* @method \GuzzleHttp\Promise\Promise createDomainUnitAsync(array $args = [])
* @method \Aws\Result createEnvironment(array $args = [])
* @method \GuzzleHttp\Promise\Promise createEnvironmentAsync(array $args = [])
* @method \Aws\Result createEnvironmentAction(array $args = [])
@ -71,6 +77,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteDataSourceAsync(array $args = [])
* @method \Aws\Result deleteDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDomainAsync(array $args = [])
* @method \Aws\Result deleteDomainUnit(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDomainUnitAsync(array $args = [])
* @method \Aws\Result deleteEnvironment(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteEnvironmentAsync(array $args = [])
* @method \Aws\Result deleteEnvironmentAction(array $args = [])
@ -115,6 +123,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getDataSourceRunAsync(array $args = [])
* @method \Aws\Result getDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise getDomainAsync(array $args = [])
* @method \Aws\Result getDomainUnit(array $args = [])
* @method \GuzzleHttp\Promise\Promise getDomainUnitAsync(array $args = [])
* @method \Aws\Result getEnvironment(array $args = [])
* @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = [])
* @method \Aws\Result getEnvironmentAction(array $args = [])
@ -169,8 +179,12 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listDataSourceRunsAsync(array $args = [])
* @method \Aws\Result listDataSources(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDataSourcesAsync(array $args = [])
* @method \Aws\Result listDomainUnitsForParent(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDomainUnitsForParentAsync(array $args = [])
* @method \Aws\Result listDomains(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDomainsAsync(array $args = [])
* @method \Aws\Result listEntityOwners(array $args = [])
* @method \GuzzleHttp\Promise\Promise listEntityOwnersAsync(array $args = [])
* @method \Aws\Result listEnvironmentActions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listEnvironmentActionsAsync(array $args = [])
* @method \Aws\Result listEnvironmentBlueprintConfigurations(array $args = [])
@ -187,6 +201,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listMetadataGenerationRunsAsync(array $args = [])
* @method \Aws\Result listNotifications(array $args = [])
* @method \GuzzleHttp\Promise\Promise listNotificationsAsync(array $args = [])
* @method \Aws\Result listPolicyGrants(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPolicyGrantsAsync(array $args = [])
* @method \Aws\Result listProjectMemberships(array $args = [])
* @method \GuzzleHttp\Promise\Promise listProjectMembershipsAsync(array $args = [])
* @method \Aws\Result listProjects(array $args = [])
@ -213,6 +229,10 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise rejectPredictionsAsync(array $args = [])
* @method \Aws\Result rejectSubscriptionRequest(array $args = [])
* @method \GuzzleHttp\Promise\Promise rejectSubscriptionRequestAsync(array $args = [])
* @method \Aws\Result removeEntityOwner(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeEntityOwnerAsync(array $args = [])
* @method \Aws\Result removePolicyGrant(array $args = [])
* @method \GuzzleHttp\Promise\Promise removePolicyGrantAsync(array $args = [])
* @method \Aws\Result revokeSubscription(array $args = [])
* @method \GuzzleHttp\Promise\Promise revokeSubscriptionAsync(array $args = [])
* @method \Aws\Result search(array $args = [])
@ -239,6 +259,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise updateDataSourceAsync(array $args = [])
* @method \Aws\Result updateDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDomainAsync(array $args = [])
* @method \Aws\Result updateDomainUnit(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDomainUnitAsync(array $args = [])
* @method \Aws\Result updateEnvironment(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateEnvironmentAsync(array $args = [])
* @method \Aws\Result updateEnvironmentAction(array $args = [])

View file

@ -56,6 +56,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeConditionalForwardersAsync(array $args = [])
* @method \Aws\Result describeDirectories(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDirectoriesAsync(array $args = [])
* @method \Aws\Result describeDirectoryDataAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDirectoryDataAccessAsync(array $args = [])
* @method \Aws\Result describeDomainControllers(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDomainControllersAsync(array $args = [])
* @method \Aws\Result describeEventTopics(array $args = [])
@ -76,6 +78,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeUpdateDirectoryAsync(array $args = [])
* @method \Aws\Result disableClientAuthentication(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableClientAuthenticationAsync(array $args = [])
* @method \Aws\Result disableDirectoryDataAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableDirectoryDataAccessAsync(array $args = [])
* @method \Aws\Result disableLDAPS(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableLDAPSAsync(array $args = [])
* @method \Aws\Result disableRadius(array $args = [])
@ -84,6 +88,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise disableSsoAsync(array $args = [])
* @method \Aws\Result enableClientAuthentication(array $args = [])
* @method \GuzzleHttp\Promise\Promise enableClientAuthenticationAsync(array $args = [])
* @method \Aws\Result enableDirectoryDataAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise enableDirectoryDataAccessAsync(array $args = [])
* @method \Aws\Result enableLDAPS(array $args = [])
* @method \GuzzleHttp\Promise\Promise enableLDAPSAsync(array $args = [])
* @method \Aws\Result enableRadius(array $args = [])

View file

@ -0,0 +1,43 @@
<?php
namespace Aws\DirectoryServiceData;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Directory Service Data** service.
* @method \Aws\Result addGroupMember(array $args = [])
* @method \GuzzleHttp\Promise\Promise addGroupMemberAsync(array $args = [])
* @method \Aws\Result createGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = [])
* @method \Aws\Result createUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise createUserAsync(array $args = [])
* @method \Aws\Result deleteGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteGroupAsync(array $args = [])
* @method \Aws\Result deleteUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteUserAsync(array $args = [])
* @method \Aws\Result describeGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeGroupAsync(array $args = [])
* @method \Aws\Result describeUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeUserAsync(array $args = [])
* @method \Aws\Result disableUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableUserAsync(array $args = [])
* @method \Aws\Result listGroupMembers(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupMembersAsync(array $args = [])
* @method \Aws\Result listGroups(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = [])
* @method \Aws\Result listGroupsForMember(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupsForMemberAsync(array $args = [])
* @method \Aws\Result listUsers(array $args = [])
* @method \GuzzleHttp\Promise\Promise listUsersAsync(array $args = [])
* @method \Aws\Result removeGroupMember(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeGroupMemberAsync(array $args = [])
* @method \Aws\Result searchGroups(array $args = [])
* @method \GuzzleHttp\Promise\Promise searchGroupsAsync(array $args = [])
* @method \Aws\Result searchUsers(array $args = [])
* @method \GuzzleHttp\Promise\Promise searchUsersAsync(array $args = [])
* @method \Aws\Result updateGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateGroupAsync(array $args = [])
* @method \Aws\Result updateUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateUserAsync(array $args = [])
*/
class DirectoryServiceDataClient extends AwsClient {}

View file

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

View file

@ -1104,6 +1104,8 @@ use Aws\PresignUrlMiddleware;
* @method \GuzzleHttp\Promise\Promise modifyFpgaImageAttributeAsync(array $args = []) (supported in versions 2016-11-15)
* @method \Aws\Result modifyInstanceCapacityReservationAttributes(array $args = []) (supported in versions 2016-11-15)
* @method \GuzzleHttp\Promise\Promise modifyInstanceCapacityReservationAttributesAsync(array $args = []) (supported in versions 2016-11-15)
* @method \Aws\Result modifyInstanceCpuOptions(array $args = []) (supported in versions 2016-11-15)
* @method \GuzzleHttp\Promise\Promise modifyInstanceCpuOptionsAsync(array $args = []) (supported in versions 2016-11-15)
* @method \Aws\Result modifyInstanceCreditSpecification(array $args = []) (supported in versions 2016-11-15)
* @method \GuzzleHttp\Promise\Promise modifyInstanceCreditSpecificationAsync(array $args = []) (supported in versions 2016-11-15)
* @method \Aws\Result modifyInstanceEventStartTime(array $args = []) (supported in versions 2016-11-15)

View file

@ -37,6 +37,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deregisterTargetsAsync(array $args = [])
* @method \Aws\Result describeAccountLimits(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeAccountLimitsAsync(array $args = [])
* @method \Aws\Result describeListenerAttributes(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeListenerAttributesAsync(array $args = [])
* @method \Aws\Result describeListenerCertificates(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeListenerCertificatesAsync(array $args = [])
* @method \Aws\Result describeListeners(array $args = [])
@ -71,6 +73,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getTrustStoreRevocationContentAsync(array $args = [])
* @method \Aws\Result modifyListener(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifyListenerAsync(array $args = [])
* @method \Aws\Result modifyListenerAttributes(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifyListenerAttributesAsync(array $args = [])
* @method \Aws\Result modifyLoadBalancerAttributes(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifyLoadBalancerAttributesAsync(array $args = [])
* @method \Aws\Result modifyRule(array $args = [])

View file

@ -7,6 +7,7 @@ use Aws\Auth\Exception\UnresolvedAuthSchemeException;
use Aws\CommandInterface;
use Closure;
use GuzzleHttp\Promise\Promise;
use function JmesPath\search;
/**
* Handles endpoint rule evaluation and endpoint resolution.
@ -76,7 +77,7 @@ class EndpointV2Middleware
EndpointProviderV2 $endpointProvider,
Service $api,
array $args,
callable $credentialProvider = null
?callable $credentialProvider = null
)
{
$this->nextHandler = $nextHandler;
@ -137,9 +138,14 @@ class EndpointV2Middleware
$contextParams = $this->bindContextParams(
$commandArgs, $operation->getContextParams()
);
$operationContextParams = $this->bindOperationContextParams(
$commandArgs,
$operation->getOperationContextParams()
);
return array_merge(
$this->clientArgs,
$operationContextParams,
$contextParams,
$staticContextParams,
$endpointCommandArgs
@ -231,6 +237,33 @@ class EndpointV2Middleware
return $scopedParams;
}
/**
* Binds context params to their corresponding values found in
* command arguments.
*
* @param array $commandArgs
* @param array $contextParams
*
* @return array
*/
private function bindOperationContextParams(
array $commandArgs,
array $operationContextParams
): array
{
$scopedParams = [];
foreach($operationContextParams as $name => $spec) {
$scopedValue = search($spec['path'], $commandArgs);
if ($scopedValue) {
$scopedParams[$name] = $scopedValue;
}
}
return $scopedParams;
}
/**
* Applies resolved auth schemes to the command object.
*

View file

@ -3,6 +3,7 @@
namespace Aws\EndpointV2\Ruleset;
use Aws\Exception\UnresolvedEndpointException;
use function \Aws\is_associative;
/**
* Houses properties of an individual parameter definition.
@ -30,6 +31,13 @@ class RulesetParameter
/** @var boolean */
private $deprecated;
/** @var array<string, string> */
private static $typeMap = [
'String' => 'is_string',
'Boolean' => 'is_bool',
'StringArray' => 'isStringArray'
];
public function __construct($name, array $definition)
{
$type = ucfirst($definition['type']);
@ -38,18 +46,16 @@ class RulesetParameter
} else {
throw new UnresolvedEndpointException(
'Unknown parameter type ' . "`{$type}`" .
'. Parameters must be of type `String` or `Boolean`.'
'. Parameters must be of type `String`, `Boolean` or `StringArray.'
);
}
$this->name = $name;
$this->builtIn = isset($definition['builtIn']) ? $definition['builtIn'] : null;
$this->default = isset($definition['default']) ? $definition['default'] : null;
$this->required = isset($definition['required']) ?
$definition['required'] : false;
$this->documentation = isset($definition['documentation']) ?
$definition['documentation'] : null;
$this->deprecated = isset($definition['deprecated']) ?
$definition['deprecated'] : false;
$this->builtIn = $definition['builtIn'] ?? null;
$this->default = $definition['default'] ?? null;
$this->required = $definition['required'] ?? false;
$this->documentation = $definition['documentation'] ?? null;
$this->deprecated = $definition['deprecated'] ?? false;
}
/**
@ -116,12 +122,7 @@ class RulesetParameter
*/
public function validateInputParam($inputParam)
{
$typeMap = [
'String' => 'is_string',
'Boolean' => 'is_bool'
];
if ($typeMap[$this->type]($inputParam) === false) {
if (!$this->isValidInput($inputParam)) {
throw new UnresolvedEndpointException(
"Input parameter `{$this->name}` is the wrong type. Must be a {$this->type}."
);
@ -130,12 +131,15 @@ class RulesetParameter
if ($this->deprecated) {
$deprecated = $this->deprecated;
$deprecationString = "{$this->name} has been deprecated ";
$msg = isset($deprecated['message']) ? $deprecated['message'] : null;
$since = isset($deprecated['since']) ? $deprecated['since'] : null;
$msg = $deprecated['message'] ?? null;
$since = $deprecated['since'] ?? null;
if (!is_null($since)) $deprecationString = $deprecationString
. 'since '. $since . '. ';
if (!is_null($msg)) $deprecationString = $deprecationString . $msg;
if (!is_null($since)){
$deprecationString .= 'since ' . $since . '. ';
}
if (!is_null($msg)) {
$deprecationString .= $msg;
}
trigger_error($deprecationString, E_USER_WARNING);
}
@ -143,6 +147,33 @@ class RulesetParameter
private function isValidType($type)
{
return in_array($type, ['String', 'Boolean']);
return isset(self::$typeMap[$type]);
}
private function isValidInput($inputParam): bool
{
$method = self::$typeMap[$this->type];
if (is_callable($method)) {
return $method($inputParam);
} elseif (method_exists($this, $method)) {
return $this->$method($inputParam);
}
return false;
}
private function isStringArray(array $array): bool
{
if (is_associative($array)) {
return false;
}
foreach($array as $value) {
if (!is_string($value)) {
return false;
}
}
return true;
}
}

View file

@ -61,6 +61,13 @@ class RulesetStandardLibrary
*/
public function getAttr($from, $path)
{
// Handles the case where "[<int|string]" is provided as the top-level path
if (preg_match('/^\[(\w+)\]$/', $path, $matches)) {
$index = is_numeric($matches[1]) ? (int) $matches[1] : $matches[1];
return $from[$index] ?? null;
}
$parts = explode('.', $path);
foreach ($parts as $part) {
$sliceIdx = strpos($part, '[');
@ -68,10 +75,9 @@ class RulesetStandardLibrary
if (substr($part, -1) !== ']') {
return null;
}
$slice = intval(substr($part, $sliceIdx + 1, strlen($part) - 1));
$from = isset($from[substr($part,0, $sliceIdx)][$slice])
? $from[substr($part,0, $sliceIdx)][$slice]
: null;
$slice = (int) substr($part, $sliceIdx + 1, strlen($part) - 1);
$fromIndex = substr($part, 0, $sliceIdx);
$from = $from[$fromIndex][$slice] ?? null;
} else {
$from = $from[$part];
}

View file

@ -48,7 +48,7 @@ class AwsException extends \RuntimeException implements
$message,
CommandInterface $command,
array $context = [],
\Exception $previous = null
?\Exception $previous = null
) {
$this->data = isset($context['body']) ? $context['body'] : [];
$this->command = $command;

View file

@ -9,7 +9,7 @@ class CouldNotCreateChecksumException extends \RuntimeException implements
{
use HasMonitoringEventsTrait;
public function __construct($algorithm, \Exception $previous = null)
public function __construct($algorithm, ?\Exception $previous = null)
{
$prefix = $algorithm === 'md5' ? "An" : "A";
parent::__construct("{$prefix} {$algorithm} checksum could not be "

View file

@ -21,6 +21,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getExperimentTargetAccountConfigurationAsync(array $args = [])
* @method \Aws\Result getExperimentTemplate(array $args = [])
* @method \GuzzleHttp\Promise\Promise getExperimentTemplateAsync(array $args = [])
* @method \Aws\Result getSafetyLever(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSafetyLeverAsync(array $args = [])
* @method \Aws\Result getTargetAccountConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTargetAccountConfigurationAsync(array $args = [])
* @method \Aws\Result getTargetResourceType(array $args = [])
@ -51,6 +53,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateExperimentTemplate(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateExperimentTemplateAsync(array $args = [])
* @method \Aws\Result updateSafetyLeverState(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSafetyLeverStateAsync(array $args = [])
* @method \Aws\Result updateTargetAccountConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateTargetAccountConfigurationAsync(array $args = [])
*/

View file

@ -124,7 +124,7 @@ class GlacierClient extends AwsClient
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
// Accept "ContentSHA256" with a lowercase "c" to match other Glacier params.
if (!$command['ContentSHA256'] && $command['contentSHA256']) {
@ -195,7 +195,7 @@ class GlacierClient extends AwsClient
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
return $handler($command, $request->withHeader(
'x-amz-glacier-version',

View file

@ -405,6 +405,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise stopWorkflowRunAsync(array $args = [])
* @method \Aws\Result tagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result testConnection(array $args = [])
* @method \GuzzleHttp\Promise\Promise testConnectionAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateBlueprint(array $args = [])

View file

@ -44,7 +44,7 @@ class GuzzleHandler
/**
* @param ClientInterface $client
*/
public function __construct(ClientInterface $client = null)
public function __construct(?ClientInterface $client = null)
{
$this->client = $client ?: new Client();
}

View file

@ -21,7 +21,7 @@ class GuzzleHandler
/**
* @param ClientInterface $client
*/
public function __construct(ClientInterface $client = null)
public function __construct(?ClientInterface $client = null)
{
$this->client = $client ?: new Client();
}

View file

@ -61,7 +61,7 @@ class HandlerList implements \Countable
/**
* @param callable $handler HTTP handler.
*/
public function __construct(callable $handler = null)
public function __construct(?callable $handler = null)
{
$this->handler = $handler;
}
@ -277,7 +277,7 @@ class HandlerList implements \Countable
*
* @param callable|null $fn Pass null to remove any previously set function
*/
public function interpose(callable $fn = null)
public function interpose(?callable $fn = null)
{
$this->sorted = null;
$this->interposeFn = $fn;

View file

@ -29,7 +29,7 @@ class HashingStream implements StreamInterface
public function __construct(
StreamInterface $stream,
HashInterface $hash,
callable $onComplete = null
?callable $onComplete = null
) {
$this->stream = $stream;
$this->hash = $hash;

View file

@ -7,6 +7,8 @@ use Aws\AwsClient;
* This client is used to interact with the **Amazon Interactive Video Service RealTime** service.
* @method \Aws\Result createEncoderConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise createEncoderConfigurationAsync(array $args = [])
* @method \Aws\Result createIngestConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise createIngestConfigurationAsync(array $args = [])
* @method \Aws\Result createParticipantToken(array $args = [])
* @method \GuzzleHttp\Promise\Promise createParticipantTokenAsync(array $args = [])
* @method \Aws\Result createStage(array $args = [])
@ -15,6 +17,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise createStorageConfigurationAsync(array $args = [])
* @method \Aws\Result deleteEncoderConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteEncoderConfigurationAsync(array $args = [])
* @method \Aws\Result deleteIngestConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteIngestConfigurationAsync(array $args = [])
* @method \Aws\Result deletePublicKey(array $args = [])
* @method \GuzzleHttp\Promise\Promise deletePublicKeyAsync(array $args = [])
* @method \Aws\Result deleteStage(array $args = [])
@ -27,6 +31,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getCompositionAsync(array $args = [])
* @method \Aws\Result getEncoderConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getEncoderConfigurationAsync(array $args = [])
* @method \Aws\Result getIngestConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise getIngestConfigurationAsync(array $args = [])
* @method \Aws\Result getParticipant(array $args = [])
* @method \GuzzleHttp\Promise\Promise getParticipantAsync(array $args = [])
* @method \Aws\Result getPublicKey(array $args = [])
@ -43,6 +49,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listCompositionsAsync(array $args = [])
* @method \Aws\Result listEncoderConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listEncoderConfigurationsAsync(array $args = [])
* @method \Aws\Result listIngestConfigurations(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIngestConfigurationsAsync(array $args = [])
* @method \Aws\Result listParticipantEvents(array $args = [])
* @method \GuzzleHttp\Promise\Promise listParticipantEventsAsync(array $args = [])
* @method \Aws\Result listParticipants(array $args = [])
@ -65,6 +73,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
* @method \Aws\Result untagResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateIngestConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateIngestConfigurationAsync(array $args = [])
* @method \Aws\Result updateStage(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateStageAsync(array $args = [])
*/

View file

@ -37,7 +37,7 @@ class IdempotencyTokenMiddleware
*/
public static function wrap(
Service $service,
callable $bytesGenerator = null
?callable $bytesGenerator = null
) {
return function (callable $handler) use ($service, $bytesGenerator) {
return new self($handler, $service, $bytesGenerator);
@ -47,7 +47,7 @@ class IdempotencyTokenMiddleware
public function __construct(
callable $nextHandler,
Service $service,
callable $bytesGenerator = null
?callable $bytesGenerator = null
) {
$this->bytesGenerator = $bytesGenerator
?: $this->findCompatibleRandomSource();
@ -57,7 +57,7 @@ class IdempotencyTokenMiddleware
public function __invoke(
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) {
$handler = $this->nextHandler;
if ($this->bytesGenerator) {

View file

@ -12,6 +12,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise addThingToBillingGroupAsync(array $args = [])
* @method \Aws\Result addThingToThingGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise addThingToThingGroupAsync(array $args = [])
* @method \Aws\Result associateSbomWithPackageVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateSbomWithPackageVersionAsync(array $args = [])
* @method \Aws\Result associateTargetsWithJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateTargetsWithJobAsync(array $args = [])
* @method \Aws\Result attachPolicy(array $args = [])
@ -248,6 +250,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise detachThingPrincipalAsync(array $args = [])
* @method \Aws\Result disableTopicRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableTopicRuleAsync(array $args = [])
* @method \Aws\Result disassociateSbomFromPackageVersion(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateSbomFromPackageVersionAsync(array $args = [])
* @method \Aws\Result enableTopicRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise enableTopicRuleAsync(array $args = [])
* @method \Aws\Result getBehaviorModelTrainingSummaries(array $args = [])
@ -368,6 +372,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listRelatedResourcesForAuditFindingAsync(array $args = [])
* @method \Aws\Result listRoleAliases(array $args = [])
* @method \GuzzleHttp\Promise\Promise listRoleAliasesAsync(array $args = [])
* @method \Aws\Result listSbomValidationResults(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSbomValidationResultsAsync(array $args = [])
* @method \Aws\Result listScheduledAudits(array $args = [])
* @method \GuzzleHttp\Promise\Promise listScheduledAuditsAsync(array $args = [])
* @method \Aws\Result listSecurityProfiles(array $args = [])

View file

@ -85,7 +85,7 @@ class MachineLearningClient extends AwsClient
return static function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
if ($command->getName() === 'Predict') {
$request = $request->withUri(new Uri($command['PredictEndpoint']));

View file

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

View file

@ -0,0 +1,11 @@
<?php
namespace Aws\MarketplaceReporting;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Marketplace Reporting Service** service.
* @method \Aws\Result getBuyerDashboard(array $args = [])
* @method \GuzzleHttp\Promise\Promise getBuyerDashboardAsync(array $args = [])
*/
class MarketplaceReportingClient extends AwsClient {}

View file

@ -37,6 +37,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeFlowAsync(array $args = [])
* @method \Aws\Result describeFlowSourceMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFlowSourceMetadataAsync(array $args = [])
* @method \Aws\Result describeFlowSourceThumbnail(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFlowSourceThumbnailAsync(array $args = [])
* @method \Aws\Result describeGateway(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeGatewayAsync(array $args = [])
* @method \Aws\Result describeGatewayInstance(array $args = [])

View file

@ -49,6 +49,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result listVersions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listVersionsAsync(array $args = [])
* @method \Aws\Result putPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise putPolicyAsync(array $args = [])
* @method \Aws\Result searchJobs(array $args = [])

View file

@ -189,5 +189,49 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateAsync(array $args = [])
* @method \Aws\Result updateEventBridgeRuleTemplateGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateGroupAsync(array $args = [])
* @method \Aws\Result createChannelPlacementGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise createChannelPlacementGroupAsync(array $args = [])
* @method \Aws\Result createCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
* @method \Aws\Result createNetwork(array $args = [])
* @method \GuzzleHttp\Promise\Promise createNetworkAsync(array $args = [])
* @method \Aws\Result createNode(array $args = [])
* @method \GuzzleHttp\Promise\Promise createNodeAsync(array $args = [])
* @method \Aws\Result createNodeRegistrationScript(array $args = [])
* @method \GuzzleHttp\Promise\Promise createNodeRegistrationScriptAsync(array $args = [])
* @method \Aws\Result deleteChannelPlacementGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteChannelPlacementGroupAsync(array $args = [])
* @method \Aws\Result deleteCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
* @method \Aws\Result deleteNetwork(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteNetworkAsync(array $args = [])
* @method \Aws\Result deleteNode(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteNodeAsync(array $args = [])
* @method \Aws\Result describeChannelPlacementGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeChannelPlacementGroupAsync(array $args = [])
* @method \Aws\Result describeCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
* @method \Aws\Result describeNetwork(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeNetworkAsync(array $args = [])
* @method \Aws\Result describeNode(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeNodeAsync(array $args = [])
* @method \Aws\Result listChannelPlacementGroups(array $args = [])
* @method \GuzzleHttp\Promise\Promise listChannelPlacementGroupsAsync(array $args = [])
* @method \Aws\Result listClusters(array $args = [])
* @method \GuzzleHttp\Promise\Promise listClustersAsync(array $args = [])
* @method \Aws\Result listNetworks(array $args = [])
* @method \GuzzleHttp\Promise\Promise listNetworksAsync(array $args = [])
* @method \Aws\Result listNodes(array $args = [])
* @method \GuzzleHttp\Promise\Promise listNodesAsync(array $args = [])
* @method \Aws\Result updateChannelPlacementGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateChannelPlacementGroupAsync(array $args = [])
* @method \Aws\Result updateCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateClusterAsync(array $args = [])
* @method \Aws\Result updateNetwork(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateNetworkAsync(array $args = [])
* @method \Aws\Result updateNode(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateNodeAsync(array $args = [])
* @method \Aws\Result updateNodeState(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateNodeStateAsync(array $args = [])
*/
class MediaLiveClient extends AwsClient {}

View file

@ -38,7 +38,7 @@ final class Middleware
) {
return function (
CommandInterface $command,
RequestInterface $request = null)
?RequestInterface $request = null)
use (
$handler,
$api,
@ -67,13 +67,13 @@ final class Middleware
*
* @return callable
*/
public static function validation(Service $api, Validator $validator = null)
public static function validation(Service $api, ?Validator $validator = null)
{
$validator = $validator ?: new Validator();
return function (callable $handler) use ($api, $validator) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($api, $validator, $handler) {
if ($api->isModifiedModel()) {
$api = new Service(
@ -178,7 +178,7 @@ final class Middleware
return function (callable $handler) use ($fn) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $fn) {
$fn($command, $request);
return $handler($command, $request);
@ -204,8 +204,8 @@ final class Middleware
* @return callable
*/
public static function retry(
callable $decider = null,
callable $delay = null,
?callable $decider = null,
?callable $delay = null,
$stats = false
) {
$decider = $decider ?: RetryMiddleware::createDefaultDecider();
@ -253,7 +253,7 @@ final class Middleware
return function (callable $handler) use ($operations) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $operations) {
if (!$request->hasHeader('Content-Type')
&& in_array($command->getName(), $operations, true)
@ -322,7 +322,7 @@ final class Middleware
return function (callable $handler) use ($history) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $history) {
$ticket = $history->start($command, $request);
return $handler($command, $request)
@ -354,7 +354,7 @@ final class Middleware
return function (callable $handler) use ($f) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $f) {
return $handler($command, $f($request));
};
@ -375,7 +375,7 @@ final class Middleware
return function (callable $handler) use ($f) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $f) {
return $handler($f($command), $request);
};
@ -395,7 +395,7 @@ final class Middleware
return function (callable $handler) use ($f) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, $f) {
return $handler($command, $request)->then($f);
};
@ -407,7 +407,7 @@ final class Middleware
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
$start = microtime(true);
return $handler($command, $request)

View file

@ -30,8 +30,8 @@ class MockHandler implements \Countable
*/
public function __construct(
array $resultOrQueue = [],
callable $onFulfilled = null,
callable $onRejected = null
?callable $onFulfilled = null,
?callable $onRejected = null
) {
$this->queue = [];
$this->onFulfilled = $onFulfilled;

View file

@ -287,7 +287,7 @@ abstract class AbstractUploadManager implements Promise\PromisorInterface
return function (callable $handler) use (&$errors) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler, &$errors) {
return $handler($command, $request)->then(
function (ResultInterface $result) use ($command) {

View file

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

View file

@ -0,0 +1,45 @@
<?php
namespace Aws\PCS;
use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Parallel Computing Service** service.
* @method \Aws\Result createCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
* @method \Aws\Result createComputeNodeGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise createComputeNodeGroupAsync(array $args = [])
* @method \Aws\Result createQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise createQueueAsync(array $args = [])
* @method \Aws\Result deleteCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
* @method \Aws\Result deleteComputeNodeGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteComputeNodeGroupAsync(array $args = [])
* @method \Aws\Result deleteQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteQueueAsync(array $args = [])
* @method \Aws\Result getCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise getClusterAsync(array $args = [])
* @method \Aws\Result getComputeNodeGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise getComputeNodeGroupAsync(array $args = [])
* @method \Aws\Result getQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise getQueueAsync(array $args = [])
* @method \Aws\Result listClusters(array $args = [])
* @method \GuzzleHttp\Promise\Promise listClustersAsync(array $args = [])
* @method \Aws\Result listComputeNodeGroups(array $args = [])
* @method \GuzzleHttp\Promise\Promise listComputeNodeGroupsAsync(array $args = [])
* @method \Aws\Result listQueues(array $args = [])
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result registerComputeNodeGroupInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise registerComputeNodeGroupInstanceAsync(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 updateComputeNodeGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateComputeNodeGroupAsync(array $args = [])
* @method \Aws\Result updateQueue(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQueueAsync(array $args = [])
*/
class PCSClient extends AwsClient {}

View file

@ -145,5 +145,7 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise updateMetricAttributionAsync(array $args = [])
* @method \Aws\Result updateRecommender(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateRecommenderAsync(array $args = [])
* @method \Aws\Result updateSolution(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSolutionAsync(array $args = [])
*/
class PersonalizeClient extends AwsClient {}

View file

@ -57,6 +57,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise deleteRegistrationAttachmentAsync(array $args = [])
* @method \Aws\Result deleteRegistrationFieldValue(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteRegistrationFieldValueAsync(array $args = [])
* @method \Aws\Result deleteResourcePolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteResourcePolicyAsync(array $args = [])
* @method \Aws\Result deleteTextMessageSpendLimitOverride(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteTextMessageSpendLimitOverrideAsync(array $args = [])
* @method \Aws\Result deleteVerifiedDestinationNumber(array $args = [])
@ -109,6 +111,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise discardRegistrationVersionAsync(array $args = [])
* @method \Aws\Result getProtectConfigurationCountryRuleSet(array $args = [])
* @method \GuzzleHttp\Promise\Promise getProtectConfigurationCountryRuleSetAsync(array $args = [])
* @method \Aws\Result getResourcePolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise getResourcePolicyAsync(array $args = [])
* @method \Aws\Result listPoolOriginationIdentities(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPoolOriginationIdentitiesAsync(array $args = [])
* @method \Aws\Result listRegistrationAssociations(array $args = [])
@ -121,6 +125,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise putOptedOutNumberAsync(array $args = [])
* @method \Aws\Result putRegistrationFieldValue(array $args = [])
* @method \GuzzleHttp\Promise\Promise putRegistrationFieldValueAsync(array $args = [])
* @method \Aws\Result putResourcePolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise putResourcePolicyAsync(array $args = [])
* @method \Aws\Result releasePhoneNumber(array $args = [])
* @method \GuzzleHttp\Promise\Promise releasePhoneNumberAsync(array $args = [])
* @method \Aws\Result releaseSenderId(array $args = [])

View file

@ -56,7 +56,7 @@ class PresignUrlMiddleware
};
}
public function __invoke(CommandInterface $cmd, RequestInterface $request = null)
public function __invoke(CommandInterface $cmd, ?RequestInterface $request = null)
{
if (in_array($cmd->getName(), $this->commandPool)
&& (!isset($cmd['__skip' . $cmd->getName()]))

View file

@ -47,6 +47,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
* @method \Aws\Result updateLibraryItem(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateLibraryItemAsync(array $args = [])
* @method \Aws\Result updateLibraryItemMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateLibraryItemMetadataAsync(array $args = [])
* @method \Aws\Result updateQApp(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQAppAsync(array $args = [])
* @method \Aws\Result updateQAppSession(array $args = [])

View file

@ -163,6 +163,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise describeKeyRegistrationAsync(array $args = [])
* @method \Aws\Result describeNamespace(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeNamespaceAsync(array $args = [])
* @method \Aws\Result describeQPersonalizationConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeQPersonalizationConfigurationAsync(array $args = [])
* @method \Aws\Result describeRefreshSchedule(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeRefreshScheduleAsync(array $args = [])
* @method \Aws\Result describeRoleCustomPermission(array $args = [])
@ -219,6 +221,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listFolderMembersAsync(array $args = [])
* @method \Aws\Result listFolders(array $args = [])
* @method \GuzzleHttp\Promise\Promise listFoldersAsync(array $args = [])
* @method \Aws\Result listFoldersForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listFoldersForResourceAsync(array $args = [])
* @method \Aws\Result listGroupMemberships(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupMembershipsAsync(array $args = [])
* @method \Aws\Result listGroups(array $args = [])
@ -331,6 +335,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise updateKeyRegistrationAsync(array $args = [])
* @method \Aws\Result updatePublicSharingSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise updatePublicSharingSettingsAsync(array $args = [])
* @method \Aws\Result updateQPersonalizationConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateQPersonalizationConfigurationAsync(array $args = [])
* @method \Aws\Result updateRefreshSchedule(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateRefreshScheduleAsync(array $args = [])
* @method \Aws\Result updateRoleCustomPermission(array $args = [])

View file

@ -31,6 +31,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listIndexesAsync(array $args = [])
* @method \Aws\Result listIndexesForMembers(array $args = [])
* @method \GuzzleHttp\Promise\Promise listIndexesForMembersAsync(array $args = [])
* @method \Aws\Result listResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise listResourcesAsync(array $args = [])
* @method \Aws\Result listSupportedResourceTypes(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSupportedResourceTypesAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])

View file

@ -5,6 +5,8 @@ use Aws\AwsClient;
/**
* This client is used to interact with the **AWS Resource Groups** service.
* @method \Aws\Result cancelTagSyncTask(array $args = [])
* @method \GuzzleHttp\Promise\Promise cancelTagSyncTaskAsync(array $args = [])
* @method \Aws\Result createGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = [])
* @method \Aws\Result deleteGroup(array $args = [])
@ -17,18 +19,26 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getGroupConfigurationAsync(array $args = [])
* @method \Aws\Result getGroupQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise getGroupQueryAsync(array $args = [])
* @method \Aws\Result getTagSyncTask(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTagSyncTaskAsync(array $args = [])
* @method \Aws\Result getTags(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTagsAsync(array $args = [])
* @method \Aws\Result groupResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise groupResourcesAsync(array $args = [])
* @method \Aws\Result listGroupResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupResourcesAsync(array $args = [])
* @method \Aws\Result listGroupingStatuses(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupingStatusesAsync(array $args = [])
* @method \Aws\Result listGroups(array $args = [])
* @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = [])
* @method \Aws\Result listTagSyncTasks(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagSyncTasksAsync(array $args = [])
* @method \Aws\Result putGroupConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise putGroupConfigurationAsync(array $args = [])
* @method \Aws\Result searchResources(array $args = [])
* @method \GuzzleHttp\Promise\Promise searchResourcesAsync(array $args = [])
* @method \Aws\Result startTagSyncTask(array $args = [])
* @method \GuzzleHttp\Promise\Promise startTagSyncTaskAsync(array $args = [])
* @method \Aws\Result tag(array $args = [])
* @method \GuzzleHttp\Promise\Promise tagAsync(array $args = [])
* @method \Aws\Result ungroupResources(array $args = [])

View file

@ -162,7 +162,7 @@ class ResultPaginator implements \Iterator
$this->result = null;
}
private function createNextCommand(array $args, array $nextToken = null)
private function createNextCommand(array $args, ?array $nextToken = null)
{
return $this->client->getCommand($this->operation, array_merge($args, ($nextToken ?: [])));
}

View file

@ -87,7 +87,7 @@ class RetryMiddleware
$retries,
CommandInterface $command,
RequestInterface $request,
ResultInterface $result = null,
?ResultInterface $result = null,
$error = null
) use ($maxRetries, $retryCurlErrors, $extraConfig) {
// Allow command-level options to override this value
@ -216,7 +216,7 @@ class RetryMiddleware
*/
public function __invoke(
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) {
$retries = 0;
$requestStats = [];

View file

@ -160,7 +160,7 @@ class Route53Client extends AwsClient
private function cleanIdFn()
{
return function (callable $handler) {
return function (CommandInterface $c, RequestInterface $r = null) use ($handler) {
return function (CommandInterface $c, ?RequestInterface $r = null) use ($handler) {
foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
if ($c->hasParam($clean)) {
$c[$clean] = $this->cleanId($c[$clean]);

View file

@ -36,7 +36,7 @@ class ExpiresParsingMiddleware
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request = null)
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
{
$next = $this->nextHandler;
return $next($command, $request)->then(

View file

@ -37,8 +37,8 @@ final class ValidateResponseChecksumResultMutator implements S3ResultMutator
*/
public function __invoke(
ResultInterface $result,
CommandInterface $command = null,
ResponseInterface $response = null
?CommandInterface $command = null,
?ResponseInterface $response = null
): ResultInterface
{
$operation = $this->api->getOperation($command->getName());

View file

@ -37,7 +37,7 @@ class PermanentRedirectMiddleware
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request = null)
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
{
$next = $this->nextHandler;
return $next($command, $request)->then(

View file

@ -35,7 +35,7 @@ class PutObjectUrlMiddleware
$this->nextHandler = $nextHandler;
}
public function __invoke(CommandInterface $command, RequestInterface $request = null)
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
{
$next = $this->nextHandler;
return $next($command, $request)->then(

View file

@ -234,6 +234,8 @@ use Psr\Http\Message\RequestInterface;
*/
class S3Client extends AwsClient implements S3ClientInterface
{
private const DIRECTORY_BUCKET_REGEX = '/^[a-zA-Z0-9_-]+--[a-z0-9]+-az\d+--x-s3'
.'(?!.*(?:-s3alias|--ol-s3|\.mrap))$/';
use S3ClientTrait;
/** @var array */
@ -574,14 +576,20 @@ class S3Client extends AwsClient implements S3ClientInterface
$region = $this->getRegion();
return static function (callable $handler) use ($region) {
return function (Command $command, $request = null) use ($handler, $region) {
if ($command->getName() === 'CreateBucket') {
if ($command->getName() === 'CreateBucket'
&& !self::isDirectoryBucket($command['Bucket'])
) {
$locationConstraint = $command['CreateBucketConfiguration']['LocationConstraint']
?? null;
if ($locationConstraint === 'us-east-1') {
unset($command['CreateBucketConfiguration']);
} elseif ('us-east-1' !== $region && empty($locationConstraint)) {
$command['CreateBucketConfiguration'] = ['LocationConstraint' => $region];
if (isset($command['CreateBucketConfiguration'])) {
$command['CreateBucketConfiguration']['LocationConstraint'] = $region;
} else {
$command['CreateBucketConfiguration'] = ['LocationConstraint' => $region];
}
}
}
@ -620,7 +628,7 @@ class S3Client extends AwsClient implements S3ClientInterface
return static function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
if ($command->getName() === 'HeadObject'
&& !isset($command['@http']['decode_content'])
@ -721,7 +729,7 @@ class S3Client extends AwsClient implements S3ClientInterface
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) use ($handler) {
if (!empty($command['@context']['signature_version'])
&& $command['@context']['signature_version'] === 'v4-s3express'
@ -858,6 +866,18 @@ class S3Client extends AwsClient implements S3ClientInterface
$this->clientBuiltIns[$key] = $value;
}
/**
* Determines whether a bucket is a directory bucket.
* Only considers the availability zone/suffix format
*
* @param string $bucket
* @return bool
*/
public static function isDirectoryBucket(string $bucket): bool
{
return preg_match(self::DIRECTORY_BUCKET_REGEX, $bucket) === 1;
}
/** @internal */
public static function _applyRetryConfig($value, $args, HandlerList $list)
{

View file

@ -35,7 +35,7 @@ class SSECMiddleware
public function __invoke(
CommandInterface $command,
RequestInterface $request = null
?RequestInterface $request = null
) {
// Allows only HTTPS connections when using SSE-C
if (($command['SSECustomerKey'] || $command['CopySourceSSECustomerKey'])

View file

@ -110,7 +110,7 @@ class StreamWrapper
public static function register(
S3ClientInterface $client,
$protocol = 's3',
CacheInterface $cache = null,
?CacheInterface $cache = null,
$v2Existence = false
) {
self::$useV2Existence = $v2Existence;

View file

@ -141,6 +141,8 @@ use GuzzleHttp\Promise\PromiseInterface;
* @method \GuzzleHttp\Promise\Promise listAccessPointsAsync(array $args = [])
* @method \Aws\Result listAccessPointsForObjectLambda(array $args = [])
* @method \GuzzleHttp\Promise\Promise listAccessPointsForObjectLambdaAsync(array $args = [])
* @method \Aws\Result listCallerAccessGrants(array $args = [])
* @method \GuzzleHttp\Promise\Promise listCallerAccessGrantsAsync(array $args = [])
* @method \Aws\Result listJobs(array $args = [])
* @method \GuzzleHttp\Promise\Promise listJobsAsync(array $args = [])
* @method \Aws\Result listMultiRegionAccessPoints(array $args = [])

View file

@ -5,6 +5,8 @@ use Aws\AwsClient;
/**
* This client is used to interact with the **Amazon SageMaker Metrics Service** service.
* @method \Aws\Result batchGetMetrics(array $args = [])
* @method \GuzzleHttp\Promise\Promise batchGetMetricsAsync(array $args = [])
* @method \Aws\Result batchPutMetrics(array $args = [])
* @method \GuzzleHttp\Promise\Promise batchPutMetricsAsync(array $args = [])
*/

View file

@ -8,17 +8,17 @@ use Symfony\Component\Filesystem\Filesystem;
class Composer
{
public static function removeUnusedServicesInDev(Event $event, Filesystem $filesystem = null)
public static function removeUnusedServicesInDev(Event $event, ?Filesystem $filesystem = null)
{
self::removeUnusedServicesWithConfig($event, $filesystem, true);
}
public static function removeUnusedServices(Event $event, Filesystem $filesystem = null)
public static function removeUnusedServices(Event $event, ?Filesystem $filesystem = null)
{
self::removeUnusedServicesWithConfig($event, $filesystem, false);
}
private static function removeUnusedServicesWithConfig(Event $event, Filesystem $filesystem = null, $isDev = false)
private static function removeUnusedServicesWithConfig(Event $event, ?Filesystem $filesystem = null, $isDev = false)
{
if ($isDev && !$event->isDevMode()){
return;

View file

@ -234,6 +234,8 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionDirectConnect(array $args = [])
* @method \Aws\DirectoryService\DirectoryServiceClient createDirectoryService(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionDirectoryService(array $args = [])
* @method \Aws\DirectoryServiceData\DirectoryServiceDataClient createDirectoryServiceData(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionDirectoryServiceData(array $args = [])
* @method \Aws\DocDB\DocDBClient createDocDB(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionDocDB(array $args = [])
* @method \Aws\DocDBElastic\DocDBElasticClient createDocDBElastic(array $args = [])
@ -462,6 +464,8 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceEntitlementService(array $args = [])
* @method \Aws\MarketplaceMetering\MarketplaceMeteringClient createMarketplaceMetering(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceMetering(array $args = [])
* @method \Aws\MarketplaceReporting\MarketplaceReportingClient createMarketplaceReporting(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceReporting(array $args = [])
* @method \Aws\MediaConnect\MediaConnectClient createMediaConnect(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionMediaConnect(array $args = [])
* @method \Aws\MediaConvert\MediaConvertClient createMediaConvert(array $args = [])
@ -526,6 +530,8 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionOrganizations(array $args = [])
* @method \Aws\Outposts\OutpostsClient createOutposts(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionOutposts(array $args = [])
* @method \Aws\PCS\PCSClient createPCS(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionPCS(array $args = [])
* @method \Aws\PI\PIClient createPI(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionPI(array $args = [])
* @method \Aws\Panorama\PanoramaClient createPanorama(array $args = [])
@ -744,8 +750,6 @@ namespace Aws;
* @method \Aws\MultiRegionClient createMultiRegionWellArchitected(array $args = [])
* @method \Aws\WorkDocs\WorkDocsClient createWorkDocs(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionWorkDocs(array $args = [])
* @method \Aws\WorkLink\WorkLinkClient createWorkLink(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionWorkLink(array $args = [])
* @method \Aws\WorkMail\WorkMailClient createWorkMail(array $args = [])
* @method \Aws\MultiRegionClient createMultiRegionWorkMail(array $args = [])
* @method \Aws\WorkMailMessageFlow\WorkMailMessageFlowClient createWorkMailMessageFlow(array $args = [])
@ -775,7 +779,7 @@ namespace Aws;
*/
class Sdk
{
const VERSION = '3.320.7';
const VERSION = '3.323.1';
/** @var array Arguments for creating clients */
private $args;

View file

@ -58,7 +58,7 @@ class S3SignatureV4 extends SignatureV4
CredentialsInterface $credentials,
RequestInterface $request,
$signingService,
SigningConfigAWS $signingConfig = null
?SigningConfigAWS $signingConfig = null
){
$this->verifyCRTLoaded();
$credentials_provider = $this->createCRTStaticCredentialsProvider($credentials);

View file

@ -508,7 +508,7 @@ class SignatureV4 implements SignatureInterface
CredentialsInterface $credentials,
RequestInterface $request,
$signingService,
SigningConfigAWS $signingConfig = null
?SigningConfigAWS $signingConfig = null
){
$this->verifyCRTLoaded();
$signingConfig = $signingConfig ?? new SigningConfigAWS([

View file

@ -169,7 +169,7 @@ class SqsClient extends AwsClient
return static function (callable $handler) {
return function (
CommandInterface $c,
RequestInterface $r = null
?RequestInterface $r = null
) use ($handler) {
if ($c->getName() !== 'ReceiveMessage') {
return $handler($c, $r);

View file

@ -7,9 +7,35 @@ use Aws\AwsClient;
* This client is used to interact with the **AWS Supply Chain** service.
* @method \Aws\Result createBillOfMaterialsImportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise createBillOfMaterialsImportJobAsync(array $args = [])
* @method \Aws\Result createDataIntegrationFlow(array $args = [])
* @method \GuzzleHttp\Promise\Promise createDataIntegrationFlowAsync(array $args = [])
* @method \Aws\Result createDataLakeDataset(array $args = [])
* @method \GuzzleHttp\Promise\Promise createDataLakeDatasetAsync(array $args = [])
* @method \Aws\Result deleteDataIntegrationFlow(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDataIntegrationFlowAsync(array $args = [])
* @method \Aws\Result deleteDataLakeDataset(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDataLakeDatasetAsync(array $args = [])
* @method \Aws\Result getBillOfMaterialsImportJob(array $args = [])
* @method \GuzzleHttp\Promise\Promise getBillOfMaterialsImportJobAsync(array $args = [])
* @method \Aws\Result getDataIntegrationFlow(array $args = [])
* @method \GuzzleHttp\Promise\Promise getDataIntegrationFlowAsync(array $args = [])
* @method \Aws\Result getDataLakeDataset(array $args = [])
* @method \GuzzleHttp\Promise\Promise getDataLakeDatasetAsync(array $args = [])
* @method \Aws\Result listDataIntegrationFlows(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDataIntegrationFlowsAsync(array $args = [])
* @method \Aws\Result listDataLakeDatasets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDataLakeDatasetsAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result sendDataIntegrationEvent(array $args = [])
* @method \GuzzleHttp\Promise\Promise sendDataIntegrationEventAsync(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 updateDataIntegrationFlow(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDataIntegrationFlowAsync(array $args = [])
* @method \Aws\Result updateDataLakeDataset(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDataLakeDatasetAsync(array $args = [])
*/
class SupplyChainClient extends AwsClient {}

View file

@ -37,7 +37,7 @@ class SsoTokenProvider implements RefreshableTokenProviderInterface
public function __construct(
$profileName,
$configFilePath = null,
SSOOIDCClient $ssoOidcClient = null
?SSOOIDCClient $ssoOidcClient = null
) {
$this->profileName = $this->resolveProfileName($profileName);
$this->configFilePath = $this->resolveConfigFile($configFilePath);

View file

@ -61,7 +61,7 @@ class TraceMiddleware
* headers contained in this array will be replaced with the if
* "scrub_auth" is set to true.
*/
public function __construct(array $config = [], Service $service = null)
public function __construct(array $config = [], ?Service $service = null)
{
$this->config = $config + [
'logfn' => function ($value) { echo $value; },
@ -179,7 +179,7 @@ class TraceMiddleware
]);
}
private function responseArray(ResponseInterface $response = null)
private function responseArray(?ResponseInterface $response = null)
{
return !$response ? [] : [
'instance' => spl_object_hash($response),

View file

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

View file

@ -1,75 +0,0 @@
<?php
namespace Aws\WorkLink;
use Aws\AwsClient;
/**
* This client is used to interact with the **Amazon WorkLink** service.
* @method \Aws\Result associateDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateDomainAsync(array $args = [])
* @method \Aws\Result associateWebsiteAuthorizationProvider(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateWebsiteAuthorizationProviderAsync(array $args = [])
* @method \Aws\Result associateWebsiteCertificateAuthority(array $args = [])
* @method \GuzzleHttp\Promise\Promise associateWebsiteCertificateAuthorityAsync(array $args = [])
* @method \Aws\Result createFleet(array $args = [])
* @method \GuzzleHttp\Promise\Promise createFleetAsync(array $args = [])
* @method \Aws\Result deleteFleet(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteFleetAsync(array $args = [])
* @method \Aws\Result describeAuditStreamConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeAuditStreamConfigurationAsync(array $args = [])
* @method \Aws\Result describeCompanyNetworkConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeCompanyNetworkConfigurationAsync(array $args = [])
* @method \Aws\Result describeDevice(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDeviceAsync(array $args = [])
* @method \Aws\Result describeDevicePolicyConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDevicePolicyConfigurationAsync(array $args = [])
* @method \Aws\Result describeDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDomainAsync(array $args = [])
* @method \Aws\Result describeFleetMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeFleetMetadataAsync(array $args = [])
* @method \Aws\Result describeIdentityProviderConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeIdentityProviderConfigurationAsync(array $args = [])
* @method \Aws\Result describeWebsiteCertificateAuthority(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeWebsiteCertificateAuthorityAsync(array $args = [])
* @method \Aws\Result disassociateDomain(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateDomainAsync(array $args = [])
* @method \Aws\Result disassociateWebsiteAuthorizationProvider(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateWebsiteAuthorizationProviderAsync(array $args = [])
* @method \Aws\Result disassociateWebsiteCertificateAuthority(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateWebsiteCertificateAuthorityAsync(array $args = [])
* @method \Aws\Result listDevices(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDevicesAsync(array $args = [])
* @method \Aws\Result listDomains(array $args = [])
* @method \GuzzleHttp\Promise\Promise listDomainsAsync(array $args = [])
* @method \Aws\Result listFleets(array $args = [])
* @method \GuzzleHttp\Promise\Promise listFleetsAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result listWebsiteAuthorizationProviders(array $args = [])
* @method \GuzzleHttp\Promise\Promise listWebsiteAuthorizationProvidersAsync(array $args = [])
* @method \Aws\Result listWebsiteCertificateAuthorities(array $args = [])
* @method \GuzzleHttp\Promise\Promise listWebsiteCertificateAuthoritiesAsync(array $args = [])
* @method \Aws\Result restoreDomainAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise restoreDomainAccessAsync(array $args = [])
* @method \Aws\Result revokeDomainAccess(array $args = [])
* @method \GuzzleHttp\Promise\Promise revokeDomainAccessAsync(array $args = [])
* @method \Aws\Result signOutUser(array $args = [])
* @method \GuzzleHttp\Promise\Promise signOutUserAsync(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 updateAuditStreamConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateAuditStreamConfigurationAsync(array $args = [])
* @method \Aws\Result updateCompanyNetworkConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateCompanyNetworkConfigurationAsync(array $args = [])
* @method \Aws\Result updateDevicePolicyConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDevicePolicyConfigurationAsync(array $args = [])
* @method \Aws\Result updateDomainMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateDomainMetadataAsync(array $args = [])
* @method \Aws\Result updateFleetMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateFleetMetadataAsync(array $args = [])
* @method \Aws\Result updateIdentityProviderConfiguration(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateIdentityProviderConfigurationAsync(array $args = [])
*/
class WorkLinkClient extends AwsClient {}

View file

@ -61,6 +61,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise disassociateUserAccessLoggingSettingsAsync(array $args = [])
* @method \Aws\Result disassociateUserSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise disassociateUserSettingsAsync(array $args = [])
* @method \Aws\Result expireSession(array $args = [])
* @method \GuzzleHttp\Promise\Promise expireSessionAsync(array $args = [])
* @method \Aws\Result getBrowserSettings(array $args = [])
* @method \GuzzleHttp\Promise\Promise getBrowserSettingsAsync(array $args = [])
* @method \Aws\Result getIdentityProvider(array $args = [])
@ -73,6 +75,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise getPortalAsync(array $args = [])
* @method \Aws\Result getPortalServiceProviderMetadata(array $args = [])
* @method \GuzzleHttp\Promise\Promise getPortalServiceProviderMetadataAsync(array $args = [])
* @method \Aws\Result getSession(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSessionAsync(array $args = [])
* @method \Aws\Result getTrustStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTrustStoreAsync(array $args = [])
* @method \Aws\Result getTrustStoreCertificate(array $args = [])
@ -91,6 +95,8 @@ use Aws\AwsClient;
* @method \GuzzleHttp\Promise\Promise listNetworkSettingsAsync(array $args = [])
* @method \Aws\Result listPortals(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPortalsAsync(array $args = [])
* @method \Aws\Result listSessions(array $args = [])
* @method \GuzzleHttp\Promise\Promise listSessionsAsync(array $args = [])
* @method \Aws\Result listTagsForResource(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
* @method \Aws\Result listTrustStoreCertificates(array $args = [])

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

Some files were not shown because too many files have changed in this diff Show more