Skip to content

Commit

Permalink
feat(client-lambda): Adds support for Lambda functions to access Dual…
Browse files Browse the repository at this point in the history
…-Stack subnets over IPv6, via an opt-in flag in CreateFunction and UpdateFunctionConfiguration APIs
  • Loading branch information
awstools committed Oct 12, 2023
1 parent 6727085 commit 2bb63a0
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 3 deletions.
2 changes: 2 additions & 0 deletions clients/client-lambda/src/commands/CreateFunctionCommand.ts
Expand Up @@ -109,6 +109,7 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
* SecurityGroupIds: [ // SecurityGroupIds
* "STRING_VALUE",
* ],
* Ipv6AllowedForDualStack: true || false,
* },
* PackageType: "Zip" || "Image",
* DeadLetterConfig: { // DeadLetterConfig
Expand Down Expand Up @@ -178,6 +179,7 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-lambda/src/commands/GetFunctionCommand.ts
Expand Up @@ -74,6 +74,7 @@ export interface GetFunctionCommandOutput extends GetFunctionResponse, __Metadat
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
Expand Up @@ -77,6 +77,7 @@ export interface GetFunctionConfigurationCommandOutput extends FunctionConfigura
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-lambda/src/commands/ListFunctionsCommand.ts
Expand Up @@ -88,6 +88,7 @@ export interface ListFunctionsCommandOutput extends ListFunctionsResponse, __Met
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
Expand Up @@ -80,6 +80,7 @@ export interface ListVersionsByFunctionCommandOutput extends ListVersionsByFunct
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
Expand Up @@ -83,6 +83,7 @@ export interface PublishVersionCommandOutput extends FunctionConfiguration, __Me
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
Expand Up @@ -101,6 +101,7 @@ export interface UpdateFunctionCodeCommandOutput extends FunctionConfiguration,
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
Expand Up @@ -77,6 +77,7 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
* SecurityGroupIds: [ // SecurityGroupIds
* "STRING_VALUE",
* ],
* Ipv6AllowedForDualStack: true || false,
* },
* Environment: { // Environment
* Variables: { // EnvironmentVariables
Expand Down Expand Up @@ -140,6 +141,7 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
* // "STRING_VALUE",
* // ],
* // VpcId: "STRING_VALUE",
* // Ipv6AllowedForDualStack: true || false,
* // },
* // DeadLetterConfig: { // DeadLetterConfig
* // TargetArn: "STRING_VALUE",
Expand Down
12 changes: 12 additions & 0 deletions clients/client-lambda/src/models/models_0.ts
Expand Up @@ -1744,6 +1744,12 @@ export interface VpcConfig {
* <p>A list of VPC security group IDs.</p>
*/
SecurityGroupIds?: string[];

/**
* @public
* <p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>
*/
Ipv6AllowedForDualStack?: boolean;
}

/**
Expand Down Expand Up @@ -2236,6 +2242,12 @@ export interface VpcConfigResponse {
* <p>The ID of the VPC.</p>
*/
VpcId?: string;

/**
* @public
* <p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>
*/
Ipv6AllowedForDualStack?: boolean;
}

/**
Expand Down
21 changes: 18 additions & 3 deletions codegen/sdk-codegen/aws-models/lambda.json
Expand Up @@ -8546,6 +8546,9 @@
}
}
},
"com.amazonaws.lambda#NullableBoolean": {
"type": "boolean"
},
"com.amazonaws.lambda#OnFailure": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -11735,6 +11738,12 @@
"traits": {
"smithy.api#documentation": "<p>A list of VPC security group IDs.</p>"
}
},
"Ipv6AllowedForDualStack": {
"target": "com.amazonaws.lambda#NullableBoolean",
"traits": {
"smithy.api#documentation": "<p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>"
}
}
},
"traits": {
Expand All @@ -11761,6 +11770,12 @@
"traits": {
"smithy.api#documentation": "<p>The ID of the VPC.</p>"
}
},
"Ipv6AllowedForDualStack": {
"target": "com.amazonaws.lambda#NullableBoolean",
"traits": {
"smithy.api#documentation": "<p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>"
}
}
},
"traits": {
Expand All @@ -11775,8 +11790,8 @@
"traits": {
"smithy.api#default": 0,
"smithy.api#range": {
"min": 0,
"max": 1
"min": 0.0,
"max": 1.0
}
}
},
Expand All @@ -11790,4 +11805,4 @@
}
}
}
}
}

0 comments on commit 2bb63a0

Please sign in to comment.