@aws-sdk/client-macie2 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 "./Macie2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { Macie2ServiceException } from "./models/Macie2ServiceException";
@@ -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 Macie2 service.
4
+ */
5
+ export declare class Macie2ServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { Macie2ServiceException as __BaseException } from "./Macie2ServiceException";
2
3
  export declare enum AdminStatus {
3
4
  DISABLING_IN_PROGRESS = "DISABLING_IN_PROGRESS",
4
5
  ENABLED = "ENABLED"
@@ -2499,79 +2500,79 @@ export declare namespace AcceptInvitationResponse {
2499
2500
  /**
2500
2501
  * <p>Provides information about an error that occurred due to insufficient access to a specified resource.</p>
2501
2502
  */
2502
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
2503
- name: "AccessDeniedException";
2504
- $fault: "client";
2503
+ export declare class AccessDeniedException extends __BaseException {
2504
+ readonly name: "AccessDeniedException";
2505
+ readonly $fault: "client";
2505
2506
  /**
2506
- * <p>The explanation of the error that occurred.</p>
2507
+ * @internal
2507
2508
  */
2508
- message?: string;
2509
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
2509
2510
  }
2510
2511
  /**
2511
2512
  * <p>Provides information about an error that occurred due to a versioning conflict for a specified resource.</p>
2512
2513
  */
2513
- export interface ConflictException extends __SmithyException, $MetadataBearer {
2514
- name: "ConflictException";
2515
- $fault: "client";
2514
+ export declare class ConflictException extends __BaseException {
2515
+ readonly name: "ConflictException";
2516
+ readonly $fault: "client";
2516
2517
  /**
2517
- * <p>The explanation of the error that occurred.</p>
2518
+ * @internal
2518
2519
  */
2519
- message?: string;
2520
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
2520
2521
  }
2521
2522
  /**
2522
2523
  * <p>Provides information about an error that occurred due to an unknown internal server error, exception, or failure.</p>
2523
2524
  */
2524
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
2525
- name: "InternalServerException";
2526
- $fault: "server";
2525
+ export declare class InternalServerException extends __BaseException {
2526
+ readonly name: "InternalServerException";
2527
+ readonly $fault: "server";
2527
2528
  /**
2528
- * <p>The explanation of the error that occurred.</p>
2529
+ * @internal
2529
2530
  */
2530
- message?: string;
2531
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
2531
2532
  }
2532
2533
  /**
2533
2534
  * <p>Provides information about an error that occurred because a specified resource wasn't found.</p>
2534
2535
  */
2535
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
2536
- name: "ResourceNotFoundException";
2537
- $fault: "client";
2536
+ export declare class ResourceNotFoundException extends __BaseException {
2537
+ readonly name: "ResourceNotFoundException";
2538
+ readonly $fault: "client";
2538
2539
  /**
2539
- * <p>The explanation of the error that occurred.</p>
2540
+ * @internal
2540
2541
  */
2541
- message?: string;
2542
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
2542
2543
  }
2543
2544
  /**
2544
2545
  * <p>Provides information about an error that occurred due to one or more service quotas for an account.</p>
2545
2546
  */
2546
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
2547
- name: "ServiceQuotaExceededException";
2548
- $fault: "client";
2547
+ export declare class ServiceQuotaExceededException extends __BaseException {
2548
+ readonly name: "ServiceQuotaExceededException";
2549
+ readonly $fault: "client";
2549
2550
  /**
2550
- * <p>The explanation of the error that occurred.</p>
2551
+ * @internal
2551
2552
  */
2552
- message?: string;
2553
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
2553
2554
  }
2554
2555
  /**
2555
2556
  * <p>Provides information about an error that occurred because too many requests were sent during a certain amount of time.</p>
2556
2557
  */
2557
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
2558
- name: "ThrottlingException";
2559
- $fault: "client";
2558
+ export declare class ThrottlingException extends __BaseException {
2559
+ readonly name: "ThrottlingException";
2560
+ readonly $fault: "client";
2560
2561
  /**
2561
- * <p>The explanation of the error that occurred.</p>
2562
+ * @internal
2562
2563
  */
2563
- message?: string;
2564
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
2564
2565
  }
2565
2566
  /**
2566
2567
  * <p>Provides information about an error that occurred due to a syntax error in a request.</p>
2567
2568
  */
2568
- export interface ValidationException extends __SmithyException, $MetadataBearer {
2569
- name: "ValidationException";
2570
- $fault: "client";
2569
+ export declare class ValidationException extends __BaseException {
2570
+ readonly name: "ValidationException";
2571
+ readonly $fault: "client";
2571
2572
  /**
2572
- * <p>The explanation of the error that occurred.</p>
2573
+ * @internal
2573
2574
  */
2574
- message?: string;
2575
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
2575
2576
  }
2576
2577
  /**
2577
2578
  * <p>Specifies the details of an account to associate with an Amazon Macie administrator account.</p>
@@ -3,3 +3,4 @@ export * from "./Macie2Client";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { Macie2ServiceException } from "./models/Macie2ServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class Macie2ServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { Macie2ServiceException as __BaseException } from "./Macie2ServiceException";
2
3
  export declare enum AdminStatus {
3
4
  DISABLING_IN_PROGRESS = "DISABLING_IN_PROGRESS",
4
5
  ENABLED = "ENABLED"
@@ -1483,53 +1484,53 @@ export declare namespace AcceptInvitationResponse {
1483
1484
  const filterSensitiveLog: (obj: AcceptInvitationResponse) => any;
1484
1485
  }
1485
1486
 
1486
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
1487
- name: "AccessDeniedException";
1488
- $fault: "client";
1487
+ export declare class AccessDeniedException extends __BaseException {
1488
+ readonly name: "AccessDeniedException";
1489
+ readonly $fault: "client";
1489
1490
 
1490
- message?: string;
1491
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
1491
1492
  }
1492
1493
 
1493
- export interface ConflictException extends __SmithyException, $MetadataBearer {
1494
- name: "ConflictException";
1495
- $fault: "client";
1494
+ export declare class ConflictException extends __BaseException {
1495
+ readonly name: "ConflictException";
1496
+ readonly $fault: "client";
1496
1497
 
1497
- message?: string;
1498
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1498
1499
  }
1499
1500
 
1500
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
1501
- name: "InternalServerException";
1502
- $fault: "server";
1501
+ export declare class InternalServerException extends __BaseException {
1502
+ readonly name: "InternalServerException";
1503
+ readonly $fault: "server";
1503
1504
 
1504
- message?: string;
1505
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
1505
1506
  }
1506
1507
 
1507
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1508
- name: "ResourceNotFoundException";
1509
- $fault: "client";
1508
+ export declare class ResourceNotFoundException extends __BaseException {
1509
+ readonly name: "ResourceNotFoundException";
1510
+ readonly $fault: "client";
1510
1511
 
1511
- message?: string;
1512
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1512
1513
  }
1513
1514
 
1514
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
1515
- name: "ServiceQuotaExceededException";
1516
- $fault: "client";
1515
+ export declare class ServiceQuotaExceededException extends __BaseException {
1516
+ readonly name: "ServiceQuotaExceededException";
1517
+ readonly $fault: "client";
1517
1518
 
1518
- message?: string;
1519
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
1519
1520
  }
1520
1521
 
1521
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
1522
- name: "ThrottlingException";
1523
- $fault: "client";
1522
+ export declare class ThrottlingException extends __BaseException {
1523
+ readonly name: "ThrottlingException";
1524
+ readonly $fault: "client";
1524
1525
 
1525
- message?: string;
1526
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
1526
1527
  }
1527
1528
 
1528
- export interface ValidationException extends __SmithyException, $MetadataBearer {
1529
- name: "ValidationException";
1530
- $fault: "client";
1529
+ export declare class ValidationException extends __BaseException {
1530
+ readonly name: "ValidationException";
1531
+ readonly $fault: "client";
1531
1532
 
1532
- message?: string;
1533
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
1533
1534
  }
1534
1535
 
1535
1536
  export interface AccountDetail {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-macie2",
3
3
  "description": "AWS SDK for JavaScript Macie2 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",