@aws-sdk/client-codeguru-security 3.490.0 → 3.495.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/CodeGuruSecurity.js +1 -37
- package/dist-cjs/CodeGuruSecurityClient.js +1 -43
- package/dist-cjs/commands/BatchGetFindingsCommand.js +1 -28
- package/dist-cjs/commands/CreateScanCommand.js +1 -28
- package/dist-cjs/commands/CreateUploadUrlCommand.js +1 -29
- package/dist-cjs/commands/GetAccountConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetFindingsCommand.js +1 -28
- package/dist-cjs/commands/GetMetricsSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetScanCommand.js +1 -28
- package/dist-cjs/commands/ListFindingsMetricsCommand.js +1 -28
- package/dist-cjs/commands/ListScansCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccountConfigurationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1645 -11
- package/dist-cjs/models/CodeGuruSecurityServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -156
- package/dist-cjs/pagination/GetFindingsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListFindingsMetricsPaginator.js +1 -7
- package/dist-cjs/pagination/ListScansPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1037
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CodeGuruSecurityServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class CodeGuruSecurityServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, CodeGuruSecurityServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,156 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateUploadUrlResponseFilterSensitiveLog = exports.ResourceNotFoundException = exports.ScanState = exports.ScanType = exports.ResourceId = exports.ConflictException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.Status = exports.Severity = exports.ErrorCode = exports.AnalysisType = exports.AccessDeniedException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const CodeGuruSecurityServiceException_1 = require("./CodeGuruSecurityServiceException");
|
|
6
|
-
class AccessDeniedException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
7
|
-
constructor(opts) {
|
|
8
|
-
super({
|
|
9
|
-
name: "AccessDeniedException",
|
|
10
|
-
$fault: "client",
|
|
11
|
-
...opts,
|
|
12
|
-
});
|
|
13
|
-
this.name = "AccessDeniedException";
|
|
14
|
-
this.$fault = "client";
|
|
15
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
-
this.errorCode = opts.errorCode;
|
|
17
|
-
this.resourceId = opts.resourceId;
|
|
18
|
-
this.resourceType = opts.resourceType;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
22
|
-
exports.AnalysisType = {
|
|
23
|
-
ALL: "All",
|
|
24
|
-
SECURITY: "Security",
|
|
25
|
-
};
|
|
26
|
-
exports.ErrorCode = {
|
|
27
|
-
DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER",
|
|
28
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
29
|
-
INVALID_FINDING_ID: "INVALID_FINDING_ID",
|
|
30
|
-
INVALID_SCAN_NAME: "INVALID_SCAN_NAME",
|
|
31
|
-
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
32
|
-
};
|
|
33
|
-
exports.Severity = {
|
|
34
|
-
CRITICAL: "Critical",
|
|
35
|
-
HIGH: "High",
|
|
36
|
-
INFO: "Info",
|
|
37
|
-
LOW: "Low",
|
|
38
|
-
MEDIUM: "Medium",
|
|
39
|
-
};
|
|
40
|
-
exports.Status = {
|
|
41
|
-
ALL: "All",
|
|
42
|
-
CLOSED: "Closed",
|
|
43
|
-
OPEN: "Open",
|
|
44
|
-
};
|
|
45
|
-
class InternalServerException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "InternalServerException",
|
|
49
|
-
$fault: "server",
|
|
50
|
-
...opts,
|
|
51
|
-
});
|
|
52
|
-
this.name = "InternalServerException";
|
|
53
|
-
this.$fault = "server";
|
|
54
|
-
this.$retryable = {};
|
|
55
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
56
|
-
this.error = opts.error;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.InternalServerException = InternalServerException;
|
|
60
|
-
class ThrottlingException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
61
|
-
constructor(opts) {
|
|
62
|
-
super({
|
|
63
|
-
name: "ThrottlingException",
|
|
64
|
-
$fault: "client",
|
|
65
|
-
...opts,
|
|
66
|
-
});
|
|
67
|
-
this.name = "ThrottlingException";
|
|
68
|
-
this.$fault = "client";
|
|
69
|
-
this.$retryable = {
|
|
70
|
-
throttling: true,
|
|
71
|
-
};
|
|
72
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
73
|
-
this.errorCode = opts.errorCode;
|
|
74
|
-
this.serviceCode = opts.serviceCode;
|
|
75
|
-
this.quotaCode = opts.quotaCode;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.ThrottlingException = ThrottlingException;
|
|
79
|
-
exports.ValidationExceptionReason = {
|
|
80
|
-
CANNOT_PARSE: "cannotParse",
|
|
81
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
82
|
-
LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch",
|
|
83
|
-
OTHER: "other",
|
|
84
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
85
|
-
};
|
|
86
|
-
class ValidationException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
87
|
-
constructor(opts) {
|
|
88
|
-
super({
|
|
89
|
-
name: "ValidationException",
|
|
90
|
-
$fault: "client",
|
|
91
|
-
...opts,
|
|
92
|
-
});
|
|
93
|
-
this.name = "ValidationException";
|
|
94
|
-
this.$fault = "client";
|
|
95
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
96
|
-
this.errorCode = opts.errorCode;
|
|
97
|
-
this.reason = opts.reason;
|
|
98
|
-
this.fieldList = opts.fieldList;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.ValidationException = ValidationException;
|
|
102
|
-
class ConflictException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
103
|
-
constructor(opts) {
|
|
104
|
-
super({
|
|
105
|
-
name: "ConflictException",
|
|
106
|
-
$fault: "client",
|
|
107
|
-
...opts,
|
|
108
|
-
});
|
|
109
|
-
this.name = "ConflictException";
|
|
110
|
-
this.$fault = "client";
|
|
111
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
112
|
-
this.errorCode = opts.errorCode;
|
|
113
|
-
this.resourceId = opts.resourceId;
|
|
114
|
-
this.resourceType = opts.resourceType;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.ConflictException = ConflictException;
|
|
118
|
-
var ResourceId;
|
|
119
|
-
(function (ResourceId) {
|
|
120
|
-
ResourceId.visit = (value, visitor) => {
|
|
121
|
-
if (value.codeArtifactId !== undefined)
|
|
122
|
-
return visitor.codeArtifactId(value.codeArtifactId);
|
|
123
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
124
|
-
};
|
|
125
|
-
})(ResourceId = exports.ResourceId || (exports.ResourceId = {}));
|
|
126
|
-
exports.ScanType = {
|
|
127
|
-
EXPRESS: "Express",
|
|
128
|
-
STANDARD: "Standard",
|
|
129
|
-
};
|
|
130
|
-
exports.ScanState = {
|
|
131
|
-
FAILED: "Failed",
|
|
132
|
-
IN_PROGRESS: "InProgress",
|
|
133
|
-
SUCCESSFUL: "Successful",
|
|
134
|
-
};
|
|
135
|
-
class ResourceNotFoundException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
136
|
-
constructor(opts) {
|
|
137
|
-
super({
|
|
138
|
-
name: "ResourceNotFoundException",
|
|
139
|
-
$fault: "client",
|
|
140
|
-
...opts,
|
|
141
|
-
});
|
|
142
|
-
this.name = "ResourceNotFoundException";
|
|
143
|
-
this.$fault = "client";
|
|
144
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
145
|
-
this.errorCode = opts.errorCode;
|
|
146
|
-
this.resourceId = opts.resourceId;
|
|
147
|
-
this.resourceType = opts.resourceType;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
151
|
-
const CreateUploadUrlResponseFilterSensitiveLog = (obj) => ({
|
|
152
|
-
...obj,
|
|
153
|
-
...(obj.s3Url && { s3Url: smithy_client_1.SENSITIVE_STRING }),
|
|
154
|
-
...(obj.requestHeaders && { requestHeaders: smithy_client_1.SENSITIVE_STRING }),
|
|
155
|
-
});
|
|
156
|
-
exports.CreateUploadUrlResponseFilterSensitiveLog = CreateUploadUrlResponseFilterSensitiveLog;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateGetFindings = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const CodeGuruSecurityClient_1 = require("../CodeGuruSecurityClient");
|
|
6
|
-
const GetFindingsCommand_1 = require("../commands/GetFindingsCommand");
|
|
7
|
-
exports.paginateGetFindings = (0, core_1.createPaginator)(CodeGuruSecurityClient_1.CodeGuruSecurityClient, GetFindingsCommand_1.GetFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListFindingsMetrics = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const CodeGuruSecurityClient_1 = require("../CodeGuruSecurityClient");
|
|
6
|
-
const ListFindingsMetricsCommand_1 = require("../commands/ListFindingsMetricsCommand");
|
|
7
|
-
exports.paginateListFindingsMetrics = (0, core_1.createPaginator)(CodeGuruSecurityClient_1.CodeGuruSecurityClient, ListFindingsMetricsCommand_1.ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListScans = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const CodeGuruSecurityClient_1 = require("../CodeGuruSecurityClient");
|
|
6
|
-
const ListScansCommand_1 = require("../commands/ListScansCommand");
|
|
7
|
-
exports.paginateListScans = (0, core_1.createPaginator)(CodeGuruSecurityClient_1.CodeGuruSecurityClient, ListScansCommand_1.ListScansCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./GetFindingsPaginator"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListFindingsMetricsPaginator"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ListScansPaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|