Skip to content

Commit 1362533

Browse files
Update generated code (#2107)
update generated code
1 parent 68a2dfc commit 1362533

16 files changed

Lines changed: 120 additions & 9 deletions

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.387.1"
3+
"${LATEST}": "3.388.0"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Ec2/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: This launch surfaces the public SSM parameter associated with public AMIs in the AMI metadata.
8+
59
## 1.1.0
610

711
### Added

src/Service/Ec2/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "1.1-dev"
36+
"dev-master": "1.2-dev"
3737
}
3838
}
3939
}

src/Service/Ec2/src/Input/DescribeImagesRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ final class DescribeImagesRequest extends Input
113113
* - `hypervisor` - The hypervisor type (`ovm` | `xen`).
114114
* - `image-allowed` - A Boolean that indicates whether the image meets the criteria specified for Allowed AMIs.
115115
* - `image-id` - The ID of the image.
116+
* - `image-watermark.source-image-creation-time` - The creation date of the source AMI, in the ISO 8601 format in the
117+
* UTC time zone (`*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*.*ssssss*+*HH*:*MM*`). You can use a wildcard (`*`), for example,
118+
* `2021-09-29T*`, which matches an entire day.
119+
* - `image-watermark.source-image-id` - The ID of the AMI to which the watermark was originally attached.
120+
* - `image-watermark.source-image-region` - The Region where the watermark was originally attached.
121+
* - `image-watermark.watermark-creation-time` - The date and time the watermark was attached to the AMI, in the ISO
122+
* 8601 format in the UTC time zone (`*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*.*ssssss*+*HH*:*MM*`). You can use a wildcard
123+
* (`*`), for example, `2021-09-29T*`, which matches an entire day.
124+
* - `image-watermark.watermark-key` - The watermark identifier, in `accountId:watermarkName` format (for example,
125+
* `123456789012:approvedAmi`).
116126
* - `image-type` - The image type (`machine` | `kernel` | `ramdisk`).
117127
* - `is-public` - A Boolean that indicates whether the image is public.
118128
* - `kernel-id` - The kernel ID.
@@ -126,6 +136,9 @@ final class DescribeImagesRequest extends Input
126136
* - `platform` - The platform. The only supported value is `windows`.
127137
* - `product-code` - The product code.
128138
* - `product-code.type` - The type of the product code (`marketplace`).
139+
* - `public-ssm-parameter-name` - The name of a public Systems Manager parameter associated with the AMI. The parameter
140+
* must be in a trusted Amazon Web Services namespace under `aws/service/`. Returns all AMIs that have ever been
141+
* associated with the parameter, including previous versions.
129142
* - `ramdisk-id` - The RAM disk ID.
130143
* - `root-device-name` - The device name of the root device volume (for example, `/dev/sda1`).
131144
* - `root-device-type` - The type of the root device volume (`ebs` | `instance-store`).

src/Service/Ec2/src/Result/DescribeImagesResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ private function populateResultImage(\SimpleXMLElement $xml): Image
185185
'SourceImageId' => (null !== $v = $xml->sourceImageId[0]) ? (string) $v : null,
186186
'SourceImageRegion' => (null !== $v = $xml->sourceImageRegion[0]) ? (string) $v : null,
187187
'FreeTierEligible' => (null !== $v = $xml->freeTierEligible[0]) ? filter_var((string) $v, \FILTER_VALIDATE_BOOLEAN) : null,
188+
'PublicSsmParameterName' => (null !== $v = $xml->publicSsmParameterName[0]) ? (string) $v : null,
188189
'ImageWatermarks' => (0 === ($v = $xml->imageWatermarkSet)->count()) ? null : $this->populateResultImageWatermarkList($v),
189190
'ImageId' => (null !== $v = $xml->imageId[0]) ? (string) $v : null,
190191
'ImageLocation' => (null !== $v = $xml->imageLocation[0]) ? (string) $v : null,

src/Service/Ec2/src/ValueObject/Image.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ final class Image
235235
*/
236236
private $freeTierEligible;
237237

238+
/**
239+
* The name of the public Systems Manager parameter that resolves to this AMI, under the `aws/service/` namespace.
240+
*
241+
* @var string|null
242+
*/
243+
private $publicSsmParameterName;
244+
238245
/**
239246
* The watermarks attached to the AMI.
240247
*
@@ -355,6 +362,7 @@ final class Image
355362
* SourceImageId?: string|null,
356363
* SourceImageRegion?: string|null,
357364
* FreeTierEligible?: bool|null,
365+
* PublicSsmParameterName?: string|null,
358366
* ImageWatermarks?: array<ImageWatermark|array>|null,
359367
* ImageId?: string|null,
360368
* ImageLocation?: string|null,
@@ -397,6 +405,7 @@ public function __construct(array $input)
397405
$this->sourceImageId = $input['SourceImageId'] ?? null;
398406
$this->sourceImageRegion = $input['SourceImageRegion'] ?? null;
399407
$this->freeTierEligible = $input['FreeTierEligible'] ?? null;
408+
$this->publicSsmParameterName = $input['PublicSsmParameterName'] ?? null;
400409
$this->imageWatermarks = isset($input['ImageWatermarks']) ? array_map([ImageWatermark::class, 'create'], $input['ImageWatermarks']) : null;
401410
$this->imageId = $input['ImageId'] ?? null;
402411
$this->imageLocation = $input['ImageLocation'] ?? null;
@@ -439,6 +448,7 @@ public function __construct(array $input)
439448
* SourceImageId?: string|null,
440449
* SourceImageRegion?: string|null,
441450
* FreeTierEligible?: bool|null,
451+
* PublicSsmParameterName?: string|null,
442452
* ImageWatermarks?: array<ImageWatermark|array>|null,
443453
* ImageId?: string|null,
444454
* ImageLocation?: string|null,
@@ -611,6 +621,11 @@ public function getPublic(): ?bool
611621
return $this->public;
612622
}
613623

624+
public function getPublicSsmParameterName(): ?string
625+
{
626+
return $this->publicSsmParameterName;
627+
}
628+
614629
public function getRamdiskId(): ?string
615630
{
616631
return $this->ramdiskId;

src/Service/Lambda/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: AWS Lambda Durable Functions now supports customer managed KMS keys. This allows customers to configure a KMS key in Durable Config to have all their durable execution data encrypted.
8+
59
## 2.16.0
610

711
### Added

src/Service/Lambda/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"extra": {
3434
"branch-alias": {
35-
"dev-master": "2.16-dev"
35+
"dev-master": "2.17-dev"
3636
}
3737
}
3838
}

src/Service/Lambda/src/Input/InvocationRequest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ final class InvocationRequest extends Input
5858
private $clientContext;
5959

6060
/**
61-
* Optional unique name for the durable execution. When you start your special function, you can give it a unique name
62-
* to identify this specific execution. It's like giving a nickname to a task.
61+
* A unique name for the durable execution. If you invoke a durable function using a name that already exists with the
62+
* same payload, Lambda returns the existing execution instead of creating a duplicate. If the payload differs, Lambda
63+
* returns a `DurableExecutionAlreadyStartedException` error.
64+
*
65+
* If not specified, Lambda generates a unique identifier automatically. For more information, see Execution names [^1].
66+
*
67+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-execution-idempotency.html#durable-idempotency-execution-names
6368
*
6469
* @var string|null
6570
*/

src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,11 @@ final class UpdateFunctionConfigurationRequest extends Input
231231
private $capacityProviderConfig;
232232

233233
/**
234-
* Configuration settings for durable functions. Allows updating execution timeout and retention period for functions
235-
* with durability enabled.
234+
* Configuration settings for durable functions [^1], including execution timeout, retention period for execution
235+
* history, and an optional ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your
236+
* durable execution's payload data, including input, output, and error payloads.
237+
*
238+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
236239
*
237240
* @var DurableConfig|null
238241
*/

0 commit comments

Comments
 (0)