diff --git a/.doc_gen/metadata/s3_metadata.yaml b/.doc_gen/metadata/s3_metadata.yaml index 0f338f89847..9fb9d2d6bd9 100644 --- a/.doc_gen/metadata/s3_metadata.yaml +++ b/.doc_gen/metadata/s3_metadata.yaml @@ -2780,6 +2780,7 @@ s3_Scenario_PresignedUrl: excerpts: - snippet_tags: - s3.php.presigned_url.complete + - php.example_code.s3.service.S3Service services: s3: {} s3_Scenario_ObjectVersioningUsage: diff --git a/php/example_code/s3/README.md b/php/example_code/s3/README.md index 0aab0cf066b..4fe8ca01307 100644 --- a/php/example_code/s3/README.md +++ b/php/example_code/s3/README.md @@ -58,7 +58,7 @@ Code excerpts that show you how to call individual service functions. Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. -- [Create a presigned URL](PresignedURL.php) +- [Create a presigned URL](S3Service.php) - [Create a serverless application to manage photos](../../applications/photo_asset_manager) diff --git a/php/example_code/s3/S3Service.php b/php/example_code/s3/S3Service.php index dc6c7b3f6e5..794ca3a0edf 100644 --- a/php/example_code/s3/S3Service.php +++ b/php/example_code/s3/S3Service.php @@ -2,6 +2,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 +// snippet-start:[php.example_code.s3.service.S3Service] + namespace S3; use Aws\CommandInterface; @@ -282,3 +284,5 @@ public function preSignedUrl(CommandInterface $command, DateTimeInterface|int|st } // snippet-end:[php.example_code.s3.service.preSignedUrl] } + +// snippet-end:[php.example_code.s3.service.S3Service]