@aws-sdk/client-codeguru-security 3.477.0 → 3.481.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.
Files changed (69) hide show
  1. package/dist-cjs/commands/BatchGetFindingsCommand.js +18 -41
  2. package/dist-cjs/commands/CreateScanCommand.js +18 -41
  3. package/dist-cjs/commands/CreateUploadUrlCommand.js +18 -41
  4. package/dist-cjs/commands/GetAccountConfigurationCommand.js +18 -41
  5. package/dist-cjs/commands/GetFindingsCommand.js +18 -41
  6. package/dist-cjs/commands/GetMetricsSummaryCommand.js +18 -41
  7. package/dist-cjs/commands/GetScanCommand.js +18 -41
  8. package/dist-cjs/commands/ListFindingsMetricsCommand.js +18 -41
  9. package/dist-cjs/commands/ListScansCommand.js +18 -41
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  11. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  12. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UpdateAccountConfigurationCommand.js +18 -41
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-cjs/pagination/GetFindingsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListFindingsMetricsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListScansPaginator.js +2 -24
  18. package/dist-es/commands/BatchGetFindingsCommand.js +18 -41
  19. package/dist-es/commands/CreateScanCommand.js +18 -41
  20. package/dist-es/commands/CreateUploadUrlCommand.js +18 -41
  21. package/dist-es/commands/GetAccountConfigurationCommand.js +18 -41
  22. package/dist-es/commands/GetFindingsCommand.js +18 -41
  23. package/dist-es/commands/GetMetricsSummaryCommand.js +18 -41
  24. package/dist-es/commands/GetScanCommand.js +18 -41
  25. package/dist-es/commands/ListFindingsMetricsCommand.js +18 -41
  26. package/dist-es/commands/ListScansCommand.js +18 -41
  27. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  28. package/dist-es/commands/TagResourceCommand.js +18 -41
  29. package/dist-es/commands/UntagResourceCommand.js +18 -41
  30. package/dist-es/commands/UpdateAccountConfigurationCommand.js +18 -41
  31. package/dist-es/endpoint/EndpointParameters.js +6 -0
  32. package/dist-es/pagination/GetFindingsPaginator.js +2 -23
  33. package/dist-es/pagination/ListFindingsMetricsPaginator.js +2 -23
  34. package/dist-es/pagination/ListScansPaginator.js +2 -23
  35. package/dist-types/commands/BatchGetFindingsCommand.d.ts +6 -21
  36. package/dist-types/commands/CreateScanCommand.d.ts +6 -21
  37. package/dist-types/commands/CreateUploadUrlCommand.d.ts +6 -21
  38. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +6 -21
  39. package/dist-types/commands/GetFindingsCommand.d.ts +6 -21
  40. package/dist-types/commands/GetMetricsSummaryCommand.d.ts +6 -21
  41. package/dist-types/commands/GetScanCommand.d.ts +6 -21
  42. package/dist-types/commands/ListFindingsMetricsCommand.d.ts +6 -21
  43. package/dist-types/commands/ListScansCommand.d.ts +6 -21
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  45. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  46. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  47. package/dist-types/commands/UpdateAccountConfigurationCommand.d.ts +6 -21
  48. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  49. package/dist-types/pagination/GetFindingsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListFindingsMetricsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListScansPaginator.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/CreateScanCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/CreateUploadUrlCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/GetAccountConfigurationCommand.d.ts +12 -24
  56. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/GetMetricsSummaryCommand.d.ts +14 -23
  58. package/dist-types/ts3.4/commands/GetScanCommand.d.ts +12 -23
  59. package/dist-types/ts3.4/commands/ListFindingsMetricsCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/ListScansCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/UpdateAccountConfigurationCommand.d.ts +12 -24
  65. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  66. package/dist-types/ts3.4/pagination/GetFindingsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListFindingsMetricsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListScansPaginator.d.ts +3 -3
  69. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateAccountConfigurationCommand, se_UpdateAccountConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateAccountConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAccountConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeGuruSecurityClient";
26
- const commandName = "UpdateAccountConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AwsCodeGuruSecurity",
35
- operation: "UpdateAccountConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateAccountConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateAccountConfigurationCommand(output, context);
46
- }
7
+ export class UpdateAccountConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AwsCodeGuruSecurity", "UpdateAccountConfiguration", {})
19
+ .n("CodeGuruSecurityClient", "UpdateAccountConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateAccountConfigurationCommand)
22
+ .de(de_UpdateAccountConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "codeguru-security",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruSecurityClient } from "../CodeGuruSecurityClient";
2
3
  import { GetFindingsCommand } from "../commands/GetFindingsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetFindingsCommand(input), ...args);
5
- };
6
- export async function* paginateGetFindings(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeGuruSecurityClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruSecurity | CodeGuruSecurityClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetFindings = createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruSecurityClient } from "../CodeGuruSecurityClient";
2
3
  import { ListFindingsMetricsCommand, } from "../commands/ListFindingsMetricsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFindingsMetricsCommand(input), ...args);
5
- };
6
- export async function* paginateListFindingsMetrics(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeGuruSecurityClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruSecurity | CodeGuruSecurityClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFindingsMetrics = createPaginator(CodeGuruSecurityClient, ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruSecurityClient } from "../CodeGuruSecurityClient";
2
3
  import { ListScansCommand } from "../commands/ListScansCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListScansCommand(input), ...args);
5
- };
6
- export async function* paginateListScans(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeGuruSecurityClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruSecurity | CodeGuruSecurityClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListScans = createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { BatchGetFindingsRequest, BatchGetFindingsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface BatchGetFindingsCommandInput extends BatchGetFindingsRequest {
21
20
  */
22
21
  export interface BatchGetFindingsCommandOutput extends BatchGetFindingsResponse, __MetadataBearer {
23
22
  }
23
+ declare const BatchGetFindingsCommand_base: {
24
+ new (input: BatchGetFindingsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns a list of all requested findings.</p>
@@ -132,23 +135,5 @@ export interface BatchGetFindingsCommandOutput extends BatchGetFindingsResponse,
132
135
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
133
136
  *
134
137
  */
135
- export declare class BatchGetFindingsCommand extends $Command<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig> {
136
- readonly input: BatchGetFindingsCommandInput;
137
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
138
- /**
139
- * @public
140
- */
141
- constructor(input: BatchGetFindingsCommandInput);
142
- /**
143
- * @internal
144
- */
145
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput>;
146
- /**
147
- * @internal
148
- */
149
- private serialize;
150
- /**
151
- * @internal
152
- */
153
- private deserialize;
138
+ export declare class BatchGetFindingsCommand extends BatchGetFindingsCommand_base {
154
139
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { CreateScanRequest, CreateScanResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateScanCommandInput extends CreateScanRequest {
21
20
  */
22
21
  export interface CreateScanCommandOutput extends CreateScanResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateScanCommand_base: {
24
+ new (input: CreateScanCommandInput): import("@smithy/smithy-client").CommandImpl<CreateScanCommandInput, CreateScanCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use to create a scan using code uploaded to an S3 bucket.</p>
@@ -86,23 +89,5 @@ export interface CreateScanCommandOutput extends CreateScanResponse, __MetadataB
86
89
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
87
90
  *
88
91
  */
89
- export declare class CreateScanCommand extends $Command<CreateScanCommandInput, CreateScanCommandOutput, CodeGuruSecurityClientResolvedConfig> {
90
- readonly input: CreateScanCommandInput;
91
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
92
- /**
93
- * @public
94
- */
95
- constructor(input: CreateScanCommandInput);
96
- /**
97
- * @internal
98
- */
99
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateScanCommandInput, CreateScanCommandOutput>;
100
- /**
101
- * @internal
102
- */
103
- private serialize;
104
- /**
105
- * @internal
106
- */
107
- private deserialize;
92
+ export declare class CreateScanCommand extends CreateScanCommand_base {
108
93
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { CreateUploadUrlRequest, CreateUploadUrlResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateUploadUrlCommandInput extends CreateUploadUrlRequest {
21
20
  */
22
21
  export interface CreateUploadUrlCommandOutput extends CreateUploadUrlResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateUploadUrlCommand_base: {
24
+ new (input: CreateUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Generates a pre-signed URL and request headers used to upload a code resource.</p>
@@ -69,23 +72,5 @@ export interface CreateUploadUrlCommandOutput extends CreateUploadUrlResponse, _
69
72
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
70
73
  *
71
74
  */
72
- export declare class CreateUploadUrlCommand extends $Command<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, CodeGuruSecurityClientResolvedConfig> {
73
- readonly input: CreateUploadUrlCommandInput;
74
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
75
- /**
76
- * @public
77
- */
78
- constructor(input: CreateUploadUrlCommandInput);
79
- /**
80
- * @internal
81
- */
82
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput>;
83
- /**
84
- * @internal
85
- */
86
- private serialize;
87
- /**
88
- * @internal
89
- */
90
- private deserialize;
75
+ export declare class CreateUploadUrlCommand extends CreateUploadUrlCommand_base {
91
76
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { GetAccountConfigurationRequest, GetAccountConfigurationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetAccountConfigurationCommandInput extends GetAccountConfigura
21
20
  */
22
21
  export interface GetAccountConfigurationCommandOutput extends GetAccountConfigurationResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetAccountConfigurationCommand_base: {
24
+ new (input: GetAccountConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use to get account level configuration.</p>
@@ -63,23 +66,5 @@ export interface GetAccountConfigurationCommandOutput extends GetAccountConfigur
63
66
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
64
67
  *
65
68
  */
66
- export declare class GetAccountConfigurationCommand extends $Command<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, CodeGuruSecurityClientResolvedConfig> {
67
- readonly input: GetAccountConfigurationCommandInput;
68
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
69
- /**
70
- * @public
71
- */
72
- constructor(input: GetAccountConfigurationCommandInput);
73
- /**
74
- * @internal
75
- */
76
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput>;
77
- /**
78
- * @internal
79
- */
80
- private serialize;
81
- /**
82
- * @internal
83
- */
84
- private deserialize;
69
+ export declare class GetAccountConfigurationCommand extends GetAccountConfigurationCommand_base {
85
70
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { GetFindingsRequest, GetFindingsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetFindingsCommandInput extends GetFindingsRequest {
21
20
  */
22
21
  export interface GetFindingsCommandOutput extends GetFindingsResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetFindingsCommand_base: {
24
+ new (input: GetFindingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingsCommandInput, GetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns a list of all findings generated by a particular scan.</p>
@@ -131,23 +134,5 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat
131
134
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
132
135
  *
133
136
  */
134
- export declare class GetFindingsCommand extends $Command<GetFindingsCommandInput, GetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig> {
135
- readonly input: GetFindingsCommandInput;
136
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
137
- /**
138
- * @public
139
- */
140
- constructor(input: GetFindingsCommandInput);
141
- /**
142
- * @internal
143
- */
144
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetFindingsCommandInput, GetFindingsCommandOutput>;
145
- /**
146
- * @internal
147
- */
148
- private serialize;
149
- /**
150
- * @internal
151
- */
152
- private deserialize;
137
+ export declare class GetFindingsCommand extends GetFindingsCommand_base {
153
138
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { GetMetricsSummaryRequest, GetMetricsSummaryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetMetricsSummaryCommandInput extends GetMetricsSummaryRequest
21
20
  */
22
21
  export interface GetMetricsSummaryCommandOutput extends GetMetricsSummaryResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetMetricsSummaryCommand_base: {
24
+ new (input: GetMetricsSummaryCommandInput): import("@smithy/smithy-client").CommandImpl<GetMetricsSummaryCommandInput, GetMetricsSummaryCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns top level metrics about an account from a specified date, including number of open
@@ -92,23 +95,5 @@ export interface GetMetricsSummaryCommandOutput extends GetMetricsSummaryRespons
92
95
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
93
96
  *
94
97
  */
95
- export declare class GetMetricsSummaryCommand extends $Command<GetMetricsSummaryCommandInput, GetMetricsSummaryCommandOutput, CodeGuruSecurityClientResolvedConfig> {
96
- readonly input: GetMetricsSummaryCommandInput;
97
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
- /**
99
- * @public
100
- */
101
- constructor(input: GetMetricsSummaryCommandInput);
102
- /**
103
- * @internal
104
- */
105
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetMetricsSummaryCommandInput, GetMetricsSummaryCommandOutput>;
106
- /**
107
- * @internal
108
- */
109
- private serialize;
110
- /**
111
- * @internal
112
- */
113
- private deserialize;
98
+ export declare class GetMetricsSummaryCommand extends GetMetricsSummaryCommand_base {
114
99
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { GetScanRequest, GetScanResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetScanCommandInput extends GetScanRequest {
21
20
  */
22
21
  export interface GetScanCommandOutput extends GetScanResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetScanCommand_base: {
24
+ new (input: GetScanCommandInput): import("@smithy/smithy-client").CommandImpl<GetScanCommandInput, GetScanCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns details about a scan, including whether or not a scan has completed.</p>
@@ -71,23 +74,5 @@ export interface GetScanCommandOutput extends GetScanResponse, __MetadataBearer
71
74
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
72
75
  *
73
76
  */
74
- export declare class GetScanCommand extends $Command<GetScanCommandInput, GetScanCommandOutput, CodeGuruSecurityClientResolvedConfig> {
75
- readonly input: GetScanCommandInput;
76
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
77
- /**
78
- * @public
79
- */
80
- constructor(input: GetScanCommandInput);
81
- /**
82
- * @internal
83
- */
84
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetScanCommandInput, GetScanCommandOutput>;
85
- /**
86
- * @internal
87
- */
88
- private serialize;
89
- /**
90
- * @internal
91
- */
92
- private deserialize;
77
+ export declare class GetScanCommand extends GetScanCommand_base {
93
78
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { ListFindingsMetricsRequest, ListFindingsMetricsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ListFindingsMetricsCommandInput extends ListFindingsMetricsRequ
21
20
  */
22
21
  export interface ListFindingsMetricsCommandOutput extends ListFindingsMetricsResponse, __MetadataBearer {
23
22
  }
23
+ declare const ListFindingsMetricsCommand_base: {
24
+ new (input: ListFindingsMetricsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFindingsMetricsCommandInput, ListFindingsMetricsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns metrics about all findings in an account within a specified time range.</p>
@@ -99,23 +102,5 @@ export interface ListFindingsMetricsCommandOutput extends ListFindingsMetricsRes
99
102
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
100
103
  *
101
104
  */
102
- export declare class ListFindingsMetricsCommand extends $Command<ListFindingsMetricsCommandInput, ListFindingsMetricsCommandOutput, CodeGuruSecurityClientResolvedConfig> {
103
- readonly input: ListFindingsMetricsCommandInput;
104
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
105
- /**
106
- * @public
107
- */
108
- constructor(input: ListFindingsMetricsCommandInput);
109
- /**
110
- * @internal
111
- */
112
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListFindingsMetricsCommandInput, ListFindingsMetricsCommandOutput>;
113
- /**
114
- * @internal
115
- */
116
- private serialize;
117
- /**
118
- * @internal
119
- */
120
- private deserialize;
105
+ export declare class ListFindingsMetricsCommand extends ListFindingsMetricsCommand_base {
121
106
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { ListScansRequest, ListScansResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ListScansCommandInput extends ListScansRequest {
21
20
  */
22
21
  export interface ListScansCommandOutput extends ListScansResponse, __MetadataBearer {
23
22
  }
23
+ declare const ListScansCommand_base: {
24
+ new (input: ListScansCommandInput): import("@smithy/smithy-client").CommandImpl<ListScansCommandInput, ListScansCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns a list of all the standard scans in an account. Does not return express
@@ -75,23 +78,5 @@ export interface ListScansCommandOutput extends ListScansResponse, __MetadataBea
75
78
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
76
79
  *
77
80
  */
78
- export declare class ListScansCommand extends $Command<ListScansCommandInput, ListScansCommandOutput, CodeGuruSecurityClientResolvedConfig> {
79
- readonly input: ListScansCommandInput;
80
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
81
- /**
82
- * @public
83
- */
84
- constructor(input: ListScansCommandInput);
85
- /**
86
- * @internal
87
- */
88
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListScansCommandInput, ListScansCommandOutput>;
89
- /**
90
- * @internal
91
- */
92
- private serialize;
93
- /**
94
- * @internal
95
- */
96
- private deserialize;
81
+ export declare class ListScansCommand extends ListScansCommand_base {
97
82
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequ
21
20
  */
22
21
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
22
  }
23
+ declare const ListTagsForResourceCommand_base: {
24
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns a list of all tags associated with a scan.</p>
@@ -73,23 +76,5 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
73
76
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
74
77
  *
75
78
  */
76
- export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CodeGuruSecurityClientResolvedConfig> {
77
- readonly input: ListTagsForResourceCommandInput;
78
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
- /**
80
- * @public
81
- */
82
- constructor(input: ListTagsForResourceCommandInput);
83
- /**
84
- * @internal
85
- */
86
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
87
- /**
88
- * @internal
89
- */
90
- private serialize;
91
- /**
92
- * @internal
93
- */
94
- private deserialize;
79
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
95
80
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
4
  import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface TagResourceCommandInput extends TagResourceRequest {
21
20
  */
22
21
  export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
23
22
  }
23
+ declare const TagResourceCommand_base: {
24
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use to add one or more tags to an existing scan.</p>
@@ -72,23 +75,5 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
72
75
  * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
73
76
  *
74
77
  */
75
- export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, CodeGuruSecurityClientResolvedConfig> {
76
- readonly input: TagResourceCommandInput;
77
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
- /**
79
- * @public
80
- */
81
- constructor(input: TagResourceCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruSecurityClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
78
+ export declare class TagResourceCommand extends TagResourceCommand_base {
94
79
  }