Skip to content

Commit c8d1a9a

Browse files
author
awstools
committedDec 17, 2024
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.
1 parent bc1080b commit c8d1a9a

File tree

6 files changed

+71
-0
lines changed

6 files changed

+71
-0
lines changed
 

Diff for: ‎clients/client-m2/src/commands/CreateEnvironmentCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
6767
* "<keys>": "STRING_VALUE",
6868
* },
6969
* preferredMaintenanceWindow: "STRING_VALUE",
70+
* networkType: "STRING_VALUE",
7071
* clientToken: "STRING_VALUE",
7172
* kmsKeyId: "STRING_VALUE",
7273
* };

Diff for: ‎clients/client-m2/src/commands/GetEnvironmentCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M
8888
* // engineVersion: "STRING_VALUE",
8989
* // },
9090
* // kmsKeyId: "STRING_VALUE",
91+
* // networkType: "STRING_VALUE",
9192
* // };
9293
*
9394
* ```

Diff for: ‎clients/client-m2/src/commands/ListEnvironmentsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse,
5656
* // engineType: "STRING_VALUE", // required
5757
* // engineVersion: "STRING_VALUE", // required
5858
* // creationTime: new Date("TIMESTAMP"), // required
59+
* // networkType: "STRING_VALUE",
5960
* // },
6061
* // ],
6162
* // nextToken: "STRING_VALUE",

Diff for: ‎clients/client-m2/src/models/models_0.ts

+32
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,20 @@ export interface HighAvailabilityConfig {
31483148
desiredCapacity: number | undefined;
31493149
}
31503150

3151+
/**
3152+
* @public
3153+
* @enum
3154+
*/
3155+
export const NetworkType = {
3156+
DUAL: "dual",
3157+
IPV4: "ipv4",
3158+
} as const;
3159+
3160+
/**
3161+
* @public
3162+
*/
3163+
export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];
3164+
31513165
/**
31523166
* <p>Defines the storage configuration for an Amazon EFS file system.</p>
31533167
* @public
@@ -3316,6 +3330,12 @@ export interface CreateEnvironmentRequest {
33163330
*/
33173331
preferredMaintenanceWindow?: string | undefined;
33183332

3333+
/**
3334+
* <p>The network type required for the runtime environment.</p>
3335+
* @public
3336+
*/
3337+
networkType?: NetworkType | undefined;
3338+
33193339
/**
33203340
* <p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request
33213341
* to create an environment. The service generates the clientToken when the API call is
@@ -3568,6 +3588,12 @@ export interface GetEnvironmentResponse {
35683588
* @public
35693589
*/
35703590
kmsKeyId?: string | undefined;
3591+
3592+
/**
3593+
* <p>The network type supported by the runtime environment.</p>
3594+
* @public
3595+
*/
3596+
networkType?: NetworkType | undefined;
35713597
}
35723598

35733599
/**
@@ -3653,6 +3679,12 @@ export interface EnvironmentSummary {
36533679
* @public
36543680
*/
36553681
creationTime: Date | undefined;
3682+
3683+
/**
3684+
* <p>The network type supported by the runtime environment.</p>
3685+
* @public
3686+
*/
3687+
networkType?: NetworkType | undefined;
36563688
}
36573689

36583690
/**

Diff for: ‎clients/client-m2/src/protocols/Aws_restJson1.ts

+3
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export const se_CreateEnvironmentCommand = async (
277277
instanceType: [],
278278
kmsKeyId: [],
279279
name: [],
280+
networkType: [],
280281
preferredMaintenanceWindow: [],
281282
publiclyAccessible: [],
282283
securityGroupIds: (_) => _json(_),
@@ -1215,6 +1216,7 @@ export const de_GetEnvironmentCommand = async (
12151216
kmsKeyId: __expectString,
12161217
loadBalancerArn: __expectString,
12171218
name: __expectString,
1219+
networkType: __expectString,
12181220
pendingMaintenance: (_) => de_PendingMaintenance(_, context),
12191221
preferredMaintenanceWindow: __expectString,
12201222
publiclyAccessible: __expectBoolean,
@@ -2143,6 +2145,7 @@ const de_EnvironmentSummary = (output: any, context: __SerdeContext): Environmen
21432145
environmentId: __expectString,
21442146
instanceType: __expectString,
21452147
name: __expectString,
2148+
networkType: __expectString,
21462149
status: __expectString,
21472150
}) as any;
21482151
};

Diff for: ‎codegen/sdk-codegen/aws-models/m2.json

+33
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,12 @@
19601960
"smithy.api#documentation": "<p>Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format <code>ddd:hh24:mi-ddd:hh24:mi</code> and must be less than 24 hours. The following two examples are valid maintenance windows: <code>sun:23:45-mon:00:15</code> or <code>sat:01:00-sat:03:00</code>. </p>\n <p>If you do not provide a value, a random system-generated value will be assigned.</p>"
19611961
}
19621962
},
1963+
"networkType": {
1964+
"target": "com.amazonaws.m2#NetworkType",
1965+
"traits": {
1966+
"smithy.api#documentation": "<p>The network type required for the runtime environment.</p>"
1967+
}
1968+
},
19631969
"clientToken": {
19641970
"target": "com.amazonaws.m2#ClientToken",
19651971
"traits": {
@@ -2832,6 +2838,12 @@
28322838
"smithy.api#documentation": "<p>The timestamp when the runtime environment was created.</p>",
28332839
"smithy.api#required": {}
28342840
}
2841+
},
2842+
"networkType": {
2843+
"target": "com.amazonaws.m2#NetworkType",
2844+
"traits": {
2845+
"smithy.api#documentation": "<p>The network type supported by the runtime environment.</p>"
2846+
}
28352847
}
28362848
},
28372849
"traits": {
@@ -3939,6 +3951,12 @@
39393951
"traits": {
39403952
"smithy.api#documentation": "<p>The identifier of a customer managed key.</p>"
39413953
}
3954+
},
3955+
"networkType": {
3956+
"target": "com.amazonaws.m2#NetworkType",
3957+
"traits": {
3958+
"smithy.api#documentation": "<p>The network type supported by the runtime environment.</p>"
3959+
}
39423960
}
39433961
}
39443962
},
@@ -5268,6 +5286,21 @@
52685286
}
52695287
}
52705288
},
5289+
"com.amazonaws.m2#NetworkType": {
5290+
"type": "string",
5291+
"traits": {
5292+
"smithy.api#enum": [
5293+
{
5294+
"value": "ipv4",
5295+
"name": "IPV4"
5296+
},
5297+
{
5298+
"value": "dual",
5299+
"name": "DUAL"
5300+
}
5301+
]
5302+
}
5303+
},
52715304
"com.amazonaws.m2#NextToken": {
52725305
"type": "string",
52735306
"traits": {

0 commit comments

Comments
 (0)
Please sign in to comment.