Skip to content

Commit 7ea1579

Browse files
committed
fix(ec2): InvalidSubnet.NotFound -> InvalidSubnetID.NotFound
1 parent db35678 commit 7ea1579

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

scripts/service-patches.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export const servicePatches: Record<string, ServicePatches> = {
3333
errors: ["InvalidVpcID.NotFound"],
3434
},
3535
DeleteSubnet: {
36-
errors: ["InvalidSubnet.NotFound"],
36+
errors: ["InvalidSubnetID.NotFound"],
3737
},
3838
DescribeSubnets: {
39-
errors: ["InvalidSubnet.NotFound"],
39+
errors: ["InvalidSubnetID.NotFound"],
4040
},
4141
DescribeNetworkInterfaces: {
4242
errors: ["InvalidNetworkInterface.NotFound"],
@@ -53,12 +53,6 @@ export const servicePatches: Record<string, ServicePatches> = {
5353
DescribeVpcPeeringConnections: {
5454
errors: ["InvalidVpcPeeringConnection.NotFound"],
5555
},
56-
DescribeVpnConnections: {
57-
errors: ["InvalidVpnConnection.NotFound"],
58-
},
59-
DescribeVpnGateways: {
60-
errors: ["InvalidVpnGateway.NotFound"],
61-
},
6256
DeleteNetworkInterface: {
6357
errors: ["InvalidNetworkInterface.NotFound"],
6458
},

src/services/ec2/types.ts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ export declare class EC2 extends AWSServiceClient {
688688
): Effect.Effect<{}, CommonAwsError>;
689689
deleteSubnet(
690690
input: DeleteSubnetRequest,
691-
): Effect.Effect<{}, InvalidSubnetNotFound | CommonAwsError>;
691+
): Effect.Effect<{}, InvalidSubnetIDNotFound | CommonAwsError>;
692692
deleteSubnetCidrReservation(
693693
input: DeleteSubnetCidrReservationRequest,
694694
): Effect.Effect<DeleteSubnetCidrReservationResult, CommonAwsError>;
@@ -1296,7 +1296,7 @@ export declare class EC2 extends AWSServiceClient {
12961296
input: DescribeSubnetsRequest,
12971297
): Effect.Effect<
12981298
DescribeSubnetsResult,
1299-
InvalidSubnetNotFound | CommonAwsError
1299+
InvalidSubnetIDNotFound | CommonAwsError
13001300
>;
13011301
describeTags(
13021302
input: DescribeTagsRequest,
@@ -1446,16 +1446,10 @@ export declare class EC2 extends AWSServiceClient {
14461446
): Effect.Effect<DescribeVpcsResult, InvalidVpcIDNotFound | CommonAwsError>;
14471447
describeVpnConnections(
14481448
input: DescribeVpnConnectionsRequest,
1449-
): Effect.Effect<
1450-
DescribeVpnConnectionsResult,
1451-
InvalidVpnConnectionNotFound | CommonAwsError
1452-
>;
1449+
): Effect.Effect<DescribeVpnConnectionsResult, CommonAwsError>;
14531450
describeVpnGateways(
14541451
input: DescribeVpnGatewaysRequest,
1455-
): Effect.Effect<
1456-
DescribeVpnGatewaysResult,
1457-
InvalidVpnGatewayNotFound | CommonAwsError
1458-
>;
1452+
): Effect.Effect<DescribeVpnGatewaysResult, CommonAwsError>;
14591453
detachClassicLinkVpc(
14601454
input: DetachClassicLinkVpcRequest,
14611455
): Effect.Effect<DetachClassicLinkVpcResult, CommonAwsError>;
@@ -19996,8 +19990,8 @@ export declare class InvalidNetworkInterfaceNotFound extends EffectData.TaggedEr
1999619990
"InvalidNetworkInterface.NotFound",
1999719991
)<{}> {}
1999819992

19999-
export declare class InvalidSubnetNotFound extends EffectData.TaggedError(
20000-
"InvalidSubnet.NotFound",
19993+
export declare class InvalidSubnetIDNotFound extends EffectData.TaggedError(
19994+
"InvalidSubnetID.NotFound",
2000119995
)<{}> {}
2000219996

2000319997
export declare class InvalidVolumeNotFound extends EffectData.TaggedError(
@@ -21315,7 +21309,7 @@ export declare namespace DeleteSpotDatafeedSubscription {
2131521309
export declare namespace DeleteSubnet {
2131621310
export type Input = DeleteSubnetRequest;
2131721311
export type Output = {};
21318-
export type Error = InvalidSubnetNotFound | CommonAwsError;
21312+
export type Error = InvalidSubnetIDNotFound | CommonAwsError;
2131921313
}
2132021314

2132121315
export declare namespace DeleteSubnetCidrReservation {
@@ -22364,7 +22358,7 @@ export declare namespace DescribeStoreImageTasks {
2236422358
export declare namespace DescribeSubnets {
2236522359
export type Input = DescribeSubnetsRequest;
2236622360
export type Output = DescribeSubnetsResult;
22367-
export type Error = InvalidSubnetNotFound | CommonAwsError;
22361+
export type Error = InvalidSubnetIDNotFound | CommonAwsError;
2236822362
}
2236922363

2237022364
export declare namespace DescribeTags {
@@ -22609,13 +22603,13 @@ export declare namespace DescribeVpcs {
2260922603
export declare namespace DescribeVpnConnections {
2261022604
export type Input = DescribeVpnConnectionsRequest;
2261122605
export type Output = DescribeVpnConnectionsResult;
22612-
export type Error = InvalidVpnConnectionNotFound | CommonAwsError;
22606+
export type Error = CommonAwsError;
2261322607
}
2261422608

2261522609
export declare namespace DescribeVpnGateways {
2261622610
export type Input = DescribeVpnGatewaysRequest;
2261722611
export type Output = DescribeVpnGatewaysResult;
22618-
export type Error = InvalidVpnGatewayNotFound | CommonAwsError;
22612+
export type Error = CommonAwsError;
2261922613
}
2262022614

2262122615
export declare namespace DetachClassicLinkVpc {
@@ -24362,7 +24356,7 @@ export type EC2Errors =
2436224356
| InvalidInternetGatewayNotFound
2436324357
| InvalidKeyPairNotFound
2436424358
| InvalidNetworkInterfaceNotFound
24365-
| InvalidSubnetNotFound
24359+
| InvalidSubnetIDNotFound
2436624360
| InvalidVolumeNotFound
2436724361
| InvalidVpcIDNotFound
2436824362
| InvalidVpcPeeringConnectionNotFound

0 commit comments

Comments
 (0)