Documentation

Aws

Namespaces

AccessAnalyzer
Acm
ACMPCA
AlexaForBusiness
Amplify
AmplifyBackend
Api
ApiGateway
ApiGatewayManagementApi
ApiGatewayV2
AppConfig
Appflow
AppIntegrationsService
ApplicationAutoScaling
ApplicationDiscoveryService
ApplicationInsights
AppMesh
AppRegistry
Appstream
AppSync
Arn
Athena
AuditManager
AugmentedAIRuntime
AutoScaling
AutoScalingPlans
Backup
Batch
Braket
Budgets
Chime
ClientSideMonitoring
Cloud9
CloudDirectory
CloudFormation
CloudFront
CloudHsm
CloudHSMV2
CloudSearch
CloudSearchDomain
CloudTrail
CloudWatch
CloudWatchEvents
CloudWatchLogs
CodeArtifact
CodeBuild
CodeCommit
CodeDeploy
CodeGuruProfiler
CodeGuruReviewer
CodePipeline
CodeStar
CodeStarconnections
CodeStarNotifications
CognitoIdentity
CognitoIdentityProvider
CognitoSync
Comprehend
ComprehendMedical
ComputeOptimizer
ConfigService
Connect
ConnectContactLens
ConnectParticipant
CostandUsageReportService
CostExplorer
Credentials
Crypto
CustomerProfiles
DatabaseMigrationService
DataExchange
DataPipeline
DataSync
DAX
Detective
DeviceFarm
DevOpsGuru
DirectConnect
DirectoryService
DLM
DocDB
DynamoDb
DynamoDbStreams
EBS
Ec2
EC2InstanceConnect
Ecr
ECRPublic
Ecs
Efs
EKS
ElastiCache
ElasticBeanstalk
ElasticInference
ElasticLoadBalancing
ElasticLoadBalancingV2
ElasticsearchService
ElasticTranscoder
Emr
EMRContainers
Endpoint
EndpointDiscovery
EventBridge
Exception
Firehose
FMS
ForecastQueryService
ForecastService
FraudDetector
FSx
GameLift
Glacier
GlobalAccelerator
Glue
GlueDataBrew
Greengrass
GreengrassV2
GroundStation
GuardDuty
Handler
Health
HealthLake
Honeycode
Iam
IdentityStore
imagebuilder
ImportExport
Inspector
Iot
IoT1ClickDevicesService
IoT1ClickProjects
IoTAnalytics
IotDataPlane
IoTDeviceAdvisor
IoTEvents
IoTEventsData
IoTFleetHub
IoTJobsDataPlane
IoTSecureTunneling
IoTSiteWise
IoTThingsGraph
IoTWireless
IVS
Kafka
kendra
Kinesis
KinesisAnalytics
KinesisAnalyticsV2
KinesisVideo
KinesisVideoArchivedMedia
KinesisVideoMedia
KinesisVideoSignalingChannels
Kms
LakeFormation
Lambda
LexModelBuildingService
LexRuntimeService
LicenseManager
Lightsail
LocationService
LookoutforVision
MachineLearning
Macie
Macie2
ManagedBlockchain
MarketplaceCatalog
MarketplaceCommerceAnalytics
MarketplaceEntitlementService
MarketplaceMetering
MediaConnect
MediaConvert
MediaLive
MediaPackage
MediaPackageVod
MediaStore
MediaStoreData
MediaTailor
MigrationHub
MigrationHubConfig
Mobile
MQ
MTurk
Multipart
MWAA
Neptune
NetworkFirewall
NetworkManager
OpsWorks
OpsWorksCM
Organizations
Outposts
Personalize
PersonalizeEvents
PersonalizeRuntime
PI
Pinpoint
PinpointEmail
PinpointSMSVoice
Polly
Pricing
PrometheusService
QLDB
QLDBSession
QuickSight
RAM
Rds
RDSDataService
Redshift
RedshiftDataAPIService
Rekognition
ResourceGroups
ResourceGroupsTaggingAPI
Retry
RoboMaker
Route53
Route53Domains
Route53Resolver
S3
S3Control
S3Outposts
SageMaker
SagemakerEdgeManager
SageMakerFeatureStoreRuntime
SageMakerRuntime
SavingsPlans
Schemas
SecretsManager
SecurityHub
ServerlessApplicationRepository
ServiceCatalog
ServiceDiscovery
ServiceQuotas
Ses
SesV2
Sfn
Shield
Signature
signer
Sms
SnowBall
Sns
Sqs
Ssm
SSO
SSOAdmin
SSOOIDC
StorageGateway
Sts
Support
Swf
Synthetics
Textract
TimestreamQuery
TimestreamWrite
TranscribeService
Transfer
Translate
Waf
WafRegional
WAFV2
WellArchitected
WorkDocs
WorkLink
WorkMail
WorkMailMessageFlow
WorkSpaces
XRay

Interfaces, Classes and Traits

AwsClientInterface
Represents an AWS client.
CacheInterface
Represents a simple cache interface.
CommandInterface
A command object encapsulates the input parameters used to control the creation of a HTTP request and processing of a HTTP response.
ConfigurationProviderInterface
HashInterface
Interface that allows implementing various incremental hashes.
MonitoringEventsInterface
Interface for adding and retrieving client-side monitoring events
ResponseContainerInterface
ResultInterface
Represents an AWS result object that is returned from executing an operation.
AbstractConfigurationProvider
A configuration provider is a function that returns a promise that is fulfilled with a configuration object. This class provides base functionality usable by specific configuration provider implementations
AwsClient
Default AWS client implementation
Command
AWS command object.
CommandPool
Sends and iterator of commands concurrently using a capped pool size.
DoctrineCacheAdapter
HandlerList
Builds a single handler function from zero or more middleware functions and a handler. The handler function is then used to send command objects and return a promise that is resolved with an AWS result object.
HashingStream
Stream decorator that calculates a rolling hash of the stream as it is read.
History
Represents a history container that is required when using the history middleware.
LruArrayCache
Simple in-memory LRU cache that limits the number of cached entries.
Middleware
MockHandler
Returns promises that are rejected or fulfilled using a queue of Aws\ResultInterface and Aws\Exception\AwsException objects.
MultiRegionClient
PhpHash
Incremental hashing using PHP's hash functions.
Psr16CacheAdapter
PsrCacheAdapter
Result
AWS result.
ResultPaginator
Iterator that yields each page of results of a pageable operation.
Sdk
Builds AWS clients based on configuration settings.
TraceMiddleware
Traces state changes between middlewares.
Waiter
"Waiters" are associated with an AWS resource (e.g., EC2 instance), and poll that resource and until it is in a particular state.
WrappedHttpHandler
Converts an HTTP handler into a Command HTTP handler.
AwsClientTrait
A trait providing generic functionality for interacting with Amazon Web Services. This is meant to be used in classes implementing \Aws\AwsClientInterface
HasDataTrait
Trait implementing ToArrayInterface, \ArrayAccess, \Countable, and \IteratorAggregate
HasMonitoringEventsTrait

Table of Contents

constantly()  : callable
Returns a function that always returns the same value;
filter()  : Generator
Filters values that do not satisfy the predicate function $pred.
map()  : Generator
Applies a map function $f to each value in a collection.
flatmap()  : Generator
Creates a generator that iterates over a sequence, then iterates over each value in the sequence and yields the application of the map function to each value.
partition()  : Generator
Partitions the input sequence into partitions of the specified size.
or_chain()  : callable
Returns a function that invokes the provided variadic functions one after the other until one of the functions returns a non-null value.
load_compiled_json()  : mixed
Loads a compiled JSON file from a PHP file.
clear_compiled_json()  : mixed
No-op
dir_iterator()  : Generator
Iterates over the files in a directory and works with custom wrappers.
recursive_dir_iterator()  : Generator
Returns a recursive directory iterator that yields absolute filenames.
describe_type()  : string
Debug function used to describe the provided value type and class.
default_http_handler()  : callable
Creates a default HTTP handler based on the available clients.
default_user_agent()  : string
Gets the default user agent string depending on the Guzzle version
serialize()  : RequestInterface
Serialize a request for a command but do not send it.
manifest()  : array<string|int, mixed>
Retrieves data for a service from the SDK's service manifest file.
is_valid_hostname()  : bool
Checks if supplied parameter is a valid hostname
is_valid_hostlabel()  : bool
Checks if supplied parameter is a valid host label
parse_ini_file()  : array<string|int, mixed>|bool
Ignores '#' full line comments, which parse_ini_file no longer does in PHP 7+.
boolean_value()  : bool|null
Outputs boolean value of input for a select range of possible values, null otherwise
is_valid_epoch()  : bool
Checks if an input is a valid epoch time

Functions

constantly()

Returns a function that always returns the same value;

constantly(mixed $value) : callable
Parameters
$value : mixed

Value to return.

Return values
callable

filter()

Filters values that do not satisfy the predicate function $pred.

filter(mixed $iterable, callable $pred) : Generator
Parameters
$iterable : mixed

Iterable sequence of data.

$pred : callable

Function that accepts a value and returns true/false

Return values
Generator

map()

Applies a map function $f to each value in a collection.

map(mixed $iterable, callable $f) : Generator
Parameters
$iterable : mixed

Iterable sequence of data.

$f : callable

Map function to apply.

Return values
Generator

flatmap()

Creates a generator that iterates over a sequence, then iterates over each value in the sequence and yields the application of the map function to each value.

flatmap(mixed $iterable, callable $f) : Generator
Parameters
$iterable : mixed

Iterable sequence of data.

$f : callable

Map function to apply.

Return values
Generator

partition()

Partitions the input sequence into partitions of the specified size.

partition(mixed $iterable, int $size) : Generator
Parameters
$iterable : mixed

Iterable sequence of data.

$size : int

Size to make each partition (except possibly the last chunk)

Return values
Generator

or_chain()

Returns a function that invokes the provided variadic functions one after the other until one of the functions returns a non-null value.

or_chain() : callable

The return function will call each passed function with any arguments it is provided.

$a = function ($x, $y) { return null; };
$b = function ($x, $y) { return $x + $y; };
$fn = \Aws\or_chain($a, $b);
echo $fn(1, 2); // 3
Return values
callable

load_compiled_json()

Loads a compiled JSON file from a PHP file.

load_compiled_json(string $path) : mixed

If the JSON file has not been cached to disk as a PHP file, it will be loaded from the JSON source file and returned.

Parameters
$path : string

Path to the JSON file on disk

Return values
mixed

Returns the JSON decoded data. Note that JSON objects are decoded as associative arrays.

clear_compiled_json()

No-op

clear_compiled_json() : mixed
Return values
mixed

dir_iterator()

Iterates over the files in a directory and works with custom wrappers.

dir_iterator(string $path[, resource $context = null ]) : Generator
Parameters
$path : string

Path to open (e.g., "s3://foo/bar").

$context : resource = null

Stream wrapper context.

Return values
Generator

Yields relative filename strings.

recursive_dir_iterator()

Returns a recursive directory iterator that yields absolute filenames.

recursive_dir_iterator(string $path[, resource $context = null ]) : Generator

This iterator is not broken like PHP's built-in DirectoryIterator (which will read the first file from a stream wrapper, then rewind, then read it again).

Parameters
$path : string

Path to traverse (e.g., s3://bucket/key, /tmp)

$context : resource = null

Stream context options.

Return values
Generator

Yields absolute filenames.

describe_type()

Debug function used to describe the provided value type and class.

describe_type(mixed $input) : string
Parameters
$input : mixed
Return values
string

Returns a string containing the type of the variable and if a class is provided, the class name.

default_http_handler()

Creates a default HTTP handler based on the available clients.

default_http_handler() : callable
Return values
callable

default_user_agent()

Gets the default user agent string depending on the Guzzle version

default_user_agent() : string
Return values
string

manifest()

Retrieves data for a service from the SDK's service manifest file.

manifest([string $service = null ]) : array<string|int, mixed>

Manifest data is stored statically, so it does not need to be loaded more than once per process. The JSON data is also cached in opcache.

Parameters
$service : string = null

Case-insensitive namespace or endpoint prefix of the service for which you are retrieving manifest data.

Tags
throws
InvalidArgumentException

if the service is not supported.

Return values
array<string|int, mixed>

is_valid_hostname()

Checks if supplied parameter is a valid hostname

is_valid_hostname(string $hostname) : bool
Parameters
$hostname : string
Return values
bool

is_valid_hostlabel()

Checks if supplied parameter is a valid host label

is_valid_hostlabel( $label) : bool
Parameters
$label :
Return values
bool

parse_ini_file()

Ignores '#' full line comments, which parse_ini_file no longer does in PHP 7+.

parse_ini_file( $filename[, bool $process_sections = false ][, int $scanner_mode = INI_SCANNER_NORMAL ]) : array<string|int, mixed>|bool
Parameters
$filename :
$process_sections : bool = false
$scanner_mode : int = INI_SCANNER_NORMAL
Return values
array<string|int, mixed>|bool

boolean_value()

Outputs boolean value of input for a select range of possible values, null otherwise

boolean_value( $input) : bool|null
Parameters
$input :
Return values
bool|null

is_valid_epoch()

Checks if an input is a valid epoch time

is_valid_epoch( $input) : bool
Parameters
$input :
Return values
bool

Search results