From edf4079a58f6ad7a81fec0c86540f3674e45b20f Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 29 Dec 2023 20:46:05 +0000 Subject: [PATCH] feat(client-apprunner): AWS App Runner adds Python 3.11 and Node.js 18 runtimes. --- .../src/commands/CreateServiceCommand.ts | 4 ++-- .../src/commands/DeleteServiceCommand.ts | 2 +- .../src/commands/DescribeServiceCommand.ts | 2 +- .../src/commands/PauseServiceCommand.ts | 2 +- .../src/commands/ResumeServiceCommand.ts | 2 +- .../src/commands/UpdateServiceCommand.ts | 4 ++-- clients/client-apprunner/src/models/models_0.ts | 6 ++++-- codegen/sdk-codegen/aws-models/apprunner.json | 14 +++++++++++++- 8 files changed, 25 insertions(+), 11 deletions(-) diff --git a/clients/client-apprunner/src/commands/CreateServiceCommand.ts b/clients/client-apprunner/src/commands/CreateServiceCommand.ts index e3334c937b06..46f006b06f00 100644 --- a/clients/client-apprunner/src/commands/CreateServiceCommand.ts +++ b/clients/client-apprunner/src/commands/CreateServiceCommand.ts @@ -53,7 +53,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met * CodeConfiguration: { // CodeConfiguration * ConfigurationSource: "REPOSITORY" || "API", // required * CodeConfigurationValues: { // CodeConfigurationValues - * Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * BuildCommand: "STRING_VALUE", * StartCommand: "STRING_VALUE", * Port: "STRING_VALUE", @@ -147,7 +147,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/commands/DeleteServiceCommand.ts b/clients/client-apprunner/src/commands/DeleteServiceCommand.ts index e4d50673815c..28047de28993 100644 --- a/clients/client-apprunner/src/commands/DeleteServiceCommand.ts +++ b/clients/client-apprunner/src/commands/DeleteServiceCommand.ts @@ -70,7 +70,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/commands/DescribeServiceCommand.ts b/clients/client-apprunner/src/commands/DescribeServiceCommand.ts index 99524756ff93..81cd0a226c61 100644 --- a/clients/client-apprunner/src/commands/DescribeServiceCommand.ts +++ b/clients/client-apprunner/src/commands/DescribeServiceCommand.ts @@ -64,7 +64,7 @@ export interface DescribeServiceCommandOutput extends DescribeServiceResponse, _ * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/commands/PauseServiceCommand.ts b/clients/client-apprunner/src/commands/PauseServiceCommand.ts index ff5f9750269a..cb2af904d34a 100644 --- a/clients/client-apprunner/src/commands/PauseServiceCommand.ts +++ b/clients/client-apprunner/src/commands/PauseServiceCommand.ts @@ -63,7 +63,7 @@ export interface PauseServiceCommandOutput extends PauseServiceResponse, __Metad * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/commands/ResumeServiceCommand.ts b/clients/client-apprunner/src/commands/ResumeServiceCommand.ts index 4e584caf8eb2..08feef333218 100644 --- a/clients/client-apprunner/src/commands/ResumeServiceCommand.ts +++ b/clients/client-apprunner/src/commands/ResumeServiceCommand.ts @@ -66,7 +66,7 @@ export interface ResumeServiceCommandOutput extends ResumeServiceResponse, __Met * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/commands/UpdateServiceCommand.ts b/clients/client-apprunner/src/commands/UpdateServiceCommand.ts index ca26b099eafd..c09dbaa59446 100644 --- a/clients/client-apprunner/src/commands/UpdateServiceCommand.ts +++ b/clients/client-apprunner/src/commands/UpdateServiceCommand.ts @@ -57,7 +57,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met * CodeConfiguration: { // CodeConfiguration * ConfigurationSource: "REPOSITORY" || "API", // required * CodeConfigurationValues: { // CodeConfigurationValues - * Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * BuildCommand: "STRING_VALUE", * StartCommand: "STRING_VALUE", * Port: "STRING_VALUE", @@ -142,7 +142,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues - * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31", // required + * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", diff --git a/clients/client-apprunner/src/models/models_0.ts b/clients/client-apprunner/src/models/models_0.ts index 8dea5ea4eb3a..fdaa13f4d6d0 100644 --- a/clients/client-apprunner/src/models/models_0.ts +++ b/clients/client-apprunner/src/models/models_0.ts @@ -917,12 +917,12 @@ export interface NetworkConfiguration { /** * @public - *

App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual-stack (IPv4 and IPv6) + *

App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) * for your incoming public network configuration. This is an optional parameter. * If you do not specify an IpAddressType, it defaults to select IPv4.

* *

- * Currently, App Runner supports dual-stack for only Public endpoint. Only IPv4 is supported for Private endpoint. + * Currently, App Runner supports dual stack for only Public endpoint. Only IPv4 is supported for Private endpoint. * If you update a service that's using dual-stack Public endpoint to a Private endpoint, your App Runner service will default to support only IPv4 for Private endpoint and fail to receive traffic originating from IPv6 endpoint. *

*
@@ -989,8 +989,10 @@ export const Runtime = { NODEJS_12: "NODEJS_12", NODEJS_14: "NODEJS_14", NODEJS_16: "NODEJS_16", + NODEJS_18: "NODEJS_18", PHP_81: "PHP_81", PYTHON_3: "PYTHON_3", + PYTHON_311: "PYTHON_311", RUBY_31: "RUBY_31", } as const; diff --git a/codegen/sdk-codegen/aws-models/apprunner.json b/codegen/sdk-codegen/aws-models/apprunner.json index c35f2fafced2..a64bad2d4f6c 100644 --- a/codegen/sdk-codegen/aws-models/apprunner.json +++ b/codegen/sdk-codegen/aws-models/apprunner.json @@ -3989,7 +3989,7 @@ "IpAddressType": { "target": "com.amazonaws.apprunner#IpAddressType", "traits": { - "smithy.api#documentation": "

App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual-stack (IPv4 and IPv6) \n for your incoming public network configuration. This is an optional parameter. \n If you do not specify an IpAddressType, it defaults to select IPv4.

\n \n

\n Currently, App Runner supports dual-stack for only Public endpoint. Only IPv4 is supported for Private endpoint. \n If you update a service that's using dual-stack Public endpoint to a Private endpoint, your App Runner service will default to support only IPv4 for Private endpoint and fail to receive traffic originating from IPv6 endpoint. \n

\n
" + "smithy.api#documentation": "

App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) \n for your incoming public network configuration. This is an optional parameter. \n If you do not specify an IpAddressType, it defaults to select IPv4.

\n \n

\n Currently, App Runner supports dual stack for only Public endpoint. Only IPv4 is supported for Private endpoint. \n If you update a service that's using dual-stack Public endpoint to a Private endpoint, your App Runner service will default to support only IPv4 for Private endpoint and fail to receive traffic originating from IPv6 endpoint. \n

\n
" } } }, @@ -4502,6 +4502,18 @@ "traits": { "smithy.api#enumValue": "RUBY_31" } + }, + "PYTHON_311": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PYTHON_311" + } + }, + "NODEJS_18": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NODEJS_18" + } } } },