From 815747d0d00af54e0e0c9b3cc799cccbf7f5c980 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 16 Nov 2023 19:22:02 +0000 Subject: [PATCH] feat(client-codecatalyst): This release includes updates to the Dev Environment APIs to include an optional vpcConnectionName parameter that supports using Dev Environments with Amazon VPC. --- .../src/CodeCatalystClient.ts | 2 +- .../commands/CreateDevEnvironmentCommand.ts | 2 ++ .../src/commands/GetDevEnvironmentCommand.ts | 1 + .../commands/ListDevEnvironmentsCommand.ts | 1 + .../src/models/models_0.ts | 24 +++++++++++++++++++ .../src/protocols/Aws_restJson1.ts | 4 ++++ .../sdk-codegen/aws-models/codecatalyst.json | 24 +++++++++++++++++++ 7 files changed, 57 insertions(+), 1 deletion(-) diff --git a/clients/client-codecatalyst/src/CodeCatalystClient.ts b/clients/client-codecatalyst/src/CodeCatalystClient.ts index eb827b0e99c2..1c65f0cc9a5d 100644 --- a/clients/client-codecatalyst/src/CodeCatalystClient.ts +++ b/clients/client-codecatalyst/src/CodeCatalystClient.ts @@ -613,8 +613,8 @@ export class CodeCatalystClient extends __Client< this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use( getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { - httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), identityProviderConfigProvider: this.getIdentityProviderConfigProvider(), + httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), }) ); this.middlewareStack.use(getHttpSigningPlugin(this.config)); diff --git a/clients/client-codecatalyst/src/commands/CreateDevEnvironmentCommand.ts b/clients/client-codecatalyst/src/commands/CreateDevEnvironmentCommand.ts index dcdbfd0bfccf..38f78d235905 100644 --- a/clients/client-codecatalyst/src/commands/CreateDevEnvironmentCommand.ts +++ b/clients/client-codecatalyst/src/commands/CreateDevEnvironmentCommand.ts @@ -71,6 +71,7 @@ export interface CreateDevEnvironmentCommandOutput extends CreateDevEnvironmentR * persistentStorage: { // PersistentStorageConfiguration * sizeInGiB: Number("int"), // required * }, + * vpcConnectionName: "STRING_VALUE", * }; * const command = new CreateDevEnvironmentCommand(input); * const response = await client.send(command); @@ -78,6 +79,7 @@ export interface CreateDevEnvironmentCommandOutput extends CreateDevEnvironmentR * // spaceName: "STRING_VALUE", // required * // projectName: "STRING_VALUE", // required * // id: "STRING_VALUE", // required + * // vpcConnectionName: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-codecatalyst/src/commands/GetDevEnvironmentCommand.ts b/clients/client-codecatalyst/src/commands/GetDevEnvironmentCommand.ts index 4e82f5a2a850..6e10e383d51d 100644 --- a/clients/client-codecatalyst/src/commands/GetDevEnvironmentCommand.ts +++ b/clients/client-codecatalyst/src/commands/GetDevEnvironmentCommand.ts @@ -77,6 +77,7 @@ export interface GetDevEnvironmentCommandOutput extends GetDevEnvironmentRespons * // persistentStorage: { // PersistentStorage * // sizeInGiB: Number("int"), // required * // }, + * // vpcConnectionName: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-codecatalyst/src/commands/ListDevEnvironmentsCommand.ts b/clients/client-codecatalyst/src/commands/ListDevEnvironmentsCommand.ts index b05952dfb19a..b9d6ca12fc61 100644 --- a/clients/client-codecatalyst/src/commands/ListDevEnvironmentsCommand.ts +++ b/clients/client-codecatalyst/src/commands/ListDevEnvironmentsCommand.ts @@ -89,6 +89,7 @@ export interface ListDevEnvironmentsCommandOutput extends ListDevEnvironmentsRes * // persistentStorage: { // PersistentStorage * // sizeInGiB: Number("int"), // required * // }, + * // vpcConnectionName: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-codecatalyst/src/models/models_0.ts b/clients/client-codecatalyst/src/models/models_0.ts index 9a58529b0c32..37b47173ca2b 100644 --- a/clients/client-codecatalyst/src/models/models_0.ts +++ b/clients/client-codecatalyst/src/models/models_0.ts @@ -862,6 +862,12 @@ export interface DevEnvironmentSummary { *

Information about the configuration of persistent storage for the Dev Environment.

*/ persistentStorage: PersistentStorage | undefined; + + /** + * @public + *

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

+ */ + vpcConnectionName?: string; } /** @@ -1156,6 +1162,12 @@ export interface CreateDevEnvironmentRequest { * */ persistentStorage: PersistentStorageConfiguration | undefined; + + /** + * @public + *

The name of the connection to use connect to a Amazon VPC.

+ */ + vpcConnectionName?: string; } /** @@ -1179,6 +1191,12 @@ export interface CreateDevEnvironmentResponse { *

The system-generated unique ID of the Dev Environment.

*/ id: string | undefined; + + /** + * @public + *

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

+ */ + vpcConnectionName?: string; } /** @@ -1331,6 +1349,12 @@ export interface GetDevEnvironmentResponse { *

Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.

*/ persistentStorage: PersistentStorage | undefined; + + /** + * @public + *

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

+ */ + vpcConnectionName?: string; } /** diff --git a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts index 4e2f517d6e07..c279833e788f 100644 --- a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts +++ b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts @@ -188,6 +188,7 @@ export const se_CreateDevEnvironmentCommand = async ( instanceType: [], persistentStorage: (_) => _json(_), repositories: (_) => _json(_), + vpcConnectionName: [], }) ); return new __HttpRequest({ @@ -1401,6 +1402,7 @@ export const de_CreateDevEnvironmentCommand = async ( id: __expectString, projectName: __expectString, spaceName: __expectString, + vpcConnectionName: __expectString, }); Object.assign(contents, doc); return contents; @@ -1983,6 +1985,7 @@ export const de_GetDevEnvironmentCommand = async ( spaceName: __expectString, status: __expectString, statusReason: __expectString, + vpcConnectionName: __expectString, }); Object.assign(contents, doc); return contents; @@ -3993,6 +3996,7 @@ const de_DevEnvironmentSummary = (output: any, context: __SerdeContext): DevEnvi spaceName: __expectString, status: __expectString, statusReason: __expectString, + vpcConnectionName: __expectString, }) as any; }; diff --git a/codegen/sdk-codegen/aws-models/codecatalyst.json b/codegen/sdk-codegen/aws-models/codecatalyst.json index 9560fee0dbc0..94eb2b68c192 100644 --- a/codegen/sdk-codegen/aws-models/codecatalyst.json +++ b/codegen/sdk-codegen/aws-models/codecatalyst.json @@ -670,6 +670,12 @@ "smithy.api#documentation": "

Information about the amount of storage allocated to the Dev Environment.

\n \n

By default, a Dev Environment is configured to have 16GB of persistent storage when created from the Amazon CodeCatalyst console, but there is no default when programmatically\n creating a Dev Environment. \n Valid values for persistent storage are based on memory sizes in 16GB increments. Valid\n values are 16, 32, and 64.

\n
", "smithy.api#required": {} } + }, + "vpcConnectionName": { + "target": "com.amazonaws.codecatalyst#NameString", + "traits": { + "smithy.api#documentation": "

The name of the connection to use connect to a Amazon VPC.

" + } } } }, @@ -697,6 +703,12 @@ "smithy.api#required": {}, "smithy.api#resourceIdentifier": "devEnvironmentId" } + }, + "vpcConnectionName": { + "target": "com.amazonaws.codecatalyst#NameString", + "traits": { + "smithy.api#documentation": "

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

" + } } } }, @@ -1605,6 +1617,12 @@ "smithy.api#documentation": "

Information about the configuration of persistent storage for the Dev Environment.

", "smithy.api#required": {} } + }, + "vpcConnectionName": { + "target": "com.amazonaws.codecatalyst#NameString", + "traits": { + "smithy.api#documentation": "

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

" + } } }, "traits": { @@ -2017,6 +2035,12 @@ "smithy.api#documentation": "

Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.

", "smithy.api#required": {} } + }, + "vpcConnectionName": { + "target": "com.amazonaws.codecatalyst#NameString", + "traits": { + "smithy.api#documentation": "

The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.

" + } } } },