@aws-sdk/client-inspector2 3.1079.0 → 3.1081.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 +42 -0
- package/dist-cjs/index.js +967 -133
- package/dist-es/Inspector2.js +25 -1
- package/dist-es/commands/CreateConnectorCommand.js +4 -0
- package/dist-es/commands/DeleteConnectorCommand.js +4 -0
- package/dist-es/commands/ListConnectorScanConfigurationsCommand.js +4 -0
- package/dist-es/commands/ListConnectorsCommand.js +4 -0
- package/dist-es/commands/UpdateConnectorCommand.js +4 -0
- package/dist-es/commands/UpdateConnectorScanConfigurationCommand.js +4 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +130 -0
- package/dist-es/pagination/ListConnectorScanConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +542 -130
- package/dist-es/waiters/index.js +3 -0
- package/dist-es/waiters/waitForConnectorConnected.js +69 -0
- package/dist-es/waiters/waitForConnectorDeleted.js +46 -0
- package/dist-es/waiters/waitForConnectorEnabled.js +69 -0
- package/dist-types/Inspector2.d.ts +78 -1
- package/dist-types/Inspector2Client.d.ts +8 -2
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +1 -0
- package/dist-types/commands/CreateConnectorCommand.d.ts +167 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +24 -0
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +24 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +105 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +18 -3
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +24 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +2 -1
- package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListConnectorScanConfigurationsCommand.d.ts +135 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +226 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +59 -1
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +24 -1
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListFiltersCommand.d.ts +25 -1
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +149 -2
- package/dist-types/commands/ListFindingsCommand.d.ts +86 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -1
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +1 -1
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +11 -3
- package/dist-types/commands/UpdateConnectorCommand.d.ts +146 -0
- package/dist-types/commands/UpdateConnectorScanConfigurationCommand.d.ts +117 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +24 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +282 -0
- package/dist-types/models/models_0.d.ts +3359 -1910
- package/dist-types/models/models_1.d.ts +932 -2
- package/dist-types/pagination/ListConnectorScanConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +51 -0
- package/dist-types/ts3.4/Inspector2.d.ts +147 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConnectorScanConfigurationsCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCoverageStatisticsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingAggregationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsageTotalsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendCisSessionHealthCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendCisSessionTelemetryCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/UpdateConnectorScanConfigurationCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +162 -0
- package/dist-types/ts3.4/models/models_0.d.ts +571 -166
- package/dist-types/ts3.4/models/models_1.d.ts +248 -1
- package/dist-types/ts3.4/pagination/ListConnectorScanConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +51 -0
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForConnectorConnected.d.ts +17 -0
- package/dist-types/ts3.4/waiters/waitForConnectorDeleted.d.ts +17 -0
- package/dist-types/ts3.4/waiters/waitForConnectorEnabled.d.ts +17 -0
- package/dist-types/waiters/index.d.ts +3 -0
- package/dist-types/waiters/waitForConnectorConnected.d.ts +15 -0
- package/dist-types/waiters/waitForConnectorDeleted.d.ts +15 -0
- package/dist-types/waiters/waitForConnectorEnabled.d.ts +15 -0
- package/package.json +3 -3
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new ListConnectorsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.items);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.health.connectorStatus;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "CONNECTED");
|
|
19
|
+
}
|
|
20
|
+
if (allStringEq_5) {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (e) { }
|
|
25
|
+
try {
|
|
26
|
+
const returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.items);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
|
+
return element_2.health.connectorStatus;
|
|
30
|
+
});
|
|
31
|
+
return projection_3;
|
|
32
|
+
};
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
|
+
if (anyStringEq_4 == "FAILED_TO_CONNECT") {
|
|
35
|
+
return { state: WaiterState.FAILURE, reason };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e) { }
|
|
40
|
+
try {
|
|
41
|
+
const returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.items);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
|
+
return element_2.enablementStatus;
|
|
45
|
+
});
|
|
46
|
+
return projection_3;
|
|
47
|
+
};
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
|
+
if (anyStringEq_4 == "FAILED_TO_ENABLE") {
|
|
50
|
+
return { state: WaiterState.FAILURE, reason };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) { }
|
|
55
|
+
}
|
|
56
|
+
catch (exception) {
|
|
57
|
+
reason = exception;
|
|
58
|
+
}
|
|
59
|
+
return { state: WaiterState.RETRY, reason };
|
|
60
|
+
};
|
|
61
|
+
export const waitForConnectorConnected = async (params, input) => {
|
|
62
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
63
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
64
|
+
};
|
|
65
|
+
export const waitUntilConnectorConnected = async (params, input) => {
|
|
66
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
67
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
68
|
+
return checkExceptions(result);
|
|
69
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new ListConnectorsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return (result.items.length == 0);
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
let flat_1 = [].concat(...result.items);
|
|
20
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
21
|
+
return element_2.enablementStatus;
|
|
22
|
+
});
|
|
23
|
+
return projection_3;
|
|
24
|
+
};
|
|
25
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
26
|
+
if (anyStringEq_4 == "FAILED_TO_DELETE") {
|
|
27
|
+
return { state: WaiterState.FAILURE, reason };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (e) { }
|
|
32
|
+
}
|
|
33
|
+
catch (exception) {
|
|
34
|
+
reason = exception;
|
|
35
|
+
}
|
|
36
|
+
return { state: WaiterState.RETRY, reason };
|
|
37
|
+
};
|
|
38
|
+
export const waitForConnectorDeleted = async (params, input) => {
|
|
39
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
40
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
41
|
+
};
|
|
42
|
+
export const waitUntilConnectorDeleted = async (params, input) => {
|
|
43
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
44
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
45
|
+
return checkExceptions(result);
|
|
46
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new ListConnectorsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.items);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.enablementStatus;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "ENABLED");
|
|
19
|
+
}
|
|
20
|
+
if (allStringEq_5) {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (e) { }
|
|
25
|
+
try {
|
|
26
|
+
const returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.items);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
|
+
return element_2.enablementStatus;
|
|
30
|
+
});
|
|
31
|
+
return projection_3;
|
|
32
|
+
};
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
|
+
if (anyStringEq_4 == "FAILED_TO_ENABLE") {
|
|
35
|
+
return { state: WaiterState.FAILURE, reason };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e) { }
|
|
40
|
+
try {
|
|
41
|
+
const returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.items);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
|
+
return element_2.enablementStatus;
|
|
45
|
+
});
|
|
46
|
+
return projection_3;
|
|
47
|
+
};
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
|
+
if (anyStringEq_4 == "FAILED_TO_UPDATE") {
|
|
50
|
+
return { state: WaiterState.FAILURE, reason };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) { }
|
|
55
|
+
}
|
|
56
|
+
catch (exception) {
|
|
57
|
+
reason = exception;
|
|
58
|
+
}
|
|
59
|
+
return { state: WaiterState.RETRY, reason };
|
|
60
|
+
};
|
|
61
|
+
export const waitForConnectorEnabled = async (params, input) => {
|
|
62
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
63
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
64
|
+
};
|
|
65
|
+
export const waitUntilConnectorEnabled = async (params, input) => {
|
|
66
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
67
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
68
|
+
return checkExceptions(result);
|
|
69
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type WaiterResult } from "@smithy/core/client";
|
|
2
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
2
3
|
import { type AssociateMemberCommandInput, type AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
|
|
3
4
|
import { type BatchAssociateCodeSecurityScanConfigurationCommandInput, type BatchAssociateCodeSecurityScanConfigurationCommandOutput } from "./commands/BatchAssociateCodeSecurityScanConfigurationCommand";
|
|
4
5
|
import { type BatchDisassociateCodeSecurityScanConfigurationCommandInput, type BatchDisassociateCodeSecurityScanConfigurationCommandOutput } from "./commands/BatchDisassociateCodeSecurityScanConfigurationCommand";
|
|
@@ -13,12 +14,14 @@ import { type CancelSbomExportCommandInput, type CancelSbomExportCommandOutput }
|
|
|
13
14
|
import { type CreateCisScanConfigurationCommandInput, type CreateCisScanConfigurationCommandOutput } from "./commands/CreateCisScanConfigurationCommand";
|
|
14
15
|
import { type CreateCodeSecurityIntegrationCommandInput, type CreateCodeSecurityIntegrationCommandOutput } from "./commands/CreateCodeSecurityIntegrationCommand";
|
|
15
16
|
import { type CreateCodeSecurityScanConfigurationCommandInput, type CreateCodeSecurityScanConfigurationCommandOutput } from "./commands/CreateCodeSecurityScanConfigurationCommand";
|
|
17
|
+
import { type CreateConnectorCommandInput, type CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
16
18
|
import { type CreateFilterCommandInput, type CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
|
|
17
19
|
import { type CreateFindingsReportCommandInput, type CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
|
|
18
20
|
import { type CreateSbomExportCommandInput, type CreateSbomExportCommandOutput } from "./commands/CreateSbomExportCommand";
|
|
19
21
|
import { type DeleteCisScanConfigurationCommandInput, type DeleteCisScanConfigurationCommandOutput } from "./commands/DeleteCisScanConfigurationCommand";
|
|
20
22
|
import { type DeleteCodeSecurityIntegrationCommandInput, type DeleteCodeSecurityIntegrationCommandOutput } from "./commands/DeleteCodeSecurityIntegrationCommand";
|
|
21
23
|
import { type DeleteCodeSecurityScanConfigurationCommandInput, type DeleteCodeSecurityScanConfigurationCommandOutput } from "./commands/DeleteCodeSecurityScanConfigurationCommand";
|
|
24
|
+
import { type DeleteConnectorCommandInput, type DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
22
25
|
import { type DeleteFilterCommandInput, type DeleteFilterCommandOutput } from "./commands/DeleteFilterCommand";
|
|
23
26
|
import { type DescribeOrganizationConfigurationCommandInput, type DescribeOrganizationConfigurationCommandOutput } from "./commands/DescribeOrganizationConfigurationCommand";
|
|
24
27
|
import { type DisableCommandInput, type DisableCommandOutput } from "./commands/DisableCommand";
|
|
@@ -47,6 +50,8 @@ import { type ListCisScansCommandInput, type ListCisScansCommandOutput } from ".
|
|
|
47
50
|
import { type ListCodeSecurityIntegrationsCommandInput, type ListCodeSecurityIntegrationsCommandOutput } from "./commands/ListCodeSecurityIntegrationsCommand";
|
|
48
51
|
import { type ListCodeSecurityScanConfigurationAssociationsCommandInput, type ListCodeSecurityScanConfigurationAssociationsCommandOutput } from "./commands/ListCodeSecurityScanConfigurationAssociationsCommand";
|
|
49
52
|
import { type ListCodeSecurityScanConfigurationsCommandInput, type ListCodeSecurityScanConfigurationsCommandOutput } from "./commands/ListCodeSecurityScanConfigurationsCommand";
|
|
53
|
+
import { type ListConnectorScanConfigurationsCommandInput, type ListConnectorScanConfigurationsCommandOutput } from "./commands/ListConnectorScanConfigurationsCommand";
|
|
54
|
+
import { type ListConnectorsCommandInput, type ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
|
|
50
55
|
import { type ListCoverageCommandInput, type ListCoverageCommandOutput } from "./commands/ListCoverageCommand";
|
|
51
56
|
import { type ListCoverageStatisticsCommandInput, type ListCoverageStatisticsCommandOutput } from "./commands/ListCoverageStatisticsCommand";
|
|
52
57
|
import { type ListDelegatedAdminAccountsCommandInput, type ListDelegatedAdminAccountsCommandOutput } from "./commands/ListDelegatedAdminAccountsCommand";
|
|
@@ -69,6 +74,8 @@ import { type UpdateCisScanConfigurationCommandInput, type UpdateCisScanConfigur
|
|
|
69
74
|
import { type UpdateCodeSecurityIntegrationCommandInput, type UpdateCodeSecurityIntegrationCommandOutput } from "./commands/UpdateCodeSecurityIntegrationCommand";
|
|
70
75
|
import { type UpdateCodeSecurityScanConfigurationCommandInput, type UpdateCodeSecurityScanConfigurationCommandOutput } from "./commands/UpdateCodeSecurityScanConfigurationCommand";
|
|
71
76
|
import { type UpdateConfigurationCommandInput, type UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
|
|
77
|
+
import { type UpdateConnectorCommandInput, type UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
|
|
78
|
+
import { type UpdateConnectorScanConfigurationCommandInput, type UpdateConnectorScanConfigurationCommandOutput } from "./commands/UpdateConnectorScanConfigurationCommand";
|
|
72
79
|
import { type UpdateEc2DeepInspectionConfigurationCommandInput, type UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
|
|
73
80
|
import { type UpdateEncryptionKeyCommandInput, type UpdateEncryptionKeyCommandOutput } from "./commands/UpdateEncryptionKeyCommand";
|
|
74
81
|
import { type UpdateFilterCommandInput, type UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
|
|
@@ -162,6 +169,12 @@ export interface Inspector2 {
|
|
|
162
169
|
createCodeSecurityScanConfiguration(args: CreateCodeSecurityScanConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateCodeSecurityScanConfigurationCommandOutput>;
|
|
163
170
|
createCodeSecurityScanConfiguration(args: CreateCodeSecurityScanConfigurationCommandInput, cb: (err: any, data?: CreateCodeSecurityScanConfigurationCommandOutput) => void): void;
|
|
164
171
|
createCodeSecurityScanConfiguration(args: CreateCodeSecurityScanConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCodeSecurityScanConfigurationCommandOutput) => void): void;
|
|
172
|
+
/**
|
|
173
|
+
* @see {@link CreateConnectorCommand}
|
|
174
|
+
*/
|
|
175
|
+
createConnector(args: CreateConnectorCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectorCommandOutput>;
|
|
176
|
+
createConnector(args: CreateConnectorCommandInput, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
177
|
+
createConnector(args: CreateConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
165
178
|
/**
|
|
166
179
|
* @see {@link CreateFilterCommand}
|
|
167
180
|
*/
|
|
@@ -198,6 +211,12 @@ export interface Inspector2 {
|
|
|
198
211
|
deleteCodeSecurityScanConfiguration(args: DeleteCodeSecurityScanConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCodeSecurityScanConfigurationCommandOutput>;
|
|
199
212
|
deleteCodeSecurityScanConfiguration(args: DeleteCodeSecurityScanConfigurationCommandInput, cb: (err: any, data?: DeleteCodeSecurityScanConfigurationCommandOutput) => void): void;
|
|
200
213
|
deleteCodeSecurityScanConfiguration(args: DeleteCodeSecurityScanConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCodeSecurityScanConfigurationCommandOutput) => void): void;
|
|
214
|
+
/**
|
|
215
|
+
* @see {@link DeleteConnectorCommand}
|
|
216
|
+
*/
|
|
217
|
+
deleteConnector(args: DeleteConnectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectorCommandOutput>;
|
|
218
|
+
deleteConnector(args: DeleteConnectorCommandInput, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
|
|
219
|
+
deleteConnector(args: DeleteConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
|
|
201
220
|
/**
|
|
202
221
|
* @see {@link DeleteFilterCommand}
|
|
203
222
|
*/
|
|
@@ -377,6 +396,20 @@ export interface Inspector2 {
|
|
|
377
396
|
listCodeSecurityScanConfigurations(args: ListCodeSecurityScanConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListCodeSecurityScanConfigurationsCommandOutput>;
|
|
378
397
|
listCodeSecurityScanConfigurations(args: ListCodeSecurityScanConfigurationsCommandInput, cb: (err: any, data?: ListCodeSecurityScanConfigurationsCommandOutput) => void): void;
|
|
379
398
|
listCodeSecurityScanConfigurations(args: ListCodeSecurityScanConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCodeSecurityScanConfigurationsCommandOutput) => void): void;
|
|
399
|
+
/**
|
|
400
|
+
* @see {@link ListConnectorsCommand}
|
|
401
|
+
*/
|
|
402
|
+
listConnectors(): Promise<ListConnectorsCommandOutput>;
|
|
403
|
+
listConnectors(args: ListConnectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorsCommandOutput>;
|
|
404
|
+
listConnectors(args: ListConnectorsCommandInput, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
|
|
405
|
+
listConnectors(args: ListConnectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
|
|
406
|
+
/**
|
|
407
|
+
* @see {@link ListConnectorScanConfigurationsCommand}
|
|
408
|
+
*/
|
|
409
|
+
listConnectorScanConfigurations(): Promise<ListConnectorScanConfigurationsCommandOutput>;
|
|
410
|
+
listConnectorScanConfigurations(args: ListConnectorScanConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorScanConfigurationsCommandOutput>;
|
|
411
|
+
listConnectorScanConfigurations(args: ListConnectorScanConfigurationsCommandInput, cb: (err: any, data?: ListConnectorScanConfigurationsCommandOutput) => void): void;
|
|
412
|
+
listConnectorScanConfigurations(args: ListConnectorScanConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectorScanConfigurationsCommandOutput) => void): void;
|
|
380
413
|
/**
|
|
381
414
|
* @see {@link ListCoverageCommand}
|
|
382
415
|
*/
|
|
@@ -517,6 +550,18 @@ export interface Inspector2 {
|
|
|
517
550
|
updateConfiguration(args: UpdateConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfigurationCommandOutput>;
|
|
518
551
|
updateConfiguration(args: UpdateConfigurationCommandInput, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
|
|
519
552
|
updateConfiguration(args: UpdateConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
|
|
553
|
+
/**
|
|
554
|
+
* @see {@link UpdateConnectorCommand}
|
|
555
|
+
*/
|
|
556
|
+
updateConnector(args: UpdateConnectorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorCommandOutput>;
|
|
557
|
+
updateConnector(args: UpdateConnectorCommandInput, cb: (err: any, data?: UpdateConnectorCommandOutput) => void): void;
|
|
558
|
+
updateConnector(args: UpdateConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorCommandOutput) => void): void;
|
|
559
|
+
/**
|
|
560
|
+
* @see {@link UpdateConnectorScanConfigurationCommand}
|
|
561
|
+
*/
|
|
562
|
+
updateConnectorScanConfiguration(args: UpdateConnectorScanConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorScanConfigurationCommandOutput>;
|
|
563
|
+
updateConnectorScanConfiguration(args: UpdateConnectorScanConfigurationCommandInput, cb: (err: any, data?: UpdateConnectorScanConfigurationCommandOutput) => void): void;
|
|
564
|
+
updateConnectorScanConfiguration(args: UpdateConnectorScanConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorScanConfigurationCommandOutput) => void): void;
|
|
520
565
|
/**
|
|
521
566
|
* @see {@link UpdateEc2DeepInspectionConfigurationCommand}
|
|
522
567
|
*/
|
|
@@ -597,6 +642,20 @@ export interface Inspector2 {
|
|
|
597
642
|
* @returns AsyncIterable of {@link ListCisScansCommandOutput}.
|
|
598
643
|
*/
|
|
599
644
|
paginateListCisScans(args?: ListCisScansCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCisScansCommandOutput>;
|
|
645
|
+
/**
|
|
646
|
+
* @see {@link ListConnectorsCommand}
|
|
647
|
+
* @param args - command input.
|
|
648
|
+
* @param paginationConfig - optional pagination config.
|
|
649
|
+
* @returns AsyncIterable of {@link ListConnectorsCommandOutput}.
|
|
650
|
+
*/
|
|
651
|
+
paginateListConnectors(args?: ListConnectorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListConnectorsCommandOutput>;
|
|
652
|
+
/**
|
|
653
|
+
* @see {@link ListConnectorScanConfigurationsCommand}
|
|
654
|
+
* @param args - command input.
|
|
655
|
+
* @param paginationConfig - optional pagination config.
|
|
656
|
+
* @returns AsyncIterable of {@link ListConnectorScanConfigurationsCommandOutput}.
|
|
657
|
+
*/
|
|
658
|
+
paginateListConnectorScanConfigurations(args?: ListConnectorScanConfigurationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListConnectorScanConfigurationsCommandOutput>;
|
|
600
659
|
/**
|
|
601
660
|
* @see {@link ListCoverageCommand}
|
|
602
661
|
* @param args - command input.
|
|
@@ -660,6 +719,24 @@ export interface Inspector2 {
|
|
|
660
719
|
* @returns AsyncIterable of {@link SearchVulnerabilitiesCommandOutput}.
|
|
661
720
|
*/
|
|
662
721
|
paginateSearchVulnerabilities(args: SearchVulnerabilitiesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchVulnerabilitiesCommandOutput>;
|
|
722
|
+
/**
|
|
723
|
+
* @see {@link ListConnectorsCommand}
|
|
724
|
+
* @param args - command input.
|
|
725
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
726
|
+
*/
|
|
727
|
+
waitUntilConnectorEnabled(args: ListConnectorsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Inspector2>, "client">): Promise<WaiterResult<ListConnectorsCommandOutput>>;
|
|
728
|
+
/**
|
|
729
|
+
* @see {@link ListConnectorsCommand}
|
|
730
|
+
* @param args - command input.
|
|
731
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
732
|
+
*/
|
|
733
|
+
waitUntilConnectorDeleted(args: ListConnectorsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Inspector2>, "client">): Promise<WaiterResult<ListConnectorsCommandOutput>>;
|
|
734
|
+
/**
|
|
735
|
+
* @see {@link ListConnectorsCommand}
|
|
736
|
+
* @param args - command input.
|
|
737
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
738
|
+
*/
|
|
739
|
+
waitUntilConnectorConnected(args: ListConnectorsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Inspector2>, "client">): Promise<WaiterResult<ListConnectorsCommandOutput>>;
|
|
663
740
|
}
|
|
664
741
|
/**
|
|
665
742
|
* <p>Amazon Inspector is a vulnerability discovery service that automates continuous scanning for
|
|
@@ -20,12 +20,14 @@ import type { CancelSbomExportCommandInput, CancelSbomExportCommandOutput } from
|
|
|
20
20
|
import type { CreateCisScanConfigurationCommandInput, CreateCisScanConfigurationCommandOutput } from "./commands/CreateCisScanConfigurationCommand";
|
|
21
21
|
import type { CreateCodeSecurityIntegrationCommandInput, CreateCodeSecurityIntegrationCommandOutput } from "./commands/CreateCodeSecurityIntegrationCommand";
|
|
22
22
|
import type { CreateCodeSecurityScanConfigurationCommandInput, CreateCodeSecurityScanConfigurationCommandOutput } from "./commands/CreateCodeSecurityScanConfigurationCommand";
|
|
23
|
+
import type { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
23
24
|
import type { CreateFilterCommandInput, CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
|
|
24
25
|
import type { CreateFindingsReportCommandInput, CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
|
|
25
26
|
import type { CreateSbomExportCommandInput, CreateSbomExportCommandOutput } from "./commands/CreateSbomExportCommand";
|
|
26
27
|
import type { DeleteCisScanConfigurationCommandInput, DeleteCisScanConfigurationCommandOutput } from "./commands/DeleteCisScanConfigurationCommand";
|
|
27
28
|
import type { DeleteCodeSecurityIntegrationCommandInput, DeleteCodeSecurityIntegrationCommandOutput } from "./commands/DeleteCodeSecurityIntegrationCommand";
|
|
28
29
|
import type { DeleteCodeSecurityScanConfigurationCommandInput, DeleteCodeSecurityScanConfigurationCommandOutput } from "./commands/DeleteCodeSecurityScanConfigurationCommand";
|
|
30
|
+
import type { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
29
31
|
import type { DeleteFilterCommandInput, DeleteFilterCommandOutput } from "./commands/DeleteFilterCommand";
|
|
30
32
|
import type { DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput } from "./commands/DescribeOrganizationConfigurationCommand";
|
|
31
33
|
import type { DisableCommandInput, DisableCommandOutput } from "./commands/DisableCommand";
|
|
@@ -54,6 +56,8 @@ import type { ListCisScansCommandInput, ListCisScansCommandOutput } from "./comm
|
|
|
54
56
|
import type { ListCodeSecurityIntegrationsCommandInput, ListCodeSecurityIntegrationsCommandOutput } from "./commands/ListCodeSecurityIntegrationsCommand";
|
|
55
57
|
import type { ListCodeSecurityScanConfigurationAssociationsCommandInput, ListCodeSecurityScanConfigurationAssociationsCommandOutput } from "./commands/ListCodeSecurityScanConfigurationAssociationsCommand";
|
|
56
58
|
import type { ListCodeSecurityScanConfigurationsCommandInput, ListCodeSecurityScanConfigurationsCommandOutput } from "./commands/ListCodeSecurityScanConfigurationsCommand";
|
|
59
|
+
import type { ListConnectorScanConfigurationsCommandInput, ListConnectorScanConfigurationsCommandOutput } from "./commands/ListConnectorScanConfigurationsCommand";
|
|
60
|
+
import type { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
|
|
57
61
|
import type { ListCoverageCommandInput, ListCoverageCommandOutput } from "./commands/ListCoverageCommand";
|
|
58
62
|
import type { ListCoverageStatisticsCommandInput, ListCoverageStatisticsCommandOutput } from "./commands/ListCoverageStatisticsCommand";
|
|
59
63
|
import type { ListDelegatedAdminAccountsCommandInput, ListDelegatedAdminAccountsCommandOutput } from "./commands/ListDelegatedAdminAccountsCommand";
|
|
@@ -76,6 +80,8 @@ import type { UpdateCisScanConfigurationCommandInput, UpdateCisScanConfiguration
|
|
|
76
80
|
import type { UpdateCodeSecurityIntegrationCommandInput, UpdateCodeSecurityIntegrationCommandOutput } from "./commands/UpdateCodeSecurityIntegrationCommand";
|
|
77
81
|
import type { UpdateCodeSecurityScanConfigurationCommandInput, UpdateCodeSecurityScanConfigurationCommandOutput } from "./commands/UpdateCodeSecurityScanConfigurationCommand";
|
|
78
82
|
import type { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
|
|
83
|
+
import type { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
|
|
84
|
+
import type { UpdateConnectorScanConfigurationCommandInput, UpdateConnectorScanConfigurationCommandOutput } from "./commands/UpdateConnectorScanConfigurationCommand";
|
|
79
85
|
import type { UpdateEc2DeepInspectionConfigurationCommandInput, UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
|
|
80
86
|
import type { UpdateEncryptionKeyCommandInput, UpdateEncryptionKeyCommandOutput } from "./commands/UpdateEncryptionKeyCommand";
|
|
81
87
|
import type { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
|
|
@@ -87,11 +93,11 @@ export { __Client };
|
|
|
87
93
|
/**
|
|
88
94
|
* @public
|
|
89
95
|
*/
|
|
90
|
-
export type ServiceInputTypes = AssociateMemberCommandInput | BatchAssociateCodeSecurityScanConfigurationCommandInput | BatchDisassociateCodeSecurityScanConfigurationCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFindingDetailsCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateCisScanConfigurationCommandInput | CreateCodeSecurityIntegrationCommandInput | CreateCodeSecurityScanConfigurationCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteCisScanConfigurationCommandInput | DeleteCodeSecurityIntegrationCommandInput | DeleteCodeSecurityScanConfigurationCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetCisScanReportCommandInput | GetCisScanResultDetailsCommandInput | GetClustersForImageCommandInput | GetCodeSecurityIntegrationCommandInput | GetCodeSecurityScanCommandInput | GetCodeSecurityScanConfigurationCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCisScanConfigurationsCommandInput | ListCisScanResultsAggregatedByChecksCommandInput | ListCisScanResultsAggregatedByTargetResourceCommandInput | ListCisScansCommandInput | ListCodeSecurityIntegrationsCommandInput | ListCodeSecurityScanConfigurationAssociationsCommandInput | ListCodeSecurityScanConfigurationsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | SendCisSessionHealthCommandInput | SendCisSessionTelemetryCommandInput | StartCisSessionCommandInput | StartCodeSecurityScanCommandInput | StopCisSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCisScanConfigurationCommandInput | UpdateCodeSecurityIntegrationCommandInput | UpdateCodeSecurityScanConfigurationCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
96
|
+
export type ServiceInputTypes = AssociateMemberCommandInput | BatchAssociateCodeSecurityScanConfigurationCommandInput | BatchDisassociateCodeSecurityScanConfigurationCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFindingDetailsCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateCisScanConfigurationCommandInput | CreateCodeSecurityIntegrationCommandInput | CreateCodeSecurityScanConfigurationCommandInput | CreateConnectorCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteCisScanConfigurationCommandInput | DeleteCodeSecurityIntegrationCommandInput | DeleteCodeSecurityScanConfigurationCommandInput | DeleteConnectorCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetCisScanReportCommandInput | GetCisScanResultDetailsCommandInput | GetClustersForImageCommandInput | GetCodeSecurityIntegrationCommandInput | GetCodeSecurityScanCommandInput | GetCodeSecurityScanConfigurationCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCisScanConfigurationsCommandInput | ListCisScanResultsAggregatedByChecksCommandInput | ListCisScanResultsAggregatedByTargetResourceCommandInput | ListCisScansCommandInput | ListCodeSecurityIntegrationsCommandInput | ListCodeSecurityScanConfigurationAssociationsCommandInput | ListCodeSecurityScanConfigurationsCommandInput | ListConnectorScanConfigurationsCommandInput | ListConnectorsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | SendCisSessionHealthCommandInput | SendCisSessionTelemetryCommandInput | StartCisSessionCommandInput | StartCodeSecurityScanCommandInput | StopCisSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCisScanConfigurationCommandInput | UpdateCodeSecurityIntegrationCommandInput | UpdateCodeSecurityScanConfigurationCommandInput | UpdateConfigurationCommandInput | UpdateConnectorCommandInput | UpdateConnectorScanConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
91
97
|
/**
|
|
92
98
|
* @public
|
|
93
99
|
*/
|
|
94
|
-
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchAssociateCodeSecurityScanConfigurationCommandOutput | BatchDisassociateCodeSecurityScanConfigurationCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFindingDetailsCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateCisScanConfigurationCommandOutput | CreateCodeSecurityIntegrationCommandOutput | CreateCodeSecurityScanConfigurationCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteCisScanConfigurationCommandOutput | DeleteCodeSecurityIntegrationCommandOutput | DeleteCodeSecurityScanConfigurationCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetCisScanReportCommandOutput | GetCisScanResultDetailsCommandOutput | GetClustersForImageCommandOutput | GetCodeSecurityIntegrationCommandOutput | GetCodeSecurityScanCommandOutput | GetCodeSecurityScanConfigurationCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCisScanConfigurationsCommandOutput | ListCisScanResultsAggregatedByChecksCommandOutput | ListCisScanResultsAggregatedByTargetResourceCommandOutput | ListCisScansCommandOutput | ListCodeSecurityIntegrationsCommandOutput | ListCodeSecurityScanConfigurationAssociationsCommandOutput | ListCodeSecurityScanConfigurationsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | SendCisSessionHealthCommandOutput | SendCisSessionTelemetryCommandOutput | StartCisSessionCommandOutput | StartCodeSecurityScanCommandOutput | StopCisSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCisScanConfigurationCommandOutput | UpdateCodeSecurityIntegrationCommandOutput | UpdateCodeSecurityScanConfigurationCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
100
|
+
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchAssociateCodeSecurityScanConfigurationCommandOutput | BatchDisassociateCodeSecurityScanConfigurationCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFindingDetailsCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateCisScanConfigurationCommandOutput | CreateCodeSecurityIntegrationCommandOutput | CreateCodeSecurityScanConfigurationCommandOutput | CreateConnectorCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteCisScanConfigurationCommandOutput | DeleteCodeSecurityIntegrationCommandOutput | DeleteCodeSecurityScanConfigurationCommandOutput | DeleteConnectorCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetCisScanReportCommandOutput | GetCisScanResultDetailsCommandOutput | GetClustersForImageCommandOutput | GetCodeSecurityIntegrationCommandOutput | GetCodeSecurityScanCommandOutput | GetCodeSecurityScanConfigurationCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCisScanConfigurationsCommandOutput | ListCisScanResultsAggregatedByChecksCommandOutput | ListCisScanResultsAggregatedByTargetResourceCommandOutput | ListCisScansCommandOutput | ListCodeSecurityIntegrationsCommandOutput | ListCodeSecurityScanConfigurationAssociationsCommandOutput | ListCodeSecurityScanConfigurationsCommandOutput | ListConnectorScanConfigurationsCommandOutput | ListConnectorsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | SendCisSessionHealthCommandOutput | SendCisSessionTelemetryCommandOutput | StartCisSessionCommandOutput | StartCodeSecurityScanCommandOutput | StopCisSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCisScanConfigurationCommandOutput | UpdateCodeSecurityIntegrationCommandOutput | UpdateCodeSecurityScanConfigurationCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectorCommandOutput | UpdateConnectorScanConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
95
101
|
/**
|
|
96
102
|
* @public
|
|
97
103
|
*/
|
|
@@ -50,6 +50,7 @@ declare const BatchGetFreeTrialInfoCommand_base: {
|
|
|
50
50
|
* // start: new Date("TIMESTAMP"), // required
|
|
51
51
|
* // end: new Date("TIMESTAMP"), // required
|
|
52
52
|
* // status: "STRING_VALUE", // required
|
|
53
|
+
* // cloudProvider: "STRING_VALUE",
|
|
53
54
|
* // },
|
|
54
55
|
* // ],
|
|
55
56
|
* // },
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateConnectorRequest, CreateConnectorResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateConnectorCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateConnectorCommandInput extends CreateConnectorRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateConnectorCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateConnectorCommandOutput extends CreateConnectorResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateConnectorCommand_base: {
|
|
22
|
+
new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, import("..").Inspector2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, import("..").Inspector2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { Inspector2Client, CreateConnectorCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
32
|
+
* // const { Inspector2Client, CreateConnectorCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
33
|
+
* // import type { Inspector2ClientConfig } from "@aws-sdk/client-inspector2";
|
|
34
|
+
* const config = {}; // type is Inspector2ClientConfig
|
|
35
|
+
* const client = new Inspector2Client(config);
|
|
36
|
+
* const input = { // CreateConnectorRequest
|
|
37
|
+
* clientToken: "STRING_VALUE",
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* provider: "AZURE", // required
|
|
40
|
+
* description: "STRING_VALUE",
|
|
41
|
+
* providerDetail: { // ProviderDetailCreate Union: only one key present
|
|
42
|
+
* azure: { // AzureProviderDetailCreate
|
|
43
|
+
* awsConfigConnectorArn: "STRING_VALUE", // required
|
|
44
|
+
* scopeConfiguration: { // AzureScopeConfigurationInput
|
|
45
|
+
* vmScanning: { // ScopeConfigurationInput
|
|
46
|
+
* scopeType: "TENANT" || "SUBSCRIPTION", // required
|
|
47
|
+
* scopeValues: [ // ScopeValueList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* containerImageScanning: {
|
|
52
|
+
* scopeType: "TENANT" || "SUBSCRIPTION", // required
|
|
53
|
+
* scopeValues: [
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* },
|
|
57
|
+
* serverlessScanning: {
|
|
58
|
+
* scopeType: "TENANT" || "SUBSCRIPTION", // required
|
|
59
|
+
* scopeValues: [
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* azureRegions: [ // AzureRegionList // required
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* autoInstallVMScanner: true || false,
|
|
68
|
+
* },
|
|
69
|
+
* },
|
|
70
|
+
* tags: { // ConnectorTagMap
|
|
71
|
+
* "<keys>": "STRING_VALUE",
|
|
72
|
+
* },
|
|
73
|
+
* };
|
|
74
|
+
* const command = new CreateConnectorCommand(input);
|
|
75
|
+
* const response = await client.send(command);
|
|
76
|
+
* // { // CreateConnectorResponse
|
|
77
|
+
* // connectorArn: "STRING_VALUE", // required
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param CreateConnectorCommandInput - {@link CreateConnectorCommandInput}
|
|
83
|
+
* @returns {@link CreateConnectorCommandOutput}
|
|
84
|
+
* @see {@link CreateConnectorCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link CreateConnectorCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
89
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
90
|
+
* <p> For <code>Enable</code>, you receive this error if you attempt to use a feature in an
|
|
91
|
+
* unsupported Amazon Web Services Region. </p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ConflictException} (client fault)
|
|
94
|
+
* <p>A conflict occurred. This exception occurs when the same resource is being modified by
|
|
95
|
+
* concurrent requests.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
101
|
+
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
102
|
+
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
105
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ValidationException} (client fault)
|
|
108
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
109
|
+
* inputs.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link Inspector2ServiceException}
|
|
112
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @example Create an Azure customer-managed connector for VM scanning at SUBSCRIPTION scope
|
|
116
|
+
* ```javascript
|
|
117
|
+
* //
|
|
118
|
+
* const input = {
|
|
119
|
+
* description: "Azure subscription scanner",
|
|
120
|
+
* name: "my-azure-connector",
|
|
121
|
+
* provider: "AZURE",
|
|
122
|
+
* providerDetail: {
|
|
123
|
+
* azure: {
|
|
124
|
+
* autoInstallVMScanner: true,
|
|
125
|
+
* awsConfigConnectorArn: "arn:aws:config:us-east-1:123456789012:connector/azure/a7bc5463-04ce-4b52-901e-f26f7292a4a7/2fbed4bd-5b95-4947-a751-8defc76ecdae",
|
|
126
|
+
* azureRegions: [
|
|
127
|
+
* "eastus"
|
|
128
|
+
* ],
|
|
129
|
+
* scopeConfiguration: {
|
|
130
|
+
* vmScanning: {
|
|
131
|
+
* scopeType: "SUBSCRIPTION",
|
|
132
|
+
* scopeValues: [
|
|
133
|
+
* "552802f5-1492-4184-bbae-7291c9939b16"
|
|
134
|
+
* ]
|
|
135
|
+
* }
|
|
136
|
+
* }
|
|
137
|
+
* }
|
|
138
|
+
* },
|
|
139
|
+
* tags: {
|
|
140
|
+
* env: "prod",
|
|
141
|
+
* owner: "security-team"
|
|
142
|
+
* }
|
|
143
|
+
* };
|
|
144
|
+
* const command = new CreateConnectorCommand(input);
|
|
145
|
+
* const response = await client.send(command);
|
|
146
|
+
* /* response is
|
|
147
|
+
* {
|
|
148
|
+
* connectorArn: "arn:aws:inspector2:us-east-1:123456789012:connector/6ccf8549-b52b-57ca-bf52-a2266da3c53a"
|
|
149
|
+
* }
|
|
150
|
+
* *\/
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class CreateConnectorCommand extends CreateConnectorCommand_base {
|
|
156
|
+
/** @internal type navigation helper, not in runtime. */
|
|
157
|
+
protected static __types: {
|
|
158
|
+
api: {
|
|
159
|
+
input: CreateConnectorRequest;
|
|
160
|
+
output: CreateConnectorResponse;
|
|
161
|
+
};
|
|
162
|
+
sdk: {
|
|
163
|
+
input: CreateConnectorCommandInput;
|
|
164
|
+
output: CreateConnectorCommandOutput;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
}
|
|
@@ -174,6 +174,30 @@ declare const CreateFilterCommand_base: {
|
|
|
174
174
|
* ],
|
|
175
175
|
* codeRepositoryProjectName: "<StringFilterList>",
|
|
176
176
|
* codeRepositoryProviderType: "<StringFilterList>",
|
|
177
|
+
* cloudProvider: "<StringFilterList>",
|
|
178
|
+
* cloudProviderRegion: "<StringFilterList>",
|
|
179
|
+
* cloudProviderAccountId: "<StringFilterList>",
|
|
180
|
+
* cloudProviderOrgId: "<StringFilterList>",
|
|
181
|
+
* cloudVmImageReference: "<StringFilterList>",
|
|
182
|
+
* cloudVmNetworkId: "<StringFilterList>",
|
|
183
|
+
* cloudVmSubnetIds: "<StringFilterList>",
|
|
184
|
+
* cloudImageRepositoryName: "<StringFilterList>",
|
|
185
|
+
* cloudImageRegistry: "<StringFilterList>",
|
|
186
|
+
* cloudImageDigest: "<StringFilterList>",
|
|
187
|
+
* cloudImageTags: "<StringFilterList>",
|
|
188
|
+
* cloudImagePushedAt: "<DateFilterList>",
|
|
189
|
+
* cloudImageArchitecture: "<StringFilterList>",
|
|
190
|
+
* cloudImageLastInUseAt: "<DateFilterList>",
|
|
191
|
+
* cloudImageInUseCount: [
|
|
192
|
+
* {
|
|
193
|
+
* upperInclusive: Number("double"),
|
|
194
|
+
* lowerInclusive: Number("double"),
|
|
195
|
+
* },
|
|
196
|
+
* ],
|
|
197
|
+
* cloudServerlessFunctionName: "<StringFilterList>",
|
|
198
|
+
* cloudServerlessFunctionRuntime: "<StringFilterList>",
|
|
199
|
+
* cloudServerlessFunctionLastModifiedAt: "<DateFilterList>",
|
|
200
|
+
* cloudServerlessFunctionExecutionRole: "<StringFilterList>",
|
|
177
201
|
* },
|
|
178
202
|
* name: "STRING_VALUE", // required
|
|
179
203
|
* tags: { // TagMap
|