Documentation

StsClient extends AwsClient
in package

This client is used to interact with the **AWS Security Token Service (AWS STS)**.

Table of Contents

$aliases  : array<string|int, mixed>
$api  : Service
$config  : array<string|int, mixed>
$credentialProvider  : callable
$defaultRequestOptions  : array<string|int, mixed>
$endpoint  : string
$handlerList  : HandlerList
$region  : string
$signatureProvider  : callable
__call()  : mixed
__construct()  : mixed
The client constructor accepts the following options:
__sleep()  : mixed
assumeRole()  :
assumeRoleAsync()  :
assumeRoleWithSAML()  :
assumeRoleWithSAMLAsync()  :
assumeRoleWithWebIdentity()  :
assumeRoleWithWebIdentityAsync()  :
createCredentials()  : Credentials
Creates credentials from the result of an STS operations
decodeAuthorizationMessage()  :
decodeAuthorizationMessageAsync()  :
execute()  : mixed
executeAsync()  : mixed
factory()  : static
getAccessKeyInfo()  :
getAccessKeyInfoAsync()  :
getApi()  : Service
getArguments()  : array<string|int, mixed>
Get an array of client constructor arguments used by the client.
getCallerIdentity()  :
getCallerIdentityAsync()  :
getCommand()  : CommandInterface
getConfig()  : mixed|null
Get a client configuration value.
getCredentials()  : PromiseInterface
Returns a promise that is fulfilled with an {@see \Aws\Credentials\CredentialsInterface} object.
getEndpoint()  : UriInterface
Gets the default endpoint, or base URL, used by the client.
getFederationToken()  :
getFederationTokenAsync()  :
getHandlerList()  : HandlerList
Get the handler list used to transfer commands.
getIterator()  : mixed
getPaginator()  : mixed
getRegion()  : string
Get the region to which the client is configured to send requests.
getSessionToken()  :
getSessionTokenAsync()  :
getSignatureProvider()  : callable
Get the signature_provider function of the client.
getWaiter()  : mixed
waitUntil()  : mixed
addEndpointDiscoveryMiddleware()  : mixed
addEndpointParameterMiddleware()  : mixed
addInvocationId()  : mixed
addSignatureMiddleware()  : mixed
addStreamRequestPayload()  : mixed
loadAliases()  : mixed
parseClass()  : array<string|int, mixed>
Parse the class name and setup the custom exception class of the client and return the "service" name of the client and "exception_class".

Properties

$aliases

private array<string|int, mixed> $aliases

$config

private array<string|int, mixed> $config

$credentialProvider

private callable $credentialProvider

$defaultRequestOptions

private array<string|int, mixed> $defaultRequestOptions

$signatureProvider

private callable $signatureProvider

Methods

__call()

public __call(mixed $name, array<string|int, mixed> $args) : mixed
Parameters
$name : mixed
$args : array<string|int, mixed>
Return values
mixed

__construct()

The client constructor accepts the following options:

public __construct(array<string|int, mixed> $args) : mixed

In addition to the options available to AwsClient::__construct, StsClient accepts the following options:

  • sts_regional_endpoints: (Aws\Sts\RegionalEndpoints\ConfigurationInterface|Aws\CacheInterface|callable|string|array) Specifies whether to use regional or legacy endpoints for legacy regions. Provide an Aws\Sts\RegionalEndpoints\ConfigurationInterface object, an instance of Aws\CacheInterface, a callable configuration provider used to create endpoint configuration, a string value of legacy or regional, or an associative array with the following keys: endpoint_types (string) Set to legacy or regional, defaults to legacy
Parameters
$args : array<string|int, mixed>
Return values
mixed

__sleep()

public __sleep() : mixed
Return values
mixed

assumeRole()

public assumeRole(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

assumeRoleAsync()

public assumeRoleAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

assumeRoleWithSAML()

public assumeRoleWithSAML(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

assumeRoleWithSAMLAsync()

public assumeRoleWithSAMLAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

assumeRoleWithWebIdentity()

public assumeRoleWithWebIdentity(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

assumeRoleWithWebIdentityAsync()

public assumeRoleWithWebIdentityAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

createCredentials()

Creates credentials from the result of an STS operations

public createCredentials(Result $result) : Credentials
Parameters
$result : Result

Result of an STS operation

Tags
throws
InvalidArgumentException

if the result contains no credentials

Return values
Credentials

decodeAuthorizationMessage()

public decodeAuthorizationMessage(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

decodeAuthorizationMessageAsync()

public decodeAuthorizationMessageAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

factory()

public static factory([array<string|int, mixed> $config = [] ]) : static
Parameters
$config : array<string|int, mixed> = []
Tags
deprecated
Return values
static

getAccessKeyInfo()

public getAccessKeyInfo(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getAccessKeyInfoAsync()

public getAccessKeyInfoAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getArguments()

Get an array of client constructor arguments used by the client.

public static getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCallerIdentity()

public getCallerIdentity(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getCallerIdentityAsync()

public getCallerIdentityAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getConfig()

Get a client configuration value.

public getConfig([mixed $option = null ]) : mixed|null
Parameters
$option : mixed = null

The option to retrieve. Pass null to retrieve all options.

Return values
mixed|null

getCredentials()

Returns a promise that is fulfilled with an {@see \Aws\Credentials\CredentialsInterface} object.

public getCredentials() : PromiseInterface

If you need the credentials synchronously, then call the wait() method on the returned promise.

Return values
PromiseInterface

getFederationToken()

public getFederationToken(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getFederationTokenAsync()

public getFederationTokenAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getHandlerList()

Get the handler list used to transfer commands.

public getHandlerList() : HandlerList

This list can be modified to add middleware or to change the underlying handler used to send HTTP requests.

Return values
HandlerList

getIterator()

public getIterator(mixed $name[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : mixed
$args : array<string|int, mixed> = []
Return values
mixed

getPaginator()

public getPaginator(mixed $name[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : mixed
$args : array<string|int, mixed> = []
Return values
mixed

getRegion()

Get the region to which the client is configured to send requests.

public getRegion() : string
Return values
string

getSessionToken()

public getSessionToken(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getSessionTokenAsync()

public getSessionTokenAsync(array<string|int, mixed> $args = []) :
Parameters
$args = [] : array<string|int, mixed>
Return values

getSignatureProvider()

Get the signature_provider function of the client.

public final getSignatureProvider() : callable
Return values
callable

getWaiter()

public getWaiter(mixed $name[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : mixed
$args : array<string|int, mixed> = []
Return values
mixed

waitUntil()

public waitUntil(mixed $name[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : mixed
$args : array<string|int, mixed> = []
Return values
mixed

addEndpointDiscoveryMiddleware()

private addEndpointDiscoveryMiddleware(mixed $config, mixed $args) : mixed
Parameters
$config : mixed
$args : mixed
Return values
mixed

addEndpointParameterMiddleware()

private addEndpointParameterMiddleware(mixed $args) : mixed
Parameters
$args : mixed
Return values
mixed

addInvocationId()

private addInvocationId() : mixed
Return values
mixed

addSignatureMiddleware()

private addSignatureMiddleware() : mixed
Return values
mixed

addStreamRequestPayload()

private addStreamRequestPayload() : mixed
Return values
mixed

loadAliases()

private loadAliases([mixed $file = null ]) : mixed
Parameters
$file : mixed = null
Return values
mixed

parseClass()

Parse the class name and setup the custom exception class of the client and return the "service" name of the client and "exception_class".

private parseClass() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results