@aws-sdk/client-guardduty 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 "./GuardDutyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { GuardDutyServiceException } from "./models/GuardDutyServiceException";
@@ -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 GuardDuty service.
4
+ */
5
+ export declare class GuardDutyServiceException 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 { GuardDutyServiceException as __BaseException } from "./GuardDutyServiceException";
2
3
  export interface AcceptInvitationRequest {
3
4
  /**
4
5
  * <p>The unique ID of the detector of the GuardDuty member account.</p>
@@ -30,9 +31,9 @@ export declare namespace AcceptInvitationResponse {
30
31
  /**
31
32
  * <p>A bad request exception object.</p>
32
33
  */
33
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
34
- name: "BadRequestException";
35
- $fault: "client";
34
+ export declare class BadRequestException extends __BaseException {
35
+ readonly name: "BadRequestException";
36
+ readonly $fault: "client";
36
37
  /**
37
38
  * <p>The error message.</p>
38
39
  */
@@ -41,13 +42,17 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
41
42
  * <p>The error type.</p>
42
43
  */
43
44
  Type?: string;
45
+ /**
46
+ * @internal
47
+ */
48
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
44
49
  }
45
50
  /**
46
51
  * <p>An internal server error exception object.</p>
47
52
  */
48
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
49
- name: "InternalServerErrorException";
50
- $fault: "server";
53
+ export declare class InternalServerErrorException extends __BaseException {
54
+ readonly name: "InternalServerErrorException";
55
+ readonly $fault: "server";
51
56
  /**
52
57
  * <p>The error message.</p>
53
58
  */
@@ -56,6 +61,10 @@ export interface InternalServerErrorException extends __SmithyException, $Metada
56
61
  * <p>The error type.</p>
57
62
  */
58
63
  Type?: string;
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
59
68
  }
60
69
  /**
61
70
  * <p>Contains information on the current access control policies for the bucket.</p>
@@ -3,3 +3,4 @@ export * from "./GuardDutyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { GuardDutyServiceException } from "./models/GuardDutyServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class GuardDutyServiceException 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 { GuardDutyServiceException as __BaseException } from "./GuardDutyServiceException";
2
3
  export interface AcceptInvitationRequest {
3
4
 
4
5
  DetectorId: string | undefined;
@@ -18,22 +19,26 @@ export declare namespace AcceptInvitationResponse {
18
19
  const filterSensitiveLog: (obj: AcceptInvitationResponse) => any;
19
20
  }
20
21
 
21
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
22
- name: "BadRequestException";
23
- $fault: "client";
22
+ export declare class BadRequestException extends __BaseException {
23
+ readonly name: "BadRequestException";
24
+ readonly $fault: "client";
24
25
 
25
26
  Message?: string;
26
27
 
27
28
  Type?: string;
29
+
30
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
28
31
  }
29
32
 
30
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
31
- name: "InternalServerErrorException";
32
- $fault: "server";
33
+ export declare class InternalServerErrorException extends __BaseException {
34
+ readonly name: "InternalServerErrorException";
35
+ readonly $fault: "server";
33
36
 
34
37
  Message?: string;
35
38
 
36
39
  Type?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
37
42
  }
38
43
 
39
44
  export interface AccessControlList {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty 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",