@aws-sdk/client-securityagent 3.1070.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,139 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateThreatInput, UpdateThreatOutput } 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 UpdateThreatCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateThreatCommandInput extends UpdateThreatInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateThreatCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateThreatCommandOutput extends UpdateThreatOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateThreatCommand_base: {
|
|
25
|
+
new (input: UpdateThreatCommandInput): import("@smithy/core/client").CommandImpl<UpdateThreatCommandInput, UpdateThreatCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateThreatCommandInput): import("@smithy/core/client").CommandImpl<UpdateThreatCommandInput, UpdateThreatCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates a threat.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, UpdateThreatCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, UpdateThreatCommand } = 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 = { // UpdateThreatInput
|
|
42
|
+
* threatId: "STRING_VALUE", // required
|
|
43
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
44
|
+
* title: "STRING_VALUE",
|
|
45
|
+
* status: "OPEN" || "RESOLVED" || "DISMISSED",
|
|
46
|
+
* comments: "STRING_VALUE",
|
|
47
|
+
* statement: "STRING_VALUE",
|
|
48
|
+
* severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFO",
|
|
49
|
+
* threatSource: "STRING_VALUE",
|
|
50
|
+
* prerequisites: "STRING_VALUE",
|
|
51
|
+
* threatAction: "STRING_VALUE",
|
|
52
|
+
* threatImpact: "STRING_VALUE",
|
|
53
|
+
* impactedGoal: [ // StringList
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* impactedAssets: [
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* anchor: { // ThreatAnchorShape
|
|
60
|
+
* kind: "STRING_VALUE",
|
|
61
|
+
* id: "STRING_VALUE",
|
|
62
|
+
* packageId: "STRING_VALUE",
|
|
63
|
+
* },
|
|
64
|
+
* evidence: [ // ThreatEvidenceList
|
|
65
|
+
* { // ThreatEvidenceShape
|
|
66
|
+
* packageId: "STRING_VALUE",
|
|
67
|
+
* path: "STRING_VALUE",
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* recommendation: "STRING_VALUE",
|
|
71
|
+
* };
|
|
72
|
+
* const command = new UpdateThreatCommand(input);
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* // { // UpdateThreatOutput
|
|
75
|
+
* // threatId: "STRING_VALUE", // required
|
|
76
|
+
* // threatJobId: "STRING_VALUE", // required
|
|
77
|
+
* // title: "STRING_VALUE",
|
|
78
|
+
* // statement: "STRING_VALUE",
|
|
79
|
+
* // severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFO",
|
|
80
|
+
* // status: "OPEN" || "RESOLVED" || "DISMISSED",
|
|
81
|
+
* // comments: "STRING_VALUE",
|
|
82
|
+
* // stride: [ // StrideCategoryList
|
|
83
|
+
* // "SPOOFING" || "TAMPERING" || "REPUDIATION" || "INFORMATION_DISCLOSURE" || "DENIAL_OF_SERVICE" || "ELEVATION_OF_PRIVILEGE",
|
|
84
|
+
* // ],
|
|
85
|
+
* // threatSource: "STRING_VALUE",
|
|
86
|
+
* // prerequisites: "STRING_VALUE",
|
|
87
|
+
* // threatAction: "STRING_VALUE",
|
|
88
|
+
* // threatImpact: "STRING_VALUE",
|
|
89
|
+
* // impactedGoal: [ // StringList
|
|
90
|
+
* // "STRING_VALUE",
|
|
91
|
+
* // ],
|
|
92
|
+
* // impactedAssets: [
|
|
93
|
+
* // "STRING_VALUE",
|
|
94
|
+
* // ],
|
|
95
|
+
* // anchor: { // ThreatAnchorShape
|
|
96
|
+
* // kind: "STRING_VALUE",
|
|
97
|
+
* // id: "STRING_VALUE",
|
|
98
|
+
* // packageId: "STRING_VALUE",
|
|
99
|
+
* // },
|
|
100
|
+
* // evidence: [ // ThreatEvidenceList
|
|
101
|
+
* // { // ThreatEvidenceShape
|
|
102
|
+
* // packageId: "STRING_VALUE",
|
|
103
|
+
* // path: "STRING_VALUE",
|
|
104
|
+
* // },
|
|
105
|
+
* // ],
|
|
106
|
+
* // recommendation: "STRING_VALUE",
|
|
107
|
+
* // createdBy: "CUSTOMER" || "AGENT",
|
|
108
|
+
* // updatedBy: "CUSTOMER" || "AGENT",
|
|
109
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
110
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
111
|
+
* // };
|
|
112
|
+
*
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param UpdateThreatCommandInput - {@link UpdateThreatCommandInput}
|
|
116
|
+
* @returns {@link UpdateThreatCommandOutput}
|
|
117
|
+
* @see {@link UpdateThreatCommandInput} for command's `input` shape.
|
|
118
|
+
* @see {@link UpdateThreatCommandOutput} for command's `response` shape.
|
|
119
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link SecurityAgentServiceException}
|
|
122
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
123
|
+
*
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class UpdateThreatCommand extends UpdateThreatCommand_base {
|
|
128
|
+
/** @internal type navigation helper, not in runtime. */
|
|
129
|
+
protected static __types: {
|
|
130
|
+
api: {
|
|
131
|
+
input: UpdateThreatInput;
|
|
132
|
+
output: UpdateThreatOutput;
|
|
133
|
+
};
|
|
134
|
+
sdk: {
|
|
135
|
+
input: UpdateThreatCommandInput;
|
|
136
|
+
output: UpdateThreatCommandOutput;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateThreatModelInput, UpdateThreatModelOutput } 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 UpdateThreatModelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateThreatModelCommandInput extends UpdateThreatModelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateThreatModelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateThreatModelCommandOutput extends UpdateThreatModelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateThreatModelCommand_base: {
|
|
25
|
+
new (input: UpdateThreatModelCommandInput): import("@smithy/core/client").CommandImpl<UpdateThreatModelCommandInput, UpdateThreatModelCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateThreatModelCommandInput): import("@smithy/core/client").CommandImpl<UpdateThreatModelCommandInput, UpdateThreatModelCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates an existing threat model configuration.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, UpdateThreatModelCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, UpdateThreatModelCommand } = 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 = { // UpdateThreatModelInput
|
|
42
|
+
* threatModelId: "STRING_VALUE", // required
|
|
43
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
44
|
+
* title: "STRING_VALUE",
|
|
45
|
+
* description: "STRING_VALUE",
|
|
46
|
+
* assets: { // Assets
|
|
47
|
+
* endpoints: [ // EndpointList
|
|
48
|
+
* { // Endpoint
|
|
49
|
+
* uri: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* actors: [ // ActorList
|
|
53
|
+
* { // Actor
|
|
54
|
+
* identifier: "STRING_VALUE",
|
|
55
|
+
* uris: [ // UriList
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* authentication: { // Authentication
|
|
59
|
+
* providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
60
|
+
* value: "STRING_VALUE",
|
|
61
|
+
* },
|
|
62
|
+
* description: "STRING_VALUE",
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* documents: [ // DocumentList
|
|
66
|
+
* { // DocumentInfo
|
|
67
|
+
* s3Location: "STRING_VALUE",
|
|
68
|
+
* artifactId: "STRING_VALUE",
|
|
69
|
+
* integratedDocument: { // IntegratedDocument
|
|
70
|
+
* integrationId: "STRING_VALUE", // required
|
|
71
|
+
* resourceId: "STRING_VALUE", // required
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* sourceCode: [ // SourceCodeRepositoryList
|
|
76
|
+
* { // SourceCodeRepository
|
|
77
|
+
* s3Location: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* integratedRepositories: [ // IntegratedRepositoryList
|
|
81
|
+
* { // IntegratedRepository
|
|
82
|
+
* integrationId: "STRING_VALUE", // required
|
|
83
|
+
* providerResourceId: "STRING_VALUE", // required
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* scopeDocs: [
|
|
88
|
+
* {
|
|
89
|
+
* s3Location: "STRING_VALUE",
|
|
90
|
+
* artifactId: "STRING_VALUE",
|
|
91
|
+
* integratedDocument: {
|
|
92
|
+
* integrationId: "STRING_VALUE", // required
|
|
93
|
+
* resourceId: "STRING_VALUE", // required
|
|
94
|
+
* },
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* serviceRole: "STRING_VALUE",
|
|
98
|
+
* logConfig: { // CloudWatchLog
|
|
99
|
+
* logGroup: "STRING_VALUE",
|
|
100
|
+
* logStream: "STRING_VALUE",
|
|
101
|
+
* },
|
|
102
|
+
* };
|
|
103
|
+
* const command = new UpdateThreatModelCommand(input);
|
|
104
|
+
* const response = await client.send(command);
|
|
105
|
+
* // { // UpdateThreatModelOutput
|
|
106
|
+
* // threatModelId: "STRING_VALUE", // required
|
|
107
|
+
* // title: "STRING_VALUE",
|
|
108
|
+
* // agentSpaceId: "STRING_VALUE",
|
|
109
|
+
* // description: "STRING_VALUE",
|
|
110
|
+
* // assets: { // Assets
|
|
111
|
+
* // endpoints: [ // EndpointList
|
|
112
|
+
* // { // Endpoint
|
|
113
|
+
* // uri: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // actors: [ // ActorList
|
|
117
|
+
* // { // Actor
|
|
118
|
+
* // identifier: "STRING_VALUE",
|
|
119
|
+
* // uris: [ // UriList
|
|
120
|
+
* // "STRING_VALUE",
|
|
121
|
+
* // ],
|
|
122
|
+
* // authentication: { // Authentication
|
|
123
|
+
* // providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
124
|
+
* // value: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // description: "STRING_VALUE",
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // documents: [ // DocumentList
|
|
130
|
+
* // { // DocumentInfo
|
|
131
|
+
* // s3Location: "STRING_VALUE",
|
|
132
|
+
* // artifactId: "STRING_VALUE",
|
|
133
|
+
* // integratedDocument: { // IntegratedDocument
|
|
134
|
+
* // integrationId: "STRING_VALUE", // required
|
|
135
|
+
* // resourceId: "STRING_VALUE", // required
|
|
136
|
+
* // },
|
|
137
|
+
* // },
|
|
138
|
+
* // ],
|
|
139
|
+
* // sourceCode: [ // SourceCodeRepositoryList
|
|
140
|
+
* // { // SourceCodeRepository
|
|
141
|
+
* // s3Location: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
144
|
+
* // integratedRepositories: [ // IntegratedRepositoryList
|
|
145
|
+
* // { // IntegratedRepository
|
|
146
|
+
* // integrationId: "STRING_VALUE", // required
|
|
147
|
+
* // providerResourceId: "STRING_VALUE", // required
|
|
148
|
+
* // },
|
|
149
|
+
* // ],
|
|
150
|
+
* // },
|
|
151
|
+
* // scopeDocs: [
|
|
152
|
+
* // {
|
|
153
|
+
* // s3Location: "STRING_VALUE",
|
|
154
|
+
* // artifactId: "STRING_VALUE",
|
|
155
|
+
* // integratedDocument: {
|
|
156
|
+
* // integrationId: "STRING_VALUE", // required
|
|
157
|
+
* // resourceId: "STRING_VALUE", // required
|
|
158
|
+
* // },
|
|
159
|
+
* // },
|
|
160
|
+
* // ],
|
|
161
|
+
* // serviceRole: "STRING_VALUE",
|
|
162
|
+
* // logConfig: { // CloudWatchLog
|
|
163
|
+
* // logGroup: "STRING_VALUE",
|
|
164
|
+
* // logStream: "STRING_VALUE",
|
|
165
|
+
* // },
|
|
166
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
167
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
168
|
+
* // };
|
|
169
|
+
*
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
* @param UpdateThreatModelCommandInput - {@link UpdateThreatModelCommandInput}
|
|
173
|
+
* @returns {@link UpdateThreatModelCommandOutput}
|
|
174
|
+
* @see {@link UpdateThreatModelCommandInput} for command's `input` shape.
|
|
175
|
+
* @see {@link UpdateThreatModelCommandOutput} for command's `response` shape.
|
|
176
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
177
|
+
*
|
|
178
|
+
* @throws {@link SecurityAgentServiceException}
|
|
179
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class UpdateThreatModelCommand extends UpdateThreatModelCommand_base {
|
|
185
|
+
/** @internal type navigation helper, not in runtime. */
|
|
186
|
+
protected static __types: {
|
|
187
|
+
api: {
|
|
188
|
+
input: UpdateThreatModelInput;
|
|
189
|
+
output: UpdateThreatModelOutput;
|
|
190
|
+
};
|
|
191
|
+
sdk: {
|
|
192
|
+
input: UpdateThreatModelCommandInput;
|
|
193
|
+
output: UpdateThreatModelCommandOutput;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./AddArtifactCommand";
|
|
2
|
+
export * from "./BatchCreateSecurityRequirementsCommand";
|
|
2
3
|
export * from "./BatchDeleteCodeReviewsCommand";
|
|
3
4
|
export * from "./BatchDeletePentestsCommand";
|
|
5
|
+
export * from "./BatchDeleteSecurityRequirementsCommand";
|
|
6
|
+
export * from "./BatchDeleteThreatModelsCommand";
|
|
4
7
|
export * from "./BatchGetAgentSpacesCommand";
|
|
5
8
|
export * from "./BatchGetArtifactMetadataCommand";
|
|
6
9
|
export * from "./BatchGetCodeReviewJobTasksCommand";
|
|
@@ -10,23 +13,38 @@ export * from "./BatchGetFindingsCommand";
|
|
|
10
13
|
export * from "./BatchGetPentestJobTasksCommand";
|
|
11
14
|
export * from "./BatchGetPentestJobsCommand";
|
|
12
15
|
export * from "./BatchGetPentestsCommand";
|
|
16
|
+
export * from "./BatchGetSecurityRequirementsCommand";
|
|
13
17
|
export * from "./BatchGetTargetDomainsCommand";
|
|
18
|
+
export * from "./BatchGetThreatModelJobTasksCommand";
|
|
19
|
+
export * from "./BatchGetThreatModelJobsCommand";
|
|
20
|
+
export * from "./BatchGetThreatModelsCommand";
|
|
21
|
+
export * from "./BatchGetThreatsCommand";
|
|
22
|
+
export * from "./BatchUpdateSecurityRequirementsCommand";
|
|
14
23
|
export * from "./CreateAgentSpaceCommand";
|
|
15
24
|
export * from "./CreateApplicationCommand";
|
|
16
25
|
export * from "./CreateCodeReviewCommand";
|
|
17
26
|
export * from "./CreateIntegrationCommand";
|
|
18
27
|
export * from "./CreateMembershipCommand";
|
|
19
28
|
export * from "./CreatePentestCommand";
|
|
29
|
+
export * from "./CreatePrivateConnectionCommand";
|
|
30
|
+
export * from "./CreateSecurityRequirementPackCommand";
|
|
20
31
|
export * from "./CreateTargetDomainCommand";
|
|
32
|
+
export * from "./CreateThreatCommand";
|
|
33
|
+
export * from "./CreateThreatModelCommand";
|
|
21
34
|
export * from "./DeleteAgentSpaceCommand";
|
|
22
35
|
export * from "./DeleteApplicationCommand";
|
|
23
36
|
export * from "./DeleteArtifactCommand";
|
|
24
37
|
export * from "./DeleteIntegrationCommand";
|
|
25
38
|
export * from "./DeleteMembershipCommand";
|
|
39
|
+
export * from "./DeletePrivateConnectionCommand";
|
|
40
|
+
export * from "./DeleteSecurityRequirementPackCommand";
|
|
26
41
|
export * from "./DeleteTargetDomainCommand";
|
|
42
|
+
export * from "./DescribePrivateConnectionCommand";
|
|
27
43
|
export * from "./GetApplicationCommand";
|
|
28
44
|
export * from "./GetArtifactCommand";
|
|
29
45
|
export * from "./GetIntegrationCommand";
|
|
46
|
+
export * from "./GetSecurityRequirementPackCommand";
|
|
47
|
+
export * from "./ImportSecurityRequirementsCommand";
|
|
30
48
|
export * from "./InitiateProviderRegistrationCommand";
|
|
31
49
|
export * from "./ListAgentSpacesCommand";
|
|
32
50
|
export * from "./ListApplicationsCommand";
|
|
@@ -42,13 +60,22 @@ export * from "./ListMembershipsCommand";
|
|
|
42
60
|
export * from "./ListPentestJobTasksCommand";
|
|
43
61
|
export * from "./ListPentestJobsForPentestCommand";
|
|
44
62
|
export * from "./ListPentestsCommand";
|
|
63
|
+
export * from "./ListPrivateConnectionsCommand";
|
|
64
|
+
export * from "./ListSecurityRequirementPacksCommand";
|
|
65
|
+
export * from "./ListSecurityRequirementsCommand";
|
|
45
66
|
export * from "./ListTagsForResourceCommand";
|
|
46
67
|
export * from "./ListTargetDomainsCommand";
|
|
68
|
+
export * from "./ListThreatModelJobTasksCommand";
|
|
69
|
+
export * from "./ListThreatModelJobsCommand";
|
|
70
|
+
export * from "./ListThreatModelsCommand";
|
|
71
|
+
export * from "./ListThreatsCommand";
|
|
47
72
|
export * from "./StartCodeRemediationCommand";
|
|
48
73
|
export * from "./StartCodeReviewJobCommand";
|
|
49
74
|
export * from "./StartPentestJobCommand";
|
|
75
|
+
export * from "./StartThreatModelJobCommand";
|
|
50
76
|
export * from "./StopCodeReviewJobCommand";
|
|
51
77
|
export * from "./StopPentestJobCommand";
|
|
78
|
+
export * from "./StopThreatModelJobCommand";
|
|
52
79
|
export * from "./TagResourceCommand";
|
|
53
80
|
export * from "./UntagResourceCommand";
|
|
54
81
|
export * from "./UpdateAgentSpaceCommand";
|
|
@@ -57,5 +84,9 @@ export * from "./UpdateCodeReviewCommand";
|
|
|
57
84
|
export * from "./UpdateFindingCommand";
|
|
58
85
|
export * from "./UpdateIntegratedResourcesCommand";
|
|
59
86
|
export * from "./UpdatePentestCommand";
|
|
87
|
+
export * from "./UpdatePrivateConnectionCertificateCommand";
|
|
88
|
+
export * from "./UpdateSecurityRequirementPackCommand";
|
|
60
89
|
export * from "./UpdateTargetDomainCommand";
|
|
90
|
+
export * from "./UpdateThreatCommand";
|
|
91
|
+
export * from "./UpdateThreatModelCommand";
|
|
61
92
|
export * from "./VerifyTargetDomainCommand";
|