Skip to content

Commit

Permalink
feat(client-m2): This release adds support for AWS Mainframe Moderniz…
Browse files Browse the repository at this point in the history
…ation(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.
  • Loading branch information
awstools committed Dec 17, 2024
1 parent bc1080b commit c8d1a9a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/client-m2/src/commands/CreateEnvironmentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
* "<keys>": "STRING_VALUE",
* },
* preferredMaintenanceWindow: "STRING_VALUE",
* networkType: "STRING_VALUE",
* clientToken: "STRING_VALUE",
* kmsKeyId: "STRING_VALUE",
* };
Expand Down
1 change: 1 addition & 0 deletions clients/client-m2/src/commands/GetEnvironmentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M
* // engineVersion: "STRING_VALUE",
* // },
* // kmsKeyId: "STRING_VALUE",
* // networkType: "STRING_VALUE",
* // };
*
* ```
Expand Down
1 change: 1 addition & 0 deletions clients/client-m2/src/commands/ListEnvironmentsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
32 changes: 32 additions & 0 deletions clients/client-m2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

/**
* <p>Defines the storage configuration for an Amazon EFS file system.</p>
* @public
Expand Down Expand Up @@ -3316,6 +3330,12 @@ export interface CreateEnvironmentRequest {
*/
preferredMaintenanceWindow?: string | undefined;

/**
* <p>The network type required for the runtime environment.</p>
* @public
*/
networkType?: NetworkType | undefined;

/**
* <p>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
Expand Down Expand Up @@ -3568,6 +3588,12 @@ export interface GetEnvironmentResponse {
* @public
*/
kmsKeyId?: string | undefined;

/**
* <p>The network type supported by the runtime environment.</p>
* @public
*/
networkType?: NetworkType | undefined;
}

/**
Expand Down Expand Up @@ -3653,6 +3679,12 @@ export interface EnvironmentSummary {
* @public
*/
creationTime: Date | undefined;

/**
* <p>The network type supported by the runtime environment.</p>
* @public
*/
networkType?: NetworkType | undefined;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions clients/client-m2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export const se_CreateEnvironmentCommand = async (
instanceType: [],
kmsKeyId: [],
name: [],
networkType: [],
preferredMaintenanceWindow: [],
publiclyAccessible: [],
securityGroupIds: (_) => _json(_),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -2143,6 +2145,7 @@ const de_EnvironmentSummary = (output: any, context: __SerdeContext): Environmen
environmentId: __expectString,
instanceType: __expectString,
name: __expectString,
networkType: __expectString,
status: __expectString,
}) as any;
};
Expand Down
33 changes: 33 additions & 0 deletions codegen/sdk-codegen/aws-models/m2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,12 @@
"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>"
}
},
"networkType": {
"target": "com.amazonaws.m2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The network type required for the runtime environment.</p>"
}
},
"clientToken": {
"target": "com.amazonaws.m2#ClientToken",
"traits": {
Expand Down Expand Up @@ -2832,6 +2838,12 @@
"smithy.api#documentation": "<p>The timestamp when the runtime environment was created.</p>",
"smithy.api#required": {}
}
},
"networkType": {
"target": "com.amazonaws.m2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The network type supported by the runtime environment.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3939,6 +3951,12 @@
"traits": {
"smithy.api#documentation": "<p>The identifier of a customer managed key.</p>"
}
},
"networkType": {
"target": "com.amazonaws.m2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The network type supported by the runtime environment.</p>"
}
}
}
},
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit c8d1a9a

Please sign in to comment.