@aws-sdk/client-codeguru-security 3.1068.0 → 3.1070.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultCodeGuruSecurityHttpAuthSchemeProvider = exports.defaultCodeGuruSecurityHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultCodeGuruSecurityHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultCodeGuruSecurityHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultCodeGuruSecurityHttpAuthSchemeParametersProvider = defaultCodeGuruSecurityHttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
23
  }),
28
24
  };
29
25
  }
30
- const defaultCodeGuruSecurityHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultCodeGuruSecurityHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultCodeGuruSecurityHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultCodeGuruSecurityHttpAuthSchemeProvider = defaultCodeGuruSecurityHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
41
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
35
+ exports.resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
42
37
  return Object.assign(config_0, {
43
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const k = "ref";
6
3
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
4
  const _data = {
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
46
43
  3, r + 1, 13,
47
44
  4, r + 2, r + 3,
48
45
  ]);
49
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
46
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var CodeGuruSecurityServiceException = require('./models/CodeGuruSecurityServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveHttpAuthSchemeConfig, defaultCodeGuruSecurityHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { BatchGetFindings$, CreateScan$, CreateUploadUrl$, GetAccountConfiguration$, GetFindings$, GetMetricsSummary$, GetScan$, ListFindingsMetrics$, ListScans$, ListTagsForResource$, TagResource$, UntagResource$, UpdateAccountConfiguration$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { CodeGuruSecurityServiceException } = require("./models/CodeGuruSecurityServiceException");
18
+ exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -68,207 +71,207 @@ const resolveHttpAuthRuntimeConfig = (config) => {
68
71
  };
69
72
 
70
73
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
71
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
75
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
73
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
77
  };
75
78
 
76
- class CodeGuruSecurityClient extends client.Client {
79
+ class CodeGuruSecurityClient extends Client {
77
80
  config;
78
81
  constructor(...[configuration]) {
79
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ const _config_0 = getRuntimeConfig(configuration || {});
80
83
  super(_config_0);
81
84
  this.initConfig = _config_0;
82
85
  const _config_1 = resolveClientEndpointParameters(_config_0);
83
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
84
- const _config_3 = retry.resolveRetryConfig(_config_2);
85
- const _config_4 = config.resolveRegionConfig(_config_3);
86
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
87
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
88
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
86
+ const _config_2 = resolveUserAgentConfig(_config_1);
87
+ const _config_3 = resolveRetryConfig(_config_2);
88
+ const _config_4 = resolveRegionConfig(_config_3);
89
+ const _config_5 = resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = resolveEndpointConfig(_config_5);
91
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
89
92
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
90
93
  this.config = _config_8;
91
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
93
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
94
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
95
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
96
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
97
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
98
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
99
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCodeGuruSecurityHttpAuthSchemeParametersProvider,
100
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
94
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
95
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(getRetryPlugin(this.config));
97
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: defaultCodeGuruSecurityHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
101
104
  "aws.auth#sigv4": config.credentials,
102
105
  }),
103
106
  }));
104
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
105
108
  }
106
109
  destroy() {
107
110
  super.destroy();
108
111
  }
109
112
  }
110
113
 
111
- class BatchGetFindingsCommand extends client.Command
114
+ class BatchGetFindingsCommand extends Command
112
115
  .classBuilder()
113
116
  .ep(commonParams)
114
117
  .m(function (Command, cs, config, o) {
115
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
118
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
119
  })
117
120
  .s("AwsCodeGuruSecurity", "BatchGetFindings", {})
118
121
  .n("CodeGuruSecurityClient", "BatchGetFindingsCommand")
119
- .sc(schemas_0.BatchGetFindings$)
122
+ .sc(BatchGetFindings$)
120
123
  .build() {
121
124
  }
122
125
 
123
- class CreateScanCommand extends client.Command
126
+ class CreateScanCommand extends Command
124
127
  .classBuilder()
125
128
  .ep(commonParams)
126
129
  .m(function (Command, cs, config, o) {
127
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
130
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
131
  })
129
132
  .s("AwsCodeGuruSecurity", "CreateScan", {})
130
133
  .n("CodeGuruSecurityClient", "CreateScanCommand")
131
- .sc(schemas_0.CreateScan$)
134
+ .sc(CreateScan$)
132
135
  .build() {
133
136
  }
134
137
 
135
- class CreateUploadUrlCommand extends client.Command
138
+ class CreateUploadUrlCommand extends Command
136
139
  .classBuilder()
137
140
  .ep(commonParams)
138
141
  .m(function (Command, cs, config, o) {
139
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
142
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
143
  })
141
144
  .s("AwsCodeGuruSecurity", "CreateUploadUrl", {})
142
145
  .n("CodeGuruSecurityClient", "CreateUploadUrlCommand")
143
- .sc(schemas_0.CreateUploadUrl$)
146
+ .sc(CreateUploadUrl$)
144
147
  .build() {
145
148
  }
146
149
 
147
- class GetAccountConfigurationCommand extends client.Command
150
+ class GetAccountConfigurationCommand extends Command
148
151
  .classBuilder()
149
152
  .ep(commonParams)
150
153
  .m(function (Command, cs, config, o) {
151
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
154
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
155
  })
153
156
  .s("AwsCodeGuruSecurity", "GetAccountConfiguration", {})
154
157
  .n("CodeGuruSecurityClient", "GetAccountConfigurationCommand")
155
- .sc(schemas_0.GetAccountConfiguration$)
158
+ .sc(GetAccountConfiguration$)
156
159
  .build() {
157
160
  }
158
161
 
159
- class GetFindingsCommand extends client.Command
162
+ class GetFindingsCommand extends Command
160
163
  .classBuilder()
161
164
  .ep(commonParams)
162
165
  .m(function (Command, cs, config, o) {
163
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
166
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
167
  })
165
168
  .s("AwsCodeGuruSecurity", "GetFindings", {})
166
169
  .n("CodeGuruSecurityClient", "GetFindingsCommand")
167
- .sc(schemas_0.GetFindings$)
170
+ .sc(GetFindings$)
168
171
  .build() {
169
172
  }
170
173
 
171
- class GetMetricsSummaryCommand extends client.Command
174
+ class GetMetricsSummaryCommand extends Command
172
175
  .classBuilder()
173
176
  .ep(commonParams)
174
177
  .m(function (Command, cs, config, o) {
175
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
178
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
179
  })
177
180
  .s("AwsCodeGuruSecurity", "GetMetricsSummary", {})
178
181
  .n("CodeGuruSecurityClient", "GetMetricsSummaryCommand")
179
- .sc(schemas_0.GetMetricsSummary$)
182
+ .sc(GetMetricsSummary$)
180
183
  .build() {
181
184
  }
182
185
 
183
- class GetScanCommand extends client.Command
186
+ class GetScanCommand extends Command
184
187
  .classBuilder()
185
188
  .ep(commonParams)
186
189
  .m(function (Command, cs, config, o) {
187
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
190
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
191
  })
189
192
  .s("AwsCodeGuruSecurity", "GetScan", {})
190
193
  .n("CodeGuruSecurityClient", "GetScanCommand")
191
- .sc(schemas_0.GetScan$)
194
+ .sc(GetScan$)
192
195
  .build() {
193
196
  }
194
197
 
195
- class ListFindingsMetricsCommand extends client.Command
198
+ class ListFindingsMetricsCommand extends Command
196
199
  .classBuilder()
197
200
  .ep(commonParams)
198
201
  .m(function (Command, cs, config, o) {
199
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
202
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
203
  })
201
204
  .s("AwsCodeGuruSecurity", "ListFindingsMetrics", {})
202
205
  .n("CodeGuruSecurityClient", "ListFindingsMetricsCommand")
203
- .sc(schemas_0.ListFindingsMetrics$)
206
+ .sc(ListFindingsMetrics$)
204
207
  .build() {
205
208
  }
206
209
 
207
- class ListScansCommand extends client.Command
210
+ class ListScansCommand extends Command
208
211
  .classBuilder()
209
212
  .ep(commonParams)
210
213
  .m(function (Command, cs, config, o) {
211
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
214
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
212
215
  })
213
216
  .s("AwsCodeGuruSecurity", "ListScans", {})
214
217
  .n("CodeGuruSecurityClient", "ListScansCommand")
215
- .sc(schemas_0.ListScans$)
218
+ .sc(ListScans$)
216
219
  .build() {
217
220
  }
218
221
 
219
- class ListTagsForResourceCommand extends client.Command
222
+ class ListTagsForResourceCommand extends Command
220
223
  .classBuilder()
221
224
  .ep(commonParams)
222
225
  .m(function (Command, cs, config, o) {
223
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
226
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
227
  })
225
228
  .s("AwsCodeGuruSecurity", "ListTagsForResource", {})
226
229
  .n("CodeGuruSecurityClient", "ListTagsForResourceCommand")
227
- .sc(schemas_0.ListTagsForResource$)
230
+ .sc(ListTagsForResource$)
228
231
  .build() {
229
232
  }
230
233
 
231
- class TagResourceCommand extends client.Command
234
+ class TagResourceCommand extends Command
232
235
  .classBuilder()
233
236
  .ep(commonParams)
234
237
  .m(function (Command, cs, config, o) {
235
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
238
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
236
239
  })
237
240
  .s("AwsCodeGuruSecurity", "TagResource", {})
238
241
  .n("CodeGuruSecurityClient", "TagResourceCommand")
239
- .sc(schemas_0.TagResource$)
242
+ .sc(TagResource$)
240
243
  .build() {
241
244
  }
242
245
 
243
- class UntagResourceCommand extends client.Command
246
+ class UntagResourceCommand extends Command
244
247
  .classBuilder()
245
248
  .ep(commonParams)
246
249
  .m(function (Command, cs, config, o) {
247
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
250
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
248
251
  })
249
252
  .s("AwsCodeGuruSecurity", "UntagResource", {})
250
253
  .n("CodeGuruSecurityClient", "UntagResourceCommand")
251
- .sc(schemas_0.UntagResource$)
254
+ .sc(UntagResource$)
252
255
  .build() {
253
256
  }
254
257
 
255
- class UpdateAccountConfigurationCommand extends client.Command
258
+ class UpdateAccountConfigurationCommand extends Command
256
259
  .classBuilder()
257
260
  .ep(commonParams)
258
261
  .m(function (Command, cs, config, o) {
259
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
262
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
260
263
  })
261
264
  .s("AwsCodeGuruSecurity", "UpdateAccountConfiguration", {})
262
265
  .n("CodeGuruSecurityClient", "UpdateAccountConfigurationCommand")
263
- .sc(schemas_0.UpdateAccountConfiguration$)
266
+ .sc(UpdateAccountConfiguration$)
264
267
  .build() {
265
268
  }
266
269
 
267
- const paginateGetFindings = core.createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "nextToken", "nextToken", "maxResults");
270
+ const paginateGetFindings = createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "nextToken", "nextToken", "maxResults");
268
271
 
269
- const paginateListFindingsMetrics = core.createPaginator(CodeGuruSecurityClient, ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
272
+ const paginateListFindingsMetrics = createPaginator(CodeGuruSecurityClient, ListFindingsMetricsCommand, "nextToken", "nextToken", "maxResults");
270
273
 
271
- const paginateListScans = core.createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
274
+ const paginateListScans = createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
272
275
 
273
276
  const commands = {
274
277
  BatchGetFindingsCommand,
@@ -292,7 +295,7 @@ const paginators = {
292
295
  };
293
296
  class CodeGuruSecurity extends CodeGuruSecurityClient {
294
297
  }
295
- client.createAggregatedClient(commands, CodeGuruSecurity, { paginators });
298
+ createAggregatedClient(commands, CodeGuruSecurity, { paginators });
296
299
 
297
300
  const AnalysisType = {
298
301
  ALL: "All",
@@ -334,9 +337,6 @@ const ScanState = {
334
337
  SUCCESSFUL: "Successful",
335
338
  };
336
339
 
337
- exports.$Command = client.Command;
338
- exports.__Client = client.Client;
339
- exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException.CodeGuruSecurityServiceException;
340
340
  exports.AnalysisType = AnalysisType;
341
341
  exports.BatchGetFindingsCommand = BatchGetFindingsCommand;
342
342
  exports.CodeGuruSecurity = CodeGuruSecurity;
@@ -362,23 +362,3 @@ exports.ValidationExceptionReason = ValidationExceptionReason;
362
362
  exports.paginateGetFindings = paginateGetFindings;
363
363
  exports.paginateListFindingsMetrics = paginateListFindingsMetrics;
364
364
  exports.paginateListScans = paginateListScans;
365
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
366
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
367
- Object.defineProperty(exports, '__proto__', {
368
- enumerable: true,
369
- value: schemas_0['__proto__']
370
- });
371
-
372
- Object.keys(schemas_0).forEach(function (k) {
373
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
374
- });
375
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
376
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
377
- Object.defineProperty(exports, '__proto__', {
378
- enumerable: true,
379
- value: errors['__proto__']
380
- });
381
-
382
- Object.keys(errors).forEach(function (k) {
383
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
384
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeGuruSecurityServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class CodeGuruSecurityServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.CodeGuruSecurityServiceException = class CodeGuruSecurityServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, CodeGuruSecurityServiceException.prototype);
10
7
  }
11
- }
12
- exports.CodeGuruSecurityServiceException = CodeGuruSecurityServiceException;
8
+ };
@@ -1,8 +1,5 @@
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 {
1
+ const { CodeGuruSecurityServiceException: __BaseException } = require("./CodeGuruSecurityServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  errorCode;
@@ -19,9 +16,8 @@ class AccessDeniedException extends CodeGuruSecurityServiceException_1.CodeGuruS
19
16
  this.resourceId = opts.resourceId;
20
17
  this.resourceType = opts.resourceType;
21
18
  }
22
- }
23
- exports.AccessDeniedException = AccessDeniedException;
24
- class InternalServerException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
19
+ };
20
+ exports.InternalServerException = class InternalServerException extends __BaseException {
25
21
  name = "InternalServerException";
26
22
  $fault = "server";
27
23
  $retryable = {};
@@ -35,9 +31,8 @@ class InternalServerException extends CodeGuruSecurityServiceException_1.CodeGur
35
31
  Object.setPrototypeOf(this, InternalServerException.prototype);
36
32
  this.error = opts.error;
37
33
  }
38
- }
39
- exports.InternalServerException = InternalServerException;
40
- class ThrottlingException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
34
+ };
35
+ exports.ThrottlingException = class ThrottlingException extends __BaseException {
41
36
  name = "ThrottlingException";
42
37
  $fault = "client";
43
38
  $retryable = {
@@ -57,9 +52,8 @@ class ThrottlingException extends CodeGuruSecurityServiceException_1.CodeGuruSec
57
52
  this.serviceCode = opts.serviceCode;
58
53
  this.quotaCode = opts.quotaCode;
59
54
  }
60
- }
61
- exports.ThrottlingException = ThrottlingException;
62
- class ValidationException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
55
+ };
56
+ exports.ValidationException = class ValidationException extends __BaseException {
63
57
  name = "ValidationException";
64
58
  $fault = "client";
65
59
  errorCode;
@@ -76,9 +70,8 @@ class ValidationException extends CodeGuruSecurityServiceException_1.CodeGuruSec
76
70
  this.reason = opts.reason;
77
71
  this.fieldList = opts.fieldList;
78
72
  }
79
- }
80
- exports.ValidationException = ValidationException;
81
- class ConflictException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
73
+ };
74
+ exports.ConflictException = class ConflictException extends __BaseException {
82
75
  name = "ConflictException";
83
76
  $fault = "client";
84
77
  errorCode;
@@ -95,9 +88,8 @@ class ConflictException extends CodeGuruSecurityServiceException_1.CodeGuruSecur
95
88
  this.resourceId = opts.resourceId;
96
89
  this.resourceType = opts.resourceType;
97
90
  }
98
- }
99
- exports.ConflictException = ConflictException;
100
- class ResourceNotFoundException extends CodeGuruSecurityServiceException_1.CodeGuruSecurityServiceException {
91
+ };
92
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
101
93
  name = "ResourceNotFoundException";
102
94
  $fault = "client";
103
95
  errorCode;
@@ -114,5 +106,4 @@ class ResourceNotFoundException extends CodeGuruSecurityServiceException_1.CodeG
114
106
  this.resourceId = opts.resourceId;
115
107
  this.resourceType = opts.resourceType;
116
108
  }
117
- }
118
- exports.ResourceNotFoundException = ResourceNotFoundException;
109
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;