@aws-sdk/client-codeguru-security 3.987.0 → 3.989.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 +32 -710
- package/dist-cjs/models/CodeGuruSecurityServiceException.js +12 -0
- package/dist-cjs/models/errors.js +118 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +526 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +50 -44
- package/dist-types/schemas/schemas_0.d.ts +13 -6
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -6
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const CodeGuruSecurityServiceException_1 = require("./CodeGuruSecurityServiceException");
|
|
5
|
+
class AccessDeniedException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
errorCode;
|
|
9
|
+
resourceId;
|
|
10
|
+
resourceType;
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
super({
|
|
13
|
+
name: "AccessDeniedException",
|
|
14
|
+
$fault: "client",
|
|
15
|
+
...opts,
|
|
16
|
+
});
|
|
17
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.errorCode = opts.errorCode;
|
|
19
|
+
this.resourceId = opts.resourceId;
|
|
20
|
+
this.resourceType = opts.resourceType;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
24
|
+
class InternalServerException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
25
|
+
name = "InternalServerException";
|
|
26
|
+
$fault = "server";
|
|
27
|
+
$retryable = {};
|
|
28
|
+
error;
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "InternalServerException",
|
|
32
|
+
$fault: "server",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
|
+
this.error = opts.error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.InternalServerException = InternalServerException;
|
|
40
|
+
class ThrottlingException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
41
|
+
name = "ThrottlingException";
|
|
42
|
+
$fault = "client";
|
|
43
|
+
$retryable = {
|
|
44
|
+
throttling: true,
|
|
45
|
+
};
|
|
46
|
+
errorCode;
|
|
47
|
+
serviceCode;
|
|
48
|
+
quotaCode;
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ThrottlingException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
56
|
+
this.errorCode = opts.errorCode;
|
|
57
|
+
this.serviceCode = opts.serviceCode;
|
|
58
|
+
this.quotaCode = opts.quotaCode;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ThrottlingException = ThrottlingException;
|
|
62
|
+
class ValidationException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
63
|
+
name = "ValidationException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
errorCode;
|
|
66
|
+
reason;
|
|
67
|
+
fieldList;
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ValidationException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
75
|
+
this.errorCode = opts.errorCode;
|
|
76
|
+
this.reason = opts.reason;
|
|
77
|
+
this.fieldList = opts.fieldList;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ValidationException = ValidationException;
|
|
81
|
+
class ConflictException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
82
|
+
name = "ConflictException";
|
|
83
|
+
$fault = "client";
|
|
84
|
+
errorCode;
|
|
85
|
+
resourceId;
|
|
86
|
+
resourceType;
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "ConflictException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
94
|
+
this.errorCode = opts.errorCode;
|
|
95
|
+
this.resourceId = opts.resourceId;
|
|
96
|
+
this.resourceType = opts.resourceType;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.ConflictException = ConflictException;
|
|
100
|
+
class ResourceNotFoundException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
|
|
101
|
+
name = "ResourceNotFoundException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
errorCode;
|
|
104
|
+
resourceId;
|
|
105
|
+
resourceType;
|
|
106
|
+
constructor(opts) {
|
|
107
|
+
super({
|
|
108
|
+
name: "ResourceNotFoundException",
|
|
109
|
+
$fault: "client",
|
|
110
|
+
...opts,
|
|
111
|
+
});
|
|
112
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
113
|
+
this.errorCode = opts.errorCode;
|
|
114
|
+
this.resourceId = opts.resourceId;
|
|
115
|
+
this.resourceType = opts.resourceType;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2018-05-10",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.codegurusecurity",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2018-05-10",
|
|
33
35
|
serviceTarget: "AwsCodeGuruSecurity",
|
|
34
36
|
},
|
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAccountConfigurationResponse$ = exports.UpdateAccountConfigurationRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.SuggestedFix$ = exports.ScanSummary$ = exports.ScanNameWithFindingNum$ = exports.Resource$ = exports.Remediation$ = exports.Recommendation$ = exports.MetricsSummary$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListScansResponse$ = exports.ListScansRequest$ = exports.ListFindingsMetricsResponse$ = exports.ListFindingsMetricsRequest$ = exports.GetScanResponse$ = exports.GetScanRequest$ = exports.GetMetricsSummaryResponse$ = exports.GetMetricsSummaryRequest$ = exports.GetFindingsResponse$ = exports.GetFindingsRequest$ = exports.GetAccountConfigurationResponse$ = exports.GetAccountConfigurationRequest$ = exports.FindingMetricsValuePerSeverity$ = exports.FindingIdentifier$ = exports.Finding$ = exports.FilePath$ = exports.EncryptionConfig$ = exports.CreateUploadUrlResponse$ = exports.CreateUploadUrlRequest$ = exports.CreateScanResponse$ = exports.CreateScanRequest$ = exports.CodeLine$ = exports.CategoryWithFindingNum$ = exports.BatchGetFindingsResponse$ = exports.BatchGetFindingsRequest$ = exports.BatchGetFindingsError$ = exports.AccountFindingsMetric$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.CodeGuruSecurityServiceException$ = void 0;
|
|
4
|
+
exports.UpdateAccountConfiguration$ = exports.UntagResource$ = exports.TagResource$ = exports.ListTagsForResource$ = exports.ListScans$ = exports.ListFindingsMetrics$ = exports.GetScan$ = exports.GetMetricsSummary$ = exports.GetFindings$ = exports.GetAccountConfiguration$ = exports.CreateUploadUrl$ = exports.CreateScan$ = exports.BatchGetFindings$ = exports.ResourceId$ = exports.Vulnerability$ = exports.ValidationExceptionField$ = void 0;
|
|
5
|
+
const _ADE = "AccessDeniedException";
|
|
6
|
+
const _AFM = "AccountFindingsMetric";
|
|
7
|
+
const _BGF = "BatchGetFindings";
|
|
8
|
+
const _BGFE = "BatchGetFindingsError";
|
|
9
|
+
const _BGFEa = "BatchGetFindingsErrors";
|
|
10
|
+
const _BGFR = "BatchGetFindingsRequest";
|
|
11
|
+
const _BGFRa = "BatchGetFindingsResponse";
|
|
12
|
+
const _CE = "ConflictException";
|
|
13
|
+
const _CL = "CodeLine";
|
|
14
|
+
const _CS = "CodeSnippet";
|
|
15
|
+
const _CSR = "CreateScanRequest";
|
|
16
|
+
const _CSRr = "CreateScanResponse";
|
|
17
|
+
const _CSr = "CreateScan";
|
|
18
|
+
const _CUU = "CreateUploadUrl";
|
|
19
|
+
const _CUUR = "CreateUploadUrlRequest";
|
|
20
|
+
const _CUURr = "CreateUploadUrlResponse";
|
|
21
|
+
const _CWFN = "CategoryWithFindingNum";
|
|
22
|
+
const _CWMF = "CategoriesWithMostFindings";
|
|
23
|
+
const _EC = "EncryptionConfig";
|
|
24
|
+
const _F = "Finding";
|
|
25
|
+
const _FI = "FindingIdentifier";
|
|
26
|
+
const _FIi = "FindingIdentifiers";
|
|
27
|
+
const _FML = "FindingsMetricList";
|
|
28
|
+
const _FMVPS = "FindingMetricsValuePerSeverity";
|
|
29
|
+
const _FP = "FilePath";
|
|
30
|
+
const _Fi = "Findings";
|
|
31
|
+
const _GAC = "GetAccountConfiguration";
|
|
32
|
+
const _GACR = "GetAccountConfigurationRequest";
|
|
33
|
+
const _GACRe = "GetAccountConfigurationResponse";
|
|
34
|
+
const _GF = "GetFindings";
|
|
35
|
+
const _GFR = "GetFindingsRequest";
|
|
36
|
+
const _GFRe = "GetFindingsResponse";
|
|
37
|
+
const _GMS = "GetMetricsSummary";
|
|
38
|
+
const _GMSR = "GetMetricsSummaryRequest";
|
|
39
|
+
const _GMSRe = "GetMetricsSummaryResponse";
|
|
40
|
+
const _GS = "GetScan";
|
|
41
|
+
const _GSR = "GetScanRequest";
|
|
42
|
+
const _GSRe = "GetScanResponse";
|
|
43
|
+
const _ISE = "InternalServerException";
|
|
44
|
+
const _LFM = "ListFindingsMetrics";
|
|
45
|
+
const _LFMR = "ListFindingsMetricsRequest";
|
|
46
|
+
const _LFMRi = "ListFindingsMetricsResponse";
|
|
47
|
+
const _LS = "ListScans";
|
|
48
|
+
const _LSR = "ListScansRequest";
|
|
49
|
+
const _LSRi = "ListScansResponse";
|
|
50
|
+
const _LTFR = "ListTagsForResource";
|
|
51
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
52
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
53
|
+
const _MS = "MetricsSummary";
|
|
54
|
+
const _R = "Recommendation";
|
|
55
|
+
const _RHM = "RequestHeaderMap";
|
|
56
|
+
const _RI = "ResourceId";
|
|
57
|
+
const _RNFE = "ResourceNotFoundException";
|
|
58
|
+
const _Re = "Remediation";
|
|
59
|
+
const _Res = "Resource";
|
|
60
|
+
const _SF = "SuggestedFix";
|
|
61
|
+
const _SFu = "SuggestedFixes";
|
|
62
|
+
const _SNWFN = "ScanNameWithFindingNum";
|
|
63
|
+
const _SS = "ScanSummary";
|
|
64
|
+
const _SSc = "ScanSummaries";
|
|
65
|
+
const _SU = "S3Url";
|
|
66
|
+
const _SWMOCF = "ScansWithMostOpenCriticalFindings";
|
|
67
|
+
const _SWMOF = "ScansWithMostOpenFindings";
|
|
68
|
+
const _TE = "ThrottlingException";
|
|
69
|
+
const _TR = "TagResource";
|
|
70
|
+
const _TRR = "TagResourceRequest";
|
|
71
|
+
const _TRRa = "TagResourceResponse";
|
|
72
|
+
const _UAC = "UpdateAccountConfiguration";
|
|
73
|
+
const _UACR = "UpdateAccountConfigurationRequest";
|
|
74
|
+
const _UACRp = "UpdateAccountConfigurationResponse";
|
|
75
|
+
const _UR = "UntagResource";
|
|
76
|
+
const _URR = "UntagResourceRequest";
|
|
77
|
+
const _URRn = "UntagResourceResponse";
|
|
78
|
+
const _V = "Vulnerability";
|
|
79
|
+
const _VE = "ValidationException";
|
|
80
|
+
const _VEF = "ValidationExceptionField";
|
|
81
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
82
|
+
const _aT = "analysisType";
|
|
83
|
+
const _c = "client";
|
|
84
|
+
const _cA = "createdAt";
|
|
85
|
+
const _cAI = "codeArtifactId";
|
|
86
|
+
const _cF = "closedFindings";
|
|
87
|
+
const _cN = "categoryName";
|
|
88
|
+
const _cS = "codeSnippet";
|
|
89
|
+
const _cT = "clientToken";
|
|
90
|
+
const _cWMF = "categoriesWithMostFindings";
|
|
91
|
+
const _co = "content";
|
|
92
|
+
const _cod = "code";
|
|
93
|
+
const _cr = "critical";
|
|
94
|
+
const _d = "date";
|
|
95
|
+
const _dI = "detectorId";
|
|
96
|
+
const _dN = "detectorName";
|
|
97
|
+
const _dT = "detectorTags";
|
|
98
|
+
const _de = "description";
|
|
99
|
+
const _e = "error";
|
|
100
|
+
const _eC = "errorCode";
|
|
101
|
+
const _eCn = "encryptionConfig";
|
|
102
|
+
const _eD = "endDate";
|
|
103
|
+
const _eL = "endLine";
|
|
104
|
+
const _eM = "errorMessage";
|
|
105
|
+
const _f = "findings";
|
|
106
|
+
const _fF = "failedFindings";
|
|
107
|
+
const _fI = "findingId";
|
|
108
|
+
const _fIi = "findingIdentifiers";
|
|
109
|
+
const _fL = "fieldList";
|
|
110
|
+
const _fM = "findingsMetrics";
|
|
111
|
+
const _fN = "findingNumber";
|
|
112
|
+
const _fP = "filePath";
|
|
113
|
+
const _gI = "generatorId";
|
|
114
|
+
const _h = "high";
|
|
115
|
+
const _hE = "httpError";
|
|
116
|
+
const _hQ = "httpQuery";
|
|
117
|
+
const _ht = "http";
|
|
118
|
+
const _i = "id";
|
|
119
|
+
const _iC = "itemCount";
|
|
120
|
+
const _in = "info";
|
|
121
|
+
const _kKA = "kmsKeyArn";
|
|
122
|
+
const _l = "low";
|
|
123
|
+
const _m = "message";
|
|
124
|
+
const _mR = "maxResults";
|
|
125
|
+
const _mS = "metricsSummary";
|
|
126
|
+
const _mTTC = "meanTimeToClose";
|
|
127
|
+
const _me = "medium";
|
|
128
|
+
const _n = "number";
|
|
129
|
+
const _nF = "newFindings";
|
|
130
|
+
const _nOR = "numberOfRevisions";
|
|
131
|
+
const _nT = "nextToken";
|
|
132
|
+
const _na = "name";
|
|
133
|
+
const _oF = "openFindings";
|
|
134
|
+
const _p = "path";
|
|
135
|
+
const _qC = "quotaCode";
|
|
136
|
+
const _r = "reason";
|
|
137
|
+
const _rA = "resourceArn";
|
|
138
|
+
const _rH = "requestHeaders";
|
|
139
|
+
const _rI = "resourceId";
|
|
140
|
+
const _rIu = "runId";
|
|
141
|
+
const _rIul = "ruleId";
|
|
142
|
+
const _rT = "resourceType";
|
|
143
|
+
const _rU = "referenceUrls";
|
|
144
|
+
const _rV = "relatedVulnerabilities";
|
|
145
|
+
const _re = "resource";
|
|
146
|
+
const _rec = "recommendation";
|
|
147
|
+
const _rem = "remediation";
|
|
148
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codegurusecurity";
|
|
149
|
+
const _sC = "serviceCode";
|
|
150
|
+
const _sD = "startDate";
|
|
151
|
+
const _sF = "suggestedFixes";
|
|
152
|
+
const _sL = "startLine";
|
|
153
|
+
const _sN = "scanName";
|
|
154
|
+
const _sNA = "scanNameArn";
|
|
155
|
+
const _sRI = "subResourceId";
|
|
156
|
+
const _sS = "scanState";
|
|
157
|
+
const _sT = "scanType";
|
|
158
|
+
const _sU = "s3Url";
|
|
159
|
+
const _sWMOCF = "scansWithMostOpenCriticalFindings";
|
|
160
|
+
const _sWMOF = "scansWithMostOpenFindings";
|
|
161
|
+
const _se = "server";
|
|
162
|
+
const _sev = "severity";
|
|
163
|
+
const _st = "status";
|
|
164
|
+
const _su = "summaries";
|
|
165
|
+
const _t = "tags";
|
|
166
|
+
const _tK = "tagKeys";
|
|
167
|
+
const _te = "text";
|
|
168
|
+
const _ti = "title";
|
|
169
|
+
const _ty = "type";
|
|
170
|
+
const _u = "url";
|
|
171
|
+
const _uA = "updatedAt";
|
|
172
|
+
const _v = "vulnerability";
|
|
173
|
+
const n0 = "com.amazonaws.codegurusecurity";
|
|
174
|
+
const schema_1 = require("@smithy/core/schema");
|
|
175
|
+
const CodeGuruSecurityServiceException_1 = require("../models/CodeGuruSecurityServiceException");
|
|
176
|
+
const errors_1 = require("../models/errors");
|
|
177
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
178
|
+
exports.CodeGuruSecurityServiceException$ = [-3, _s, "CodeGuruSecurityServiceException", 0, [], []];
|
|
179
|
+
_s_registry.registerError(exports.CodeGuruSecurityServiceException$, CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException);
|
|
180
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
181
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
182
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
183
|
+
[_eC, _m, _rI, _rT],
|
|
184
|
+
[0, 0, 0, 0], 2
|
|
185
|
+
];
|
|
186
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
187
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
188
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
189
|
+
[_eC, _m, _rI, _rT],
|
|
190
|
+
[0, 0, 0, 0], 4
|
|
191
|
+
];
|
|
192
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
193
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
194
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
195
|
+
[_e, _m],
|
|
196
|
+
[0, 0]
|
|
197
|
+
];
|
|
198
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
199
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
200
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
201
|
+
[_eC, _m, _rI, _rT],
|
|
202
|
+
[0, 0, 0, 0], 4
|
|
203
|
+
];
|
|
204
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
205
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
206
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
207
|
+
[_eC, _m, _sC, _qC],
|
|
208
|
+
[0, 0, 0, 0], 2
|
|
209
|
+
];
|
|
210
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
211
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
212
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
213
|
+
[_eC, _m, _r, _fL],
|
|
214
|
+
[0, 0, 0, () => ValidationExceptionFieldList], 3
|
|
215
|
+
];
|
|
216
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
217
|
+
exports.errorTypeRegistries = [
|
|
218
|
+
_s_registry,
|
|
219
|
+
n0_registry,
|
|
220
|
+
];
|
|
221
|
+
var S3Url = [0, n0, _SU, 8, 0];
|
|
222
|
+
exports.AccountFindingsMetric$ = [3, n0, _AFM,
|
|
223
|
+
0,
|
|
224
|
+
[_d, _nF, _cF, _oF, _mTTC],
|
|
225
|
+
[4, () => exports.FindingMetricsValuePerSeverity$, () => exports.FindingMetricsValuePerSeverity$, () => exports.FindingMetricsValuePerSeverity$, () => exports.FindingMetricsValuePerSeverity$]
|
|
226
|
+
];
|
|
227
|
+
exports.BatchGetFindingsError$ = [3, n0, _BGFE,
|
|
228
|
+
0,
|
|
229
|
+
[_sN, _fI, _eC, _m],
|
|
230
|
+
[0, 0, 0, 0], 4
|
|
231
|
+
];
|
|
232
|
+
exports.BatchGetFindingsRequest$ = [3, n0, _BGFR,
|
|
233
|
+
0,
|
|
234
|
+
[_fIi],
|
|
235
|
+
[() => FindingIdentifiers], 1
|
|
236
|
+
];
|
|
237
|
+
exports.BatchGetFindingsResponse$ = [3, n0, _BGFRa,
|
|
238
|
+
0,
|
|
239
|
+
[_f, _fF],
|
|
240
|
+
[() => Findings, () => BatchGetFindingsErrors], 2
|
|
241
|
+
];
|
|
242
|
+
exports.CategoryWithFindingNum$ = [3, n0, _CWFN,
|
|
243
|
+
0,
|
|
244
|
+
[_cN, _fN],
|
|
245
|
+
[0, 1]
|
|
246
|
+
];
|
|
247
|
+
exports.CodeLine$ = [3, n0, _CL,
|
|
248
|
+
0,
|
|
249
|
+
[_n, _co],
|
|
250
|
+
[1, 0]
|
|
251
|
+
];
|
|
252
|
+
exports.CreateScanRequest$ = [3, n0, _CSR,
|
|
253
|
+
0,
|
|
254
|
+
[_rI, _sN, _cT, _sT, _aT, _t],
|
|
255
|
+
[() => exports.ResourceId$, 0, [0, 4], 0, 0, 128 | 0], 2
|
|
256
|
+
];
|
|
257
|
+
exports.CreateScanResponse$ = [3, n0, _CSRr,
|
|
258
|
+
0,
|
|
259
|
+
[_sN, _rIu, _rI, _sS, _sNA],
|
|
260
|
+
[0, 0, () => exports.ResourceId$, 0, 0], 4
|
|
261
|
+
];
|
|
262
|
+
exports.CreateUploadUrlRequest$ = [3, n0, _CUUR,
|
|
263
|
+
0,
|
|
264
|
+
[_sN],
|
|
265
|
+
[0], 1
|
|
266
|
+
];
|
|
267
|
+
exports.CreateUploadUrlResponse$ = [3, n0, _CUURr,
|
|
268
|
+
0,
|
|
269
|
+
[_sU, _rH, _cAI],
|
|
270
|
+
[[() => S3Url, 0], [() => RequestHeaderMap, 0], 0], 3
|
|
271
|
+
];
|
|
272
|
+
exports.EncryptionConfig$ = [3, n0, _EC,
|
|
273
|
+
0,
|
|
274
|
+
[_kKA],
|
|
275
|
+
[0]
|
|
276
|
+
];
|
|
277
|
+
exports.FilePath$ = [3, n0, _FP,
|
|
278
|
+
0,
|
|
279
|
+
[_na, _p, _sL, _eL, _cS],
|
|
280
|
+
[0, 0, 1, 1, () => CodeSnippet]
|
|
281
|
+
];
|
|
282
|
+
exports.Finding$ = [3, n0, _F,
|
|
283
|
+
0,
|
|
284
|
+
[_cA, _de, _gI, _i, _uA, _ty, _st, _re, _v, _sev, _rem, _ti, _dT, _dI, _dN, _rIul],
|
|
285
|
+
[4, 0, 0, 0, 4, 0, 0, () => exports.Resource$, () => exports.Vulnerability$, 0, () => exports.Remediation$, 0, 64 | 0, 0, 0, 0]
|
|
286
|
+
];
|
|
287
|
+
exports.FindingIdentifier$ = [3, n0, _FI,
|
|
288
|
+
0,
|
|
289
|
+
[_sN, _fI],
|
|
290
|
+
[0, 0], 2
|
|
291
|
+
];
|
|
292
|
+
exports.FindingMetricsValuePerSeverity$ = [3, n0, _FMVPS,
|
|
293
|
+
0,
|
|
294
|
+
[_in, _l, _me, _h, _cr],
|
|
295
|
+
[1, 1, 1, 1, 1]
|
|
296
|
+
];
|
|
297
|
+
exports.GetAccountConfigurationRequest$ = [3, n0, _GACR,
|
|
298
|
+
0,
|
|
299
|
+
[],
|
|
300
|
+
[]
|
|
301
|
+
];
|
|
302
|
+
exports.GetAccountConfigurationResponse$ = [3, n0, _GACRe,
|
|
303
|
+
0,
|
|
304
|
+
[_eCn],
|
|
305
|
+
[() => exports.EncryptionConfig$], 1
|
|
306
|
+
];
|
|
307
|
+
exports.GetFindingsRequest$ = [3, n0, _GFR,
|
|
308
|
+
0,
|
|
309
|
+
[_sN, _nT, _mR, _st],
|
|
310
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }]], 1
|
|
311
|
+
];
|
|
312
|
+
exports.GetFindingsResponse$ = [3, n0, _GFRe,
|
|
313
|
+
0,
|
|
314
|
+
[_f, _nT],
|
|
315
|
+
[() => Findings, 0]
|
|
316
|
+
];
|
|
317
|
+
exports.GetMetricsSummaryRequest$ = [3, n0, _GMSR,
|
|
318
|
+
0,
|
|
319
|
+
[_d],
|
|
320
|
+
[[4, { [_hQ]: _d }]], 1
|
|
321
|
+
];
|
|
322
|
+
exports.GetMetricsSummaryResponse$ = [3, n0, _GMSRe,
|
|
323
|
+
0,
|
|
324
|
+
[_mS],
|
|
325
|
+
[() => exports.MetricsSummary$]
|
|
326
|
+
];
|
|
327
|
+
exports.GetScanRequest$ = [3, n0, _GSR,
|
|
328
|
+
0,
|
|
329
|
+
[_sN, _rIu],
|
|
330
|
+
[[0, 1], [0, { [_hQ]: _rIu }]], 1
|
|
331
|
+
];
|
|
332
|
+
exports.GetScanResponse$ = [3, n0, _GSRe,
|
|
333
|
+
0,
|
|
334
|
+
[_sN, _rIu, _sS, _cA, _aT, _uA, _nOR, _sNA, _eM],
|
|
335
|
+
[0, 0, 0, 4, 0, 4, 1, 0, 0], 5
|
|
336
|
+
];
|
|
337
|
+
exports.ListFindingsMetricsRequest$ = [3, n0, _LFMR,
|
|
338
|
+
0,
|
|
339
|
+
[_sD, _eD, _nT, _mR],
|
|
340
|
+
[[4, { [_hQ]: _sD }], [4, { [_hQ]: _eD }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 2
|
|
341
|
+
];
|
|
342
|
+
exports.ListFindingsMetricsResponse$ = [3, n0, _LFMRi,
|
|
343
|
+
0,
|
|
344
|
+
[_fM, _nT],
|
|
345
|
+
[() => FindingsMetricList, 0]
|
|
346
|
+
];
|
|
347
|
+
exports.ListScansRequest$ = [3, n0, _LSR,
|
|
348
|
+
0,
|
|
349
|
+
[_nT, _mR],
|
|
350
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
351
|
+
];
|
|
352
|
+
exports.ListScansResponse$ = [3, n0, _LSRi,
|
|
353
|
+
0,
|
|
354
|
+
[_su, _nT],
|
|
355
|
+
[() => ScanSummaries, 0]
|
|
356
|
+
];
|
|
357
|
+
exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
358
|
+
0,
|
|
359
|
+
[_rA],
|
|
360
|
+
[[0, 1]], 1
|
|
361
|
+
];
|
|
362
|
+
exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
363
|
+
0,
|
|
364
|
+
[_t],
|
|
365
|
+
[128 | 0]
|
|
366
|
+
];
|
|
367
|
+
exports.MetricsSummary$ = [3, n0, _MS,
|
|
368
|
+
0,
|
|
369
|
+
[_d, _oF, _cWMF, _sWMOF, _sWMOCF],
|
|
370
|
+
[4, () => exports.FindingMetricsValuePerSeverity$, () => CategoriesWithMostFindings, () => ScansWithMostOpenFindings, () => ScansWithMostOpenCriticalFindings]
|
|
371
|
+
];
|
|
372
|
+
exports.Recommendation$ = [3, n0, _R,
|
|
373
|
+
0,
|
|
374
|
+
[_te, _u],
|
|
375
|
+
[0, 0]
|
|
376
|
+
];
|
|
377
|
+
exports.Remediation$ = [3, n0, _Re,
|
|
378
|
+
0,
|
|
379
|
+
[_rec, _sF],
|
|
380
|
+
[() => exports.Recommendation$, () => SuggestedFixes]
|
|
381
|
+
];
|
|
382
|
+
exports.Resource$ = [3, n0, _Res,
|
|
383
|
+
0,
|
|
384
|
+
[_i, _sRI],
|
|
385
|
+
[0, 0]
|
|
386
|
+
];
|
|
387
|
+
exports.ScanNameWithFindingNum$ = [3, n0, _SNWFN,
|
|
388
|
+
0,
|
|
389
|
+
[_sN, _fN],
|
|
390
|
+
[0, 1]
|
|
391
|
+
];
|
|
392
|
+
exports.ScanSummary$ = [3, n0, _SS,
|
|
393
|
+
0,
|
|
394
|
+
[_sS, _cA, _sN, _rIu, _uA, _sNA],
|
|
395
|
+
[0, 4, 0, 0, 4, 0], 4
|
|
396
|
+
];
|
|
397
|
+
exports.SuggestedFix$ = [3, n0, _SF,
|
|
398
|
+
0,
|
|
399
|
+
[_de, _cod],
|
|
400
|
+
[0, 0]
|
|
401
|
+
];
|
|
402
|
+
exports.TagResourceRequest$ = [3, n0, _TRR,
|
|
403
|
+
0,
|
|
404
|
+
[_rA, _t],
|
|
405
|
+
[[0, 1], 128 | 0], 2
|
|
406
|
+
];
|
|
407
|
+
exports.TagResourceResponse$ = [3, n0, _TRRa,
|
|
408
|
+
0,
|
|
409
|
+
[],
|
|
410
|
+
[]
|
|
411
|
+
];
|
|
412
|
+
exports.UntagResourceRequest$ = [3, n0, _URR,
|
|
413
|
+
0,
|
|
414
|
+
[_rA, _tK],
|
|
415
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
416
|
+
];
|
|
417
|
+
exports.UntagResourceResponse$ = [3, n0, _URRn,
|
|
418
|
+
0,
|
|
419
|
+
[],
|
|
420
|
+
[]
|
|
421
|
+
];
|
|
422
|
+
exports.UpdateAccountConfigurationRequest$ = [3, n0, _UACR,
|
|
423
|
+
0,
|
|
424
|
+
[_eCn],
|
|
425
|
+
[() => exports.EncryptionConfig$], 1
|
|
426
|
+
];
|
|
427
|
+
exports.UpdateAccountConfigurationResponse$ = [3, n0, _UACRp,
|
|
428
|
+
0,
|
|
429
|
+
[_eCn],
|
|
430
|
+
[() => exports.EncryptionConfig$], 1
|
|
431
|
+
];
|
|
432
|
+
exports.ValidationExceptionField$ = [3, n0, _VEF,
|
|
433
|
+
0,
|
|
434
|
+
[_na, _m],
|
|
435
|
+
[0, 0], 2
|
|
436
|
+
];
|
|
437
|
+
exports.Vulnerability$ = [3, n0, _V,
|
|
438
|
+
0,
|
|
439
|
+
[_rU, _rV, _i, _fP, _iC],
|
|
440
|
+
[64 | 0, 64 | 0, 0, () => exports.FilePath$, 1]
|
|
441
|
+
];
|
|
442
|
+
var BatchGetFindingsErrors = [1, n0, _BGFEa,
|
|
443
|
+
0, () => exports.BatchGetFindingsError$
|
|
444
|
+
];
|
|
445
|
+
var CategoriesWithMostFindings = [1, n0, _CWMF,
|
|
446
|
+
0, () => exports.CategoryWithFindingNum$
|
|
447
|
+
];
|
|
448
|
+
var CodeSnippet = [1, n0, _CS,
|
|
449
|
+
0, () => exports.CodeLine$
|
|
450
|
+
];
|
|
451
|
+
var DetectorTags = 64 | 0;
|
|
452
|
+
var FindingIdentifiers = [1, n0, _FIi,
|
|
453
|
+
0, () => exports.FindingIdentifier$
|
|
454
|
+
];
|
|
455
|
+
var Findings = [1, n0, _Fi,
|
|
456
|
+
0, () => exports.Finding$
|
|
457
|
+
];
|
|
458
|
+
var FindingsMetricList = [1, n0, _FML,
|
|
459
|
+
0, () => exports.AccountFindingsMetric$
|
|
460
|
+
];
|
|
461
|
+
var ReferenceUrls = 64 | 0;
|
|
462
|
+
var RelatedVulnerabilities = 64 | 0;
|
|
463
|
+
var ScanSummaries = [1, n0, _SSc,
|
|
464
|
+
0, () => exports.ScanSummary$
|
|
465
|
+
];
|
|
466
|
+
var ScansWithMostOpenCriticalFindings = [1, n0, _SWMOCF,
|
|
467
|
+
0, () => exports.ScanNameWithFindingNum$
|
|
468
|
+
];
|
|
469
|
+
var ScansWithMostOpenFindings = [1, n0, _SWMOF,
|
|
470
|
+
0, () => exports.ScanNameWithFindingNum$
|
|
471
|
+
];
|
|
472
|
+
var SuggestedFixes = [1, n0, _SFu,
|
|
473
|
+
0, () => exports.SuggestedFix$
|
|
474
|
+
];
|
|
475
|
+
var TagKeyList = 64 | 0;
|
|
476
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
477
|
+
0, () => exports.ValidationExceptionField$
|
|
478
|
+
];
|
|
479
|
+
var RequestHeaderMap = [2, n0, _RHM,
|
|
480
|
+
8, 0, 0
|
|
481
|
+
];
|
|
482
|
+
var TagMap = 128 | 0;
|
|
483
|
+
exports.ResourceId$ = [4, n0, _RI,
|
|
484
|
+
0,
|
|
485
|
+
[_cAI],
|
|
486
|
+
[0]
|
|
487
|
+
];
|
|
488
|
+
exports.BatchGetFindings$ = [9, n0, _BGF,
|
|
489
|
+
{ [_ht]: ["POST", "/batchGetFindings", 200] }, () => exports.BatchGetFindingsRequest$, () => exports.BatchGetFindingsResponse$
|
|
490
|
+
];
|
|
491
|
+
exports.CreateScan$ = [9, n0, _CSr,
|
|
492
|
+
{ [_ht]: ["POST", "/scans", 200] }, () => exports.CreateScanRequest$, () => exports.CreateScanResponse$
|
|
493
|
+
];
|
|
494
|
+
exports.CreateUploadUrl$ = [9, n0, _CUU,
|
|
495
|
+
{ [_ht]: ["POST", "/uploadUrl", 200] }, () => exports.CreateUploadUrlRequest$, () => exports.CreateUploadUrlResponse$
|
|
496
|
+
];
|
|
497
|
+
exports.GetAccountConfiguration$ = [9, n0, _GAC,
|
|
498
|
+
{ [_ht]: ["GET", "/accountConfiguration/get", 200] }, () => exports.GetAccountConfigurationRequest$, () => exports.GetAccountConfigurationResponse$
|
|
499
|
+
];
|
|
500
|
+
exports.GetFindings$ = [9, n0, _GF,
|
|
501
|
+
{ [_ht]: ["GET", "/findings/{scanName}", 200] }, () => exports.GetFindingsRequest$, () => exports.GetFindingsResponse$
|
|
502
|
+
];
|
|
503
|
+
exports.GetMetricsSummary$ = [9, n0, _GMS,
|
|
504
|
+
{ [_ht]: ["GET", "/metrics/summary", 200] }, () => exports.GetMetricsSummaryRequest$, () => exports.GetMetricsSummaryResponse$
|
|
505
|
+
];
|
|
506
|
+
exports.GetScan$ = [9, n0, _GS,
|
|
507
|
+
{ [_ht]: ["GET", "/scans/{scanName}", 200] }, () => exports.GetScanRequest$, () => exports.GetScanResponse$
|
|
508
|
+
];
|
|
509
|
+
exports.ListFindingsMetrics$ = [9, n0, _LFM,
|
|
510
|
+
{ [_ht]: ["GET", "/metrics/findings", 200] }, () => exports.ListFindingsMetricsRequest$, () => exports.ListFindingsMetricsResponse$
|
|
511
|
+
];
|
|
512
|
+
exports.ListScans$ = [9, n0, _LS,
|
|
513
|
+
{ [_ht]: ["GET", "/scans", 200] }, () => exports.ListScansRequest$, () => exports.ListScansResponse$
|
|
514
|
+
];
|
|
515
|
+
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
516
|
+
{ [_ht]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
|
|
517
|
+
];
|
|
518
|
+
exports.TagResource$ = [9, n0, _TR,
|
|
519
|
+
{ [_ht]: ["POST", "/tags/{resourceArn}", 204] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
|
|
520
|
+
];
|
|
521
|
+
exports.UntagResource$ = [9, n0, _UR,
|
|
522
|
+
{ [_ht]: ["DELETE", "/tags/{resourceArn}", 204] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
|
|
523
|
+
];
|
|
524
|
+
exports.UpdateAccountConfiguration$ = [9, n0, _UAC,
|
|
525
|
+
{ [_ht]: ["PUT", "/updateAccountConfiguration", 200] }, () => exports.UpdateAccountConfigurationRequest$, () => exports.UpdateAccountConfigurationResponse$
|
|
526
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultCodeGuruSecurityHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2018-05-10",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.codegurusecurity",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2018-05-10",
|
|
30
32
|
serviceTarget: "AwsCodeGuruSecurity",
|
|
31
33
|
},
|