Skip to content

Commit b80d72e

Browse files
committed
fix(ec2): add DependencyViolation to DeleteRouteTable
1 parent 350f8c8 commit b80d72e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

scripts/service-patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ export const servicePatches: Record<string, ServicePatches> = {
764764
errors: ["InvalidVpcID.NotFound"],
765765
},
766766
DeleteRouteTable: {
767-
errors: ["InvalidRouteTableID.NotFound"],
767+
errors: ["InvalidRouteTableID.NotFound", "DependencyViolation"],
768768
},
769769
DescribeRouteTables: {
770770
errors: ["InvalidRouteTableID.NotFound", "InvalidRouteTableId.Malformed"],

src/services/ec2/types.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,10 @@ export declare class EC2 extends AWSServiceClient {
10861086
): Effect.Effect<DeleteRouteServerPeerResult, CommonAwsError>;
10871087
deleteRouteTable(
10881088
input: DeleteRouteTableRequest,
1089-
): Effect.Effect<{}, InvalidRouteTableIDNotFound | CommonAwsError>;
1089+
): Effect.Effect<
1090+
{},
1091+
InvalidRouteTableIDNotFound | DependencyViolation | CommonAwsError
1092+
>;
10901093
deleteSecurityGroup(
10911094
input: DeleteSecurityGroupRequest,
10921095
): Effect.Effect<
@@ -23263,7 +23266,10 @@ export declare namespace DeleteRouteServerPeer {
2326323266
export declare namespace DeleteRouteTable {
2326423267
export type Input = DeleteRouteTableRequest;
2326523268
export type Output = {};
23266-
export type Error = InvalidRouteTableIDNotFound | CommonAwsError;
23269+
export type Error =
23270+
| InvalidRouteTableIDNotFound
23271+
| DependencyViolation
23272+
| CommonAwsError;
2326723273
}
2326823274

2326923275
export declare namespace DeleteSecurityGroup {

0 commit comments

Comments
 (0)