@aws-sdk/client-codeguru-security 3.975.0 → 3.978.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.
package/dist-cjs/index.js
CHANGED
|
@@ -891,6 +891,12 @@ class UpdateAccountConfigurationCommand extends smithyClient.Command
|
|
|
891
891
|
.build() {
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
+
const paginateGetFindings = core.createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
895
|
+
|
|
896
|
+
const paginateListFindingsMetrics = core.createPaginator(CodeGuruSecurityClient, ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
897
|
+
|
|
898
|
+
const paginateListScans = core.createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
|
|
899
|
+
|
|
894
900
|
const commands = {
|
|
895
901
|
BatchGetFindingsCommand,
|
|
896
902
|
CreateScanCommand,
|
|
@@ -906,15 +912,14 @@ const commands = {
|
|
|
906
912
|
UntagResourceCommand,
|
|
907
913
|
UpdateAccountConfigurationCommand,
|
|
908
914
|
};
|
|
915
|
+
const paginators = {
|
|
916
|
+
paginateGetFindings,
|
|
917
|
+
paginateListFindingsMetrics,
|
|
918
|
+
paginateListScans,
|
|
919
|
+
};
|
|
909
920
|
class CodeGuruSecurity extends CodeGuruSecurityClient {
|
|
910
921
|
}
|
|
911
|
-
smithyClient.createAggregatedClient(commands, CodeGuruSecurity);
|
|
912
|
-
|
|
913
|
-
const paginateGetFindings = core.createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
914
|
-
|
|
915
|
-
const paginateListFindingsMetrics = core.createPaginator(CodeGuruSecurityClient, ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
916
|
-
|
|
917
|
-
const paginateListScans = core.createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
|
|
922
|
+
smithyClient.createAggregatedClient(commands, CodeGuruSecurity, { paginators });
|
|
918
923
|
|
|
919
924
|
const AnalysisType = {
|
|
920
925
|
ALL: "All",
|
|
@@ -13,6 +13,9 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
13
13
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
14
14
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
15
15
|
import { UpdateAccountConfigurationCommand, } from "./commands/UpdateAccountConfigurationCommand";
|
|
16
|
+
import { paginateGetFindings } from "./pagination/GetFindingsPaginator";
|
|
17
|
+
import { paginateListFindingsMetrics } from "./pagination/ListFindingsMetricsPaginator";
|
|
18
|
+
import { paginateListScans } from "./pagination/ListScansPaginator";
|
|
16
19
|
const commands = {
|
|
17
20
|
BatchGetFindingsCommand,
|
|
18
21
|
CreateScanCommand,
|
|
@@ -28,6 +31,11 @@ const commands = {
|
|
|
28
31
|
UntagResourceCommand,
|
|
29
32
|
UpdateAccountConfigurationCommand,
|
|
30
33
|
};
|
|
34
|
+
const paginators = {
|
|
35
|
+
paginateGetFindings,
|
|
36
|
+
paginateListFindingsMetrics,
|
|
37
|
+
paginateListScans,
|
|
38
|
+
};
|
|
31
39
|
export class CodeGuruSecurity extends CodeGuruSecurityClient {
|
|
32
40
|
}
|
|
33
|
-
createAggregatedClient(commands, CodeGuruSecurity);
|
|
41
|
+
createAggregatedClient(commands, CodeGuruSecurity, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CodeGuruSecurityClient } from "./CodeGuruSecurityClient";
|
|
3
3
|
import { BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput } from "./commands/BatchGetFindingsCommand";
|
|
4
4
|
import { CreateScanCommandInput, CreateScanCommandOutput } from "./commands/CreateScanCommand";
|
|
@@ -94,6 +94,27 @@ export interface CodeGuruSecurity {
|
|
|
94
94
|
updateAccountConfiguration(args: UpdateAccountConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountConfigurationCommandOutput>;
|
|
95
95
|
updateAccountConfiguration(args: UpdateAccountConfigurationCommandInput, cb: (err: any, data?: UpdateAccountConfigurationCommandOutput) => void): void;
|
|
96
96
|
updateAccountConfiguration(args: UpdateAccountConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccountConfigurationCommandOutput) => void): void;
|
|
97
|
+
/**
|
|
98
|
+
* @see {@link GetFindingsCommand}
|
|
99
|
+
* @param args - command input.
|
|
100
|
+
* @param paginationConfig - optional pagination config.
|
|
101
|
+
* @returns AsyncIterable of {@link GetFindingsCommandOutput}.
|
|
102
|
+
*/
|
|
103
|
+
paginateGetFindings(args: GetFindingsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetFindingsCommandOutput>;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link ListFindingsMetricsCommand}
|
|
106
|
+
* @param args - command input.
|
|
107
|
+
* @param paginationConfig - optional pagination config.
|
|
108
|
+
* @returns AsyncIterable of {@link ListFindingsMetricsCommandOutput}.
|
|
109
|
+
*/
|
|
110
|
+
paginateListFindingsMetrics(args: ListFindingsMetricsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFindingsMetricsCommandOutput>;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link ListScansCommand}
|
|
113
|
+
* @param args - command input.
|
|
114
|
+
* @param paginationConfig - optional pagination config.
|
|
115
|
+
* @returns AsyncIterable of {@link ListScansCommandOutput}.
|
|
116
|
+
*/
|
|
117
|
+
paginateListScans(args?: ListScansCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListScansCommandOutput>;
|
|
97
118
|
}
|
|
98
119
|
/**
|
|
99
120
|
* <note> <p>On November 20, 2025, AWS will discontinue support for Amazon CodeGuru Security. After November 20, 2025, you will no longer be able to access the /codeguru/security console, service resources, or documentation. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/security-ug/end-of-support.html">https://docs.aws.amazon.com/codeguru/latest/security-ug/end-of-support.html</a>.</p> </note> <p>This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.</p> <p>By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the <a href="https://docs.aws.amazon.com/codeguru/latest/security-ug/what-is-codeguru-security.html">Amazon CodeGuru Security User Guide</a>. </p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import { CodeGuruSecurityClient } from "./CodeGuruSecurityClient";
|
|
3
7
|
import {
|
|
4
8
|
BatchGetFindingsCommandInput,
|
|
@@ -224,6 +228,27 @@ export interface CodeGuruSecurity {
|
|
|
224
228
|
options: __HttpHandlerOptions,
|
|
225
229
|
cb: (err: any, data?: UpdateAccountConfigurationCommandOutput) => void
|
|
226
230
|
): void;
|
|
231
|
+
paginateGetFindings(
|
|
232
|
+
args: GetFindingsCommandInput,
|
|
233
|
+
paginationConfig?: Pick<
|
|
234
|
+
PaginationConfiguration,
|
|
235
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
236
|
+
>
|
|
237
|
+
): Paginator<GetFindingsCommandOutput>;
|
|
238
|
+
paginateListFindingsMetrics(
|
|
239
|
+
args: ListFindingsMetricsCommandInput,
|
|
240
|
+
paginationConfig?: Pick<
|
|
241
|
+
PaginationConfiguration,
|
|
242
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
243
|
+
>
|
|
244
|
+
): Paginator<ListFindingsMetricsCommandOutput>;
|
|
245
|
+
paginateListScans(
|
|
246
|
+
args?: ListScansCommandInput,
|
|
247
|
+
paginationConfig?: Pick<
|
|
248
|
+
PaginationConfiguration,
|
|
249
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
250
|
+
>
|
|
251
|
+
): Paginator<ListScansCommandOutput>;
|
|
227
252
|
}
|
|
228
253
|
export declare class CodeGuruSecurity
|
|
229
254
|
extends CodeGuruSecurityClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeguru-security",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeguru Security Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codeguru-security",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|