@aws-sdk/client-securityagent 3.1171.0 → 3.1173.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 +7 -0
- package/dist-cjs/index.js +48 -9
- package/dist-es/SecurityAgent.js +2 -0
- package/dist-es/commands/ResumePentestJobCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +10 -0
- package/dist-es/schemas/schemas_0.js +28 -8
- package/dist-types/SecurityAgent.d.ts +8 -0
- package/dist-types/SecurityAgentClient.d.ts +3 -2
- package/dist-types/commands/BatchDisassociateFindingIssueCommand.d.ts +1 -1
- package/dist-types/commands/BatchExportFindingsCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetCodeReviewJobsCommand.d.ts +2 -2
- package/dist-types/commands/BatchGetFindingsCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetPentestJobsCommand.d.ts +3 -2
- package/dist-types/commands/BatchGetThreatModelJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListCodeReviewJobsForCodeReviewCommand.d.ts +1 -1
- package/dist-types/commands/ListPentestJobsForPentestCommand.d.ts +2 -1
- package/dist-types/commands/ListThreatModelJobsCommand.d.ts +1 -1
- package/dist-types/commands/ResumePentestJobCommand.d.ts +119 -0
- package/dist-types/commands/StartCodeReviewJobCommand.d.ts +1 -1
- package/dist-types/commands/StartPentestJobCommand.d.ts +2 -2
- package/dist-types/commands/StartThreatModelJobCommand.d.ts +1 -1
- package/dist-types/commands/StopPentestJobCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +27 -0
- package/dist-types/models/models_0.d.ts +112 -77
- package/dist-types/models/models_1.d.ts +79 -2
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/SecurityAgent.d.ts +18 -0
- package/dist-types/ts3.4/SecurityAgentClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ResumePentestJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartPentestJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +24 -16
- package/dist-types/ts3.4/models/models_1.d.ts +19 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ResumePentestJobInput, ResumePentestJobOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ResumePentestJobCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ResumePentestJobCommandInput extends ResumePentestJobInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ResumePentestJobCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ResumePentestJobCommandOutput extends ResumePentestJobOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ResumePentestJobCommand_base: {
|
|
22
|
+
new (input: ResumePentestJobCommandInput): import("@smithy/core/client").CommandImpl<ResumePentestJobCommandInput, ResumePentestJobCommandOutput, import("..").SecurityAgentClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ResumePentestJobCommandInput]): import("@smithy/core/client").CommandImpl<ResumePentestJobCommandInput, ResumePentestJobCommandOutput, import("..").SecurityAgentClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Resumes a stopped or paused pentest job from its last saved checkpoint. The job keeps its pentest job identifier and continues as a new version, keeping the findings and progress from earlier runs. You can resume a job within 7 days of when it was created.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityAgentClient, ResumePentestJobCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
32
|
+
* // const { SecurityAgentClient, ResumePentestJobCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
33
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
34
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
35
|
+
* const client = new SecurityAgentClient(config);
|
|
36
|
+
* const input = { // ResumePentestJobInput
|
|
37
|
+
* agentSpaceId: "STRING_VALUE",
|
|
38
|
+
* pentestJobId: "STRING_VALUE",
|
|
39
|
+
* actors: [ // ActorList
|
|
40
|
+
* { // Actor
|
|
41
|
+
* identifier: "STRING_VALUE",
|
|
42
|
+
* uris: [ // UriList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* authentication: { // Authentication
|
|
46
|
+
* providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL",
|
|
47
|
+
* value: "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* description: "STRING_VALUE",
|
|
50
|
+
* enableEmailMfa: true || false,
|
|
51
|
+
* mfaForwardingAddress: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* networkTrafficConfig: { // NetworkTrafficConfig
|
|
55
|
+
* rules: [ // NetworkTrafficRuleList
|
|
56
|
+
* { // NetworkTrafficRule
|
|
57
|
+
* effect: "ALLOW" || "DENY",
|
|
58
|
+
* pattern: "STRING_VALUE",
|
|
59
|
+
* networkTrafficRuleType: "URL",
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* customHeaders: [ // CustomHeaderList
|
|
63
|
+
* { // CustomHeader
|
|
64
|
+
* name: "STRING_VALUE",
|
|
65
|
+
* value: "STRING_VALUE",
|
|
66
|
+
* },
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* vpcConfig: { // VpcConfig
|
|
70
|
+
* vpcArn: "STRING_VALUE",
|
|
71
|
+
* securityGroupArns: [ // SecurityGroupArns
|
|
72
|
+
* "STRING_VALUE",
|
|
73
|
+
* ],
|
|
74
|
+
* subnetArns: [ // SubnetArns
|
|
75
|
+
* "STRING_VALUE",
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* maxTaskHours: Number("double"),
|
|
79
|
+
* copyConfigFromPentest: true || false,
|
|
80
|
+
* };
|
|
81
|
+
* const command = new ResumePentestJobCommand(input);
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* // { // ResumePentestJobOutput
|
|
84
|
+
* // title: "STRING_VALUE",
|
|
85
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "PAUSING" || "PAUSED" || "FAILED" || "COMPLETED",
|
|
86
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
88
|
+
* // pentestId: "STRING_VALUE",
|
|
89
|
+
* // pentestJobId: "STRING_VALUE",
|
|
90
|
+
* // version: "STRING_VALUE",
|
|
91
|
+
* // };
|
|
92
|
+
*
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @param ResumePentestJobCommandInput - {@link ResumePentestJobCommandInput}
|
|
96
|
+
* @returns {@link ResumePentestJobCommandOutput}
|
|
97
|
+
* @see {@link ResumePentestJobCommandInput} for command's `input` shape.
|
|
98
|
+
* @see {@link ResumePentestJobCommandOutput} for command's `response` shape.
|
|
99
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link SecurityAgentServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export declare class ResumePentestJobCommand extends ResumePentestJobCommand_base {
|
|
108
|
+
/** @internal type navigation helper, not in runtime. */
|
|
109
|
+
protected static __types: {
|
|
110
|
+
api: {
|
|
111
|
+
input: ResumePentestJobInput;
|
|
112
|
+
output: ResumePentestJobOutput;
|
|
113
|
+
};
|
|
114
|
+
sdk: {
|
|
115
|
+
input: ResumePentestJobCommandInput;
|
|
116
|
+
output: ResumePentestJobCommandOutput;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -44,7 +44,7 @@ declare const StartCodeReviewJobCommand_base: {
|
|
|
44
44
|
* const response = await client.send(command);
|
|
45
45
|
* // { // StartCodeReviewJobOutput
|
|
46
46
|
* // title: "STRING_VALUE",
|
|
47
|
-
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "FAILED" || "COMPLETED",
|
|
47
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "PAUSING" || "PAUSED" || "FAILED" || "COMPLETED",
|
|
48
48
|
* // createdAt: new Date("TIMESTAMP"),
|
|
49
49
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
50
50
|
* // codeReviewId: "STRING_VALUE", // required
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { StartPentestJobInput, StartPentestJobOutput } from "../models/
|
|
2
|
+
import type { StartPentestJobInput, StartPentestJobOutput } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -54,7 +54,7 @@ declare const StartPentestJobCommand_base: {
|
|
|
54
54
|
* const response = await client.send(command);
|
|
55
55
|
* // { // StartPentestJobOutput
|
|
56
56
|
* // title: "STRING_VALUE",
|
|
57
|
-
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "FAILED" || "COMPLETED",
|
|
57
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "PAUSING" || "PAUSED" || "FAILED" || "COMPLETED",
|
|
58
58
|
* // createdAt: new Date("TIMESTAMP"),
|
|
59
59
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
60
60
|
* // pentestId: "STRING_VALUE",
|
|
@@ -41,7 +41,7 @@ declare const StartThreatModelJobCommand_base: {
|
|
|
41
41
|
* const response = await client.send(command);
|
|
42
42
|
* // { // StartThreatModelJobOutput
|
|
43
43
|
* // title: "STRING_VALUE",
|
|
44
|
-
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "FAILED" || "COMPLETED",
|
|
44
|
+
* // status: "IN_PROGRESS" || "STOPPING" || "STOPPED" || "PAUSING" || "PAUSED" || "FAILED" || "COMPLETED",
|
|
45
45
|
* // createdAt: new Date("TIMESTAMP"),
|
|
46
46
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
47
47
|
* // threatModelId: "STRING_VALUE",
|
|
@@ -36,6 +36,7 @@ declare const StopPentestJobCommand_base: {
|
|
|
36
36
|
* const input = { // StopPentestJobInput
|
|
37
37
|
* agentSpaceId: "STRING_VALUE", // required
|
|
38
38
|
* pentestJobId: "STRING_VALUE", // required
|
|
39
|
+
* pause: true || false,
|
|
39
40
|
* };
|
|
40
41
|
* const command = new StopPentestJobCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -72,6 +72,7 @@ export * from "./ListThreatModelJobTasksCommand";
|
|
|
72
72
|
export * from "./ListThreatModelJobsCommand";
|
|
73
73
|
export * from "./ListThreatModelsCommand";
|
|
74
74
|
export * from "./ListThreatsCommand";
|
|
75
|
+
export * from "./ResumePentestJobCommand";
|
|
75
76
|
export * from "./StartCodeRemediationCommand";
|
|
76
77
|
export * from "./StartCodeReviewJobCommand";
|
|
77
78
|
export * from "./StartPentestJobCommand";
|
|
@@ -433,6 +433,10 @@ export declare const ErrorCode: {
|
|
|
433
433
|
* <p>Failure caused by an internal error.</p>
|
|
434
434
|
*/
|
|
435
435
|
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
436
|
+
/**
|
|
437
|
+
* <p>Pentest job was paused by the user.</p>
|
|
438
|
+
*/
|
|
439
|
+
readonly PAUSED_BY_USER: "PAUSED_BY_USER";
|
|
436
440
|
/**
|
|
437
441
|
* <p>Pentest job was stopped by the user.</p>
|
|
438
442
|
*/
|
|
@@ -501,6 +505,14 @@ export declare const JobStatus: {
|
|
|
501
505
|
* <p>Pentest job is currently running.</p>
|
|
502
506
|
*/
|
|
503
507
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
508
|
+
/**
|
|
509
|
+
* <p>Pentest job is paused. A paused job can be resumed from its last saved checkpoint within 7 days of the job's creation.</p>
|
|
510
|
+
*/
|
|
511
|
+
readonly PAUSED: "PAUSED";
|
|
512
|
+
/**
|
|
513
|
+
* <p>Pentest job is being paused.</p>
|
|
514
|
+
*/
|
|
515
|
+
readonly PAUSING: "PAUSING";
|
|
504
516
|
/**
|
|
505
517
|
* <p>Pentest job was stopped by the user.</p>
|
|
506
518
|
*/
|
|
@@ -613,6 +625,21 @@ export declare const CodeRemediationTaskStatus: {
|
|
|
613
625
|
* @public
|
|
614
626
|
*/
|
|
615
627
|
export type CodeRemediationTaskStatus = (typeof CodeRemediationTaskStatus)[keyof typeof CodeRemediationTaskStatus];
|
|
628
|
+
/**
|
|
629
|
+
* @public
|
|
630
|
+
* @enum
|
|
631
|
+
*/
|
|
632
|
+
export declare const CodeRemediationJobStatus: {
|
|
633
|
+
readonly COMPLETED: "COMPLETED";
|
|
634
|
+
readonly FAILED: "FAILED";
|
|
635
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
636
|
+
readonly NO_CHANGE_REQUIRED: "NO_CHANGE_REQUIRED";
|
|
637
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
* @public
|
|
641
|
+
*/
|
|
642
|
+
export type CodeRemediationJobStatus = (typeof CodeRemediationJobStatus)[keyof typeof CodeRemediationJobStatus];
|
|
616
643
|
/**
|
|
617
644
|
* @public
|
|
618
645
|
* @enum
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccessType, ArtifactType, AuthenticationProviderType, CleanUpStrategy, CodeRemediationStrategy, CodeRemediationTaskStatus, ConfidenceLevel, ContextType, DNSRecordType, DomainVerificationMethod, ErrorCode, FindingStatus, GitLabTokenType, IpAddressType, JobStatus, JobType, LogType, ManagementType, MembershipType, MembershipTypeFilter, NetworkTrafficRuleEffect, NetworkTrafficRuleType, PrivateConnectionStatus, PrivateConnectionType, Provider, ProviderType, ResourceConfigDnsResolution, ResourceType, RiskLevel, RiskType, ScopeDecision, SecurityRequirementArtifactFormat, SecurityRequirementPackImportStatus, SecurityRequirementPackStatus, SkillType, StepName, StepStatus, StrideCategory, TargetDomainStatus, TaskExecutionStatus, TestScopeType, ThreatActor, ThreatSeverity, ThreatStatus, TriggerEvent, TriggerFilterMatchMode, TriggerFilterType, UserRole, ValidationMode, ValidationStatus, WebhookAction } from "./enums";
|
|
1
|
+
import type { AccessType, ArtifactType, AuthenticationProviderType, CleanUpStrategy, CodeRemediationJobStatus, CodeRemediationStrategy, CodeRemediationTaskStatus, ConfidenceLevel, ContextType, DNSRecordType, DomainVerificationMethod, ErrorCode, FindingStatus, GitLabTokenType, IpAddressType, JobStatus, JobType, LogType, ManagementType, MembershipType, MembershipTypeFilter, NetworkTrafficRuleEffect, NetworkTrafficRuleType, PrivateConnectionStatus, PrivateConnectionType, Provider, ProviderType, ResourceConfigDnsResolution, ResourceType, RiskLevel, RiskType, ScopeDecision, SecurityRequirementArtifactFormat, SecurityRequirementPackImportStatus, SecurityRequirementPackStatus, SkillType, StepName, StepStatus, StrideCategory, TargetDomainStatus, TaskExecutionStatus, TestScopeType, ThreatActor, ThreatSeverity, ThreatStatus, TriggerEvent, TriggerFilterMatchMode, TriggerFilterType, UserRole, ValidationMode, ValidationStatus, WebhookAction } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>The authentication configuration for an actor, specifying the provider type and credentials.</p>
|
|
4
4
|
* @public
|
|
@@ -2398,7 +2398,7 @@ export interface CodeLocation {
|
|
|
2398
2398
|
*/
|
|
2399
2399
|
export interface CodeRemediationTaskDetails {
|
|
2400
2400
|
/**
|
|
2401
|
-
* <p>The name of
|
|
2401
|
+
* <p>The name of an associated repository where the remediation was applied.</p>
|
|
2402
2402
|
* @public
|
|
2403
2403
|
*/
|
|
2404
2404
|
repoName?: string | undefined;
|
|
@@ -2412,6 +2412,21 @@ export interface CodeRemediationTaskDetails {
|
|
|
2412
2412
|
* @public
|
|
2413
2413
|
*/
|
|
2414
2414
|
pullRequestLink?: string | undefined;
|
|
2415
|
+
/**
|
|
2416
|
+
* <p>The current status of the code remediation task for the particular repository.</p>
|
|
2417
|
+
* @public
|
|
2418
|
+
*/
|
|
2419
|
+
status?: CodeRemediationJobStatus | undefined;
|
|
2420
|
+
/**
|
|
2421
|
+
* <p>A category classifier if a repository's code remediation fails.</p>
|
|
2422
|
+
* @public
|
|
2423
|
+
*/
|
|
2424
|
+
statusCode?: string | undefined;
|
|
2425
|
+
/**
|
|
2426
|
+
* <p>A descriptive reason when a repository's code remediation fails.</p>
|
|
2427
|
+
* @public
|
|
2428
|
+
*/
|
|
2429
|
+
statusReason?: string | undefined;
|
|
2415
2430
|
}
|
|
2416
2431
|
/**
|
|
2417
2432
|
* <p>Represents a code remediation task that was initiated to fix a security finding.</p>
|
|
@@ -2419,17 +2434,17 @@ export interface CodeRemediationTaskDetails {
|
|
|
2419
2434
|
*/
|
|
2420
2435
|
export interface CodeRemediationTask {
|
|
2421
2436
|
/**
|
|
2422
|
-
* <p>The current status of the code remediation task.</p>
|
|
2437
|
+
* <p>The current status of the overall code remediation task.</p>
|
|
2423
2438
|
* @public
|
|
2424
2439
|
*/
|
|
2425
2440
|
status: CodeRemediationTaskStatus | undefined;
|
|
2426
2441
|
/**
|
|
2427
|
-
* <p>The reason for the current status of the code remediation task.</p>
|
|
2442
|
+
* <p>The reason for the current status of the overall code remediation task.</p>
|
|
2428
2443
|
* @public
|
|
2429
2444
|
*/
|
|
2430
2445
|
statusReason?: string | undefined;
|
|
2431
2446
|
/**
|
|
2432
|
-
* <p>The list of details for
|
|
2447
|
+
* <p>The list of details for a code remediation task, including repository names, status of code remediation for each associated repository, and generated code diff or pull request links.</p>
|
|
2433
2448
|
* @public
|
|
2434
2449
|
*/
|
|
2435
2450
|
taskDetails?: CodeRemediationTaskDetails[] | undefined;
|
|
@@ -2881,6 +2896,11 @@ export interface PentestJob {
|
|
|
2881
2896
|
* @public
|
|
2882
2897
|
*/
|
|
2883
2898
|
testScope?: TestScope | undefined;
|
|
2899
|
+
/**
|
|
2900
|
+
* <p>The version of the pentest job. The version increases each time the job is resumed. This value is absent for jobs created before versions were recorded.</p>
|
|
2901
|
+
* @public
|
|
2902
|
+
*/
|
|
2903
|
+
version?: string | undefined;
|
|
2884
2904
|
/**
|
|
2885
2905
|
* <p>The date and time the pentest job was created, in UTC format.</p>
|
|
2886
2906
|
* @public
|
|
@@ -7435,6 +7455,11 @@ export interface PentestJobSummary {
|
|
|
7435
7455
|
* @public
|
|
7436
7456
|
*/
|
|
7437
7457
|
reportUrl?: string | undefined;
|
|
7458
|
+
/**
|
|
7459
|
+
* <p>The version of the pentest job. The version increases each time the job is resumed. This value is absent for jobs created before versions were recorded.</p>
|
|
7460
|
+
* @public
|
|
7461
|
+
*/
|
|
7462
|
+
version?: string | undefined;
|
|
7438
7463
|
}
|
|
7439
7464
|
/**
|
|
7440
7465
|
* <p>Output for the ListPentestJobsForPentest operation.</p>
|
|
@@ -8374,6 +8399,88 @@ export interface UpdatePrivateConnectionCertificateOutput {
|
|
|
8374
8399
|
*/
|
|
8375
8400
|
tags?: Record<string, string> | undefined;
|
|
8376
8401
|
}
|
|
8402
|
+
/**
|
|
8403
|
+
* <p>Input for resuming a stopped or paused pentest job.</p>
|
|
8404
|
+
* @public
|
|
8405
|
+
*/
|
|
8406
|
+
export interface ResumePentestJobInput {
|
|
8407
|
+
/**
|
|
8408
|
+
* <p>The unique identifier of the agent space.</p>
|
|
8409
|
+
* @public
|
|
8410
|
+
*/
|
|
8411
|
+
agentSpaceId?: string | undefined;
|
|
8412
|
+
/**
|
|
8413
|
+
* <p>The unique identifier of the pentest job to resume.</p>
|
|
8414
|
+
* @public
|
|
8415
|
+
*/
|
|
8416
|
+
pentestJobId?: string | undefined;
|
|
8417
|
+
/**
|
|
8418
|
+
* <p>The actors to use for the resumed job. When specified, replaces the actors the job used before it stopped.</p>
|
|
8419
|
+
* @public
|
|
8420
|
+
*/
|
|
8421
|
+
actors?: Actor[] | undefined;
|
|
8422
|
+
/**
|
|
8423
|
+
* <p>The network traffic configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.</p>
|
|
8424
|
+
* @public
|
|
8425
|
+
*/
|
|
8426
|
+
networkTrafficConfig?: NetworkTrafficConfig | undefined;
|
|
8427
|
+
/**
|
|
8428
|
+
* <p>The VPC configuration to use for the resumed job. When specified, replaces the configuration the job used before it stopped.</p>
|
|
8429
|
+
* @public
|
|
8430
|
+
*/
|
|
8431
|
+
vpcConfig?: VpcConfig | undefined;
|
|
8432
|
+
/**
|
|
8433
|
+
* <p>The maximum number of task hours for the resumed job. To resume a job that stopped because it reached its task hours limit, specify a higher value.</p>
|
|
8434
|
+
* @public
|
|
8435
|
+
*/
|
|
8436
|
+
maxTaskHours?: number | undefined;
|
|
8437
|
+
/**
|
|
8438
|
+
* <p>Specifies whether to copy the current actors, network traffic configuration, VPC configuration, and maximum task hours from the pentest to the resumed job. The job's scope, such as its target endpoints, is never changed. Values you specify in this request take precedence over copied values.</p>
|
|
8439
|
+
* @public
|
|
8440
|
+
*/
|
|
8441
|
+
copyConfigFromPentest?: boolean | undefined;
|
|
8442
|
+
}
|
|
8443
|
+
/**
|
|
8444
|
+
* <p>Output for the ResumePentestJob operation.</p>
|
|
8445
|
+
* @public
|
|
8446
|
+
*/
|
|
8447
|
+
export interface ResumePentestJobOutput {
|
|
8448
|
+
/**
|
|
8449
|
+
* <p>The title of the pentest job.</p>
|
|
8450
|
+
* @public
|
|
8451
|
+
*/
|
|
8452
|
+
title?: string | undefined;
|
|
8453
|
+
/**
|
|
8454
|
+
* <p>The current status of the pentest job.</p>
|
|
8455
|
+
* @public
|
|
8456
|
+
*/
|
|
8457
|
+
status?: JobStatus | undefined;
|
|
8458
|
+
/**
|
|
8459
|
+
* <p>The date and time the pentest job was created, in UTC format.</p>
|
|
8460
|
+
* @public
|
|
8461
|
+
*/
|
|
8462
|
+
createdAt?: Date | undefined;
|
|
8463
|
+
/**
|
|
8464
|
+
* <p>The date and time the pentest job was last updated, in UTC format.</p>
|
|
8465
|
+
* @public
|
|
8466
|
+
*/
|
|
8467
|
+
updatedAt?: Date | undefined;
|
|
8468
|
+
/**
|
|
8469
|
+
* <p>The unique identifier of the pentest.</p>
|
|
8470
|
+
* @public
|
|
8471
|
+
*/
|
|
8472
|
+
pentestId?: string | undefined;
|
|
8473
|
+
/**
|
|
8474
|
+
* <p>The unique identifier of the resumed pentest job.</p>
|
|
8475
|
+
* @public
|
|
8476
|
+
*/
|
|
8477
|
+
pentestJobId?: string | undefined;
|
|
8478
|
+
/**
|
|
8479
|
+
* <p>The version of the pentest job that the resume started. The version increases each time the job is resumed.</p>
|
|
8480
|
+
* @public
|
|
8481
|
+
*/
|
|
8482
|
+
version?: string | undefined;
|
|
8483
|
+
}
|
|
8377
8484
|
/**
|
|
8378
8485
|
* @public
|
|
8379
8486
|
*/
|
|
@@ -8518,75 +8625,3 @@ export interface StartCodeReviewJobOutput {
|
|
|
8518
8625
|
*/
|
|
8519
8626
|
agentSpaceId?: string | undefined;
|
|
8520
8627
|
}
|
|
8521
|
-
/**
|
|
8522
|
-
* <p>Input for starting the execution of a pentest.</p>
|
|
8523
|
-
* @public
|
|
8524
|
-
*/
|
|
8525
|
-
export interface StartPentestJobInput {
|
|
8526
|
-
/**
|
|
8527
|
-
* <p>The unique identifier of the agent space.</p>
|
|
8528
|
-
* @public
|
|
8529
|
-
*/
|
|
8530
|
-
agentSpaceId: string | undefined;
|
|
8531
|
-
/**
|
|
8532
|
-
* <p>The unique identifier of the pentest to start a job for.</p>
|
|
8533
|
-
* @public
|
|
8534
|
-
*/
|
|
8535
|
-
pentestId: string | undefined;
|
|
8536
|
-
/**
|
|
8537
|
-
* <p>The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.</p>
|
|
8538
|
-
* @public
|
|
8539
|
-
*/
|
|
8540
|
-
jobType?: JobType | undefined;
|
|
8541
|
-
/**
|
|
8542
|
-
* <p>The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.</p>
|
|
8543
|
-
* @public
|
|
8544
|
-
*/
|
|
8545
|
-
selectedFindingIds?: string[] | undefined;
|
|
8546
|
-
/**
|
|
8547
|
-
* <p>The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.</p>
|
|
8548
|
-
* @public
|
|
8549
|
-
*/
|
|
8550
|
-
scopeChanges?: ScopeChange[] | undefined;
|
|
8551
|
-
}
|
|
8552
|
-
/**
|
|
8553
|
-
* <p>Output for the StartPentestJob operation.</p>
|
|
8554
|
-
* @public
|
|
8555
|
-
*/
|
|
8556
|
-
export interface StartPentestJobOutput {
|
|
8557
|
-
/**
|
|
8558
|
-
* <p>The title of the pentest job.</p>
|
|
8559
|
-
* @public
|
|
8560
|
-
*/
|
|
8561
|
-
title?: string | undefined;
|
|
8562
|
-
/**
|
|
8563
|
-
* <p>The current status of the pentest job.</p>
|
|
8564
|
-
* @public
|
|
8565
|
-
*/
|
|
8566
|
-
status?: JobStatus | undefined;
|
|
8567
|
-
/**
|
|
8568
|
-
* <p>The date and time the pentest job was created, in UTC format.</p>
|
|
8569
|
-
* @public
|
|
8570
|
-
*/
|
|
8571
|
-
createdAt?: Date | undefined;
|
|
8572
|
-
/**
|
|
8573
|
-
* <p>The date and time the pentest job was last updated, in UTC format.</p>
|
|
8574
|
-
* @public
|
|
8575
|
-
*/
|
|
8576
|
-
updatedAt?: Date | undefined;
|
|
8577
|
-
/**
|
|
8578
|
-
* <p>The unique identifier of the pentest.</p>
|
|
8579
|
-
* @public
|
|
8580
|
-
*/
|
|
8581
|
-
pentestId?: string | undefined;
|
|
8582
|
-
/**
|
|
8583
|
-
* <p>The unique identifier of the started pentest job.</p>
|
|
8584
|
-
* @public
|
|
8585
|
-
*/
|
|
8586
|
-
pentestJobId?: string | undefined;
|
|
8587
|
-
/**
|
|
8588
|
-
* <p>The unique identifier of the agent space.</p>
|
|
8589
|
-
* @public
|
|
8590
|
-
*/
|
|
8591
|
-
agentSpaceId?: string | undefined;
|
|
8592
|
-
}
|
|
@@ -1,5 +1,77 @@
|
|
|
1
|
-
import type { CleanUpStrategy, CodeRemediationStrategy, DomainVerificationMethod, FindingStatus, JobStatus, RiskLevel, RiskType, SkillType, StrideCategory, TargetDomainStatus, ThreatActor, ThreatSeverity, ThreatStatus, ValidationMode } from "./enums";
|
|
2
|
-
import type { Assets, CiCdConfiguration, CloudWatchLog, DocumentInfo, IntegratedResourceInputItem, NetworkTrafficConfig, ReportDestination, ReportFilters, TestScope, ThreatAnchorShape, ThreatEvidenceShape, VerificationDetails, VpcConfig } from "./models_0";
|
|
1
|
+
import type { CleanUpStrategy, CodeRemediationStrategy, DomainVerificationMethod, FindingStatus, JobStatus, JobType, RiskLevel, RiskType, SkillType, StrideCategory, TargetDomainStatus, ThreatActor, ThreatSeverity, ThreatStatus, ValidationMode } from "./enums";
|
|
2
|
+
import type { Assets, CiCdConfiguration, CloudWatchLog, DocumentInfo, IntegratedResourceInputItem, NetworkTrafficConfig, ReportDestination, ReportFilters, ScopeChange, TestScope, ThreatAnchorShape, ThreatEvidenceShape, VerificationDetails, VpcConfig } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Input for starting the execution of a pentest.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface StartPentestJobInput {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The unique identifier of the agent space.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
agentSpaceId: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>The unique identifier of the pentest to start a job for.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
pentestId: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* <p>The type of pentest job to start. Valid values are FULL, REVALIDATION, and CICD. When set to REVALIDATION, the selectedFindingIds parameter is required. When set to CICD, the scopeChanges parameter defines the code changes to test.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
jobType?: JobType | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* <p>The list of finding identifiers to revalidate. Required when jobType is REVALIDATION. Each finding must belong to the same agent space and pentest.</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
selectedFindingIds?: string[] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The code changes that define the scope of a CI/CD pentest job. Provide this when starting a job with jobType CICD to test only the changes in the current pipeline run.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
scopeChanges?: ScopeChange[] | undefined;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* <p>Output for the StartPentestJob operation.</p>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface StartPentestJobOutput {
|
|
39
|
+
/**
|
|
40
|
+
* <p>The title of the pentest job.</p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
title?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* <p>The current status of the pentest job.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
status?: JobStatus | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* <p>The date and time the pentest job was created, in UTC format.</p>
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
createdAt?: Date | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* <p>The date and time the pentest job was last updated, in UTC format.</p>
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
updatedAt?: Date | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* <p>The unique identifier of the pentest.</p>
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
pentestId?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* <p>The unique identifier of the started pentest job.</p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
pentestJobId?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* <p>The unique identifier of the agent space.</p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
agentSpaceId?: string | undefined;
|
|
74
|
+
}
|
|
3
75
|
/**
|
|
4
76
|
* <p>Input for starting a threat model job.</p>
|
|
5
77
|
* @public
|
|
@@ -94,6 +166,11 @@ export interface StopPentestJobInput {
|
|
|
94
166
|
* @public
|
|
95
167
|
*/
|
|
96
168
|
pentestJobId: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* <p>Specifies whether to pause the job instead of stopping it. A paused job moves to <code>PAUSING</code> and then to <code>PAUSED</code>, and you can resume it later with <code>ResumePentestJob</code>. You can pause only a job that is <code>IN_PROGRESS</code>. The default is false.</p>
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
pause?: boolean | undefined;
|
|
97
174
|
}
|
|
98
175
|
/**
|
|
99
176
|
* <p>Output for the StopPentestJob operation.</p>
|
|
@@ -252,6 +252,8 @@ export declare var PentestSummary$: StaticStructureSchema;
|
|
|
252
252
|
export declare var PrivateConnectionSummary$: StaticStructureSchema;
|
|
253
253
|
export declare var ReportDestination$: StaticStructureSchema;
|
|
254
254
|
export declare var ReportFilters$: StaticStructureSchema;
|
|
255
|
+
export declare var ResumePentestJobInput$: StaticStructureSchema;
|
|
256
|
+
export declare var ResumePentestJobOutput$: StaticStructureSchema;
|
|
255
257
|
export declare var ScopeChange$: StaticStructureSchema;
|
|
256
258
|
export declare var ScopeResult$: StaticStructureSchema;
|
|
257
259
|
export declare var SecurityRequirementArtifact$: StaticStructureSchema;
|
|
@@ -416,6 +418,7 @@ export declare var ListThreatModelJobs$: StaticOperationSchema;
|
|
|
416
418
|
export declare var ListThreatModelJobTasks$: StaticOperationSchema;
|
|
417
419
|
export declare var ListThreatModels$: StaticOperationSchema;
|
|
418
420
|
export declare var ListThreats$: StaticOperationSchema;
|
|
421
|
+
export declare var ResumePentestJob$: StaticOperationSchema;
|
|
419
422
|
export declare var StartCodeRemediation$: StaticOperationSchema;
|
|
420
423
|
export declare var StartCodeReviewJob$: StaticOperationSchema;
|
|
421
424
|
export declare var StartPentestJob$: StaticOperationSchema;
|
|
@@ -291,6 +291,10 @@ import {
|
|
|
291
291
|
ListThreatModelsCommandOutput,
|
|
292
292
|
} from "./commands/ListThreatModelsCommand";
|
|
293
293
|
import { ListThreatsCommandInput, ListThreatsCommandOutput } from "./commands/ListThreatsCommand";
|
|
294
|
+
import {
|
|
295
|
+
ResumePentestJobCommandInput,
|
|
296
|
+
ResumePentestJobCommandOutput,
|
|
297
|
+
} from "./commands/ResumePentestJobCommand";
|
|
294
298
|
import {
|
|
295
299
|
StartCodeRemediationCommandInput,
|
|
296
300
|
StartCodeRemediationCommandOutput,
|
|
@@ -1350,6 +1354,20 @@ export interface SecurityAgent {
|
|
|
1350
1354
|
options: SecurityAgentRequestOptions,
|
|
1351
1355
|
cb: (err: any, data?: ListThreatsCommandOutput) => void,
|
|
1352
1356
|
): void;
|
|
1357
|
+
resumePentestJob(): Promise<ResumePentestJobCommandOutput>;
|
|
1358
|
+
resumePentestJob(
|
|
1359
|
+
args: ResumePentestJobCommandInput,
|
|
1360
|
+
options?: SecurityAgentRequestOptions,
|
|
1361
|
+
): Promise<ResumePentestJobCommandOutput>;
|
|
1362
|
+
resumePentestJob(
|
|
1363
|
+
args: ResumePentestJobCommandInput,
|
|
1364
|
+
cb: (err: any, data?: ResumePentestJobCommandOutput) => void,
|
|
1365
|
+
): void;
|
|
1366
|
+
resumePentestJob(
|
|
1367
|
+
args: ResumePentestJobCommandInput,
|
|
1368
|
+
options: SecurityAgentRequestOptions,
|
|
1369
|
+
cb: (err: any, data?: ResumePentestJobCommandOutput) => void,
|
|
1370
|
+
): void;
|
|
1353
1371
|
startCodeRemediation(
|
|
1354
1372
|
args: StartCodeRemediationCommandInput,
|
|
1355
1373
|
options?: SecurityAgentRequestOptions,
|
|
@@ -320,6 +320,10 @@ import {
|
|
|
320
320
|
ListThreatModelsCommandOutput,
|
|
321
321
|
} from "./commands/ListThreatModelsCommand";
|
|
322
322
|
import { ListThreatsCommandInput, ListThreatsCommandOutput } from "./commands/ListThreatsCommand";
|
|
323
|
+
import {
|
|
324
|
+
ResumePentestJobCommandInput,
|
|
325
|
+
ResumePentestJobCommandOutput,
|
|
326
|
+
} from "./commands/ResumePentestJobCommand";
|
|
323
327
|
import {
|
|
324
328
|
StartCodeRemediationCommandInput,
|
|
325
329
|
StartCodeRemediationCommandOutput,
|
|
@@ -487,6 +491,7 @@ export type ServiceInputTypes =
|
|
|
487
491
|
| ListThreatModelJobsCommandInput
|
|
488
492
|
| ListThreatModelsCommandInput
|
|
489
493
|
| ListThreatsCommandInput
|
|
494
|
+
| ResumePentestJobCommandInput
|
|
490
495
|
| StartCodeRemediationCommandInput
|
|
491
496
|
| StartCodeReviewJobCommandInput
|
|
492
497
|
| StartPentestJobCommandInput
|
|
@@ -584,6 +589,7 @@ export type ServiceOutputTypes =
|
|
|
584
589
|
| ListThreatModelJobsCommandOutput
|
|
585
590
|
| ListThreatModelsCommandOutput
|
|
586
591
|
| ListThreatsCommandOutput
|
|
592
|
+
| ResumePentestJobCommandOutput
|
|
587
593
|
| StartCodeRemediationCommandOutput
|
|
588
594
|
| StartCodeReviewJobCommandOutput
|
|
589
595
|
| StartPentestJobCommandOutput
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { ResumePentestJobInput, ResumePentestJobOutput } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface ResumePentestJobCommandInput extends ResumePentestJobInput {}
|
|
5
|
+
export interface ResumePentestJobCommandOutput extends ResumePentestJobOutput, __MetadataBearer {}
|
|
6
|
+
declare const ResumePentestJobCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: ResumePentestJobCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
ResumePentestJobCommandInput,
|
|
11
|
+
ResumePentestJobCommandOutput,
|
|
12
|
+
import("..").SecurityAgentClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
...[input]: [] | [ResumePentestJobCommandInput]
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
ResumePentestJobCommandInput,
|
|
20
|
+
ResumePentestJobCommandOutput,
|
|
21
|
+
import("..").SecurityAgentClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class ResumePentestJobCommand extends ResumePentestJobCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: ResumePentestJobInput;
|
|
31
|
+
output: ResumePentestJobOutput;
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: ResumePentestJobCommandInput;
|
|
35
|
+
output: ResumePentestJobCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|