@aws-sdk/client-securityagent 3.1069.0 → 3.1071.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 +217 -0
- package/dist-cjs/index.js +573 -1
- package/dist-cjs/models/errors.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +1143 -103
- package/dist-es/SecurityAgent.js +76 -0
- package/dist-es/commands/BatchCreateSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/BatchDeleteSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/BatchDeleteThreatModelsCommand.js +16 -0
- package/dist-es/commands/BatchGetSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/BatchGetThreatModelJobTasksCommand.js +16 -0
- package/dist-es/commands/BatchGetThreatModelJobsCommand.js +16 -0
- package/dist-es/commands/BatchGetThreatModelsCommand.js +16 -0
- package/dist-es/commands/BatchGetThreatsCommand.js +16 -0
- package/dist-es/commands/BatchUpdateSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/CreatePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/CreateSecurityRequirementPackCommand.js +16 -0
- package/dist-es/commands/CreateThreatCommand.js +16 -0
- package/dist-es/commands/CreateThreatModelCommand.js +16 -0
- package/dist-es/commands/DeletePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/DeleteSecurityRequirementPackCommand.js +16 -0
- package/dist-es/commands/DescribePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/GetSecurityRequirementPackCommand.js +16 -0
- package/dist-es/commands/ImportSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/ListPrivateConnectionsCommand.js +16 -0
- package/dist-es/commands/ListSecurityRequirementPacksCommand.js +16 -0
- package/dist-es/commands/ListSecurityRequirementsCommand.js +16 -0
- package/dist-es/commands/ListThreatModelJobTasksCommand.js +16 -0
- package/dist-es/commands/ListThreatModelJobsCommand.js +16 -0
- package/dist-es/commands/ListThreatModelsCommand.js +16 -0
- package/dist-es/commands/ListThreatsCommand.js +16 -0
- package/dist-es/commands/StartThreatModelJobCommand.js +16 -0
- package/dist-es/commands/StopThreatModelJobCommand.js +16 -0
- package/dist-es/commands/UpdatePrivateConnectionCertificateCommand.js +16 -0
- package/dist-es/commands/UpdateSecurityRequirementPackCommand.js +16 -0
- package/dist-es/commands/UpdateThreatCommand.js +16 -0
- package/dist-es/commands/UpdateThreatModelCommand.js +16 -0
- package/dist-es/commands/index.js +31 -0
- package/dist-es/models/enums.js +93 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/pagination/ListPrivateConnectionsPaginator.js +4 -0
- package/dist-es/pagination/ListSecurityRequirementPacksPaginator.js +4 -0
- package/dist-es/pagination/ListSecurityRequirementsPaginator.js +4 -0
- package/dist-es/pagination/ListThreatModelJobTasksPaginator.js +4 -0
- package/dist-es/pagination/ListThreatModelJobsPaginator.js +4 -0
- package/dist-es/pagination/ListThreatModelsPaginator.js +4 -0
- package/dist-es/pagination/ListThreatsPaginator.js +4 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/schemas/schemas_0.js +1040 -103
- package/dist-types/SecurityAgent.d.ts +268 -0
- package/dist-types/SecurityAgentClient.d.ts +33 -2
- package/dist-types/commands/BatchCreateSecurityRequirementsCommand.d.ts +124 -0
- package/dist-types/commands/BatchDeletePentestsCommand.d.ts +8 -0
- package/dist-types/commands/BatchDeleteSecurityRequirementsCommand.d.ts +106 -0
- package/dist-types/commands/BatchDeleteThreatModelsCommand.d.ts +87 -0
- package/dist-types/commands/BatchGetCodeReviewJobsCommand.d.ts +5 -1
- package/dist-types/commands/BatchGetCodeReviewsCommand.d.ts +5 -0
- package/dist-types/commands/BatchGetFindingsCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetPentestJobsCommand.d.ts +9 -1
- package/dist-types/commands/BatchGetPentestsCommand.d.ts +8 -0
- package/dist-types/commands/BatchGetSecurityRequirementsCommand.d.ts +112 -0
- package/dist-types/commands/BatchGetThreatModelJobTasksCommand.d.ts +101 -0
- package/dist-types/commands/BatchGetThreatModelJobsCommand.d.ts +130 -0
- package/dist-types/commands/BatchGetThreatModelsCommand.d.ts +147 -0
- package/dist-types/commands/BatchGetThreatsCommand.d.ts +121 -0
- package/dist-types/commands/BatchUpdateSecurityRequirementsCommand.d.ts +112 -0
- package/dist-types/commands/CreateCodeReviewCommand.d.ts +10 -0
- package/dist-types/commands/CreateIntegrationCommand.d.ts +22 -1
- package/dist-types/commands/CreatePentestCommand.d.ts +11 -0
- package/dist-types/commands/CreatePrivateConnectionCommand.d.ts +132 -0
- package/dist-types/commands/CreateSecurityRequirementPackCommand.d.ts +102 -0
- package/dist-types/commands/CreateThreatCommand.d.ts +141 -0
- package/dist-types/commands/CreateThreatModelCommand.d.ts +201 -0
- package/dist-types/commands/DeletePrivateConnectionCommand.d.ts +106 -0
- package/dist-types/commands/DeleteSecurityRequirementPackCommand.d.ts +92 -0
- package/dist-types/commands/DescribePrivateConnectionCommand.d.ts +103 -0
- package/dist-types/commands/GetIntegrationCommand.d.ts +3 -1
- package/dist-types/commands/GetSecurityRequirementPackCommand.d.ts +100 -0
- package/dist-types/commands/ImportSecurityRequirementsCommand.d.ts +107 -0
- package/dist-types/commands/InitiateProviderRegistrationCommand.d.ts +1 -1
- package/dist-types/commands/ListCodeReviewJobTasksCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -0
- package/dist-types/commands/ListIntegratedResourcesCommand.d.ts +34 -1
- package/dist-types/commands/ListIntegrationsCommand.d.ts +4 -2
- package/dist-types/commands/ListPentestJobTasksCommand.d.ts +1 -1
- package/dist-types/commands/ListPrivateConnectionsCommand.d.ts +106 -0
- package/dist-types/commands/ListSecurityRequirementPacksCommand.d.ts +105 -0
- package/dist-types/commands/ListSecurityRequirementsCommand.d.ts +102 -0
- package/dist-types/commands/ListThreatModelJobTasksCommand.d.ts +91 -0
- package/dist-types/commands/ListThreatModelJobsCommand.d.ts +90 -0
- package/dist-types/commands/ListThreatModelsCommand.d.ts +87 -0
- package/dist-types/commands/ListThreatsCommand.d.ts +96 -0
- package/dist-types/commands/StartCodeReviewJobCommand.d.ts +3 -0
- package/dist-types/commands/StartThreatModelJobCommand.d.ts +83 -0
- package/dist-types/commands/StopThreatModelJobCommand.d.ts +75 -0
- package/dist-types/commands/UpdateCodeReviewCommand.d.ts +10 -0
- package/dist-types/commands/UpdateFindingCommand.d.ts +7 -0
- package/dist-types/commands/UpdateIntegratedResourcesCommand.d.ts +28 -0
- package/dist-types/commands/UpdatePentestCommand.d.ts +11 -0
- package/dist-types/commands/UpdatePrivateConnectionCertificateCommand.d.ts +107 -0
- package/dist-types/commands/UpdateSecurityRequirementPackCommand.d.ts +100 -0
- package/dist-types/commands/UpdateThreatCommand.d.ts +139 -0
- package/dist-types/commands/UpdateThreatModelCommand.d.ts +196 -0
- package/dist-types/commands/index.d.ts +31 -0
- package/dist-types/models/enums.d.ts +250 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +4254 -818
- package/dist-types/pagination/ListPrivateConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSecurityRequirementPacksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSecurityRequirementsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListThreatModelJobTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListThreatModelJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListThreatModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListThreatsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/schemas/schemas_0.d.ts +134 -0
- package/dist-types/ts3.4/SecurityAgent.d.ts +584 -0
- package/dist-types/ts3.4/SecurityAgentClient.d.ts +186 -0
- package/dist-types/ts3.4/commands/BatchCreateSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchDeleteSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchDeleteThreatModelsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchGetSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchGetThreatModelJobTasksCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchGetThreatModelJobsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchGetThreatModelsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/BatchGetThreatsCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/BatchUpdateSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreatePrivateConnectionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateSecurityRequirementPackCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateThreatCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/CreateThreatModelCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/DeletePrivateConnectionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteSecurityRequirementPackCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DescribePrivateConnectionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetSecurityRequirementPackCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ImportSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListPrivateConnectionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListSecurityRequirementPacksCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListSecurityRequirementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListThreatModelJobTasksCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListThreatModelJobsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListThreatModelsCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListThreatsCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/StartThreatModelJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/StopThreatModelJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdatePrivateConnectionCertificateCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateSecurityRequirementPackCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateThreatCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UpdateThreatModelCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +31 -0
- package/dist-types/ts3.4/models/enums.d.ts +123 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +924 -0
- package/dist-types/ts3.4/pagination/ListPrivateConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityRequirementPacksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityRequirementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThreatModelJobTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThreatModelJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThreatModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThreatsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
- package/package.json +3 -3
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchGetThreatModelJobTasksInput, BatchGetThreatModelJobTasksOutput } from "../models/models_0";
|
|
4
|
+
import type { SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityAgentClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetThreatModelJobTasksCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetThreatModelJobTasksCommandInput extends BatchGetThreatModelJobTasksInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetThreatModelJobTasksCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetThreatModelJobTasksCommandOutput extends BatchGetThreatModelJobTasksOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetThreatModelJobTasksCommand_base: {
|
|
25
|
+
new (input: BatchGetThreatModelJobTasksCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelJobTasksCommandInput, BatchGetThreatModelJobTasksCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchGetThreatModelJobTasksCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelJobTasksCommandInput, BatchGetThreatModelJobTasksCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves information about one or more tasks within a threat model job.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, BatchGetThreatModelJobTasksCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, BatchGetThreatModelJobTasksCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
38
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
39
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
|
+
* const client = new SecurityAgentClient(config);
|
|
41
|
+
* const input = { // BatchGetThreatModelJobTasksInput
|
|
42
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
43
|
+
* threatModelJobTaskIds: [ // TaskIdList // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchGetThreatModelJobTasksCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchGetThreatModelJobTasksOutput
|
|
50
|
+
* // threatModelJobTasks: [ // ThreatModelJobTaskList
|
|
51
|
+
* // { // ThreatModelJobTask
|
|
52
|
+
* // taskId: "STRING_VALUE", // required
|
|
53
|
+
* // threatModelId: "STRING_VALUE",
|
|
54
|
+
* // threatModelJobId: "STRING_VALUE",
|
|
55
|
+
* // agentSpaceId: "STRING_VALUE",
|
|
56
|
+
* // title: "STRING_VALUE",
|
|
57
|
+
* // description: "STRING_VALUE",
|
|
58
|
+
* // executionStatus: "IN_PROGRESS" || "ABORTED" || "COMPLETED" || "INTERNAL_ERROR" || "FAILED",
|
|
59
|
+
* // logsLocation: { // LogLocation
|
|
60
|
+
* // logType: "CLOUDWATCH",
|
|
61
|
+
* // cloudWatchLog: { // CloudWatchLog
|
|
62
|
+
* // logGroup: "STRING_VALUE",
|
|
63
|
+
* // logStream: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
67
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // notFound: [ // TaskIdList
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param BatchGetThreatModelJobTasksCommandInput - {@link BatchGetThreatModelJobTasksCommandInput}
|
|
78
|
+
* @returns {@link BatchGetThreatModelJobTasksCommandOutput}
|
|
79
|
+
* @see {@link BatchGetThreatModelJobTasksCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link BatchGetThreatModelJobTasksCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link SecurityAgentServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class BatchGetThreatModelJobTasksCommand extends BatchGetThreatModelJobTasksCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: BatchGetThreatModelJobTasksInput;
|
|
94
|
+
output: BatchGetThreatModelJobTasksOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: BatchGetThreatModelJobTasksCommandInput;
|
|
98
|
+
output: BatchGetThreatModelJobTasksCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchGetThreatModelJobsInput, BatchGetThreatModelJobsOutput } from "../models/models_0";
|
|
4
|
+
import type { SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityAgentClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetThreatModelJobsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetThreatModelJobsCommandInput extends BatchGetThreatModelJobsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetThreatModelJobsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetThreatModelJobsCommandOutput extends BatchGetThreatModelJobsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetThreatModelJobsCommand_base: {
|
|
25
|
+
new (input: BatchGetThreatModelJobsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelJobsCommandInput, BatchGetThreatModelJobsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchGetThreatModelJobsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelJobsCommandInput, BatchGetThreatModelJobsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves information about one or more threat model jobs in an agent space.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, BatchGetThreatModelJobsCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, BatchGetThreatModelJobsCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
38
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
39
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
|
+
* const client = new SecurityAgentClient(config);
|
|
41
|
+
* const input = { // BatchGetThreatModelJobsInput
|
|
42
|
+
* threatModelJobIds: [ // ThreatModelJobIdList // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchGetThreatModelJobsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchGetThreatModelJobsOutput
|
|
50
|
+
* // threatModelJobs: [ // ThreatModelJobList
|
|
51
|
+
* // { // ThreatModelJob
|
|
52
|
+
* // threatModelJobId: "STRING_VALUE",
|
|
53
|
+
* // threatModelId: "STRING_VALUE",
|
|
54
|
+
* // agentSpaceId: "STRING_VALUE",
|
|
55
|
+
* // title: "STRING_VALUE",
|
|
56
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "FAILED" || "COMPLETED",
|
|
57
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
59
|
+
* // executionStartTime: new Date("TIMESTAMP"),
|
|
60
|
+
* // executionEndTime: new Date("TIMESTAMP"),
|
|
61
|
+
* // sourceCode: [ // SourceCodeRepositoryList
|
|
62
|
+
* // { // SourceCodeRepository
|
|
63
|
+
* // s3Location: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // integratedRepositories: [ // IntegratedRepositoryList
|
|
67
|
+
* // { // IntegratedRepository
|
|
68
|
+
* // integrationId: "STRING_VALUE", // required
|
|
69
|
+
* // providerResourceId: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // documents: [ // DocumentList
|
|
73
|
+
* // { // DocumentInfo
|
|
74
|
+
* // s3Location: "STRING_VALUE",
|
|
75
|
+
* // artifactId: "STRING_VALUE",
|
|
76
|
+
* // integratedDocument: { // IntegratedDocument
|
|
77
|
+
* // integrationId: "STRING_VALUE", // required
|
|
78
|
+
* // resourceId: "STRING_VALUE", // required
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // ],
|
|
82
|
+
* // scopeDocs: [
|
|
83
|
+
* // {
|
|
84
|
+
* // s3Location: "STRING_VALUE",
|
|
85
|
+
* // artifactId: "STRING_VALUE",
|
|
86
|
+
* // integratedDocument: {
|
|
87
|
+
* // integrationId: "STRING_VALUE", // required
|
|
88
|
+
* // resourceId: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
91
|
+
* // ],
|
|
92
|
+
* // errorInformation: { // ErrorInformation
|
|
93
|
+
* // code: "CLIENT_ERROR" || "INTERNAL_ERROR" || "STOPPED_BY_USER",
|
|
94
|
+
* // message: "STRING_VALUE",
|
|
95
|
+
* // },
|
|
96
|
+
* // systemOverview: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // notFound: [ // ThreatModelJobIdList
|
|
100
|
+
* // "STRING_VALUE",
|
|
101
|
+
* // ],
|
|
102
|
+
* // };
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @param BatchGetThreatModelJobsCommandInput - {@link BatchGetThreatModelJobsCommandInput}
|
|
107
|
+
* @returns {@link BatchGetThreatModelJobsCommandOutput}
|
|
108
|
+
* @see {@link BatchGetThreatModelJobsCommandInput} for command's `input` shape.
|
|
109
|
+
* @see {@link BatchGetThreatModelJobsCommandOutput} for command's `response` shape.
|
|
110
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link SecurityAgentServiceException}
|
|
113
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare class BatchGetThreatModelJobsCommand extends BatchGetThreatModelJobsCommand_base {
|
|
119
|
+
/** @internal type navigation helper, not in runtime. */
|
|
120
|
+
protected static __types: {
|
|
121
|
+
api: {
|
|
122
|
+
input: BatchGetThreatModelJobsInput;
|
|
123
|
+
output: BatchGetThreatModelJobsOutput;
|
|
124
|
+
};
|
|
125
|
+
sdk: {
|
|
126
|
+
input: BatchGetThreatModelJobsCommandInput;
|
|
127
|
+
output: BatchGetThreatModelJobsCommandOutput;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchGetThreatModelsInput, BatchGetThreatModelsOutput } from "../models/models_0";
|
|
4
|
+
import type { SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityAgentClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetThreatModelsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetThreatModelsCommandInput extends BatchGetThreatModelsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetThreatModelsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetThreatModelsCommandOutput extends BatchGetThreatModelsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetThreatModelsCommand_base: {
|
|
25
|
+
new (input: BatchGetThreatModelsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelsCommandInput, BatchGetThreatModelsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchGetThreatModelsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatModelsCommandInput, BatchGetThreatModelsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves information about one or more threat models in an agent space.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, BatchGetThreatModelsCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, BatchGetThreatModelsCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
38
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
39
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
|
+
* const client = new SecurityAgentClient(config);
|
|
41
|
+
* const input = { // BatchGetThreatModelsInput
|
|
42
|
+
* threatModelIds: [ // ThreatModelIdList // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchGetThreatModelsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchGetThreatModelsOutput
|
|
50
|
+
* // threatModels: [ // ThreatModelList
|
|
51
|
+
* // { // ThreatModel
|
|
52
|
+
* // threatModelId: "STRING_VALUE", // required
|
|
53
|
+
* // agentSpaceId: "STRING_VALUE", // required
|
|
54
|
+
* // title: "STRING_VALUE", // required
|
|
55
|
+
* // description: "STRING_VALUE",
|
|
56
|
+
* // assets: { // Assets
|
|
57
|
+
* // endpoints: [ // EndpointList
|
|
58
|
+
* // { // Endpoint
|
|
59
|
+
* // uri: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // actors: [ // ActorList
|
|
63
|
+
* // { // Actor
|
|
64
|
+
* // identifier: "STRING_VALUE",
|
|
65
|
+
* // uris: [ // UriList
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
68
|
+
* // authentication: { // Authentication
|
|
69
|
+
* // providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
70
|
+
* // value: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // description: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // documents: [ // DocumentList
|
|
76
|
+
* // { // DocumentInfo
|
|
77
|
+
* // s3Location: "STRING_VALUE",
|
|
78
|
+
* // artifactId: "STRING_VALUE",
|
|
79
|
+
* // integratedDocument: { // IntegratedDocument
|
|
80
|
+
* // integrationId: "STRING_VALUE", // required
|
|
81
|
+
* // resourceId: "STRING_VALUE", // required
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // sourceCode: [ // SourceCodeRepositoryList
|
|
86
|
+
* // { // SourceCodeRepository
|
|
87
|
+
* // s3Location: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
90
|
+
* // integratedRepositories: [ // IntegratedRepositoryList
|
|
91
|
+
* // { // IntegratedRepository
|
|
92
|
+
* // integrationId: "STRING_VALUE", // required
|
|
93
|
+
* // providerResourceId: "STRING_VALUE", // required
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // scopeDocs: [
|
|
98
|
+
* // {
|
|
99
|
+
* // s3Location: "STRING_VALUE",
|
|
100
|
+
* // artifactId: "STRING_VALUE",
|
|
101
|
+
* // integratedDocument: {
|
|
102
|
+
* // integrationId: "STRING_VALUE", // required
|
|
103
|
+
* // resourceId: "STRING_VALUE", // required
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // serviceRole: "STRING_VALUE",
|
|
108
|
+
* // logConfig: { // CloudWatchLog
|
|
109
|
+
* // logGroup: "STRING_VALUE",
|
|
110
|
+
* // logStream: "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
113
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // notFound: [ // ThreatModelIdList
|
|
117
|
+
* // "STRING_VALUE",
|
|
118
|
+
* // ],
|
|
119
|
+
* // };
|
|
120
|
+
*
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @param BatchGetThreatModelsCommandInput - {@link BatchGetThreatModelsCommandInput}
|
|
124
|
+
* @returns {@link BatchGetThreatModelsCommandOutput}
|
|
125
|
+
* @see {@link BatchGetThreatModelsCommandInput} for command's `input` shape.
|
|
126
|
+
* @see {@link BatchGetThreatModelsCommandOutput} for command's `response` shape.
|
|
127
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link SecurityAgentServiceException}
|
|
130
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export declare class BatchGetThreatModelsCommand extends BatchGetThreatModelsCommand_base {
|
|
136
|
+
/** @internal type navigation helper, not in runtime. */
|
|
137
|
+
protected static __types: {
|
|
138
|
+
api: {
|
|
139
|
+
input: BatchGetThreatModelsInput;
|
|
140
|
+
output: BatchGetThreatModelsOutput;
|
|
141
|
+
};
|
|
142
|
+
sdk: {
|
|
143
|
+
input: BatchGetThreatModelsCommandInput;
|
|
144
|
+
output: BatchGetThreatModelsCommandOutput;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchGetThreatsInput, BatchGetThreatsOutput } from "../models/models_0";
|
|
4
|
+
import type { SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityAgentClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetThreatsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetThreatsCommandInput extends BatchGetThreatsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetThreatsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetThreatsCommandOutput extends BatchGetThreatsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetThreatsCommand_base: {
|
|
25
|
+
new (input: BatchGetThreatsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatsCommandInput, BatchGetThreatsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchGetThreatsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetThreatsCommandInput, BatchGetThreatsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves information about one or more threats.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, BatchGetThreatsCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, BatchGetThreatsCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
38
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
39
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
|
+
* const client = new SecurityAgentClient(config);
|
|
41
|
+
* const input = { // BatchGetThreatsInput
|
|
42
|
+
* threatIds: [ // ThreatIdList // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchGetThreatsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchGetThreatsOutput
|
|
50
|
+
* // threats: [ // ThreatList
|
|
51
|
+
* // { // Threat
|
|
52
|
+
* // threatId: "STRING_VALUE",
|
|
53
|
+
* // threatJobId: "STRING_VALUE",
|
|
54
|
+
* // title: "STRING_VALUE",
|
|
55
|
+
* // statement: "STRING_VALUE",
|
|
56
|
+
* // severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFO",
|
|
57
|
+
* // status: "OPEN" || "RESOLVED" || "DISMISSED",
|
|
58
|
+
* // comments: "STRING_VALUE",
|
|
59
|
+
* // threatSource: "STRING_VALUE",
|
|
60
|
+
* // prerequisites: "STRING_VALUE",
|
|
61
|
+
* // threatAction: "STRING_VALUE",
|
|
62
|
+
* // threatImpact: "STRING_VALUE",
|
|
63
|
+
* // impactedGoal: [ // StringList
|
|
64
|
+
* // "STRING_VALUE",
|
|
65
|
+
* // ],
|
|
66
|
+
* // impactedAssets: [
|
|
67
|
+
* // "STRING_VALUE",
|
|
68
|
+
* // ],
|
|
69
|
+
* // anchor: { // ThreatAnchorShape
|
|
70
|
+
* // kind: "STRING_VALUE",
|
|
71
|
+
* // id: "STRING_VALUE",
|
|
72
|
+
* // packageId: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // evidence: [ // ThreatEvidenceList
|
|
75
|
+
* // { // ThreatEvidenceShape
|
|
76
|
+
* // packageId: "STRING_VALUE",
|
|
77
|
+
* // path: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // stride: [ // StrideCategoryList
|
|
81
|
+
* // "SPOOFING" || "TAMPERING" || "REPUDIATION" || "INFORMATION_DISCLOSURE" || "DENIAL_OF_SERVICE" || "ELEVATION_OF_PRIVILEGE",
|
|
82
|
+
* // ],
|
|
83
|
+
* // recommendation: "STRING_VALUE",
|
|
84
|
+
* // createdBy: "CUSTOMER" || "AGENT",
|
|
85
|
+
* // updatedBy: "CUSTOMER" || "AGENT",
|
|
86
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
90
|
+
* // notFound: [ // ThreatIdList
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param BatchGetThreatsCommandInput - {@link BatchGetThreatsCommandInput}
|
|
98
|
+
* @returns {@link BatchGetThreatsCommandOutput}
|
|
99
|
+
* @see {@link BatchGetThreatsCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link BatchGetThreatsCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link SecurityAgentServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class BatchGetThreatsCommand extends BatchGetThreatsCommand_base {
|
|
110
|
+
/** @internal type navigation helper, not in runtime. */
|
|
111
|
+
protected static __types: {
|
|
112
|
+
api: {
|
|
113
|
+
input: BatchGetThreatsInput;
|
|
114
|
+
output: BatchGetThreatsOutput;
|
|
115
|
+
};
|
|
116
|
+
sdk: {
|
|
117
|
+
input: BatchGetThreatsCommandInput;
|
|
118
|
+
output: BatchGetThreatsCommandOutput;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchUpdateSecurityRequirementsInput, BatchUpdateSecurityRequirementsOutput } from "../models/models_0";
|
|
4
|
+
import type { SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityAgentClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchUpdateSecurityRequirementsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchUpdateSecurityRequirementsCommandInput extends BatchUpdateSecurityRequirementsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchUpdateSecurityRequirementsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchUpdateSecurityRequirementsCommandOutput extends BatchUpdateSecurityRequirementsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchUpdateSecurityRequirementsCommand_base: {
|
|
25
|
+
new (input: BatchUpdateSecurityRequirementsCommandInput): import("@smithy/core/client").CommandImpl<BatchUpdateSecurityRequirementsCommandInput, BatchUpdateSecurityRequirementsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchUpdateSecurityRequirementsCommandInput): import("@smithy/core/client").CommandImpl<BatchUpdateSecurityRequirementsCommandInput, BatchUpdateSecurityRequirementsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Batch updates security requirements within a customer managed pack.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, BatchUpdateSecurityRequirementsCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, BatchUpdateSecurityRequirementsCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
38
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
39
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
|
+
* const client = new SecurityAgentClient(config);
|
|
41
|
+
* const input = { // BatchUpdateSecurityRequirementsInput
|
|
42
|
+
* packId: "STRING_VALUE", // required
|
|
43
|
+
* securityRequirements: [ // UpdateSecurityRequirementEntryList // required
|
|
44
|
+
* { // UpdateSecurityRequirementEntry
|
|
45
|
+
* name: "STRING_VALUE", // required
|
|
46
|
+
* description: "STRING_VALUE",
|
|
47
|
+
* domain: "STRING_VALUE",
|
|
48
|
+
* evaluation: "STRING_VALUE",
|
|
49
|
+
* remediation: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* };
|
|
53
|
+
* const command = new BatchUpdateSecurityRequirementsCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // BatchUpdateSecurityRequirementsOutput
|
|
56
|
+
* // updatedSecurityRequirementNames: [ // SecurityRequirementNameList // required
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // errors: [ // BatchSecurityRequirementErrors // required
|
|
60
|
+
* // { // BatchSecurityRequirementError
|
|
61
|
+
* // securityRequirementName: "STRING_VALUE", // required
|
|
62
|
+
* // code: "STRING_VALUE", // required
|
|
63
|
+
* // message: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param BatchUpdateSecurityRequirementsCommandInput - {@link BatchUpdateSecurityRequirementsCommandInput}
|
|
71
|
+
* @returns {@link BatchUpdateSecurityRequirementsCommandOutput}
|
|
72
|
+
* @see {@link BatchUpdateSecurityRequirementsCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link BatchUpdateSecurityRequirementsCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ConflictException} (client fault)
|
|
80
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
+
* <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* <p>The request was denied due to request throttling.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationException} (client fault)
|
|
92
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link SecurityAgentServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export declare class BatchUpdateSecurityRequirementsCommand extends BatchUpdateSecurityRequirementsCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: BatchUpdateSecurityRequirementsInput;
|
|
105
|
+
output: BatchUpdateSecurityRequirementsOutput;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: BatchUpdateSecurityRequirementsCommandInput;
|
|
109
|
+
output: BatchUpdateSecurityRequirementsCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -64,6 +64,10 @@ declare const CreateCodeReviewCommand_base: {
|
|
|
64
64
|
* { // DocumentInfo
|
|
65
65
|
* s3Location: "STRING_VALUE",
|
|
66
66
|
* artifactId: "STRING_VALUE",
|
|
67
|
+
* integratedDocument: { // IntegratedDocument
|
|
68
|
+
* integrationId: "STRING_VALUE", // required
|
|
69
|
+
* resourceId: "STRING_VALUE", // required
|
|
70
|
+
* },
|
|
67
71
|
* },
|
|
68
72
|
* ],
|
|
69
73
|
* sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -84,6 +88,7 @@ declare const CreateCodeReviewCommand_base: {
|
|
|
84
88
|
* logStream: "STRING_VALUE",
|
|
85
89
|
* },
|
|
86
90
|
* codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
91
|
+
* validationMode: "DISABLED" || "SIMULATED",
|
|
87
92
|
* };
|
|
88
93
|
* const command = new CreateCodeReviewCommand(input);
|
|
89
94
|
* const response = await client.send(command);
|
|
@@ -115,6 +120,10 @@ declare const CreateCodeReviewCommand_base: {
|
|
|
115
120
|
* // { // DocumentInfo
|
|
116
121
|
* // s3Location: "STRING_VALUE",
|
|
117
122
|
* // artifactId: "STRING_VALUE",
|
|
123
|
+
* // integratedDocument: { // IntegratedDocument
|
|
124
|
+
* // integrationId: "STRING_VALUE", // required
|
|
125
|
+
* // resourceId: "STRING_VALUE", // required
|
|
126
|
+
* // },
|
|
118
127
|
* // },
|
|
119
128
|
* // ],
|
|
120
129
|
* // sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -136,6 +145,7 @@ declare const CreateCodeReviewCommand_base: {
|
|
|
136
145
|
* // },
|
|
137
146
|
* // agentSpaceId: "STRING_VALUE",
|
|
138
147
|
* // codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
148
|
+
* // validationMode: "DISABLED" || "SIMULATED",
|
|
139
149
|
* // };
|
|
140
150
|
*
|
|
141
151
|
* ```
|