Skip to content

Commit af414e7

Browse files
committed
fix(ec2): add errors to ReleaseAddress
1 parent a5e8105 commit af414e7

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

scripts/service-patches.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ export const servicePatches: Record<string, ServicePatches> = {
4646
errors: ["InvalidAssociationID.NotFound"],
4747
},
4848
ReleaseAddress: {
49-
errors: ["InvalidAddressID.NotFound", "InvalidAllocationID.NotFound"],
49+
errors: [
50+
"InvalidAddressID.NotFound",
51+
"InvalidAllocationID.NotFound",
52+
"InvalidNetworkInterfaceID.NotFound",
53+
"InvalidIPAddress.InUse",
54+
"DependencyViolation",
55+
],
5056
},
5157

5258
// ========== AMI / Image Operations ==========

src/services/ec2/types.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3368,7 +3368,12 @@ export declare class EC2 extends AWSServiceClient {
33683368
input: ReleaseAddressRequest,
33693369
): Effect.Effect<
33703370
{},
3371-
InvalidAddressIDNotFound | InvalidAllocationIDNotFound | CommonAwsError
3371+
| InvalidAddressIDNotFound
3372+
| InvalidAllocationIDNotFound
3373+
| InvalidNetworkInterfaceIDNotFound
3374+
| InvalidIPAddressInUse
3375+
| DependencyViolation
3376+
| CommonAwsError
33723377
>;
33733378
releaseHosts(
33743379
input: ReleaseHostsRequest,
@@ -21805,6 +21810,10 @@ export declare class InstanceCreditSpecificationNotSupported extends EffectData.
2180521810
"InstanceCreditSpecification.NotSupported",
2180621811
)<{}> {}
2180721812

21813+
export declare class InvalidIPAddressInUse extends EffectData.TaggedError(
21814+
"InvalidIPAddress.InUse",
21815+
)<{}> {}
21816+
2180821817
export declare class InvalidClientVpnEndpointAuthorizationRuleNotFound extends EffectData.TaggedError(
2180921818
"InvalidClientVpnEndpointAuthorizationRuleNotFound",
2181021819
)<{}> {}
@@ -26340,6 +26349,9 @@ export declare namespace ReleaseAddress {
2634026349
export type Error =
2634126350
| InvalidAddressIDNotFound
2634226351
| InvalidAllocationIDNotFound
26352+
| InvalidNetworkInterfaceIDNotFound
26353+
| InvalidIPAddressInUse
26354+
| DependencyViolation
2634326355
| CommonAwsError;
2634426356
}
2634526357

@@ -26850,6 +26862,7 @@ export type EC2Errors =
2685026862
| InvalidInstanceType
2685126863
| InvalidKeyPairFormat
2685226864
| InstanceCreditSpecificationNotSupported
26865+
| InvalidIPAddressInUse
2685326866
| InvalidClientVpnEndpointAuthorizationRuleNotFound
2685426867
| InvalidPermissionNotFound
2685526868
| InvalidBlockDeviceMapping

0 commit comments

Comments
 (0)