Skip to content

Commit cdfc9d8

Browse files
committed
feat(client-accessanalyzer): revert client change
1 parent f646b90 commit cdfc9d8

File tree

1 file changed

+15
-93
lines changed

1 file changed

+15
-93
lines changed

clients/client-accessanalyzer/src/models/models_0.ts

Lines changed: 15 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
1-
import { SdkException as __SdkException } from "@aws-sdk/smithy-client";
2-
import { MetadataBearer as $MetadataBearer, ResponseMetadata as __ResponseMetadata } from "@aws-sdk/types";
1+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
32

43
/**
54
* <p>You do not have sufficient access to perform this action.</p>
65
*/
7-
export interface AccessDeniedException extends __SdkException {
6+
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
87
name: "AccessDeniedException";
98
$fault: "client";
10-
}
11-
12-
export class AccessDeniedException extends __SdkException {
13-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
14-
super({
15-
name: "AccessDeniedException",
16-
$fault: "client",
17-
$metadata: responseMetadata,
18-
});
19-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
20-
Object.assign(this, { ...deserialized });
21-
}
9+
message: string | undefined;
2210
}
2311

2412
/**
2513
* <p>A conflict exception error.</p>
2614
*/
27-
export interface ConflictException extends __SdkException {
15+
export interface ConflictException extends __SmithyException, $MetadataBearer {
2816
name: "ConflictException";
2917
$fault: "client";
18+
message: string | undefined;
3019
/**
3120
* <p>The ID of the resource.</p>
3221
*/
@@ -38,18 +27,6 @@ export interface ConflictException extends __SdkException {
3827
resourceType: string | undefined;
3928
}
4029

41-
export class ConflictException extends __SdkException {
42-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
43-
super({
44-
name: "ConflictException",
45-
$fault: "client",
46-
$metadata: responseMetadata,
47-
});
48-
Object.setPrototypeOf(this, ConflictException.prototype);
49-
Object.assign(this, { ...deserialized });
50-
}
51-
}
52-
5330
/**
5431
* <p>The criteria to use in the filter that defines the archive rule.</p>
5532
*/
@@ -121,34 +98,24 @@ export namespace CreateArchiveRuleRequest {
12198
/**
12299
* <p>Internal server error.</p>
123100
*/
124-
export interface InternalServerException extends __SdkException {
101+
export interface InternalServerException extends __SmithyException, $MetadataBearer {
125102
name: "InternalServerException";
126103
$fault: "server";
127104
$retryable: {};
105+
message: string | undefined;
128106
/**
129107
* <p>The seconds to wait to retry.</p>
130108
*/
131109
retryAfterSeconds?: number;
132110
}
133111

134-
export class InternalServerException extends __SdkException {
135-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
136-
super({
137-
name: "InternalServerException",
138-
$fault: "server",
139-
$metadata: responseMetadata,
140-
});
141-
Object.setPrototypeOf(this, InternalServerException.prototype);
142-
Object.assign(this, { ...deserialized });
143-
}
144-
}
145-
146112
/**
147113
* <p>The specified resource could not be found.</p>
148114
*/
149-
export interface ResourceNotFoundException extends __SdkException {
115+
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
150116
name: "ResourceNotFoundException";
151117
$fault: "client";
118+
message: string | undefined;
152119
/**
153120
* <p>The ID of the resource.</p>
154121
*/
@@ -160,24 +127,13 @@ export interface ResourceNotFoundException extends __SdkException {
160127
resourceType: string | undefined;
161128
}
162129

163-
export class ResourceNotFoundException extends __SdkException {
164-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
165-
super({
166-
name: "ResourceNotFoundException",
167-
$fault: "client",
168-
$metadata: responseMetadata,
169-
});
170-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
171-
Object.assign(this, { ...deserialized });
172-
}
173-
}
174-
175130
/**
176131
* <p>Service quote met error.</p>
177132
*/
178-
export interface ServiceQuotaExceededException extends __SdkException {
133+
export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
179134
name: "ServiceQuotaExceededException";
180135
$fault: "client";
136+
message: string | undefined;
181137
/**
182138
* <p>The resource ID.</p>
183139
*/
@@ -189,45 +145,22 @@ export interface ServiceQuotaExceededException extends __SdkException {
189145
resourceType: string | undefined;
190146
}
191147

192-
export class ServiceQuotaExceededException extends __SdkException {
193-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
194-
super({
195-
name: "ServiceQuotaExceededException",
196-
$fault: "client",
197-
$metadata: responseMetadata,
198-
});
199-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
200-
Object.assign(this, { ...deserialized });
201-
}
202-
}
203-
204148
/**
205149
* <p>Throttling limit exceeded error.</p>
206150
*/
207-
export interface ThrottlingException extends __SdkException {
151+
export interface ThrottlingException extends __SmithyException, $MetadataBearer {
208152
name: "ThrottlingException";
209153
$fault: "client";
210154
$retryable: {
211155
throttling: true;
212156
};
157+
message: string | undefined;
213158
/**
214159
* <p>The seconds to wait to retry.</p>
215160
*/
216161
retryAfterSeconds?: number;
217162
}
218163

219-
export class ThrottlingException extends __SdkException {
220-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
221-
super({
222-
name: "ThrottlingException",
223-
$fault: "client",
224-
$metadata: responseMetadata,
225-
});
226-
Object.setPrototypeOf(this, ThrottlingException.prototype);
227-
Object.assign(this, { ...deserialized });
228-
}
229-
}
230-
231164
/**
232165
* <p>Contains information about a validation exception.</p>
233166
*/
@@ -262,9 +195,10 @@ export enum ValidationExceptionReason {
262195
/**
263196
* <p>Validation exception error.</p>
264197
*/
265-
export interface ValidationException extends __SdkException {
198+
export interface ValidationException extends __SmithyException, $MetadataBearer {
266199
name: "ValidationException";
267200
$fault: "client";
201+
message: string | undefined;
268202
/**
269203
* <p>The reason for the exception.</p>
270204
*/
@@ -276,18 +210,6 @@ export interface ValidationException extends __SdkException {
276210
fieldList?: ValidationExceptionField[];
277211
}
278212

279-
export class ValidationException extends __SdkException {
280-
constructor(responseMetadata: __ResponseMetadata, deserialized: any) {
281-
super({
282-
name: "ValidationException",
283-
$fault: "client",
284-
$metadata: responseMetadata,
285-
});
286-
Object.setPrototypeOf(this, ValidationException.prototype);
287-
Object.assign(this, { ...deserialized });
288-
}
289-
}
290-
291213
/**
292214
* <p>Deletes an archive rule.</p>
293215
*/

0 commit comments

Comments
 (0)