Skip to content

Commit

Permalink
Adds metadata for the S3 Service and puts it into the Presigned URL s…
Browse files Browse the repository at this point in the history
…cenario.
  • Loading branch information
beqqrry-aws committed Oct 21, 2024
1 parent 2b9da46 commit b5ce4a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .doc_gen/metadata/s3_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion php/example_code/s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 4 additions & 0 deletions php/example_code/s3/S3Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]

0 comments on commit b5ce4a8

Please sign in to comment.