@aws-sdk/client-securityagent 3.1172.0 → 3.1174.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/dist-cjs/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1171.0";
70
+ var version = "3.1173.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -1018,6 +1018,7 @@ const _sB = "s3Buckets";
1018
1018
  const _sC = "serviceCode";
1019
1019
  const _sCc = "scopeChanges";
1020
1020
  const _sCo = "sourceCode";
1021
+ const _sCt = "statusCode";
1021
1022
  const _sD = "scopeDocs";
1022
1023
  const _sFI = "selectedFindingIds";
1023
1024
  const _sGA = "securityGroupArns";
@@ -1586,8 +1587,8 @@ var CodeRemediationTask$ = [3, n0, _CRT,
1586
1587
  ];
1587
1588
  var CodeRemediationTaskDetails$ = [3, n0, _CRTD,
1588
1589
  0,
1589
- [_rN, _cDL, _pRL],
1590
- [0, 0, 0]
1590
+ [_rN, _cDL, _pRL, _sta, _sCt, _sRt],
1591
+ [0, 0, 0, 0, 0, 0]
1591
1592
  ];
1592
1593
  var CodeReview$ = [3, n0, _CR,
1593
1594
  0,
@@ -4134,6 +4135,13 @@ const CodeRemediationTaskStatus = {
4134
4135
  FAILED: "FAILED",
4135
4136
  IN_PROGRESS: "IN_PROGRESS",
4136
4137
  };
4138
+ const CodeRemediationJobStatus = {
4139
+ COMPLETED: "COMPLETED",
4140
+ FAILED: "FAILED",
4141
+ IN_PROGRESS: "IN_PROGRESS",
4142
+ NO_CHANGE_REQUIRED: "NO_CHANGE_REQUIRED",
4143
+ UNKNOWN: "UNKNOWN",
4144
+ };
4137
4145
  const ValidationStatus = {
4138
4146
  CONFIRMED: "CONFIRMED",
4139
4147
  NOT_REPRODUCED: "NOT_REPRODUCED",
@@ -4395,6 +4403,7 @@ exports.CleanUpStrategy = CleanUpStrategy;
4395
4403
  exports.ClientCertificate$ = ClientCertificate$;
4396
4404
  exports.CloudWatchLog$ = CloudWatchLog$;
4397
4405
  exports.CodeLocation$ = CodeLocation$;
4406
+ exports.CodeRemediationJobStatus = CodeRemediationJobStatus;
4398
4407
  exports.CodeRemediationStrategy = CodeRemediationStrategy;
4399
4408
  exports.CodeRemediationTask$ = CodeRemediationTask$;
4400
4409
  exports.CodeRemediationTaskDetails$ = CodeRemediationTaskDetails$;
@@ -168,6 +168,13 @@ export const CodeRemediationTaskStatus = {
168
168
  FAILED: "FAILED",
169
169
  IN_PROGRESS: "IN_PROGRESS",
170
170
  };
171
+ export const CodeRemediationJobStatus = {
172
+ COMPLETED: "COMPLETED",
173
+ FAILED: "FAILED",
174
+ IN_PROGRESS: "IN_PROGRESS",
175
+ NO_CHANGE_REQUIRED: "NO_CHANGE_REQUIRED",
176
+ UNKNOWN: "UNKNOWN",
177
+ };
171
178
  export const ValidationStatus = {
172
179
  CONFIRMED: "CONFIRMED",
173
180
  NOT_REPRODUCED: "NOT_REPRODUCED",
@@ -798,6 +798,7 @@ const _sB = "s3Buckets";
798
798
  const _sC = "serviceCode";
799
799
  const _sCc = "scopeChanges";
800
800
  const _sCo = "sourceCode";
801
+ const _sCt = "statusCode";
801
802
  const _sD = "scopeDocs";
802
803
  const _sFI = "selectedFindingIds";
803
804
  const _sGA = "securityGroupArns";
@@ -1369,8 +1370,8 @@ export var CodeRemediationTask$ = [3, n0, _CRT,
1369
1370
  ];
1370
1371
  export var CodeRemediationTaskDetails$ = [3, n0, _CRTD,
1371
1372
  0,
1372
- [_rN, _cDL, _pRL],
1373
- [0, 0, 0]
1373
+ [_rN, _cDL, _pRL, _sta, _sCt, _sRt],
1374
+ [0, 0, 0, 0, 0, 0]
1374
1375
  ];
1375
1376
  export var CodeReview$ = [3, n0, _CR,
1376
1377
  0,
@@ -70,6 +70,9 @@ declare const BatchGetFindingsCommand_base: {
70
70
  * // repoName: "STRING_VALUE",
71
71
  * // codeDiffLink: "STRING_VALUE",
72
72
  * // pullRequestLink: "STRING_VALUE",
73
+ * // status: "IN_PROGRESS" || "COMPLETED" || "FAILED" || "NO_CHANGE_REQUIRED" || "UNKNOWN",
74
+ * // statusCode: "STRING_VALUE",
75
+ * // statusReason: "STRING_VALUE",
73
76
  * // },
74
77
  * // ],
75
78
  * // },
@@ -625,6 +625,21 @@ export declare const CodeRemediationTaskStatus: {
625
625
  * @public
626
626
  */
627
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];
628
643
  /**
629
644
  * @public
630
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 the repository where the remediation was applied.</p>
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 the code remediation task, including repository name, code diff link, and pull request link.</p>
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;
@@ -200,6 +200,15 @@ export declare const CodeRemediationTaskStatus: {
200
200
  };
201
201
  export type CodeRemediationTaskStatus =
202
202
  (typeof CodeRemediationTaskStatus)[keyof typeof CodeRemediationTaskStatus];
203
+ export declare const CodeRemediationJobStatus: {
204
+ readonly COMPLETED: "COMPLETED";
205
+ readonly FAILED: "FAILED";
206
+ readonly IN_PROGRESS: "IN_PROGRESS";
207
+ readonly NO_CHANGE_REQUIRED: "NO_CHANGE_REQUIRED";
208
+ readonly UNKNOWN: "UNKNOWN";
209
+ };
210
+ export type CodeRemediationJobStatus =
211
+ (typeof CodeRemediationJobStatus)[keyof typeof CodeRemediationJobStatus];
203
212
  export declare const ValidationStatus: {
204
213
  readonly CONFIRMED: "CONFIRMED";
205
214
  readonly NOT_REPRODUCED: "NOT_REPRODUCED";
@@ -3,6 +3,7 @@ import {
3
3
  ArtifactType,
4
4
  AuthenticationProviderType,
5
5
  CleanUpStrategy,
6
+ CodeRemediationJobStatus,
6
7
  CodeRemediationStrategy,
7
8
  CodeRemediationTaskStatus,
8
9
  ConfidenceLevel,
@@ -643,6 +644,9 @@ export interface CodeRemediationTaskDetails {
643
644
  repoName?: string | undefined;
644
645
  codeDiffLink?: string | undefined;
645
646
  pullRequestLink?: string | undefined;
647
+ status?: CodeRemediationJobStatus | undefined;
648
+ statusCode?: string | undefined;
649
+ statusReason?: string | undefined;
646
650
  }
647
651
  export interface CodeRemediationTask {
648
652
  status: CodeRemediationTaskStatus | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityagent",
3
- "version": "3.1172.0",
3
+ "version": "3.1174.0",
4
4
  "description": "AWS SDK for JavaScript Securityagent Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-securityagent",
6
6
  "license": "Apache-2.0",