@aws-sdk/client-codeguru-security 3.352.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 (135) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +316 -0
  3. package/dist-cjs/CodeGuruSecurity.js +37 -0
  4. package/dist-cjs/CodeGuruSecurityClient.js +41 -0
  5. package/dist-cjs/commands/BatchGetFindingsCommand.js +46 -0
  6. package/dist-cjs/commands/CreateScanCommand.js +46 -0
  7. package/dist-cjs/commands/CreateUploadUrlCommand.js +47 -0
  8. package/dist-cjs/commands/GetAccountConfigurationCommand.js +46 -0
  9. package/dist-cjs/commands/GetFindingsCommand.js +46 -0
  10. package/dist-cjs/commands/GetMetricsSummaryCommand.js +46 -0
  11. package/dist-cjs/commands/GetScanCommand.js +46 -0
  12. package/dist-cjs/commands/ListFindingsMetricsCommand.js +46 -0
  13. package/dist-cjs/commands/ListScansCommand.js +46 -0
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  15. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  16. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  17. package/dist-cjs/commands/UpdateAccountConfigurationCommand.js +46 -0
  18. package/dist-cjs/commands/index.js +16 -0
  19. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  20. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  21. package/dist-cjs/endpoint/ruleset.js +7 -0
  22. package/dist-cjs/index.js +11 -0
  23. package/dist-cjs/models/CodeGuruSecurityServiceException.js +12 -0
  24. package/dist-cjs/models/index.js +4 -0
  25. package/dist-cjs/models/models_0.js +156 -0
  26. package/dist-cjs/pagination/GetFindingsPaginator.js +29 -0
  27. package/dist-cjs/pagination/Interfaces.js +2 -0
  28. package/dist-cjs/pagination/ListFindingsMetricsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListScansPaginator.js +29 -0
  30. package/dist-cjs/pagination/index.js +7 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1131 -0
  32. package/dist-cjs/runtimeConfig.browser.js +39 -0
  33. package/dist-cjs/runtimeConfig.js +48 -0
  34. package/dist-cjs/runtimeConfig.native.js +15 -0
  35. package/dist-cjs/runtimeConfig.shared.js +21 -0
  36. package/dist-es/CodeGuruSecurity.js +33 -0
  37. package/dist-es/CodeGuruSecurityClient.js +37 -0
  38. package/dist-es/commands/BatchGetFindingsCommand.js +42 -0
  39. package/dist-es/commands/CreateScanCommand.js +42 -0
  40. package/dist-es/commands/CreateUploadUrlCommand.js +43 -0
  41. package/dist-es/commands/GetAccountConfigurationCommand.js +42 -0
  42. package/dist-es/commands/GetFindingsCommand.js +42 -0
  43. package/dist-es/commands/GetMetricsSummaryCommand.js +42 -0
  44. package/dist-es/commands/GetScanCommand.js +42 -0
  45. package/dist-es/commands/ListFindingsMetricsCommand.js +42 -0
  46. package/dist-es/commands/ListScansCommand.js +42 -0
  47. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  48. package/dist-es/commands/TagResourceCommand.js +42 -0
  49. package/dist-es/commands/UntagResourceCommand.js +42 -0
  50. package/dist-es/commands/UpdateAccountConfigurationCommand.js +42 -0
  51. package/dist-es/commands/index.js +13 -0
  52. package/dist-es/endpoint/EndpointParameters.js +8 -0
  53. package/dist-es/endpoint/endpointResolver.js +8 -0
  54. package/dist-es/endpoint/ruleset.js +4 -0
  55. package/dist-es/index.js +6 -0
  56. package/dist-es/models/CodeGuruSecurityServiceException.js +8 -0
  57. package/dist-es/models/index.js +1 -0
  58. package/dist-es/models/models_0.js +146 -0
  59. package/dist-es/pagination/GetFindingsPaginator.js +25 -0
  60. package/dist-es/pagination/Interfaces.js +1 -0
  61. package/dist-es/pagination/ListFindingsMetricsPaginator.js +25 -0
  62. package/dist-es/pagination/ListScansPaginator.js +25 -0
  63. package/dist-es/pagination/index.js +4 -0
  64. package/dist-es/protocols/Aws_restJson1.js +1102 -0
  65. package/dist-es/runtimeConfig.browser.js +34 -0
  66. package/dist-es/runtimeConfig.js +43 -0
  67. package/dist-es/runtimeConfig.native.js +11 -0
  68. package/dist-es/runtimeConfig.shared.js +17 -0
  69. package/dist-types/CodeGuruSecurity.d.ts +108 -0
  70. package/dist-types/CodeGuruSecurityClient.d.ts +182 -0
  71. package/dist-types/commands/BatchGetFindingsCommand.d.ts +154 -0
  72. package/dist-types/commands/CreateScanCommand.d.ts +108 -0
  73. package/dist-types/commands/CreateUploadUrlCommand.d.ts +91 -0
  74. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +85 -0
  75. package/dist-types/commands/GetFindingsCommand.d.ts +153 -0
  76. package/dist-types/commands/GetMetricsSummaryCommand.d.ts +114 -0
  77. package/dist-types/commands/GetScanCommand.d.ts +93 -0
  78. package/dist-types/commands/ListFindingsMetricsCommand.d.ts +121 -0
  79. package/dist-types/commands/ListScansCommand.d.ts +96 -0
  80. package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
  81. package/dist-types/commands/TagResourceCommand.d.ts +94 -0
  82. package/dist-types/commands/UntagResourceCommand.d.ts +94 -0
  83. package/dist-types/commands/UpdateAccountConfigurationCommand.d.ts +92 -0
  84. package/dist-types/commands/index.d.ts +13 -0
  85. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  86. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  87. package/dist-types/endpoint/ruleset.d.ts +2 -0
  88. package/dist-types/index.d.ts +18 -0
  89. package/dist-types/models/CodeGuruSecurityServiceException.d.ts +13 -0
  90. package/dist-types/models/index.d.ts +1 -0
  91. package/dist-types/models/models_0.d.ts +1114 -0
  92. package/dist-types/pagination/GetFindingsPaginator.d.ts +7 -0
  93. package/dist-types/pagination/Interfaces.d.ts +8 -0
  94. package/dist-types/pagination/ListFindingsMetricsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/ListScansPaginator.d.ts +7 -0
  96. package/dist-types/pagination/index.d.ts +4 -0
  97. package/dist-types/protocols/Aws_restJson1.d.ts +119 -0
  98. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  99. package/dist-types/runtimeConfig.d.ts +42 -0
  100. package/dist-types/runtimeConfig.native.d.ts +41 -0
  101. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  102. package/dist-types/ts3.4/CodeGuruSecurity.d.ts +228 -0
  103. package/dist-types/ts3.4/CodeGuruSecurityClient.d.ts +193 -0
  104. package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +38 -0
  105. package/dist-types/ts3.4/commands/CreateScanCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/CreateUploadUrlCommand.d.ts +38 -0
  107. package/dist-types/ts3.4/commands/GetAccountConfigurationCommand.d.ts +42 -0
  108. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +35 -0
  109. package/dist-types/ts3.4/commands/GetMetricsSummaryCommand.d.ts +39 -0
  110. package/dist-types/ts3.4/commands/GetScanCommand.d.ts +35 -0
  111. package/dist-types/ts3.4/commands/ListFindingsMetricsCommand.d.ts +39 -0
  112. package/dist-types/ts3.4/commands/ListScansCommand.d.ts +35 -0
  113. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  114. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  116. package/dist-types/ts3.4/commands/UpdateAccountConfigurationCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  118. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  119. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  120. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  121. package/dist-types/ts3.4/index.d.ts +6 -0
  122. package/dist-types/ts3.4/models/CodeGuruSecurityServiceException.d.ts +8 -0
  123. package/dist-types/ts3.4/models/index.d.ts +1 -0
  124. package/dist-types/ts3.4/models/models_0.d.ts +340 -0
  125. package/dist-types/ts3.4/pagination/GetFindingsPaginator.d.ts +11 -0
  126. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  127. package/dist-types/ts3.4/pagination/ListFindingsMetricsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListScansPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  130. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
  131. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  132. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  133. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  134. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  135. package/package.json +101 -0
@@ -0,0 +1,108 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { CreateScanRequest, CreateScanResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateScanCommand}.
14
+ */
15
+ export interface CreateScanCommandInput extends CreateScanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateScanCommand}.
21
+ */
22
+ export interface CreateScanCommandOutput extends CreateScanResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Use to create a scan using code uploaded to an S3 bucket.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeGuruSecurityClient, CreateScanCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
31
+ * // const { CodeGuruSecurityClient, CreateScanCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
32
+ * const client = new CodeGuruSecurityClient(config);
33
+ * const input = { // CreateScanRequest
34
+ * clientToken: "STRING_VALUE",
35
+ * resourceId: { // ResourceId Union: only one key present
36
+ * codeArtifactId: "STRING_VALUE",
37
+ * },
38
+ * scanName: "STRING_VALUE", // required
39
+ * scanType: "Standard" || "Express",
40
+ * analysisType: "Security" || "All",
41
+ * tags: { // TagMap
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * };
45
+ * const command = new CreateScanCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // CreateScanResponse
48
+ * // scanName: "STRING_VALUE", // required
49
+ * // runId: "STRING_VALUE", // required
50
+ * // resourceId: { // ResourceId Union: only one key present
51
+ * // codeArtifactId: "STRING_VALUE",
52
+ * // },
53
+ * // scanState: "InProgress" || "Successful" || "Failed", // required
54
+ * // scanNameArn: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param CreateScanCommandInput - {@link CreateScanCommandInput}
60
+ * @returns {@link CreateScanCommandOutput}
61
+ * @see {@link CreateScanCommandInput} for command's `input` shape.
62
+ * @see {@link CreateScanCommandOutput} for command's `response` shape.
63
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have sufficient access to perform this action.</p>
67
+ *
68
+ * @throws {@link ConflictException} (client fault)
69
+ * <p>The requested operation would cause a conflict with the current state of a service
70
+ * resource associated with the request. Resolve the conflict before retrying this
71
+ * request.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The resource specified in the request was not found.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The request was denied due to request throttling.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The input fails to satisfy the specified constraints.</p>
84
+ *
85
+ * @throws {@link CodeGuruSecurityServiceException}
86
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
87
+ *
88
+ */
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;
108
+ }
@@ -0,0 +1,91 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { CreateUploadUrlRequest, CreateUploadUrlResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateUploadUrlCommand}.
14
+ */
15
+ export interface CreateUploadUrlCommandInput extends CreateUploadUrlRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateUploadUrlCommand}.
21
+ */
22
+ export interface CreateUploadUrlCommandOutput extends CreateUploadUrlResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Generates a pre-signed URL and request headers used to upload a code resource.</p>
27
+ * <p>You can upload your code resource to the URL and add the request headers using any HTTP
28
+ * client.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { CodeGuruSecurityClient, CreateUploadUrlCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
33
+ * // const { CodeGuruSecurityClient, CreateUploadUrlCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
34
+ * const client = new CodeGuruSecurityClient(config);
35
+ * const input = { // CreateUploadUrlRequest
36
+ * scanName: "STRING_VALUE", // required
37
+ * };
38
+ * const command = new CreateUploadUrlCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // CreateUploadUrlResponse
41
+ * // s3Url: "STRING_VALUE", // required
42
+ * // requestHeaders: { // RequestHeaderMap // required
43
+ * // "<keys>": "STRING_VALUE",
44
+ * // },
45
+ * // codeArtifactId: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param CreateUploadUrlCommandInput - {@link CreateUploadUrlCommandInput}
51
+ * @returns {@link CreateUploadUrlCommandOutput}
52
+ * @see {@link CreateUploadUrlCommandInput} for command's `input` shape.
53
+ * @see {@link CreateUploadUrlCommandOutput} for command's `response` shape.
54
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient access to perform this action.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>The request was denied due to request throttling.</p>
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ * <p>The input fails to satisfy the specified constraints.</p>
67
+ *
68
+ * @throws {@link CodeGuruSecurityServiceException}
69
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
70
+ *
71
+ */
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;
91
+ }
@@ -0,0 +1,85 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { GetAccountConfigurationRequest, GetAccountConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAccountConfigurationCommand}.
14
+ */
15
+ export interface GetAccountConfigurationCommandInput extends GetAccountConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAccountConfigurationCommand}.
21
+ */
22
+ export interface GetAccountConfigurationCommandOutput extends GetAccountConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Use to get account level configuration.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeGuruSecurityClient, GetAccountConfigurationCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
31
+ * // const { CodeGuruSecurityClient, GetAccountConfigurationCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
32
+ * const client = new CodeGuruSecurityClient(config);
33
+ * const input = {};
34
+ * const command = new GetAccountConfigurationCommand(input);
35
+ * const response = await client.send(command);
36
+ * // { // GetAccountConfigurationResponse
37
+ * // encryptionConfig: { // EncryptionConfig
38
+ * // kmsKeyArn: "STRING_VALUE",
39
+ * // },
40
+ * // };
41
+ *
42
+ * ```
43
+ *
44
+ * @param GetAccountConfigurationCommandInput - {@link GetAccountConfigurationCommandInput}
45
+ * @returns {@link GetAccountConfigurationCommandOutput}
46
+ * @see {@link GetAccountConfigurationCommandInput} for command's `input` shape.
47
+ * @see {@link GetAccountConfigurationCommandOutput} for command's `response` shape.
48
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
49
+ *
50
+ * @throws {@link AccessDeniedException} (client fault)
51
+ * <p>You do not have sufficient access to perform this action.</p>
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
55
+ *
56
+ * @throws {@link ThrottlingException} (client fault)
57
+ * <p>The request was denied due to request throttling.</p>
58
+ *
59
+ * @throws {@link ValidationException} (client fault)
60
+ * <p>The input fails to satisfy the specified constraints.</p>
61
+ *
62
+ * @throws {@link CodeGuruSecurityServiceException}
63
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
64
+ *
65
+ */
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;
85
+ }
@@ -0,0 +1,153 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { GetFindingsRequest, GetFindingsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetFindingsCommand}.
14
+ */
15
+ export interface GetFindingsCommandInput extends GetFindingsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetFindingsCommand}.
21
+ */
22
+ export interface GetFindingsCommandOutput extends GetFindingsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a list of all findings generated by a particular scan.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeGuruSecurityClient, GetFindingsCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
31
+ * // const { CodeGuruSecurityClient, GetFindingsCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
32
+ * const client = new CodeGuruSecurityClient(config);
33
+ * const input = { // GetFindingsRequest
34
+ * scanName: "STRING_VALUE", // required
35
+ * nextToken: "STRING_VALUE",
36
+ * maxResults: Number("int"),
37
+ * status: "Closed" || "Open" || "All",
38
+ * };
39
+ * const command = new GetFindingsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetFindingsResponse
42
+ * // findings: [ // Findings
43
+ * // { // Finding
44
+ * // createdAt: new Date("TIMESTAMP"),
45
+ * // description: "STRING_VALUE",
46
+ * // generatorId: "STRING_VALUE",
47
+ * // id: "STRING_VALUE",
48
+ * // updatedAt: new Date("TIMESTAMP"),
49
+ * // type: "STRING_VALUE",
50
+ * // status: "Closed" || "Open" || "All",
51
+ * // resource: { // Resource
52
+ * // id: "STRING_VALUE",
53
+ * // subResourceId: "STRING_VALUE",
54
+ * // },
55
+ * // vulnerability: { // Vulnerability
56
+ * // referenceUrls: [ // ReferenceUrls
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // relatedVulnerabilities: [ // RelatedVulnerabilities
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // id: "STRING_VALUE",
63
+ * // filePath: { // FilePath
64
+ * // name: "STRING_VALUE",
65
+ * // path: "STRING_VALUE",
66
+ * // startLine: Number("int"),
67
+ * // endLine: Number("int"),
68
+ * // codeSnippet: [ // CodeSnippet
69
+ * // { // CodeLine
70
+ * // number: Number("int"),
71
+ * // content: "STRING_VALUE",
72
+ * // },
73
+ * // ],
74
+ * // },
75
+ * // itemCount: Number("int"),
76
+ * // },
77
+ * // severity: "Critical" || "High" || "Medium" || "Low" || "Info",
78
+ * // remediation: { // Remediation
79
+ * // recommendation: { // Recommendation
80
+ * // text: "STRING_VALUE",
81
+ * // url: "STRING_VALUE",
82
+ * // },
83
+ * // suggestedFixes: [ // SuggestedFixes
84
+ * // { // SuggestedFix
85
+ * // description: "STRING_VALUE",
86
+ * // code: "STRING_VALUE",
87
+ * // },
88
+ * // ],
89
+ * // },
90
+ * // title: "STRING_VALUE",
91
+ * // detectorTags: [ // DetectorTags
92
+ * // "STRING_VALUE",
93
+ * // ],
94
+ * // detectorId: "STRING_VALUE",
95
+ * // detectorName: "STRING_VALUE",
96
+ * // ruleId: "STRING_VALUE",
97
+ * // },
98
+ * // ],
99
+ * // nextToken: "STRING_VALUE",
100
+ * // };
101
+ *
102
+ * ```
103
+ *
104
+ * @param GetFindingsCommandInput - {@link GetFindingsCommandInput}
105
+ * @returns {@link GetFindingsCommandOutput}
106
+ * @see {@link GetFindingsCommandInput} for command's `input` shape.
107
+ * @see {@link GetFindingsCommandOutput} for command's `response` shape.
108
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
109
+ *
110
+ * @throws {@link AccessDeniedException} (client fault)
111
+ * <p>You do not have sufficient access to perform this action.</p>
112
+ *
113
+ * @throws {@link ConflictException} (client fault)
114
+ * <p>The requested operation would cause a conflict with the current state of a service
115
+ * resource associated with the request. Resolve the conflict before retrying this
116
+ * request.</p>
117
+ *
118
+ * @throws {@link InternalServerException} (server fault)
119
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
120
+ *
121
+ * @throws {@link ResourceNotFoundException} (client fault)
122
+ * <p>The resource specified in the request was not found.</p>
123
+ *
124
+ * @throws {@link ThrottlingException} (client fault)
125
+ * <p>The request was denied due to request throttling.</p>
126
+ *
127
+ * @throws {@link ValidationException} (client fault)
128
+ * <p>The input fails to satisfy the specified constraints.</p>
129
+ *
130
+ * @throws {@link CodeGuruSecurityServiceException}
131
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
132
+ *
133
+ */
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;
153
+ }
@@ -0,0 +1,114 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { GetMetricsSummaryRequest, GetMetricsSummaryResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetMetricsSummaryCommand}.
14
+ */
15
+ export interface GetMetricsSummaryCommandInput extends GetMetricsSummaryRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetMetricsSummaryCommand}.
21
+ */
22
+ export interface GetMetricsSummaryCommandOutput extends GetMetricsSummaryResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns top level metrics about an account from a specified date, including number of open
27
+ * findings, the categories with most findings, the scans with most open findings, and scans with
28
+ * most open critical findings. </p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { CodeGuruSecurityClient, GetMetricsSummaryCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
33
+ * // const { CodeGuruSecurityClient, GetMetricsSummaryCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
34
+ * const client = new CodeGuruSecurityClient(config);
35
+ * const input = { // GetMetricsSummaryRequest
36
+ * date: new Date("TIMESTAMP"), // required
37
+ * };
38
+ * const command = new GetMetricsSummaryCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // GetMetricsSummaryResponse
41
+ * // metricsSummary: { // MetricsSummary
42
+ * // date: new Date("TIMESTAMP"),
43
+ * // openFindings: { // FindingMetricsValuePerSeverity
44
+ * // info: Number("double"),
45
+ * // low: Number("double"),
46
+ * // medium: Number("double"),
47
+ * // high: Number("double"),
48
+ * // critical: Number("double"),
49
+ * // },
50
+ * // categoriesWithMostFindings: [ // CategoriesWithMostFindings
51
+ * // { // CategoryWithFindingNum
52
+ * // categoryName: "STRING_VALUE",
53
+ * // findingNumber: Number("int"),
54
+ * // },
55
+ * // ],
56
+ * // scansWithMostOpenFindings: [ // ScansWithMostOpenFindings
57
+ * // { // ScanNameWithFindingNum
58
+ * // scanName: "STRING_VALUE",
59
+ * // findingNumber: Number("int"),
60
+ * // },
61
+ * // ],
62
+ * // scansWithMostOpenCriticalFindings: [ // ScansWithMostOpenCriticalFindings
63
+ * // {
64
+ * // scanName: "STRING_VALUE",
65
+ * // findingNumber: Number("int"),
66
+ * // },
67
+ * // ],
68
+ * // },
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param GetMetricsSummaryCommandInput - {@link GetMetricsSummaryCommandInput}
74
+ * @returns {@link GetMetricsSummaryCommandOutput}
75
+ * @see {@link GetMetricsSummaryCommandInput} for command's `input` shape.
76
+ * @see {@link GetMetricsSummaryCommandOutput} for command's `response` shape.
77
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>You do not have sufficient access to perform this action.</p>
81
+ *
82
+ * @throws {@link InternalServerException} (server fault)
83
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
84
+ *
85
+ * @throws {@link ThrottlingException} (client fault)
86
+ * <p>The request was denied due to request throttling.</p>
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ * <p>The input fails to satisfy the specified constraints.</p>
90
+ *
91
+ * @throws {@link CodeGuruSecurityServiceException}
92
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
93
+ *
94
+ */
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;
114
+ }
@@ -0,0 +1,93 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
5
+ import { GetScanRequest, GetScanResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetScanCommand}.
14
+ */
15
+ export interface GetScanCommandInput extends GetScanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetScanCommand}.
21
+ */
22
+ export interface GetScanCommandOutput extends GetScanResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns details about a scan, including whether or not a scan has completed.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeGuruSecurityClient, GetScanCommand } from "@aws-sdk/client-codeguru-security"; // ES Modules import
31
+ * // const { CodeGuruSecurityClient, GetScanCommand } = require("@aws-sdk/client-codeguru-security"); // CommonJS import
32
+ * const client = new CodeGuruSecurityClient(config);
33
+ * const input = { // GetScanRequest
34
+ * scanName: "STRING_VALUE", // required
35
+ * runId: "STRING_VALUE",
36
+ * };
37
+ * const command = new GetScanCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // GetScanResponse
40
+ * // scanName: "STRING_VALUE", // required
41
+ * // runId: "STRING_VALUE", // required
42
+ * // scanState: "InProgress" || "Successful" || "Failed", // required
43
+ * // createdAt: new Date("TIMESTAMP"), // required
44
+ * // analysisType: "Security" || "All", // required
45
+ * // updatedAt: new Date("TIMESTAMP"),
46
+ * // numberOfRevisions: Number("long"),
47
+ * // scanNameArn: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param GetScanCommandInput - {@link GetScanCommandInput}
53
+ * @returns {@link GetScanCommandOutput}
54
+ * @see {@link GetScanCommandInput} for command's `input` shape.
55
+ * @see {@link GetScanCommandOutput} for command's `response` shape.
56
+ * @see {@link CodeGuruSecurityClientResolvedConfig | config} for CodeGuruSecurityClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You do not have sufficient access to perform this action.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The resource specified in the request was not found.</p>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <p>The request was denied due to request throttling.</p>
69
+ *
70
+ * @throws {@link CodeGuruSecurityServiceException}
71
+ * <p>Base exception class for all service exceptions from CodeGuruSecurity service.</p>
72
+ *
73
+ */
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;
93
+ }