Installation guide
A more robust way to connect to Amazon Glacier is through the service builder. This allows you to specify
credentials and other configuration settings in a configuration file. These settings can then be shared across all
clients so that you only have to specify your settings once.
use Aws\Common\Aws;
// Create a service builder using a configuration file
$aws = Aws::factory('/path/to/my_config.json');
// Get the client from the builder by namespace
$client = $aws->get('Glacier');
This guide is incomplete
This guide is not quite finished. If you are looking for a good way to contribute to the SDK and to the rest of the
AWS PHP community, then helping to write documentation is a great place to start. Our guides are written in
ReStructuredText and generated using Sphinx. Feel free to add some content to our documentation and send a
pull request to https://github.com/aws/aws-sdk-php. You can view our documentation sources at
https://github.com/aws/aws-sdk-php/tree/master/docs.
API Reference
Please see the Amazon Glacier Client API reference for a details about all of the available methods, including
descriptions of the inputs and outputs.
AbortMultipartUpload CompleteMultipartUpload
CreateVault DeleteArchive
DeleteVault DeleteVaultNotifications
DescribeJob DescribeVault
GetJobOutput GetVaultNotifications
InitiateJob InitiateMultipartUpload
ListJobs ListMultipartUploads
ListParts ListVaults
SetVaultNotifications UploadArchive
UploadMultipartPart
AWS Identity and Access Management
This guide focuses on the AWS SDK for PHP client for AWS Identity and Access Management. This guide assumes
that you have already downloaded and installed the AWS SDK for PHP. See Installation for more information on
getting started.
Creating a client
First you need to create a client object using one of the following techniques.
Factory method
The easiest way to get up and running quickly is to use the Aws\Iam\IamClient::factory() method and
provide your credentials (key and secret).
AWS Identity and Access Management
90