|
| 1 | +# S3 Directory Buckets code examples for the SDK for PHP |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +Shows how to use the AWS SDK for PHP to work with Amazon S3 Directory Buckets. |
| 6 | + |
| 7 | +<!--custom.overview.start--> |
| 8 | +<!--custom.overview.end--> |
| 9 | + |
| 10 | +_S3 Directory Buckets are designed to store data within a single AWS Zone. Directory buckets organize data hierarchically into directories, providing a structure similar to a file system._ |
| 11 | + |
| 12 | +## ⚠ Important |
| 13 | + |
| 14 | +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/). |
| 15 | +* Running the tests might result in charges to your AWS account. |
| 16 | +* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). |
| 17 | +* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). |
| 18 | + |
| 19 | +<!--custom.important.start--> |
| 20 | +<!--custom.important.end--> |
| 21 | + |
| 22 | +## Code examples |
| 23 | + |
| 24 | +### Prerequisites |
| 25 | + |
| 26 | +For prerequisites, see the [README](../../../README.md#Prerequisites) in the `php` folder. |
| 27 | + |
| 28 | + |
| 29 | +<!--custom.prerequisites.start--> |
| 30 | +<!--custom.prerequisites.end--> |
| 31 | + |
| 32 | +### Basics |
| 33 | + |
| 34 | +Code examples that show you how to perform the essential operations within a service. |
| 35 | + |
| 36 | +- [Learn the basics](S3ExpressBasics.php) |
| 37 | + |
| 38 | + |
| 39 | +<!--custom.examples.start--> |
| 40 | +<!--custom.examples.end--> |
| 41 | + |
| 42 | +## Run the examples |
| 43 | + |
| 44 | +### Instructions |
| 45 | + |
| 46 | + |
| 47 | +<!--custom.instructions.start--> |
| 48 | +<!--custom.instructions.end--> |
| 49 | + |
| 50 | + |
| 51 | +#### Learn the basics |
| 52 | + |
| 53 | +This example shows you how to do the following: |
| 54 | + |
| 55 | +- Set up a VPC and VPC Endpoint |
| 56 | +- Set up the S3 Express Policies, Roles, and User to work with S3 Express buckets |
| 57 | +- Create two S3 Clients |
| 58 | +- Create two buckets |
| 59 | +- Create an object and copy it over |
| 60 | +- Demonstrate performance difference |
| 61 | +- Populate the buckets to show the lexicographical difference |
| 62 | +- Prompt the user to see if they want to clean up the resources |
| 63 | + |
| 64 | +<!--custom.basic_prereqs.s3-directory-buckets_Scenario_ExpressBasics.start--> |
| 65 | +<!--custom.basic_prereqs.s3-directory-buckets_Scenario_ExpressBasics.end--> |
| 66 | + |
| 67 | + |
| 68 | +<!--custom.basics.s3-directory-buckets_Scenario_ExpressBasics.start--> |
| 69 | +<!--custom.basics.s3-directory-buckets_Scenario_ExpressBasics.end--> |
| 70 | + |
| 71 | + |
| 72 | +### Tests |
| 73 | + |
| 74 | +⚠ Running tests might result in charges to your AWS account. |
| 75 | + |
| 76 | + |
| 77 | +To find instructions for running these tests, see the [README](../../../README.md#Tests) |
| 78 | +in the `php` folder. |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +<!--custom.tests.start--> |
| 83 | +<!--custom.tests.end--> |
| 84 | + |
| 85 | +## Additional resources |
| 86 | + |
| 87 | +- [S3 Directory Buckets User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) |
| 88 | +- [S3 Directory Buckets API Reference](https://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html) |
| 89 | +- [SDK for PHP S3 Directory Buckets reference](https://docs.aws.amazon.com/aws-sdk-php/v3/api/namespace-Aws.S3-directory-buckets.html) |
| 90 | + |
| 91 | +<!--custom.resources.start--> |
| 92 | +<!--custom.resources.end--> |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 97 | + |
| 98 | +SPDX-License-Identifier: Apache-2.0 |
0 commit comments