@aws-sdk/client-guardduty 3.52.0 → 3.54.1
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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/GuardDutyServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +36 -5
- package/dist-cjs/protocols/Aws_restJson1.js +430 -1326
- package/dist-es/index.js +1 -0
- package/dist-es/models/GuardDutyServiceException.js +12 -0
- package/dist-es/models/models_0.js +30 -1
- package/dist-es/protocols/Aws_restJson1.js +1007 -1561
- package/dist-types/GuardDutyClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/GuardDutyServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +16 -7
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/GuardDutyClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/GuardDutyServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -7
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AcceptInvitationCommandInput, AcceptInvitationCommandOutput } from "./commands/AcceptInvitationCommand";
|
|
10
10
|
import { ArchiveFindingsCommandInput, ArchiveFindingsCommandOutput } from "./commands/ArchiveFindingsCommand";
|
|
11
11
|
import { CreateDetectorCommandInput, CreateDetectorCommandOutput } from "./commands/CreateDetectorCommand";
|
|
@@ -86,7 +86,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
86
86
|
* A function that can calculate the length of a request body.
|
|
87
87
|
* @internal
|
|
88
88
|
*/
|
|
89
|
-
bodyLengthChecker?:
|
|
89
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
90
90
|
/**
|
|
91
91
|
* A function that converts a stream into an array of bytes.
|
|
92
92
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
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>
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AcceptInvitationCommandInput, AcceptInvitationCommandOutput } from "./commands/AcceptInvitationCommand";
|
|
10
10
|
import { ArchiveFindingsCommandInput, ArchiveFindingsCommandOutput } from "./commands/ArchiveFindingsCommand";
|
|
11
11
|
import { CreateDetectorCommandInput, CreateDetectorCommandOutput } from "./commands/CreateDetectorCommand";
|
|
@@ -74,7 +74,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
74
74
|
|
|
75
75
|
urlParser?: __UrlParser;
|
|
76
76
|
|
|
77
|
-
bodyLengthChecker?:
|
|
77
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
78
78
|
|
|
79
79
|
streamCollector?: __StreamCollector;
|
|
80
80
|
|
|
@@ -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 {
|
|
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
|
|
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
|
|
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 {
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: GuardDutyClientConfig) => {
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.
|
|
4
|
+
"version": "3.54.1",
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
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",
|