@aws-sdk/client-securityagent 3.1070.0 → 3.1072.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
|
@@ -39,12 +39,32 @@ declare const CreateIntegrationCommand_base: {
|
|
|
39
39
|
* const config = {}; // type is SecurityAgentClientConfig
|
|
40
40
|
* const client = new SecurityAgentClient(config);
|
|
41
41
|
* const input = { // CreateIntegrationInput
|
|
42
|
-
* provider: "GITHUB", // required
|
|
42
|
+
* provider: "GITHUB" || "GITLAB" || "BITBUCKET" || "CONFLUENCE", // required
|
|
43
43
|
* input: { // ProviderInput Union: only one key present
|
|
44
44
|
* github: { // GitHubIntegrationInput
|
|
45
45
|
* code: "STRING_VALUE", // required
|
|
46
46
|
* state: "STRING_VALUE", // required
|
|
47
47
|
* organizationName: "STRING_VALUE",
|
|
48
|
+
* targetUrl: "STRING_VALUE",
|
|
49
|
+
* installationId: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* gitlab: { // GitLabIntegrationInput
|
|
52
|
+
* accessToken: "STRING_VALUE", // required
|
|
53
|
+
* targetUrl: "STRING_VALUE",
|
|
54
|
+
* tokenType: "PERSONAL" || "GROUP", // required
|
|
55
|
+
* groupId: "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* bitbucket: { // BitbucketIntegrationInput
|
|
58
|
+
* installationId: "STRING_VALUE", // required
|
|
59
|
+
* workspace: "STRING_VALUE", // required
|
|
60
|
+
* code: "STRING_VALUE", // required
|
|
61
|
+
* state: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* confluence: { // ConfluenceIntegrationInput
|
|
64
|
+
* installationId: "STRING_VALUE", // required
|
|
65
|
+
* code: "STRING_VALUE", // required
|
|
66
|
+
* state: "STRING_VALUE", // required
|
|
67
|
+
* siteUrl: "STRING_VALUE", // required
|
|
48
68
|
* },
|
|
49
69
|
* },
|
|
50
70
|
* integrationDisplayName: "STRING_VALUE", // required
|
|
@@ -52,6 +72,7 @@ declare const CreateIntegrationCommand_base: {
|
|
|
52
72
|
* tags: { // TagMap
|
|
53
73
|
* "<keys>": "STRING_VALUE",
|
|
54
74
|
* },
|
|
75
|
+
* privateConnectionName: "STRING_VALUE",
|
|
55
76
|
* };
|
|
56
77
|
* const command = new CreateIntegrationCommand(input);
|
|
57
78
|
* const response = await client.send(command);
|
|
@@ -64,6 +64,10 @@ declare const CreatePentestCommand_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
|
|
@@ -111,6 +115,9 @@ declare const CreatePentestCommand_base: {
|
|
|
111
115
|
* ],
|
|
112
116
|
* },
|
|
113
117
|
* codeRemediationStrategy: "AUTOMATIC" || "DISABLED",
|
|
118
|
+
* disableManagedSkills: [ // SkillTypeList
|
|
119
|
+
* "FINDING_PERSONALIZATION" || "LOGIN_OPTIMIZATION",
|
|
120
|
+
* ],
|
|
114
121
|
* };
|
|
115
122
|
* const command = new CreatePentestCommand(input);
|
|
116
123
|
* const response = await client.send(command);
|
|
@@ -142,6 +149,10 @@ declare const CreatePentestCommand_base: {
|
|
|
142
149
|
* // { // DocumentInfo
|
|
143
150
|
* // s3Location: "STRING_VALUE",
|
|
144
151
|
* // artifactId: "STRING_VALUE",
|
|
152
|
+
* // integratedDocument: { // IntegratedDocument
|
|
153
|
+
* // integrationId: "STRING_VALUE", // required
|
|
154
|
+
* // resourceId: "STRING_VALUE", // required
|
|
155
|
+
* // },
|
|
145
156
|
* // },
|
|
146
157
|
* // ],
|
|
147
158
|
* // sourceCode: [ // SourceCodeRepositoryList
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreatePrivateConnectionInput, CreatePrivateConnectionOutput } 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 CreatePrivateConnectionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreatePrivateConnectionCommandInput extends CreatePrivateConnectionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreatePrivateConnectionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePrivateConnectionCommandOutput extends CreatePrivateConnectionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreatePrivateConnectionCommand_base: {
|
|
25
|
+
new (input: CreatePrivateConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateConnectionCommandInput, CreatePrivateConnectionCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreatePrivateConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateConnectionCommandInput, CreatePrivateConnectionCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Creates a private connection for reaching a self-hosted provider instance over private networking using Amazon VPC Lattice.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, CreatePrivateConnectionCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, CreatePrivateConnectionCommand } = 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 = { // CreatePrivateConnectionInput
|
|
42
|
+
* privateConnectionName: "STRING_VALUE", // required
|
|
43
|
+
* mode: { // PrivateConnectionMode Union: only one key present
|
|
44
|
+
* serviceManaged: { // ServiceManagedInput
|
|
45
|
+
* hostAddress: "STRING_VALUE", // required
|
|
46
|
+
* vpcId: "STRING_VALUE", // required
|
|
47
|
+
* subnetIds: [ // PrivateConnectionSubnetIds // required
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* securityGroupIds: [ // PrivateConnectionSecurityGroupIds
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* ipAddressType: "IPV4" || "IPV6" || "DUAL_STACK",
|
|
54
|
+
* ipv4AddressesPerEni: Number("int"),
|
|
55
|
+
* portRanges: [ // PortRanges
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* certificate: "STRING_VALUE",
|
|
59
|
+
* dnsResolution: "PUBLIC" || "IN_VPC",
|
|
60
|
+
* },
|
|
61
|
+
* selfManaged: { // SelfManagedInput
|
|
62
|
+
* resourceConfigurationId: "STRING_VALUE", // required
|
|
63
|
+
* certificate: "STRING_VALUE",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* tags: { // TagMap
|
|
67
|
+
* "<keys>": "STRING_VALUE",
|
|
68
|
+
* },
|
|
69
|
+
* };
|
|
70
|
+
* const command = new CreatePrivateConnectionCommand(input);
|
|
71
|
+
* const response = await client.send(command);
|
|
72
|
+
* // { // CreatePrivateConnectionOutput
|
|
73
|
+
* // name: "STRING_VALUE", // required
|
|
74
|
+
* // type: "SERVICE_MANAGED" || "SELF_MANAGED", // required
|
|
75
|
+
* // status: "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED", // required
|
|
76
|
+
* // resourceGatewayId: "STRING_VALUE",
|
|
77
|
+
* // hostAddress: "STRING_VALUE",
|
|
78
|
+
* // vpcId: "STRING_VALUE",
|
|
79
|
+
* // resourceConfigurationId: "STRING_VALUE",
|
|
80
|
+
* // certificateExpiryTime: new Date("TIMESTAMP"),
|
|
81
|
+
* // dnsResolution: "PUBLIC" || "IN_VPC",
|
|
82
|
+
* // failureMessage: "STRING_VALUE",
|
|
83
|
+
* // tags: { // TagMap
|
|
84
|
+
* // "<keys>": "STRING_VALUE",
|
|
85
|
+
* // },
|
|
86
|
+
* // };
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param CreatePrivateConnectionCommandInput - {@link CreatePrivateConnectionCommandInput}
|
|
91
|
+
* @returns {@link CreatePrivateConnectionCommandOutput}
|
|
92
|
+
* @see {@link CreatePrivateConnectionCommandInput} for command's `input` shape.
|
|
93
|
+
* @see {@link CreatePrivateConnectionCommandOutput} for command's `response` shape.
|
|
94
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
97
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ConflictException} (client fault)
|
|
100
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link InternalServerException} (server fault)
|
|
103
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
106
|
+
* <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>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
109
|
+
* <p>The request was denied due to request throttling.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ValidationException} (client fault)
|
|
112
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link SecurityAgentServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export declare class CreatePrivateConnectionCommand extends CreatePrivateConnectionCommand_base {
|
|
121
|
+
/** @internal type navigation helper, not in runtime. */
|
|
122
|
+
protected static __types: {
|
|
123
|
+
api: {
|
|
124
|
+
input: CreatePrivateConnectionInput;
|
|
125
|
+
output: CreatePrivateConnectionOutput;
|
|
126
|
+
};
|
|
127
|
+
sdk: {
|
|
128
|
+
input: CreatePrivateConnectionCommandInput;
|
|
129
|
+
output: CreatePrivateConnectionCommandOutput;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateSecurityRequirementPackInput, CreateSecurityRequirementPackOutput } 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 CreateSecurityRequirementPackCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSecurityRequirementPackCommandInput extends CreateSecurityRequirementPackInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSecurityRequirementPackCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSecurityRequirementPackCommandOutput extends CreateSecurityRequirementPackOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateSecurityRequirementPackCommand_base: {
|
|
25
|
+
new (input: CreateSecurityRequirementPackCommandInput): import("@smithy/core/client").CommandImpl<CreateSecurityRequirementPackCommandInput, CreateSecurityRequirementPackCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateSecurityRequirementPackCommandInput): import("@smithy/core/client").CommandImpl<CreateSecurityRequirementPackCommandInput, CreateSecurityRequirementPackCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Creates a customer managed security requirement 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, CreateSecurityRequirementPackCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, CreateSecurityRequirementPackCommand } = 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 = { // CreateSecurityRequirementPackInput
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* description: "STRING_VALUE",
|
|
44
|
+
* status: "ENABLED" || "DISABLED",
|
|
45
|
+
* kmsKeyId: "STRING_VALUE",
|
|
46
|
+
* tags: { // TagMap
|
|
47
|
+
* "<keys>": "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new CreateSecurityRequirementPackCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // CreateSecurityRequirementPackOutput
|
|
53
|
+
* // packId: "STRING_VALUE", // required
|
|
54
|
+
* // status: "ENABLED" || "DISABLED", // required
|
|
55
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param CreateSecurityRequirementPackCommandInput - {@link CreateSecurityRequirementPackCommandInput}
|
|
61
|
+
* @returns {@link CreateSecurityRequirementPackCommandOutput}
|
|
62
|
+
* @see {@link CreateSecurityRequirementPackCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link CreateSecurityRequirementPackCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ConflictException} (client fault)
|
|
70
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
76
|
+
* <p>The request exceeds a service quota. Review your current usage and request a quota increase if needed.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The request was denied due to request throttling.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link SecurityAgentServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class CreateSecurityRequirementPackCommand extends CreateSecurityRequirementPackCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: CreateSecurityRequirementPackInput;
|
|
95
|
+
output: CreateSecurityRequirementPackOutput;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: CreateSecurityRequirementPackCommandInput;
|
|
99
|
+
output: CreateSecurityRequirementPackCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateThreatInput, CreateThreatOutput } 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 CreateThreatCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateThreatCommandInput extends CreateThreatInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateThreatCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateThreatCommandOutput extends CreateThreatOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateThreatCommand_base: {
|
|
25
|
+
new (input: CreateThreatCommandInput): import("@smithy/core/client").CommandImpl<CreateThreatCommandInput, CreateThreatCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateThreatCommandInput): import("@smithy/core/client").CommandImpl<CreateThreatCommandInput, CreateThreatCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Creates a new threat under 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, CreateThreatCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, CreateThreatCommand } = 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 = { // CreateThreatInput
|
|
42
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
43
|
+
* threatJobId: "STRING_VALUE", // required
|
|
44
|
+
* title: "STRING_VALUE",
|
|
45
|
+
* statement: "STRING_VALUE",
|
|
46
|
+
* severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFO",
|
|
47
|
+
* comments: "STRING_VALUE",
|
|
48
|
+
* stride: [ // StrideCategoryList
|
|
49
|
+
* "SPOOFING" || "TAMPERING" || "REPUDIATION" || "INFORMATION_DISCLOSURE" || "DENIAL_OF_SERVICE" || "ELEVATION_OF_PRIVILEGE",
|
|
50
|
+
* ],
|
|
51
|
+
* threatSource: "STRING_VALUE",
|
|
52
|
+
* prerequisites: "STRING_VALUE",
|
|
53
|
+
* threatAction: "STRING_VALUE",
|
|
54
|
+
* threatImpact: "STRING_VALUE",
|
|
55
|
+
* impactedGoal: [ // StringList
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* impactedAssets: [
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* anchor: { // ThreatAnchorShape
|
|
62
|
+
* kind: "STRING_VALUE",
|
|
63
|
+
* id: "STRING_VALUE",
|
|
64
|
+
* packageId: "STRING_VALUE",
|
|
65
|
+
* },
|
|
66
|
+
* evidence: [ // ThreatEvidenceList
|
|
67
|
+
* { // ThreatEvidenceShape
|
|
68
|
+
* packageId: "STRING_VALUE",
|
|
69
|
+
* path: "STRING_VALUE",
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* recommendation: "STRING_VALUE",
|
|
73
|
+
* };
|
|
74
|
+
* const command = new CreateThreatCommand(input);
|
|
75
|
+
* const response = await client.send(command);
|
|
76
|
+
* // { // CreateThreatOutput
|
|
77
|
+
* // threatId: "STRING_VALUE", // required
|
|
78
|
+
* // threatJobId: "STRING_VALUE", // required
|
|
79
|
+
* // title: "STRING_VALUE",
|
|
80
|
+
* // statement: "STRING_VALUE",
|
|
81
|
+
* // severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFO",
|
|
82
|
+
* // status: "OPEN" || "RESOLVED" || "DISMISSED",
|
|
83
|
+
* // comments: "STRING_VALUE",
|
|
84
|
+
* // stride: [ // StrideCategoryList
|
|
85
|
+
* // "SPOOFING" || "TAMPERING" || "REPUDIATION" || "INFORMATION_DISCLOSURE" || "DENIAL_OF_SERVICE" || "ELEVATION_OF_PRIVILEGE",
|
|
86
|
+
* // ],
|
|
87
|
+
* // threatSource: "STRING_VALUE",
|
|
88
|
+
* // prerequisites: "STRING_VALUE",
|
|
89
|
+
* // threatAction: "STRING_VALUE",
|
|
90
|
+
* // threatImpact: "STRING_VALUE",
|
|
91
|
+
* // impactedGoal: [ // StringList
|
|
92
|
+
* // "STRING_VALUE",
|
|
93
|
+
* // ],
|
|
94
|
+
* // impactedAssets: [
|
|
95
|
+
* // "STRING_VALUE",
|
|
96
|
+
* // ],
|
|
97
|
+
* // anchor: { // ThreatAnchorShape
|
|
98
|
+
* // kind: "STRING_VALUE",
|
|
99
|
+
* // id: "STRING_VALUE",
|
|
100
|
+
* // packageId: "STRING_VALUE",
|
|
101
|
+
* // },
|
|
102
|
+
* // evidence: [ // ThreatEvidenceList
|
|
103
|
+
* // { // ThreatEvidenceShape
|
|
104
|
+
* // packageId: "STRING_VALUE",
|
|
105
|
+
* // path: "STRING_VALUE",
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // recommendation: "STRING_VALUE",
|
|
109
|
+
* // createdBy: "CUSTOMER" || "AGENT",
|
|
110
|
+
* // updatedBy: "CUSTOMER" || "AGENT",
|
|
111
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
112
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param CreateThreatCommandInput - {@link CreateThreatCommandInput}
|
|
118
|
+
* @returns {@link CreateThreatCommandOutput}
|
|
119
|
+
* @see {@link CreateThreatCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link CreateThreatCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link SecurityAgentServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export declare class CreateThreatCommand extends CreateThreatCommand_base {
|
|
130
|
+
/** @internal type navigation helper, not in runtime. */
|
|
131
|
+
protected static __types: {
|
|
132
|
+
api: {
|
|
133
|
+
input: CreateThreatInput;
|
|
134
|
+
output: CreateThreatOutput;
|
|
135
|
+
};
|
|
136
|
+
sdk: {
|
|
137
|
+
input: CreateThreatCommandInput;
|
|
138
|
+
output: CreateThreatCommandOutput;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateThreatModelInput, CreateThreatModelOutput } 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 CreateThreatModelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateThreatModelCommandInput extends CreateThreatModelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateThreatModelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateThreatModelCommandOutput extends CreateThreatModelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateThreatModelCommand_base: {
|
|
25
|
+
new (input: CreateThreatModelCommandInput): import("@smithy/core/client").CommandImpl<CreateThreatModelCommandInput, CreateThreatModelCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateThreatModelCommandInput): import("@smithy/core/client").CommandImpl<CreateThreatModelCommandInput, CreateThreatModelCommandOutput, SecurityAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Creates a new threat model configuration in an agent space. A threat model defines the parameters for automated threat analysis.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityAgentClient, CreateThreatModelCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
37
|
+
* // const { SecurityAgentClient, CreateThreatModelCommand } = 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 = { // CreateThreatModelInput
|
|
42
|
+
* title: "STRING_VALUE", // required
|
|
43
|
+
* agentSpaceId: "STRING_VALUE", // required
|
|
44
|
+
* description: "STRING_VALUE",
|
|
45
|
+
* assets: { // Assets
|
|
46
|
+
* endpoints: [ // EndpointList
|
|
47
|
+
* { // Endpoint
|
|
48
|
+
* uri: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* actors: [ // ActorList
|
|
52
|
+
* { // Actor
|
|
53
|
+
* identifier: "STRING_VALUE",
|
|
54
|
+
* uris: [ // UriList
|
|
55
|
+
* "STRING_VALUE",
|
|
56
|
+
* ],
|
|
57
|
+
* authentication: { // Authentication
|
|
58
|
+
* providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
59
|
+
* value: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* description: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* documents: [ // DocumentList
|
|
65
|
+
* { // DocumentInfo
|
|
66
|
+
* s3Location: "STRING_VALUE",
|
|
67
|
+
* artifactId: "STRING_VALUE",
|
|
68
|
+
* integratedDocument: { // IntegratedDocument
|
|
69
|
+
* integrationId: "STRING_VALUE", // required
|
|
70
|
+
* resourceId: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* sourceCode: [ // SourceCodeRepositoryList
|
|
75
|
+
* { // SourceCodeRepository
|
|
76
|
+
* s3Location: "STRING_VALUE",
|
|
77
|
+
* },
|
|
78
|
+
* ],
|
|
79
|
+
* integratedRepositories: [ // IntegratedRepositoryList
|
|
80
|
+
* { // IntegratedRepository
|
|
81
|
+
* integrationId: "STRING_VALUE", // required
|
|
82
|
+
* providerResourceId: "STRING_VALUE", // required
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* },
|
|
86
|
+
* scopeDocs: [
|
|
87
|
+
* {
|
|
88
|
+
* s3Location: "STRING_VALUE",
|
|
89
|
+
* artifactId: "STRING_VALUE",
|
|
90
|
+
* integratedDocument: {
|
|
91
|
+
* integrationId: "STRING_VALUE", // required
|
|
92
|
+
* resourceId: "STRING_VALUE", // required
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* ],
|
|
96
|
+
* serviceRole: "STRING_VALUE", // required
|
|
97
|
+
* logConfig: { // CloudWatchLog
|
|
98
|
+
* logGroup: "STRING_VALUE",
|
|
99
|
+
* logStream: "STRING_VALUE",
|
|
100
|
+
* },
|
|
101
|
+
* reportDestination: { // ReportDestination
|
|
102
|
+
* integrationId: "STRING_VALUE", // required
|
|
103
|
+
* containerId: "STRING_VALUE", // required
|
|
104
|
+
* parentId: "STRING_VALUE",
|
|
105
|
+
* documentId: "STRING_VALUE",
|
|
106
|
+
* },
|
|
107
|
+
* };
|
|
108
|
+
* const command = new CreateThreatModelCommand(input);
|
|
109
|
+
* const response = await client.send(command);
|
|
110
|
+
* // { // CreateThreatModelOutput
|
|
111
|
+
* // threatModelId: "STRING_VALUE", // required
|
|
112
|
+
* // title: "STRING_VALUE",
|
|
113
|
+
* // agentSpaceId: "STRING_VALUE",
|
|
114
|
+
* // description: "STRING_VALUE",
|
|
115
|
+
* // assets: { // Assets
|
|
116
|
+
* // endpoints: [ // EndpointList
|
|
117
|
+
* // { // Endpoint
|
|
118
|
+
* // uri: "STRING_VALUE",
|
|
119
|
+
* // },
|
|
120
|
+
* // ],
|
|
121
|
+
* // actors: [ // ActorList
|
|
122
|
+
* // { // Actor
|
|
123
|
+
* // identifier: "STRING_VALUE",
|
|
124
|
+
* // uris: [ // UriList
|
|
125
|
+
* // "STRING_VALUE",
|
|
126
|
+
* // ],
|
|
127
|
+
* // authentication: { // Authentication
|
|
128
|
+
* // providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
129
|
+
* // value: "STRING_VALUE",
|
|
130
|
+
* // },
|
|
131
|
+
* // description: "STRING_VALUE",
|
|
132
|
+
* // },
|
|
133
|
+
* // ],
|
|
134
|
+
* // documents: [ // DocumentList
|
|
135
|
+
* // { // DocumentInfo
|
|
136
|
+
* // s3Location: "STRING_VALUE",
|
|
137
|
+
* // artifactId: "STRING_VALUE",
|
|
138
|
+
* // integratedDocument: { // IntegratedDocument
|
|
139
|
+
* // integrationId: "STRING_VALUE", // required
|
|
140
|
+
* // resourceId: "STRING_VALUE", // required
|
|
141
|
+
* // },
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
144
|
+
* // sourceCode: [ // SourceCodeRepositoryList
|
|
145
|
+
* // { // SourceCodeRepository
|
|
146
|
+
* // s3Location: "STRING_VALUE",
|
|
147
|
+
* // },
|
|
148
|
+
* // ],
|
|
149
|
+
* // integratedRepositories: [ // IntegratedRepositoryList
|
|
150
|
+
* // { // IntegratedRepository
|
|
151
|
+
* // integrationId: "STRING_VALUE", // required
|
|
152
|
+
* // providerResourceId: "STRING_VALUE", // required
|
|
153
|
+
* // },
|
|
154
|
+
* // ],
|
|
155
|
+
* // },
|
|
156
|
+
* // scopeDocs: [
|
|
157
|
+
* // {
|
|
158
|
+
* // s3Location: "STRING_VALUE",
|
|
159
|
+
* // artifactId: "STRING_VALUE",
|
|
160
|
+
* // integratedDocument: {
|
|
161
|
+
* // integrationId: "STRING_VALUE", // required
|
|
162
|
+
* // resourceId: "STRING_VALUE", // required
|
|
163
|
+
* // },
|
|
164
|
+
* // },
|
|
165
|
+
* // ],
|
|
166
|
+
* // serviceRole: "STRING_VALUE",
|
|
167
|
+
* // logConfig: { // CloudWatchLog
|
|
168
|
+
* // logGroup: "STRING_VALUE",
|
|
169
|
+
* // logStream: "STRING_VALUE",
|
|
170
|
+
* // },
|
|
171
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
172
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
173
|
+
* // };
|
|
174
|
+
*
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
177
|
+
* @param CreateThreatModelCommandInput - {@link CreateThreatModelCommandInput}
|
|
178
|
+
* @returns {@link CreateThreatModelCommandOutput}
|
|
179
|
+
* @see {@link CreateThreatModelCommandInput} for command's `input` shape.
|
|
180
|
+
* @see {@link CreateThreatModelCommandOutput} for command's `response` shape.
|
|
181
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link SecurityAgentServiceException}
|
|
184
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
185
|
+
*
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export declare class CreateThreatModelCommand extends CreateThreatModelCommand_base {
|
|
190
|
+
/** @internal type navigation helper, not in runtime. */
|
|
191
|
+
protected static __types: {
|
|
192
|
+
api: {
|
|
193
|
+
input: CreateThreatModelInput;
|
|
194
|
+
output: CreateThreatModelOutput;
|
|
195
|
+
};
|
|
196
|
+
sdk: {
|
|
197
|
+
input: CreateThreatModelCommandInput;
|
|
198
|
+
output: CreateThreatModelCommandOutput;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|