@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,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListThreatsInput, ListThreatsOutput } 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 ListThreatsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListThreatsCommandInput extends ListThreatsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListThreatsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListThreatsCommandOutput extends ListThreatsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListThreatsCommand_base: {
|
|
25
|
+
new (input: ListThreatsCommandInput): import("@smithy/core/client").CommandImpl<ListThreatsCommandInput, ListThreatsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListThreatsCommandInput): import("@smithy/core/client").CommandImpl<ListThreatsCommandInput, ListThreatsCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Returns a paginated list of threats for 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, ListThreatsCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, ListThreatsCommand } = 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 = { // ListThreatsInput
|
|
42
|
+
* threatJobId: "STRING_VALUE", // required
|
|
43
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
44
|
+
* nextToken: "STRING_VALUE",
|
|
45
|
+
* maxResults: Number("int"),
|
|
46
|
+
* };
|
|
47
|
+
* const command = new ListThreatsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // ListThreatsOutput
|
|
50
|
+
* // threats: [ // ThreatSummaryList
|
|
51
|
+
* // { // ThreatSummary
|
|
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
|
+
* // stride: [ // StrideCategoryList
|
|
59
|
+
* // "SPOOFING" || "TAMPERING" || "REPUDIATION" || "INFORMATION_DISCLOSURE" || "DENIAL_OF_SERVICE" || "ELEVATION_OF_PRIVILEGE",
|
|
60
|
+
* // ],
|
|
61
|
+
* // createdBy: "CUSTOMER" || "AGENT",
|
|
62
|
+
* // updatedBy: "CUSTOMER" || "AGENT",
|
|
63
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
64
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // nextToken: "STRING_VALUE",
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param ListThreatsCommandInput - {@link ListThreatsCommandInput}
|
|
73
|
+
* @returns {@link ListThreatsCommandOutput}
|
|
74
|
+
* @see {@link ListThreatsCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link ListThreatsCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link SecurityAgentServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class ListThreatsCommand extends ListThreatsCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: ListThreatsInput;
|
|
89
|
+
output: ListThreatsOutput;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: ListThreatsCommandInput;
|
|
93
|
+
output: ListThreatsCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -41,6 +41,9 @@ declare const StartCodeReviewJobCommand_base: {
|
|
|
41
41
|
* const input = { // StartCodeReviewJobInput
|
|
42
42
|
* agentSpaceId: "STRING_VALUE", // required
|
|
43
43
|
* codeReviewId: "STRING_VALUE", // required
|
|
44
|
+
* diffSource: { // DiffSource Union: only one key present
|
|
45
|
+
* s3Uri: "STRING_VALUE",
|
|
46
|
+
* },
|
|
44
47
|
* };
|
|
45
48
|
* const command = new StartCodeReviewJobCommand(input);
|
|
46
49
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { StartThreatModelJobInput, StartThreatModelJobOutput } 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 StartThreatModelJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartThreatModelJobCommandInput extends StartThreatModelJobInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartThreatModelJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartThreatModelJobCommandOutput extends StartThreatModelJobOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartThreatModelJobCommand_base: {
|
|
25
|
+
new (input: StartThreatModelJobCommandInput): import("@smithy/core/client").CommandImpl<StartThreatModelJobCommandInput, StartThreatModelJobCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StartThreatModelJobCommandInput): import("@smithy/core/client").CommandImpl<StartThreatModelJobCommandInput, StartThreatModelJobCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Starts a new threat model job for a 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, StartThreatModelJobCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, StartThreatModelJobCommand } = 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 = { // StartThreatModelJobInput
|
|
42
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
43
|
+
* threatModelId: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new StartThreatModelJobCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // StartThreatModelJobOutput
|
|
48
|
+
* // title: "STRING_VALUE",
|
|
49
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "FAILED" || "COMPLETED",
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
51
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // threatModelId: "STRING_VALUE",
|
|
53
|
+
* // threatModelJobId: "STRING_VALUE", // required
|
|
54
|
+
* // agentSpaceId: "STRING_VALUE",
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param StartThreatModelJobCommandInput - {@link StartThreatModelJobCommandInput}
|
|
60
|
+
* @returns {@link StartThreatModelJobCommandOutput}
|
|
61
|
+
* @see {@link StartThreatModelJobCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link StartThreatModelJobCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link SecurityAgentServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class StartThreatModelJobCommand extends StartThreatModelJobCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: StartThreatModelJobInput;
|
|
76
|
+
output: StartThreatModelJobOutput;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: StartThreatModelJobCommandInput;
|
|
80
|
+
output: StartThreatModelJobCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { StopThreatModelJobInput, StopThreatModelJobOutput } 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 StopThreatModelJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopThreatModelJobCommandInput extends StopThreatModelJobInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopThreatModelJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopThreatModelJobCommandOutput extends StopThreatModelJobOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopThreatModelJobCommand_base: {
|
|
25
|
+
new (input: StopThreatModelJobCommandInput): import("@smithy/core/client").CommandImpl<StopThreatModelJobCommandInput, StopThreatModelJobCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StopThreatModelJobCommandInput): import("@smithy/core/client").CommandImpl<StopThreatModelJobCommandInput, StopThreatModelJobCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Stops a running 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, StopThreatModelJobCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, StopThreatModelJobCommand } = 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 = { // StopThreatModelJobInput
|
|
42
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
43
|
+
* threatModelJobId: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new StopThreatModelJobCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param StopThreatModelJobCommandInput - {@link StopThreatModelJobCommandInput}
|
|
52
|
+
* @returns {@link StopThreatModelJobCommandOutput}
|
|
53
|
+
* @see {@link StopThreatModelJobCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link StopThreatModelJobCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link SecurityAgentServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export declare class StopThreatModelJobCommand extends StopThreatModelJobCommand_base {
|
|
64
|
+
/** @internal type navigation helper, not in runtime. */
|
|
65
|
+
protected static __types: {
|
|
66
|
+
api: {
|
|
67
|
+
input: StopThreatModelJobInput;
|
|
68
|
+
output: {};
|
|
69
|
+
};
|
|
70
|
+
sdk: {
|
|
71
|
+
input: StopThreatModelJobCommandInput;
|
|
72
|
+
output: StopThreatModelJobCommandOutput;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -65,6 +65,10 @@ declare const UpdateCodeReviewCommand_base: {
|
|
|
65
65
|
* { // DocumentInfo
|
|
66
66
|
* s3Location: "STRING_VALUE",
|
|
67
67
|
* artifactId: "STRING_VALUE",
|
|
68
|
+
* integratedDocument: { // IntegratedDocument
|
|
69
|
+
* integrationId: "STRING_VALUE", // required
|
|
70
|
+
* resourceId: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
68
72
|
* },
|
|
69
73
|
* ],
|
|
70
74
|
* sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -85,6 +89,7 @@ declare const UpdateCodeReviewCommand_base: {
|
|
|
85
89
|
* logStream: "STRING_VALUE",
|
|
86
90
|
* },
|
|
87
91
|
* codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
92
|
+
* validationMode: "DISABLED" || "SIMULATED",
|
|
88
93
|
* };
|
|
89
94
|
* const command = new UpdateCodeReviewCommand(input);
|
|
90
95
|
* const response = await client.send(command);
|
|
@@ -116,6 +121,10 @@ declare const UpdateCodeReviewCommand_base: {
|
|
|
116
121
|
* // { // DocumentInfo
|
|
117
122
|
* // s3Location: "STRING_VALUE",
|
|
118
123
|
* // artifactId: "STRING_VALUE",
|
|
124
|
+
* // integratedDocument: { // IntegratedDocument
|
|
125
|
+
* // integrationId: "STRING_VALUE", // required
|
|
126
|
+
* // resourceId: "STRING_VALUE", // required
|
|
127
|
+
* // },
|
|
119
128
|
* // },
|
|
120
129
|
* // ],
|
|
121
130
|
* // sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -137,6 +146,7 @@ declare const UpdateCodeReviewCommand_base: {
|
|
|
137
146
|
* // },
|
|
138
147
|
* // agentSpaceId: "STRING_VALUE",
|
|
139
148
|
* // codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
149
|
+
* // validationMode: "DISABLED" || "SIMULATED",
|
|
140
150
|
* // };
|
|
141
151
|
*
|
|
142
152
|
* ```
|
|
@@ -41,8 +41,15 @@ declare const UpdateFindingCommand_base: {
|
|
|
41
41
|
* const input = { // UpdateFindingInput
|
|
42
42
|
* findingId: "STRING_VALUE", // required
|
|
43
43
|
* agentSpaceId: "STRING_VALUE", // required
|
|
44
|
+
* name: "STRING_VALUE",
|
|
45
|
+
* description: "STRING_VALUE",
|
|
46
|
+
* riskType: "STRING_VALUE",
|
|
44
47
|
* riskLevel: "UNKNOWN" || "INFORMATIONAL" || "LOW" || "MEDIUM" || "HIGH" || "CRITICAL",
|
|
48
|
+
* riskScore: "STRING_VALUE",
|
|
49
|
+
* attackScript: "STRING_VALUE",
|
|
50
|
+
* reasoning: "STRING_VALUE",
|
|
45
51
|
* status: "ACTIVE" || "RESOLVED" || "ACCEPTED" || "FALSE_POSITIVE",
|
|
52
|
+
* customerNote: "STRING_VALUE",
|
|
46
53
|
* };
|
|
47
54
|
* const command = new UpdateFindingCommand(input);
|
|
48
55
|
* const response = await client.send(command);
|
|
@@ -48,12 +48,40 @@ declare const UpdateIntegratedResourcesCommand_base: {
|
|
|
48
48
|
* name: "STRING_VALUE", // required
|
|
49
49
|
* owner: "STRING_VALUE", // required
|
|
50
50
|
* },
|
|
51
|
+
* gitlabRepository: { // GitLabRepositoryResource
|
|
52
|
+
* name: "STRING_VALUE", // required
|
|
53
|
+
* namespace: "STRING_VALUE", // required
|
|
54
|
+
* },
|
|
55
|
+
* bitbucketRepository: { // BitbucketRepositoryResource
|
|
56
|
+
* name: "STRING_VALUE", // required
|
|
57
|
+
* workspace: "STRING_VALUE", // required
|
|
58
|
+
* },
|
|
59
|
+
* confluenceDocument: { // ConfluenceDocumentResource
|
|
60
|
+
* name: "STRING_VALUE", // required
|
|
61
|
+
* spaceKey: "STRING_VALUE", // required
|
|
62
|
+
* pageId: "STRING_VALUE", // required
|
|
63
|
+
* title: "STRING_VALUE",
|
|
64
|
+
* spaceTitle: "STRING_VALUE",
|
|
65
|
+
* },
|
|
51
66
|
* },
|
|
52
67
|
* capabilities: { // ProviderResourceCapabilities Union: only one key present
|
|
53
68
|
* github: { // GitHubResourceCapabilities
|
|
54
69
|
* leaveComments: true || false,
|
|
55
70
|
* remediateCode: true || false,
|
|
56
71
|
* },
|
|
72
|
+
* gitlab: { // GitLabResourceCapabilities
|
|
73
|
+
* leaveComments: true || false,
|
|
74
|
+
* remediateCode: true || false,
|
|
75
|
+
* },
|
|
76
|
+
* bitbucket: { // BitbucketResourceCapabilities
|
|
77
|
+
* leaveComments: true || false,
|
|
78
|
+
* remediateCode: true || false,
|
|
79
|
+
* },
|
|
80
|
+
* confluence: { // ConfluenceResourceCapabilities
|
|
81
|
+
* fetchDocument: true || false,
|
|
82
|
+
* createDocument: true || false,
|
|
83
|
+
* updateDocument: true || false,
|
|
84
|
+
* },
|
|
57
85
|
* },
|
|
58
86
|
* },
|
|
59
87
|
* ],
|
|
@@ -65,6 +65,10 @@ declare const UpdatePentestCommand_base: {
|
|
|
65
65
|
* { // DocumentInfo
|
|
66
66
|
* s3Location: "STRING_VALUE",
|
|
67
67
|
* artifactId: "STRING_VALUE",
|
|
68
|
+
* integratedDocument: { // IntegratedDocument
|
|
69
|
+
* integrationId: "STRING_VALUE", // required
|
|
70
|
+
* resourceId: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
68
72
|
* },
|
|
69
73
|
* ],
|
|
70
74
|
* sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -112,6 +116,9 @@ declare const UpdatePentestCommand_base: {
|
|
|
112
116
|
* ],
|
|
113
117
|
* },
|
|
114
118
|
* codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
119
|
+
* disableManagedSkills: [ // SkillTypeList
|
|
120
|
+
* "FINDING_PERSONALIZATION" || "LOGIN_OPTIMIZATION",
|
|
121
|
+
* ],
|
|
115
122
|
* };
|
|
116
123
|
* const command = new UpdatePentestCommand(input);
|
|
117
124
|
* const response = await client.send(command);
|
|
@@ -143,6 +150,10 @@ declare const UpdatePentestCommand_base: {
|
|
|
143
150
|
* // { // DocumentInfo
|
|
144
151
|
* // s3Location: "STRING_VALUE",
|
|
145
152
|
* // artifactId: "STRING_VALUE",
|
|
153
|
+
* // integratedDocument: { // IntegratedDocument
|
|
154
|
+
* // integrationId: "STRING_VALUE", // required
|
|
155
|
+
* // resourceId: "STRING_VALUE", // required
|
|
156
|
+
* // },
|
|
146
157
|
* // },
|
|
147
158
|
* // ],
|
|
148
159
|
* // sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdatePrivateConnectionCertificateInput, UpdatePrivateConnectionCertificateOutput } 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 UpdatePrivateConnectionCertificateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePrivateConnectionCertificateCommandInput extends UpdatePrivateConnectionCertificateInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePrivateConnectionCertificateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePrivateConnectionCertificateCommandOutput extends UpdatePrivateConnectionCertificateOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdatePrivateConnectionCertificateCommand_base: {
|
|
25
|
+
new (input: UpdatePrivateConnectionCertificateCommandInput): import("@smithy/core/client").CommandImpl<UpdatePrivateConnectionCertificateCommandInput, UpdatePrivateConnectionCertificateCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdatePrivateConnectionCertificateCommandInput): import("@smithy/core/client").CommandImpl<UpdatePrivateConnectionCertificateCommandInput, UpdatePrivateConnectionCertificateCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates the certificate associated with a private connection. Certificates can be added or replaced but not removed.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, UpdatePrivateConnectionCertificateCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, UpdatePrivateConnectionCertificateCommand } = 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 = { // UpdatePrivateConnectionCertificateInput
|
|
42
|
+
* privateConnectionName: "STRING_VALUE", // required
|
|
43
|
+
* certificate: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdatePrivateConnectionCertificateCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // UpdatePrivateConnectionCertificateOutput
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // type: "SERVICE_MANAGED" || "SELF_MANAGED", // required
|
|
50
|
+
* // status: "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED", // required
|
|
51
|
+
* // resourceGatewayId: "STRING_VALUE",
|
|
52
|
+
* // hostAddress: "STRING_VALUE",
|
|
53
|
+
* // vpcId: "STRING_VALUE",
|
|
54
|
+
* // resourceConfigurationId: "STRING_VALUE",
|
|
55
|
+
* // certificateExpiryTime: new Date("TIMESTAMP"),
|
|
56
|
+
* // dnsResolution: "PUBLIC" || "IN_VPC",
|
|
57
|
+
* // failureMessage: "STRING_VALUE",
|
|
58
|
+
* // tags: { // TagMap
|
|
59
|
+
* // "<keys>": "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param UpdatePrivateConnectionCertificateCommandInput - {@link UpdatePrivateConnectionCertificateCommandInput}
|
|
66
|
+
* @returns {@link UpdatePrivateConnectionCertificateCommandOutput}
|
|
67
|
+
* @see {@link UpdatePrivateConnectionCertificateCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link UpdatePrivateConnectionCertificateCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ConflictException} (client fault)
|
|
75
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <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>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p>The request was denied due to request throttling.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link SecurityAgentServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class UpdatePrivateConnectionCertificateCommand extends UpdatePrivateConnectionCertificateCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: UpdatePrivateConnectionCertificateInput;
|
|
100
|
+
output: UpdatePrivateConnectionCertificateOutput;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: UpdatePrivateConnectionCertificateCommandInput;
|
|
104
|
+
output: UpdatePrivateConnectionCertificateCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateSecurityRequirementPackInput, UpdateSecurityRequirementPackOutput } 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 UpdateSecurityRequirementPackCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateSecurityRequirementPackCommandInput extends UpdateSecurityRequirementPackInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateSecurityRequirementPackCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSecurityRequirementPackCommandOutput extends UpdateSecurityRequirementPackOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateSecurityRequirementPackCommand_base: {
|
|
25
|
+
new (input: UpdateSecurityRequirementPackCommandInput): import("@smithy/core/client").CommandImpl<UpdateSecurityRequirementPackCommandInput, UpdateSecurityRequirementPackCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateSecurityRequirementPackCommandInput): import("@smithy/core/client").CommandImpl<UpdateSecurityRequirementPackCommandInput, UpdateSecurityRequirementPackCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates a security requirement pack. For customer managed packs, both metadata and status can be updated. For AWS managed packs, only status can be updated.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, UpdateSecurityRequirementPackCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, UpdateSecurityRequirementPackCommand } = 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 = { // UpdateSecurityRequirementPackInput
|
|
42
|
+
* packId: "STRING_VALUE", // required
|
|
43
|
+
* name: "STRING_VALUE",
|
|
44
|
+
* description: "STRING_VALUE",
|
|
45
|
+
* status: "ENABLED" || "DISABLED",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new UpdateSecurityRequirementPackCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // UpdateSecurityRequirementPackOutput
|
|
50
|
+
* // packId: "STRING_VALUE", // required
|
|
51
|
+
* // name: "STRING_VALUE",
|
|
52
|
+
* // description: "STRING_VALUE",
|
|
53
|
+
* // status: "ENABLED" || "DISABLED",
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param UpdateSecurityRequirementPackCommandInput - {@link UpdateSecurityRequirementPackCommandInput}
|
|
59
|
+
* @returns {@link UpdateSecurityRequirementPackCommandOutput}
|
|
60
|
+
* @see {@link UpdateSecurityRequirementPackCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link UpdateSecurityRequirementPackCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ConflictException} (client fault)
|
|
68
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <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>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
77
|
+
* <p>The request was denied due to request throttling.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link SecurityAgentServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class UpdateSecurityRequirementPackCommand extends UpdateSecurityRequirementPackCommand_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: UpdateSecurityRequirementPackInput;
|
|
93
|
+
output: UpdateSecurityRequirementPackOutput;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: UpdateSecurityRequirementPackCommandInput;
|
|
97
|
+
output: UpdateSecurityRequirementPackCommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|