@aws-sdk/client-frauddetector 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,3 +3,4 @@ export * from "./FraudDetectorClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { FraudDetectorServiceException } from "./models/FraudDetectorServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from FraudDetector service.
4
+ */
5
+ export declare class FraudDetectorServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,15 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { FraudDetectorServiceException as __BaseException } from "./FraudDetectorServiceException";
2
3
  /**
3
4
  * <p>An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as <code>PutExternalModel</code>, that specifies a role that is not in your account.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- message: string | undefined;
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
13
  }
10
14
  export declare enum AsyncJobStatus {
11
15
  CANCELED = "CANCELED",
@@ -125,26 +129,35 @@ export declare namespace BatchCreateVariableResult {
125
129
  /**
126
130
  * <p>An exception indicating an internal server error.</p>
127
131
  */
128
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
129
- name: "InternalServerException";
130
- $fault: "server";
131
- message: string | undefined;
132
+ export declare class InternalServerException extends __BaseException {
133
+ readonly name: "InternalServerException";
134
+ readonly $fault: "server";
135
+ /**
136
+ * @internal
137
+ */
138
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
132
139
  }
133
140
  /**
134
141
  * <p>An exception indicating a throttling error.</p>
135
142
  */
136
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
137
- name: "ThrottlingException";
138
- $fault: "client";
139
- message: string | undefined;
143
+ export declare class ThrottlingException extends __BaseException {
144
+ readonly name: "ThrottlingException";
145
+ readonly $fault: "client";
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
140
150
  }
141
151
  /**
142
152
  * <p>An exception indicating a specified value is not allowed.</p>
143
153
  */
144
- export interface ValidationException extends __SmithyException, $MetadataBearer {
145
- name: "ValidationException";
146
- $fault: "client";
147
- message: string | undefined;
154
+ export declare class ValidationException extends __BaseException {
155
+ readonly name: "ValidationException";
156
+ readonly $fault: "client";
157
+ /**
158
+ * @internal
159
+ */
160
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
148
161
  }
149
162
  export interface BatchGetVariableRequest {
150
163
  /**
@@ -281,10 +294,13 @@ export declare namespace CancelBatchImportJobResult {
281
294
  /**
282
295
  * <p>An exception indicating the specified resource was not found.</p>
283
296
  */
284
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
285
- name: "ResourceNotFoundException";
286
- $fault: "client";
287
- message: string | undefined;
297
+ export declare class ResourceNotFoundException extends __BaseException {
298
+ readonly name: "ResourceNotFoundException";
299
+ readonly $fault: "client";
300
+ /**
301
+ * @internal
302
+ */
303
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
288
304
  }
289
305
  export interface CancelBatchPredictionJobRequest {
290
306
  /**
@@ -858,10 +874,13 @@ export declare namespace DeleteBatchPredictionJobResult {
858
874
  /**
859
875
  * <p>An exception indicating there was a conflict during a delete operation.</p>
860
876
  */
861
- export interface ConflictException extends __SmithyException, $MetadataBearer {
862
- name: "ConflictException";
863
- $fault: "client";
864
- message: string | undefined;
877
+ export declare class ConflictException extends __BaseException {
878
+ readonly name: "ConflictException";
879
+ readonly $fault: "client";
880
+ /**
881
+ * @internal
882
+ */
883
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
865
884
  }
866
885
  export interface DeleteDetectorRequest {
867
886
  /**
@@ -2229,10 +2248,13 @@ export declare namespace GetEventPredictionResult {
2229
2248
  /**
2230
2249
  * <p>An exception indicating that the attached customer-owned (external) model threw an exception when Amazon Fraud Detector invoked the model.</p>
2231
2250
  */
2232
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
2233
- name: "ResourceUnavailableException";
2234
- $fault: "client";
2235
- message?: string;
2251
+ export declare class ResourceUnavailableException extends __BaseException {
2252
+ readonly name: "ResourceUnavailableException";
2253
+ readonly $fault: "client";
2254
+ /**
2255
+ * @internal
2256
+ */
2257
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
2236
2258
  }
2237
2259
  export interface GetEventPredictionMetadataRequest {
2238
2260
  /**
@@ -3,3 +3,4 @@ export * from "./FraudDetectorClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { FraudDetectorServiceException } from "./models/FraudDetectorServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class FraudDetectorServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,11 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { FraudDetectorServiceException as __BaseException } from "./FraudDetectorServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
6
- message: string | undefined;
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
9
  }
8
10
  export declare enum AsyncJobStatus {
9
11
  CANCELED = "CANCELED",
@@ -75,22 +77,25 @@ export declare namespace BatchCreateVariableResult {
75
77
  const filterSensitiveLog: (obj: BatchCreateVariableResult) => any;
76
78
  }
77
79
 
78
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
79
- name: "InternalServerException";
80
- $fault: "server";
81
- message: string | undefined;
80
+ export declare class InternalServerException extends __BaseException {
81
+ readonly name: "InternalServerException";
82
+ readonly $fault: "server";
83
+
84
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
82
85
  }
83
86
 
84
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
85
- name: "ThrottlingException";
86
- $fault: "client";
87
- message: string | undefined;
87
+ export declare class ThrottlingException extends __BaseException {
88
+ readonly name: "ThrottlingException";
89
+ readonly $fault: "client";
90
+
91
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
88
92
  }
89
93
 
90
- export interface ValidationException extends __SmithyException, $MetadataBearer {
91
- name: "ValidationException";
92
- $fault: "client";
93
- message: string | undefined;
94
+ export declare class ValidationException extends __BaseException {
95
+ readonly name: "ValidationException";
96
+ readonly $fault: "client";
97
+
98
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
94
99
  }
95
100
  export interface BatchGetVariableRequest {
96
101
 
@@ -174,10 +179,11 @@ export declare namespace CancelBatchImportJobResult {
174
179
  const filterSensitiveLog: (obj: CancelBatchImportJobResult) => any;
175
180
  }
176
181
 
177
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
178
- name: "ResourceNotFoundException";
179
- $fault: "client";
180
- message: string | undefined;
182
+ export declare class ResourceNotFoundException extends __BaseException {
183
+ readonly name: "ResourceNotFoundException";
184
+ readonly $fault: "client";
185
+
186
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
181
187
  }
182
188
  export interface CancelBatchPredictionJobRequest {
183
189
 
@@ -524,10 +530,11 @@ export declare namespace DeleteBatchPredictionJobResult {
524
530
  const filterSensitiveLog: (obj: DeleteBatchPredictionJobResult) => any;
525
531
  }
526
532
 
527
- export interface ConflictException extends __SmithyException, $MetadataBearer {
528
- name: "ConflictException";
529
- $fault: "client";
530
- message: string | undefined;
533
+ export declare class ConflictException extends __BaseException {
534
+ readonly name: "ConflictException";
535
+ readonly $fault: "client";
536
+
537
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
531
538
  }
532
539
  export interface DeleteDetectorRequest {
533
540
 
@@ -1330,10 +1337,11 @@ export declare namespace GetEventPredictionResult {
1330
1337
  const filterSensitiveLog: (obj: GetEventPredictionResult) => any;
1331
1338
  }
1332
1339
 
1333
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
1334
- name: "ResourceUnavailableException";
1335
- $fault: "client";
1336
- message?: string;
1340
+ export declare class ResourceUnavailableException extends __BaseException {
1341
+ readonly name: "ResourceUnavailableException";
1342
+ readonly $fault: "client";
1343
+
1344
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
1337
1345
  }
1338
1346
  export interface GetEventPredictionMetadataRequest {
1339
1347
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-frauddetector",
3
3
  "description": "AWS SDK for JavaScript Frauddetector Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"