Skip to content

Commit 0400151

Browse files
Update generated code (#1812)
update generated code
1 parent 6dc398d commit 0400151

30 files changed

+552
-422
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Amazon S3 introduces support for AWS Dedicated Local Zones
8+
59
## 2.6.0
610

711
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"extra": {
3232
"branch-alias": {
33-
"dev-master": "2.6-dev"
33+
"dev-master": "2.7-dev"
3434
}
3535
}
3636
}

src/Enum/DataRedundancy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
final class DataRedundancy
66
{
77
public const SINGLE_AVAILABILITY_ZONE = 'SingleAvailabilityZone';
8+
public const SINGLE_LOCAL_ZONE = 'SingleLocalZone';
89

910
public static function exists(string $value): bool
1011
{
1112
return isset([
1213
self::SINGLE_AVAILABILITY_ZONE => true,
14+
self::SINGLE_LOCAL_ZONE => true,
1315
][$value]);
1416
}
1517
}

src/Enum/LocationType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
final class LocationType
66
{
77
public const AVAILABILITY_ZONE = 'AvailabilityZone';
8+
public const LOCAL_ZONE = 'LocalZone';
89

910
public static function exists(string $value): bool
1011
{
1112
return isset([
1213
self::AVAILABILITY_ZONE => true,
14+
self::LOCAL_ZONE => true,
1315
][$value]);
1416
}
1517
}

src/Input/AbortMultipartUploadRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ final class AbortMultipartUploadRequest extends Input
1414
* The bucket name to which the upload was taking place.
1515
*
1616
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
17-
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
18-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
19-
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
20-
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
17+
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
18+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
19+
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
20+
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
21+
* Guide*.
2122
*
2223
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
2324
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests

src/Input/CompleteMultipartUploadRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ final class CompleteMultipartUploadRequest extends Input
1515
* Name of the bucket to which the multipart upload was initiated.
1616
*
1717
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
18-
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
19-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
20-
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
21-
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
18+
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
19+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
20+
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
21+
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
22+
* Guide*.
2223
*
2324
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
2425
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests

src/Input/CopyObjectRequest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,15 @@ final class CopyObjectRequest extends Input
4848
* The name of the destination bucket.
4949
*
5050
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
51-
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
52-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
53-
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
54-
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
51+
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
52+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
53+
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
54+
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
55+
* Guide*.
56+
*
57+
* > Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket
58+
* > is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web
59+
* > Services Region. Otherwise, you get an HTTP `400 Bad Request` error with the error code `InvalidRequest`.
5560
*
5661
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
5762
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests

src/Input/CreateBucketRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ final class CreateBucketRequest extends Input
2828
* *Amazon S3 User Guide*.
2929
*
3030
* **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the
31-
* format `https://s3express-control.*region_code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
32-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must also follow the
33-
* format `*bucket_base_name*--*az_id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information
34-
* about bucket naming restrictions, see Directory bucket naming rules [^2] in the *Amazon S3 User Guide*
31+
* format `https://s3express-control.*region-code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
32+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
33+
* must also follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example,
34+
* `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about bucket naming restrictions, see Directory bucket
35+
* naming rules [^2] in the *Amazon S3 User Guide*
3536
*
3637
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
3738
* [^2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html

src/Input/CreateMultipartUploadRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ final class CreateMultipartUploadRequest extends Input
4242
* The name of the bucket where the multipart upload is initiated and where the object is uploaded.
4343
*
4444
* **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style
45-
* requests in the format `*Bucket_name*.s3express-*az_id*.*region*.amazonaws.com`. Path-style requests are not
46-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format
47-
* `*bucket_base_name*--*az-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about
48-
* bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*.
45+
* requests in the format `*Bucket-name*.s3express-*zone-id*.*region-code*.amazonaws.com`. Path-style requests are not
46+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
47+
* must follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`).
48+
* For information about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User
49+
* Guide*.
4950
*
5051
* **Access points** - When you use this action with an access point, you must provide the alias of the access point in
5152
* place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests

src/Input/DeleteBucketRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ final class DeleteBucketRequest extends Input
1313
* Specifies the bucket being deleted.
1414
*
1515
* **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the
16-
* format `https://s3express-control.*region_code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
17-
* supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must also follow the
18-
* format `*bucket_base_name*--*az_id*--x-s3` (for example, `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information
19-
* about bucket naming restrictions, see Directory bucket naming rules [^1] in the *Amazon S3 User Guide*
16+
* format `https://s3express-control.*region-code*.amazonaws.com/*bucket-name*`. Virtual-hosted-style requests aren't
17+
* supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names
18+
* must also follow the format `*bucket-base-name*--*zone-id*--x-s3` (for example,
19+
* `*DOC-EXAMPLE-BUCKET*--*usw2-az1*--x-s3`). For information about bucket naming restrictions, see Directory bucket
20+
* naming rules [^1] in the *Amazon S3 User Guide*
2021
*
2122
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
2223
*

0 commit comments

Comments
 (0)