@aws-sdk/client-inspector2 3.828.0 → 3.831.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/README.md +120 -0
- package/dist-cjs/index.js +1297 -313
- package/dist-es/Inspector2.js +30 -0
- package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/GetCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +22 -0
- package/dist-es/commands/StartCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +153 -120
- package/dist-es/models/models_1.js +110 -0
- package/dist-es/protocols/Aws_restJson1.js +509 -3
- package/dist-types/Inspector2.d.ts +107 -0
- package/dist-types/Inspector2Client.d.ts +17 -2
- package/dist-types/commands/AssociateMemberCommand.d.ts +6 -1
- package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -1
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +4 -1
- package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/CancelFindingsReportCommand.d.ts +4 -1
- package/dist-types/commands/CancelSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +111 -0
- package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +116 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +6 -1
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -2
- package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteFilterCommand.d.ts +4 -1
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/DisableCommand.d.ts +8 -3
- package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +6 -1
- package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/GetCisScanReportCommand.d.ts +5 -2
- package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +3 -1
- package/dist-types/commands/GetClustersForImageCommand.d.ts +3 -1
- package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +104 -0
- package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +107 -0
- package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +115 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +3 -2
- package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +5 -2
- package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +7 -4
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +5 -2
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +7 -2
- package/dist-types/commands/GetMemberCommand.d.ts +5 -2
- package/dist-types/commands/GetSbomExportCommand.d.ts +5 -3
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScansCommand.d.ts +2 -0
- package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +102 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +113 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +37 -0
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +4 -0
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +3 -2
- package/dist-types/commands/ListFiltersCommand.d.ts +4 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +16 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +7 -0
- package/dist-types/commands/ListMembersCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -0
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +7 -6
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +7 -6
- package/dist-types/commands/StartCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +99 -0
- package/dist-types/commands/StopCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +5 -1
- package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/UpdateFilterCommand.d.ts +6 -1
- package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +2059 -1859
- package/dist-types/models/models_1.d.ts +1582 -49
- package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Inspector2.d.ts +299 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
- package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +420 -328
- package/dist-types/ts3.4/models/models_1.d.ts +445 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +2 -2
|
@@ -74,6 +74,8 @@ declare const BatchGetFreeTrialInfoCommand_base: {
|
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link AccessDeniedException} (client fault)
|
|
76
76
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
77
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
78
|
+
* unsupported Amazon Web Services Region. </p>
|
|
77
79
|
*
|
|
78
80
|
* @throws {@link InternalServerException} (server fault)
|
|
79
81
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
@@ -27,7 +27,9 @@ declare const BatchGetMemberEc2DeepInspectionStatusCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within
|
|
30
|
+
* <p>Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within
|
|
31
|
+
* your organization. You must be the delegated administrator of an organization in Amazon Inspector to
|
|
32
|
+
* use this API.</p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -68,6 +70,8 @@ declare const BatchGetMemberEc2DeepInspectionStatusCommand_base: {
|
|
|
68
70
|
*
|
|
69
71
|
* @throws {@link AccessDeniedException} (client fault)
|
|
70
72
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
73
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
74
|
+
* unsupported Amazon Web Services Region. </p>
|
|
71
75
|
*
|
|
72
76
|
* @throws {@link InternalServerException} (server fault)
|
|
73
77
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
@@ -27,7 +27,9 @@ declare const BatchUpdateMemberEc2DeepInspectionStatusCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your
|
|
30
|
+
* <p>Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your
|
|
31
|
+
* organization. You must be the delegated administrator of an organization in Amazon Inspector to use
|
|
32
|
+
* this API.</p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -71,6 +73,8 @@ declare const BatchUpdateMemberEc2DeepInspectionStatusCommand_base: {
|
|
|
71
73
|
*
|
|
72
74
|
* @throws {@link AccessDeniedException} (client fault)
|
|
73
75
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
76
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
77
|
+
* unsupported Amazon Web Services Region. </p>
|
|
74
78
|
*
|
|
75
79
|
* @throws {@link InternalServerException} (server fault)
|
|
76
80
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
@@ -53,12 +53,15 @@ declare const CancelFindingsReportCommand_base: {
|
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link AccessDeniedException} (client fault)
|
|
55
55
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
56
58
|
*
|
|
57
59
|
* @throws {@link InternalServerException} (server fault)
|
|
58
60
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
59
61
|
*
|
|
60
62
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
62
65
|
*
|
|
63
66
|
* @throws {@link ThrottlingException} (client fault)
|
|
64
67
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -53,12 +53,15 @@ declare const CancelSbomExportCommand_base: {
|
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link AccessDeniedException} (client fault)
|
|
55
55
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
56
58
|
*
|
|
57
59
|
* @throws {@link InternalServerException} (server fault)
|
|
58
60
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
59
61
|
*
|
|
60
62
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
62
65
|
*
|
|
63
66
|
* @throws {@link ThrottlingException} (client fault)
|
|
64
67
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -92,6 +92,8 @@ declare const CreateCisScanConfigurationCommand_base: {
|
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link AccessDeniedException} (client fault)
|
|
94
94
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
95
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
96
|
+
* unsupported Amazon Web Services Region. </p>
|
|
95
97
|
*
|
|
96
98
|
* @throws {@link InternalServerException} (server fault)
|
|
97
99
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
+
import { CreateCodeSecurityIntegrationRequest, CreateCodeSecurityIntegrationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateCodeSecurityIntegrationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateCodeSecurityIntegrationCommandInput extends CreateCodeSecurityIntegrationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateCodeSecurityIntegrationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCodeSecurityIntegrationCommandOutput extends CreateCodeSecurityIntegrationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateCodeSecurityIntegrationCommand_base: {
|
|
25
|
+
new (input: CreateCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCodeSecurityIntegrationCommandInput, CreateCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCodeSecurityIntegrationCommandInput, CreateCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a code security integration with a source code repository provider.</p>
|
|
31
|
+
* <p>After calling the <code>CreateCodeSecurityIntegration</code> operation, you complete
|
|
32
|
+
* authentication and authorization with your provider. Next you call the
|
|
33
|
+
* <code>UpdateCodeSecurityIntegration</code> operation to provide the <code>details</code>
|
|
34
|
+
* to complete the integration setup</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { Inspector2Client, CreateCodeSecurityIntegrationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
39
|
+
* // const { Inspector2Client, CreateCodeSecurityIntegrationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
40
|
+
* const client = new Inspector2Client(config);
|
|
41
|
+
* const input = { // CreateCodeSecurityIntegrationRequest
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* type: "GITLAB_SELF_MANAGED" || "GITHUB", // required
|
|
44
|
+
* details: { // CreateIntegrationDetail Union: only one key present
|
|
45
|
+
* gitlabSelfManaged: { // CreateGitLabSelfManagedIntegrationDetail
|
|
46
|
+
* instanceUrl: "STRING_VALUE", // required
|
|
47
|
+
* accessToken: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* },
|
|
50
|
+
* tags: { // TagMap
|
|
51
|
+
* "<keys>": "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* };
|
|
54
|
+
* const command = new CreateCodeSecurityIntegrationCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // CreateCodeSecurityIntegrationResponse
|
|
57
|
+
* // integrationArn: "STRING_VALUE", // required
|
|
58
|
+
* // status: "PENDING" || "IN_PROGRESS" || "ACTIVE" || "INACTIVE" || "DISABLING", // required
|
|
59
|
+
* // authorizationUrl: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param CreateCodeSecurityIntegrationCommandInput - {@link CreateCodeSecurityIntegrationCommandInput}
|
|
65
|
+
* @returns {@link CreateCodeSecurityIntegrationCommandOutput}
|
|
66
|
+
* @see {@link CreateCodeSecurityIntegrationCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link CreateCodeSecurityIntegrationCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
72
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
73
|
+
* unsupported Amazon Web Services Region. </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>A conflict occurred. This exception occurs when the same resource is being modified by
|
|
77
|
+
* concurrent requests.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
83
|
+
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
84
|
+
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
87
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
91
|
+
* inputs.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link Inspector2ServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class CreateCodeSecurityIntegrationCommand extends CreateCodeSecurityIntegrationCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: CreateCodeSecurityIntegrationRequest;
|
|
104
|
+
output: CreateCodeSecurityIntegrationResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: CreateCodeSecurityIntegrationCommandInput;
|
|
108
|
+
output: CreateCodeSecurityIntegrationCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
+
import { CreateCodeSecurityScanConfigurationRequest, CreateCodeSecurityScanConfigurationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateCodeSecurityScanConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateCodeSecurityScanConfigurationCommandInput extends CreateCodeSecurityScanConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateCodeSecurityScanConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCodeSecurityScanConfigurationCommandOutput extends CreateCodeSecurityScanConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateCodeSecurityScanConfigurationCommand_base: {
|
|
25
|
+
new (input: CreateCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCodeSecurityScanConfigurationCommandInput, CreateCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCodeSecurityScanConfigurationCommandInput, CreateCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a scan configuration for code security scanning.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { Inspector2Client, CreateCodeSecurityScanConfigurationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
35
|
+
* // const { Inspector2Client, CreateCodeSecurityScanConfigurationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
36
|
+
* const client = new Inspector2Client(config);
|
|
37
|
+
* const input = { // CreateCodeSecurityScanConfigurationRequest
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* level: "ORGANIZATION" || "ACCOUNT", // required
|
|
40
|
+
* configuration: { // CodeSecurityScanConfiguration
|
|
41
|
+
* periodicScanConfiguration: { // PeriodicScanConfiguration
|
|
42
|
+
* frequency: "WEEKLY" || "MONTHLY" || "NEVER",
|
|
43
|
+
* frequencyExpression: "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* continuousIntegrationScanConfiguration: { // ContinuousIntegrationScanConfiguration
|
|
46
|
+
* supportedEvents: [ // ContinuousIntegrationScanSupportedEvents // required
|
|
47
|
+
* "PULL_REQUEST" || "PUSH",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* ruleSetCategories: [ // RuleSetCategories // required
|
|
51
|
+
* "SAST" || "IAC" || "SCA",
|
|
52
|
+
* ],
|
|
53
|
+
* },
|
|
54
|
+
* scopeSettings: { // ScopeSettings
|
|
55
|
+
* projectSelectionScope: "ALL",
|
|
56
|
+
* },
|
|
57
|
+
* tags: { // TagMap
|
|
58
|
+
* "<keys>": "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* };
|
|
61
|
+
* const command = new CreateCodeSecurityScanConfigurationCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* // { // CreateCodeSecurityScanConfigurationResponse
|
|
64
|
+
* // scanConfigurationArn: "STRING_VALUE", // required
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param CreateCodeSecurityScanConfigurationCommandInput - {@link CreateCodeSecurityScanConfigurationCommandInput}
|
|
70
|
+
* @returns {@link CreateCodeSecurityScanConfigurationCommandOutput}
|
|
71
|
+
* @see {@link CreateCodeSecurityScanConfigurationCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link CreateCodeSecurityScanConfigurationCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
77
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
78
|
+
* unsupported Amazon Web Services Region. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ConflictException} (client fault)
|
|
81
|
+
* <p>A conflict occurred. This exception occurs when the same resource is being modified by
|
|
82
|
+
* concurrent requests.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InternalServerException} (server fault)
|
|
85
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
88
|
+
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
89
|
+
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
96
|
+
* inputs.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link Inspector2ServiceException}
|
|
99
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class CreateCodeSecurityScanConfigurationCommand extends CreateCodeSecurityScanConfigurationCommand_base {
|
|
105
|
+
/** @internal type navigation helper, not in runtime. */
|
|
106
|
+
protected static __types: {
|
|
107
|
+
api: {
|
|
108
|
+
input: CreateCodeSecurityScanConfigurationRequest;
|
|
109
|
+
output: CreateCodeSecurityScanConfigurationResponse;
|
|
110
|
+
};
|
|
111
|
+
sdk: {
|
|
112
|
+
input: CreateCodeSecurityScanConfigurationCommandInput;
|
|
113
|
+
output: CreateCodeSecurityScanConfigurationCommandOutput;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -27,7 +27,8 @@ declare const CreateFilterCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates a filter resource using specified filter criteria. When the filter action is set
|
|
30
|
+
* <p>Creates a filter resource using specified filter criteria. When the filter action is set
|
|
31
|
+
* to <code>SUPPRESS</code> this action creates a suppression rule.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -172,6 +173,8 @@ declare const CreateFilterCommand_base: {
|
|
|
172
173
|
* lowerInclusive: Number("double"),
|
|
173
174
|
* },
|
|
174
175
|
* ],
|
|
176
|
+
* codeRepositoryProjectName: "<StringFilterList>",
|
|
177
|
+
* codeRepositoryProviderType: "<StringFilterList>",
|
|
175
178
|
* },
|
|
176
179
|
* name: "STRING_VALUE", // required
|
|
177
180
|
* tags: { // TagMap
|
|
@@ -195,6 +198,8 @@ declare const CreateFilterCommand_base: {
|
|
|
195
198
|
*
|
|
196
199
|
* @throws {@link AccessDeniedException} (client fault)
|
|
197
200
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
201
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
202
|
+
* unsupported Amazon Web Services Region. </p>
|
|
198
203
|
*
|
|
199
204
|
* @throws {@link BadRequestException} (client fault)
|
|
200
205
|
* <p>One or more tags submitted as part of the request is not valid.</p>
|
|
@@ -27,7 +27,9 @@ declare const CreateFindingsReportCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates a finding report. By default only <code>ACTIVE</code> findings are returned in
|
|
30
|
+
* <p>Creates a finding report. By default only <code>ACTIVE</code> findings are returned in
|
|
31
|
+
* the report. To see <code>SUPRESSED</code> or <code>CLOSED</code> findings you must specify
|
|
32
|
+
* a value for the <code>findingStatus</code> filter criteria. </p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -170,6 +172,8 @@ declare const CreateFindingsReportCommand_base: {
|
|
|
170
172
|
* lowerInclusive: Number("double"),
|
|
171
173
|
* },
|
|
172
174
|
* ],
|
|
175
|
+
* codeRepositoryProjectName: "<StringFilterList>",
|
|
176
|
+
* codeRepositoryProviderType: "<StringFilterList>",
|
|
173
177
|
* },
|
|
174
178
|
* reportFormat: "STRING_VALUE", // required
|
|
175
179
|
* s3Destination: { // Destination
|
|
@@ -194,12 +198,15 @@ declare const CreateFindingsReportCommand_base: {
|
|
|
194
198
|
*
|
|
195
199
|
* @throws {@link AccessDeniedException} (client fault)
|
|
196
200
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
201
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
202
|
+
* unsupported Amazon Web Services Region. </p>
|
|
197
203
|
*
|
|
198
204
|
* @throws {@link InternalServerException} (server fault)
|
|
199
205
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
200
206
|
*
|
|
201
207
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
202
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
208
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
209
|
+
* correctly.</p>
|
|
203
210
|
*
|
|
204
211
|
* @throws {@link ThrottlingException} (client fault)
|
|
205
212
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -105,12 +105,15 @@ declare const CreateSbomExportCommand_base: {
|
|
|
105
105
|
*
|
|
106
106
|
* @throws {@link AccessDeniedException} (client fault)
|
|
107
107
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
108
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
109
|
+
* unsupported Amazon Web Services Region. </p>
|
|
108
110
|
*
|
|
109
111
|
* @throws {@link InternalServerException} (server fault)
|
|
110
112
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
111
113
|
*
|
|
112
114
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
113
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
115
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
116
|
+
* correctly.</p>
|
|
114
117
|
*
|
|
115
118
|
* @throws {@link ThrottlingException} (client fault)
|
|
116
119
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -53,12 +53,15 @@ declare const DeleteCisScanConfigurationCommand_base: {
|
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link AccessDeniedException} (client fault)
|
|
55
55
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
56
58
|
*
|
|
57
59
|
* @throws {@link InternalServerException} (server fault)
|
|
58
60
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
59
61
|
*
|
|
60
62
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
62
65
|
*
|
|
63
66
|
* @throws {@link ThrottlingException} (client fault)
|
|
64
67
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
+
import { DeleteCodeSecurityIntegrationRequest, DeleteCodeSecurityIntegrationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteCodeSecurityIntegrationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteCodeSecurityIntegrationCommandInput extends DeleteCodeSecurityIntegrationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteCodeSecurityIntegrationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteCodeSecurityIntegrationCommandOutput extends DeleteCodeSecurityIntegrationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteCodeSecurityIntegrationCommand_base: {
|
|
25
|
+
new (input: DeleteCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCodeSecurityIntegrationCommandInput, DeleteCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteCodeSecurityIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCodeSecurityIntegrationCommandInput, DeleteCodeSecurityIntegrationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a code security integration.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { Inspector2Client, DeleteCodeSecurityIntegrationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
35
|
+
* // const { Inspector2Client, DeleteCodeSecurityIntegrationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
36
|
+
* const client = new Inspector2Client(config);
|
|
37
|
+
* const input = { // DeleteCodeSecurityIntegrationRequest
|
|
38
|
+
* integrationArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteCodeSecurityIntegrationCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DeleteCodeSecurityIntegrationResponse
|
|
43
|
+
* // integrationArn: "STRING_VALUE",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteCodeSecurityIntegrationCommandInput - {@link DeleteCodeSecurityIntegrationCommandInput}
|
|
49
|
+
* @returns {@link DeleteCodeSecurityIntegrationCommandOutput}
|
|
50
|
+
* @see {@link DeleteCodeSecurityIntegrationCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteCodeSecurityIntegrationCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
71
|
+
* inputs.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link Inspector2ServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class DeleteCodeSecurityIntegrationCommand extends DeleteCodeSecurityIntegrationCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: DeleteCodeSecurityIntegrationRequest;
|
|
84
|
+
output: DeleteCodeSecurityIntegrationResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: DeleteCodeSecurityIntegrationCommandInput;
|
|
88
|
+
output: DeleteCodeSecurityIntegrationCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
+
import { DeleteCodeSecurityScanConfigurationRequest, DeleteCodeSecurityScanConfigurationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteCodeSecurityScanConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteCodeSecurityScanConfigurationCommandInput extends DeleteCodeSecurityScanConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteCodeSecurityScanConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteCodeSecurityScanConfigurationCommandOutput extends DeleteCodeSecurityScanConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteCodeSecurityScanConfigurationCommand_base: {
|
|
25
|
+
new (input: DeleteCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCodeSecurityScanConfigurationCommandInput, DeleteCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteCodeSecurityScanConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCodeSecurityScanConfigurationCommandInput, DeleteCodeSecurityScanConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a code security scan configuration.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { Inspector2Client, DeleteCodeSecurityScanConfigurationCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
35
|
+
* // const { Inspector2Client, DeleteCodeSecurityScanConfigurationCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
36
|
+
* const client = new Inspector2Client(config);
|
|
37
|
+
* const input = { // DeleteCodeSecurityScanConfigurationRequest
|
|
38
|
+
* scanConfigurationArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteCodeSecurityScanConfigurationCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DeleteCodeSecurityScanConfigurationResponse
|
|
43
|
+
* // scanConfigurationArn: "STRING_VALUE",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteCodeSecurityScanConfigurationCommandInput - {@link DeleteCodeSecurityScanConfigurationCommandInput}
|
|
49
|
+
* @returns {@link DeleteCodeSecurityScanConfigurationCommandOutput}
|
|
50
|
+
* @see {@link DeleteCodeSecurityScanConfigurationCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteCodeSecurityScanConfigurationCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
71
|
+
* inputs.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link Inspector2ServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class DeleteCodeSecurityScanConfigurationCommand extends DeleteCodeSecurityScanConfigurationCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: DeleteCodeSecurityScanConfigurationRequest;
|
|
84
|
+
output: DeleteCodeSecurityScanConfigurationResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: DeleteCodeSecurityScanConfigurationCommandInput;
|
|
88
|
+
output: DeleteCodeSecurityScanConfigurationCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -53,12 +53,15 @@ declare const DeleteFilterCommand_base: {
|
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link AccessDeniedException} (client fault)
|
|
55
55
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
56
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
57
|
+
* unsupported Amazon Web Services Region. </p>
|
|
56
58
|
*
|
|
57
59
|
* @throws {@link InternalServerException} (server fault)
|
|
58
60
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
59
61
|
*
|
|
60
62
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
-
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
63
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified
|
|
64
|
+
* correctly.</p>
|
|
62
65
|
*
|
|
63
66
|
* @throws {@link ThrottlingException} (client fault)
|
|
64
67
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
@@ -43,6 +43,7 @@ declare const DescribeOrganizationConfigurationCommand_base: {
|
|
|
43
43
|
* // ecr: true || false, // required
|
|
44
44
|
* // lambda: true || false,
|
|
45
45
|
* // lambdaCode: true || false,
|
|
46
|
+
* // codeRepository: true || false,
|
|
46
47
|
* // },
|
|
47
48
|
* // maxAccountLimitReached: true || false,
|
|
48
49
|
* // };
|
|
@@ -57,6 +58,8 @@ declare const DescribeOrganizationConfigurationCommand_base: {
|
|
|
57
58
|
*
|
|
58
59
|
* @throws {@link AccessDeniedException} (client fault)
|
|
59
60
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
61
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
62
|
+
* unsupported Amazon Web Services Region. </p>
|
|
60
63
|
*
|
|
61
64
|
* @throws {@link InternalServerException} (server fault)
|
|
62
65
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|