S3ExpressIdentityProvider
in package
Table of Contents
Methods
- __construct() : mixed
- __invoke() : mixed
- Returns a promise for an S3 Express session for the command's bucket.
Methods
__construct()
public
__construct(string $clientRegion[, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $clientRegion : string
-
Region used for CreateSession calls.
- $config : array<string|int, mixed> = []
-
Optional settings:
- client: an S3Client used for every CreateSession call. Sessions are then created with that client's own identity, though they are still cached per requesting identity.
__invoke()
Returns a promise for an S3 Express session for the command's bucket.
public
__invoke(mixed $command[, CredentialsInterface|null $credentials = null ]) : mixed
When $credentials is given, the session is created with those credentials, and it is cached per bucket and per identity.
Parameters
- $command : mixed
- $credentials : CredentialsInterface|null = null
-
Credentials of the requesting client.