Skip to content

Commit 698eb3b

Browse files
Update generated code (#1587)
update generated code
1 parent d7abb28 commit 698eb3b

File tree

7 files changed

+41
-0
lines changed

7 files changed

+41
-0
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: Adds support for Lambda functions to access Dual-Stack subnets over IPv6, via an opt-in flag in CreateFunction and UpdateFunctionConfiguration APIs
8+
59
## 2.1.0
610

711
### Added

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
],
1313
"require": {
1414
"php": "^7.2.5 || ^8.0",
15+
"ext-filter": "*",
1516
"ext-json": "*",
1617
"async-aws/core": "^1.9"
1718
},

src/Result/FunctionConfiguration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ private function populateResultVpcConfigResponse(array $json): VpcConfigResponse
827827
'SubnetIds' => !isset($json['SubnetIds']) ? null : $this->populateResultSubnetIds($json['SubnetIds']),
828828
'SecurityGroupIds' => !isset($json['SecurityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['SecurityGroupIds']),
829829
'VpcId' => isset($json['VpcId']) ? (string) $json['VpcId'] : null,
830+
'Ipv6AllowedForDualStack' => isset($json['Ipv6AllowedForDualStack']) ? filter_var($json['Ipv6AllowedForDualStack'], \FILTER_VALIDATE_BOOLEAN) : null,
830831
]);
831832
}
832833
}

src/Result/ListFunctionsResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ private function populateResultVpcConfigResponse(array $json): VpcConfigResponse
381381
'SubnetIds' => !isset($json['SubnetIds']) ? null : $this->populateResultSubnetIds($json['SubnetIds']),
382382
'SecurityGroupIds' => !isset($json['SecurityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['SecurityGroupIds']),
383383
'VpcId' => isset($json['VpcId']) ? (string) $json['VpcId'] : null,
384+
'Ipv6AllowedForDualStack' => isset($json['Ipv6AllowedForDualStack']) ? filter_var($json['Ipv6AllowedForDualStack'], \FILTER_VALIDATE_BOOLEAN) : null,
384385
]);
385386
}
386387
}

src/Result/ListVersionsByFunctionResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ private function populateResultVpcConfigResponse(array $json): VpcConfigResponse
379379
'SubnetIds' => !isset($json['SubnetIds']) ? null : $this->populateResultSubnetIds($json['SubnetIds']),
380380
'SecurityGroupIds' => !isset($json['SecurityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['SecurityGroupIds']),
381381
'VpcId' => isset($json['VpcId']) ? (string) $json['VpcId'] : null,
382+
'Ipv6AllowedForDualStack' => isset($json['Ipv6AllowedForDualStack']) ? filter_var($json['Ipv6AllowedForDualStack'], \FILTER_VALIDATE_BOOLEAN) : null,
382383
]);
383384
}
384385
}

src/ValueObject/VpcConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,44 @@ final class VpcConfig
2424
*/
2525
private $securityGroupIds;
2626

27+
/**
28+
* Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
29+
*
30+
* @var bool|null
31+
*/
32+
private $ipv6AllowedForDualStack;
33+
2734
/**
2835
* @param array{
2936
* SubnetIds?: null|string[],
3037
* SecurityGroupIds?: null|string[],
38+
* Ipv6AllowedForDualStack?: null|bool,
3139
* } $input
3240
*/
3341
public function __construct(array $input)
3442
{
3543
$this->subnetIds = $input['SubnetIds'] ?? null;
3644
$this->securityGroupIds = $input['SecurityGroupIds'] ?? null;
45+
$this->ipv6AllowedForDualStack = $input['Ipv6AllowedForDualStack'] ?? null;
3746
}
3847

3948
/**
4049
* @param array{
4150
* SubnetIds?: null|string[],
4251
* SecurityGroupIds?: null|string[],
52+
* Ipv6AllowedForDualStack?: null|bool,
4353
* }|VpcConfig $input
4454
*/
4555
public static function create($input): self
4656
{
4757
return $input instanceof self ? $input : new self($input);
4858
}
4959

60+
public function getIpv6AllowedForDualStack(): ?bool
61+
{
62+
return $this->ipv6AllowedForDualStack;
63+
}
64+
5065
/**
5166
* @return string[]
5267
*/
@@ -85,6 +100,9 @@ public function requestBody(): array
85100
$payload['SecurityGroupIds'][$index] = $listValue;
86101
}
87102
}
103+
if (null !== $v = $this->ipv6AllowedForDualStack) {
104+
$payload['Ipv6AllowedForDualStack'] = (bool) $v;
105+
}
88106

89107
return $payload;
90108
}

src/ValueObject/VpcConfigResponse.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,47 @@ final class VpcConfigResponse
2828
*/
2929
private $vpcId;
3030

31+
/**
32+
* Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
33+
*
34+
* @var bool|null
35+
*/
36+
private $ipv6AllowedForDualStack;
37+
3138
/**
3239
* @param array{
3340
* SubnetIds?: null|string[],
3441
* SecurityGroupIds?: null|string[],
3542
* VpcId?: null|string,
43+
* Ipv6AllowedForDualStack?: null|bool,
3644
* } $input
3745
*/
3846
public function __construct(array $input)
3947
{
4048
$this->subnetIds = $input['SubnetIds'] ?? null;
4149
$this->securityGroupIds = $input['SecurityGroupIds'] ?? null;
4250
$this->vpcId = $input['VpcId'] ?? null;
51+
$this->ipv6AllowedForDualStack = $input['Ipv6AllowedForDualStack'] ?? null;
4352
}
4453

4554
/**
4655
* @param array{
4756
* SubnetIds?: null|string[],
4857
* SecurityGroupIds?: null|string[],
4958
* VpcId?: null|string,
59+
* Ipv6AllowedForDualStack?: null|bool,
5060
* }|VpcConfigResponse $input
5161
*/
5262
public static function create($input): self
5363
{
5464
return $input instanceof self ? $input : new self($input);
5565
}
5666

67+
public function getIpv6AllowedForDualStack(): ?bool
68+
{
69+
return $this->ipv6AllowedForDualStack;
70+
}
71+
5772
/**
5873
* @return string[]
5974
*/

0 commit comments

Comments
 (0)