You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- AWS api-change: Adds support for Lambda functions powered by AWS Graviton2 processors. Customers can now select the CPU architecture for their functions.
@@ -108,6 +128,12 @@ public function request(): Request
108
128
if (null !== $this->maxItems) {
109
129
$query['MaxItems'] = (string) $this->maxItems;
110
130
}
131
+
if (null !== $this->compatibleArchitecture) {
132
+
if (!Architecture::exists($this->compatibleArchitecture)) {
133
+
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleArchitecture" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $this->compatibleArchitecture));
@@ -195,6 +225,17 @@ private function requestBody(): array
195
225
if (null !== $v = $this->licenseInfo) {
196
226
$payload['LicenseInfo'] = $v;
197
227
}
228
+
if (null !== $v = $this->compatibleArchitectures) {
229
+
$index = -1;
230
+
$payload['CompatibleArchitectures'] = [];
231
+
foreach ($vas$listValue) {
232
+
++$index;
233
+
if (!Architecture::exists($listValue)) {
234
+
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleArchitectures" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $listValue));
0 commit comments