AWS SDK for PHP
  • Namespace
  • Class
  • Tree
  • Download

Namespaces

  • Aws
    • AutoScaling
      • Enum
      • Exception
    • CloudFormation
      • Enum
      • Exception
    • CloudFront
      • Enum
      • Exception
    • CloudFront_2012_05_05
    • CloudHsm
      • Exception
    • CloudSearch
      • Enum
      • Exception
    • CloudSearch_2011_02_01
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudWatch
      • Enum
      • Exception
    • CloudWatchLogs
      • Exception
    • CodeCommit
      • Exception
    • CodeDeploy
      • Exception
    • CodePipeline
      • Exception
    • CognitoIdentity
      • Exception
    • CognitoSync
      • Exception
    • Common
      • Client
      • Command
      • Credentials
      • Enum
      • Exception
        • Parser
      • Hash
      • InstanceMetadata
        • Waiter
      • Iterator
      • Model
        • MultipartUpload
      • Signature
      • Waiter
    • ConfigService
      • Exception
    • DataPipeline
      • Enum
      • Exception
    • DeviceFarm
      • Exception
    • DirectConnect
      • Enum
      • Exception
    • DirectoryService
      • Exception
    • DynamoDb
      • Enum
      • Exception
      • Model
        • BatchRequest
      • Session
        • LockingStrategy
    • DynamoDb_2011_12_05
    • DynamoDbStreams
      • Exception
    • Ec2
      • Enum
      • Exception
      • Iterator
    • Ecs
      • Exception
    • Efs
      • Exception
    • ElastiCache
      • Enum
      • Exception
    • ElasticBeanstalk
      • Enum
      • Exception
    • ElasticFileSystem
    • ElasticLoadBalancing
      • Exception
    • ElasticTranscoder
      • Exception
    • Emr
      • Enum
      • Exception
    • Glacier
      • Enum
      • Exception
      • Model
        • MultipartUpload
    • Iam
      • Enum
      • Exception
    • ImportExport
      • Enum
      • Exception
    • Kinesis
      • Enum
      • Exception
    • Kms
      • Exception
    • Lambda
      • Exception
    • MachineLearning
      • Exception
    • OpsWorks
      • Enum
      • Exception
    • Rds
      • Enum
      • Exception
    • Redshift
      • Enum
      • Exception
    • Route53
      • Enum
      • Exception
    • Route53Domains
      • Exception
    • S3
      • Command
      • Enum
      • Exception
        • Parser
      • Iterator
      • Model
        • MultipartUpload
      • Sync
    • Ses
      • Enum
      • Exception
    • SimpleDb
      • Exception
    • Sns
      • Exception
      • MessageValidator
        • Exception
    • Sqs
      • Enum
      • Exception
    • Ssm
      • Exception
    • StorageGateway
      • Enum
      • Exception
    • Sts
      • Exception
    • Support
      • Exception
    • Swf
      • Enum
      • Exception
    • WorkSpaces
      • Exception
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP

Classes

  • AbstractClient
  • ClientBuilder
  • DefaultClient
  • ExpiredCredentialsChecker
  • ThrottlingErrorChecker
  • UploadBodyListener
  • UserAgentListener

Interfaces

  • AwsClientInterface
NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

Class DefaultClient

Generic client for interacting with an AWS service

Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
Extended by Guzzle\Http\Client implements Guzzle\Http\ClientInterface
Extended by Guzzle\Service\Client implements Guzzle\Service\ClientInterface
Extended by Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
Extended by Aws\Common\Client\DefaultClient
Namespace: Aws\Common\Client
Located at Aws/Common/Client/DefaultClient.php

Methods summary

  • public static factory ( array|Collection $config = array() )

    Factory method to create a default client using an array of configuration options.

Methods detail

# public static Aws\Common\Client\DefaultClient
factory( array|Guzzle\Common\Collection $config = array() )

Factory method to create a default client using an array of configuration options.

The following array keys and values are available options:

Credential options ((key, secret, and optional token) OR credentials is required):

  • key: AWS Access Key ID
  • secret: AWS secret access key
  • credentials: You can optionally provide a custom Aws\Common\Credentials\CredentialsInterface object
  • token: Custom AWS security token to use with request authentication. Please note that not all services accept temporary credentials. See http://docs.aws.amazon.com/STS/latest/UsingSTS/UsingTokens.html
  • token.ttd: UNIX timestamp for when the custom credentials expire
  • credentials.cache.key: Optional custom cache key to use with the credentials
  • credentials.client: Pass this option to specify a custom Guzzle\Http\ClientInterface to use if your credentials require a HTTP request (e.g. RefreshableInstanceProfileCredentials)

Region and endpoint options (Some services do not require a region while others do. Check the service specific user guide documentation for details):

  • region: Region name (e.g. 'us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', etc...)
  • scheme: URI Scheme of the base URL (e.g. 'https', 'http') used when endpoint is not supplied
  • endpoint: Allows you to specify a custom endpoint instead of building one from the region and scheme

Generic client options:

  • signature: Overrides the signature used by the client. Clients will always choose an appropriate default signature. However, it can be useful to override this with a custom setting. This can be set to "v4", "v3https", "v2" or an instance of Aws\Common\Signature\SignatureInterface.
  • ssl.certificate_authority: Set to true to use the bundled CA cert or pass the full path to an SSL certificate bundle
  • curl.options: Associative of CURLOPT_* cURL options to add to each request
  • client.backoff.logger: Guzzle\Log\LogAdapterInterface object used to log backoff retries. Use 'debug' to emit PHP warnings when a retry is issued.
  • client.backoff.logger.template: Optional template to use for exponential backoff log messages. See Guzzle\Plugin\Backoff\BackoffLogger for formatting information.

Parameters

$config
array|Guzzle\Common\Collection
$config Client configuration data

Returns

Aws\Common\Client\DefaultClient

Overrides

Guzzle\Service\Client::factory

Methods inherited from Aws\Common\Client\AbstractClient

__call(), __construct(), createRequest(), getAllEvents(), getApiVersion(), getCredentials(), getRegion(), getRegions(), getSignature(), getWaiter(), getWaiterFactory(), send(), setCredentials(), setRegion(), setWaiterFactory(), waitUntil()

Methods inherited from Guzzle\Service\Client

execute(), executeMultiple(), getCommand(), getCommandFactory(), getDescription(), getInflector(), getIterator(), getResourceIteratorFactory(), prepareCommand(), setCommandFactory(), setDescription(), setInflector(), setResourceIteratorFactory()

Methods inherited from Guzzle\Http\Client

delete(), expandTemplate(), extractPharCacert(), get(), getBaseUrl(), getConfig(), getCurlMulti(), getDefaultOption(), getDefaultUserAgent(), getUriTemplate(), head(), initSsl(), options(), patch(), post(), prepareRequest(), put(), sendMultiple(), setBaseUrl(), setConfig(), setCurlMulti(), setDefaultOption(), setRequestFactory(), setSslVerification(), setUriTemplate(), setUserAgent()

Methods inherited from Guzzle\Common\AbstractHasDispatcher

addSubscriber(), dispatch(), getEventDispatcher(), setEventDispatcher()

Magic methods summary

Constants summary

Constants inherited from Guzzle\Service\Client

COMMAND_PARAMS

Constants inherited from Guzzle\Http\Client

CURL_OPTIONS, DEFAULT_SELECT_TIMEOUT, DISABLE_REDIRECTS, MAX_HANDLES, REQUEST_OPTIONS, SSL_CERT_AUTHORITY

Constants inherited from Guzzle\Http\ClientInterface

CREATE_REQUEST, HTTP_DATE

Properties summary

Properties inherited from Aws\Common\Client\AbstractClient

$aggregator, $credentials, $signature, $waiterFactory

Properties inherited from Guzzle\Service\Client

$commandFactory, $inflector, $resourceIteratorFactory, $serviceDescription

Properties inherited from Guzzle\Http\Client

$defaultHeaders, $requestFactory, $userAgent

Properties inherited from Guzzle\Common\AbstractHasDispatcher

$eventDispatcher

AWS SDK for PHP API documentation generated by ApiGen 2.8.0