Skip to content

Commit

Permalink
Update generated code (#1812)
Browse files Browse the repository at this point in the history
update generated code
  • Loading branch information
async-aws-bot authored Dec 2, 2024
1 parent 6dc398d commit 0400151
Show file tree
Hide file tree
Showing 30 changed files with 552 additions and 422 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Amazon S3 introduces support for AWS Dedicated Local Zones

## 2.6.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.6-dev"
"dev-master": "2.7-dev"
}
}
}
2 changes: 2 additions & 0 deletions src/Enum/DataRedundancy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
final class DataRedundancy
{
public const SINGLE_AVAILABILITY_ZONE = 'SingleAvailabilityZone';
public const SINGLE_LOCAL_ZONE = 'SingleLocalZone';

public static function exists(string $value): bool
{
return isset([
self::SINGLE_AVAILABILITY_ZONE => true,
self::SINGLE_LOCAL_ZONE => true,
][$value]);
}
}
2 changes: 2 additions & 0 deletions src/Enum/LocationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
final class LocationType
{
public const AVAILABILITY_ZONE = 'AvailabilityZone';
public const LOCAL_ZONE = 'LocalZone';

public static function exists(string $value): bool
{
return isset([
self::AVAILABILITY_ZONE => true,
self::LOCAL_ZONE => true,
][$value]);
}
}
9 changes: 5 additions & 4 deletions src/Input/AbortMultipartUploadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ final class AbortMultipartUploadRequest extends Input
* The bucket name to which the upload was taking place.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/CompleteMultipartUploadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ final class CompleteMultipartUploadRequest extends Input
* Name of the bucket to which the multipart upload was initiated.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
13 changes: 9 additions & 4 deletions src/Input/CopyObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ final class CopyObjectRequest extends Input
* The name of the destination bucket.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* > Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket
* > is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web
* > Services Region. Otherwise, you get an HTTP `400 Bad Request` error with the error code `InvalidRequest`.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/CreateBucketRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ final class CreateBucketRequest extends Input
* *Amazon S3 User Guide*.
*
* **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the
* format `https://s3express-control.*region_code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must also follow the
* format `*bucket_base_name*--*az_id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information
* about bucket naming restrictions, see Directory bucket naming rules [^2] in the *Amazon S3 User Guide*
* format `https://s3express-control.*region-code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must also follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example,
* `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about bucket naming restrictions, see Directory bucket
* naming rules [^2] in the *Amazon S3 User Guide*
*
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
* [^2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
Expand Down
9 changes: 5 additions & 4 deletions src/Input/CreateMultipartUploadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ final class CreateMultipartUploadRequest extends Input
* The name of the bucket where the multipart upload is initiated and where the object is uploaded.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/DeleteBucketRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ final class DeleteBucketRequest extends Input
* Specifies the bucket being deleted.
*
* **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the
* format `https://s3express-control.*region_code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must also follow the
* format `*bucket_base_name*--*az_id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information
* about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*
* format `https://s3express-control.*region-code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must also follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example,
* `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about bucket naming restrictions, see Directory bucket
* naming rules [^1] in the *Amazon S3 User Guide*
*
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
*
Expand Down
9 changes: 5 additions & 4 deletions src/Input/DeleteObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ final class DeleteObjectRequest extends Input
* The bucket name of the bucket containing the object.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/DeleteObjectsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ final class DeleteObjectsRequest extends Input
* The bucket name containing the objects to delete.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/GetBucketEncryptionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ final class GetBucketEncryptionRequest extends Input
* The name of the bucket from which the server-side encryption configuration is retrieved.
*
* **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the
* format `https://s3express-control.*region_code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must also follow the
* format `*bucket_base_name*--*az_id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information
* about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*
* format `https://s3express-control.*region-code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must also follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example,
* `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about bucket naming restrictions, see Directory bucket
* naming rules [^1] in the *Amazon S3 User Guide*
*
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
*
Expand Down
9 changes: 5 additions & 4 deletions src/Input/GetObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ final class GetObjectRequest extends Input
* The bucket name containing the object.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/HeadBucketRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ final class HeadBucketRequest extends Input
* The bucket name.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
9 changes: 5 additions & 4 deletions src/Input/HeadObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ final class HeadObjectRequest extends Input
* The name of the bucket that contains the object.
*
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
* Guide*.
*
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests
Expand Down
Loading

0 comments on commit 0400151

Please sign in to comment.