From c8d1a9a2941a7170fd882fd8496677bd0b02ce3a Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 17 Dec 2024 19:11:28 +0000 Subject: [PATCH] feat(client-m2): This release adds support for AWS Mainframe Modernization(M2) Service to allow specifying network type(ipv4, dual) for the environment instances. For dual network type, m2 environment applications will serve both IPv4 and IPv6 requests, whereas for ipv4 it will serve only IPv4 requests. --- .../src/commands/CreateEnvironmentCommand.ts | 1 + .../src/commands/GetEnvironmentCommand.ts | 1 + .../src/commands/ListEnvironmentsCommand.ts | 1 + clients/client-m2/src/models/models_0.ts | 32 ++++++++++++++++++ .../client-m2/src/protocols/Aws_restJson1.ts | 3 ++ codegen/sdk-codegen/aws-models/m2.json | 33 +++++++++++++++++++ 6 files changed, 71 insertions(+) diff --git a/clients/client-m2/src/commands/CreateEnvironmentCommand.ts b/clients/client-m2/src/commands/CreateEnvironmentCommand.ts index 9874470d9a8b..34da043bbde1 100644 --- a/clients/client-m2/src/commands/CreateEnvironmentCommand.ts +++ b/clients/client-m2/src/commands/CreateEnvironmentCommand.ts @@ -67,6 +67,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons * "": "STRING_VALUE", * }, * preferredMaintenanceWindow: "STRING_VALUE", + * networkType: "STRING_VALUE", * clientToken: "STRING_VALUE", * kmsKeyId: "STRING_VALUE", * }; diff --git a/clients/client-m2/src/commands/GetEnvironmentCommand.ts b/clients/client-m2/src/commands/GetEnvironmentCommand.ts index 85d0081ac865..1188833eef70 100644 --- a/clients/client-m2/src/commands/GetEnvironmentCommand.ts +++ b/clients/client-m2/src/commands/GetEnvironmentCommand.ts @@ -88,6 +88,7 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M * // engineVersion: "STRING_VALUE", * // }, * // kmsKeyId: "STRING_VALUE", + * // networkType: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-m2/src/commands/ListEnvironmentsCommand.ts b/clients/client-m2/src/commands/ListEnvironmentsCommand.ts index e3dad69fe70a..d8eb2fe6b99c 100644 --- a/clients/client-m2/src/commands/ListEnvironmentsCommand.ts +++ b/clients/client-m2/src/commands/ListEnvironmentsCommand.ts @@ -56,6 +56,7 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse, * // engineType: "STRING_VALUE", // required * // engineVersion: "STRING_VALUE", // required * // creationTime: new Date("TIMESTAMP"), // required + * // networkType: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-m2/src/models/models_0.ts b/clients/client-m2/src/models/models_0.ts index 0521d9422697..61276dac67e1 100644 --- a/clients/client-m2/src/models/models_0.ts +++ b/clients/client-m2/src/models/models_0.ts @@ -3148,6 +3148,20 @@ export interface HighAvailabilityConfig { desiredCapacity: number | undefined; } +/** + * @public + * @enum + */ +export const NetworkType = { + DUAL: "dual", + IPV4: "ipv4", +} as const; + +/** + * @public + */ +export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType]; + /** *

Defines the storage configuration for an Amazon EFS file system.

* @public @@ -3316,6 +3330,12 @@ export interface CreateEnvironmentRequest { */ preferredMaintenanceWindow?: string | undefined; + /** + *

The network type required for the runtime environment.

+ * @public + */ + networkType?: NetworkType | undefined; + /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of the request * to create an environment. The service generates the clientToken when the API call is @@ -3568,6 +3588,12 @@ export interface GetEnvironmentResponse { * @public */ kmsKeyId?: string | undefined; + + /** + *

The network type supported by the runtime environment.

+ * @public + */ + networkType?: NetworkType | undefined; } /** @@ -3653,6 +3679,12 @@ export interface EnvironmentSummary { * @public */ creationTime: Date | undefined; + + /** + *

The network type supported by the runtime environment.

+ * @public + */ + networkType?: NetworkType | undefined; } /** diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index 5f03f5564668..816c37dccfed 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -277,6 +277,7 @@ export const se_CreateEnvironmentCommand = async ( instanceType: [], kmsKeyId: [], name: [], + networkType: [], preferredMaintenanceWindow: [], publiclyAccessible: [], securityGroupIds: (_) => _json(_), @@ -1215,6 +1216,7 @@ export const de_GetEnvironmentCommand = async ( kmsKeyId: __expectString, loadBalancerArn: __expectString, name: __expectString, + networkType: __expectString, pendingMaintenance: (_) => de_PendingMaintenance(_, context), preferredMaintenanceWindow: __expectString, publiclyAccessible: __expectBoolean, @@ -2143,6 +2145,7 @@ const de_EnvironmentSummary = (output: any, context: __SerdeContext): Environmen environmentId: __expectString, instanceType: __expectString, name: __expectString, + networkType: __expectString, status: __expectString, }) as any; }; diff --git a/codegen/sdk-codegen/aws-models/m2.json b/codegen/sdk-codegen/aws-models/m2.json index 3858ba4ca141..56924dafbff0 100644 --- a/codegen/sdk-codegen/aws-models/m2.json +++ b/codegen/sdk-codegen/aws-models/m2.json @@ -1960,6 +1960,12 @@ "smithy.api#documentation": "

Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15 or sat:01:00-sat:03:00.

\n

If you do not provide a value, a random system-generated value will be assigned.

" } }, + "networkType": { + "target": "com.amazonaws.m2#NetworkType", + "traits": { + "smithy.api#documentation": "

The network type required for the runtime environment.

" + } + }, "clientToken": { "target": "com.amazonaws.m2#ClientToken", "traits": { @@ -2832,6 +2838,12 @@ "smithy.api#documentation": "

The timestamp when the runtime environment was created.

", "smithy.api#required": {} } + }, + "networkType": { + "target": "com.amazonaws.m2#NetworkType", + "traits": { + "smithy.api#documentation": "

The network type supported by the runtime environment.

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

The identifier of a customer managed key.

" } + }, + "networkType": { + "target": "com.amazonaws.m2#NetworkType", + "traits": { + "smithy.api#documentation": "

The network type supported by the runtime environment.

" + } } } }, @@ -5268,6 +5286,21 @@ } } }, + "com.amazonaws.m2#NetworkType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipv4", + "name": "IPV4" + }, + { + "value": "dual", + "name": "DUAL" + } + ] + } + }, "com.amazonaws.m2#NextToken": { "type": "string", "traits": {