@aws-sdk/client-codeartifact 3.186.0 → 3.190.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +1 -0
  3. package/dist-cjs/runtimeConfig.browser.js +9 -7
  4. package/dist-cjs/runtimeConfig.js +9 -7
  5. package/dist-es/Codeartifact.js +146 -153
  6. package/dist-es/CodeartifactClient.js +22 -28
  7. package/dist-es/commands/AssociateExternalConnectionCommand.js +21 -28
  8. package/dist-es/commands/CopyPackageVersionsCommand.js +21 -28
  9. package/dist-es/commands/CreateDomainCommand.js +21 -28
  10. package/dist-es/commands/CreateRepositoryCommand.js +21 -28
  11. package/dist-es/commands/DeleteDomainCommand.js +21 -28
  12. package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js +21 -28
  13. package/dist-es/commands/DeletePackageVersionsCommand.js +21 -28
  14. package/dist-es/commands/DeleteRepositoryCommand.js +21 -28
  15. package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js +21 -28
  16. package/dist-es/commands/DescribeDomainCommand.js +21 -28
  17. package/dist-es/commands/DescribePackageCommand.js +21 -28
  18. package/dist-es/commands/DescribePackageVersionCommand.js +21 -28
  19. package/dist-es/commands/DescribeRepositoryCommand.js +21 -28
  20. package/dist-es/commands/DisassociateExternalConnectionCommand.js +21 -28
  21. package/dist-es/commands/DisposePackageVersionsCommand.js +21 -28
  22. package/dist-es/commands/GetAuthorizationTokenCommand.js +21 -28
  23. package/dist-es/commands/GetDomainPermissionsPolicyCommand.js +21 -28
  24. package/dist-es/commands/GetPackageVersionAssetCommand.js +21 -28
  25. package/dist-es/commands/GetPackageVersionReadmeCommand.js +21 -28
  26. package/dist-es/commands/GetRepositoryEndpointCommand.js +21 -28
  27. package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js +21 -28
  28. package/dist-es/commands/ListDomainsCommand.js +21 -28
  29. package/dist-es/commands/ListPackageVersionAssetsCommand.js +21 -28
  30. package/dist-es/commands/ListPackageVersionDependenciesCommand.js +21 -28
  31. package/dist-es/commands/ListPackageVersionsCommand.js +21 -28
  32. package/dist-es/commands/ListPackagesCommand.js +21 -28
  33. package/dist-es/commands/ListRepositoriesCommand.js +21 -28
  34. package/dist-es/commands/ListRepositoriesInDomainCommand.js +21 -28
  35. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  36. package/dist-es/commands/PutDomainPermissionsPolicyCommand.js +21 -28
  37. package/dist-es/commands/PutPackageOriginConfigurationCommand.js +21 -28
  38. package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js +21 -28
  39. package/dist-es/commands/TagResourceCommand.js +21 -28
  40. package/dist-es/commands/UntagResourceCommand.js +21 -28
  41. package/dist-es/commands/UpdatePackageVersionsStatusCommand.js +21 -28
  42. package/dist-es/commands/UpdateRepositoryCommand.js +21 -28
  43. package/dist-es/endpoints.js +8 -8
  44. package/dist-es/models/CodeartifactServiceException.js +5 -10
  45. package/dist-es/models/models_0.js +367 -180
  46. package/dist-es/pagination/ListDomainsPaginator.js +25 -68
  47. package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +25 -68
  48. package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -68
  49. package/dist-es/pagination/ListPackagesPaginator.js +25 -68
  50. package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +25 -68
  51. package/dist-es/pagination/ListRepositoriesPaginator.js +25 -68
  52. package/dist-es/protocols/Aws_restJson1.js +2835 -3994
  53. package/dist-es/runtimeConfig.browser.js +28 -12
  54. package/dist-es/runtimeConfig.js +32 -12
  55. package/dist-es/runtimeConfig.native.js +8 -5
  56. package/dist-es/runtimeConfig.shared.js +8 -11
  57. package/dist-types/CodeartifactClient.d.ts +6 -1
  58. package/dist-types/commands/GetPackageVersionAssetCommand.d.ts +2 -2
  59. package/dist-types/protocols/Aws_restJson1.d.ts +2 -2
  60. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  61. package/dist-types/runtimeConfig.d.ts +1 -0
  62. package/dist-types/runtimeConfig.native.d.ts +1 -0
  63. package/dist-types/ts3.4/CodeartifactClient.d.ts +2 -0
  64. package/dist-types/ts3.4/commands/GetPackageVersionAssetCommand.d.ts +2 -1
  65. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +5 -2
  66. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  67. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  68. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  69. package/package.json +35 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetRepositoryEndpointRequestFilterSensitiveLog, GetRepositoryEndpointResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRepositoryEndpointCommand, serializeAws_restJson1GetRepositoryEndpointCommand, } from "../protocols/Aws_restJson1";
6
- var GetRepositoryEndpointCommand = (function (_super) {
7
- __extends(GetRepositoryEndpointCommand, _super);
8
- function GetRepositoryEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRepositoryEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRepositoryEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "GetRepositoryEndpointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "GetRepositoryEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRepositoryEndpointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRepositoryEndpointResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRepositoryEndpointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetRepositoryEndpointCommand(input, context);
33
- };
34
- GetRepositoryEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRepositoryEndpointCommand(output, context);
36
- };
37
- return GetRepositoryEndpointCommand;
38
- }($Command));
39
- export { GetRepositoryEndpointCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetRepositoryPermissionsPolicyRequestFilterSensitiveLog, GetRepositoryPermissionsPolicyResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand, serializeAws_restJson1GetRepositoryPermissionsPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetRepositoryPermissionsPolicyCommand = (function (_super) {
7
- __extends(GetRepositoryPermissionsPolicyCommand, _super);
8
- function GetRepositoryPermissionsPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRepositoryPermissionsPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRepositoryPermissionsPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "GetRepositoryPermissionsPolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "GetRepositoryPermissionsPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRepositoryPermissionsPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRepositoryPermissionsPolicyResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRepositoryPermissionsPolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetRepositoryPermissionsPolicyCommand(input, context);
33
- };
34
- GetRepositoryPermissionsPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand(output, context);
36
- };
37
- return GetRepositoryPermissionsPolicyCommand;
38
- }($Command));
39
- export { GetRepositoryPermissionsPolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDomainsRequestFilterSensitiveLog, ListDomainsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDomainsCommand, serializeAws_restJson1ListDomainsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDomainsCommand = (function (_super) {
7
- __extends(ListDomainsCommand, _super);
8
- function ListDomainsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDomainsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDomainsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListDomainsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListDomainsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDomainsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDomainsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDomainsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListDomainsCommand(input, context);
33
- };
34
- ListDomainsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDomainsCommand(output, context);
36
- };
37
- return ListDomainsCommand;
38
- }($Command));
39
- export { ListDomainsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPackageVersionAssetsRequestFilterSensitiveLog, ListPackageVersionAssetsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPackageVersionAssetsCommand, serializeAws_restJson1ListPackageVersionAssetsCommand, } from "../protocols/Aws_restJson1";
6
- var ListPackageVersionAssetsCommand = (function (_super) {
7
- __extends(ListPackageVersionAssetsCommand, _super);
8
- function ListPackageVersionAssetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPackageVersionAssetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPackageVersionAssetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListPackageVersionAssetsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListPackageVersionAssetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPackageVersionAssetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPackageVersionAssetsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPackageVersionAssetsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListPackageVersionAssetsCommand(input, context);
33
- };
34
- ListPackageVersionAssetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPackageVersionAssetsCommand(output, context);
36
- };
37
- return ListPackageVersionAssetsCommand;
38
- }($Command));
39
- export { ListPackageVersionAssetsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPackageVersionDependenciesRequestFilterSensitiveLog, ListPackageVersionDependenciesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPackageVersionDependenciesCommand, serializeAws_restJson1ListPackageVersionDependenciesCommand, } from "../protocols/Aws_restJson1";
6
- var ListPackageVersionDependenciesCommand = (function (_super) {
7
- __extends(ListPackageVersionDependenciesCommand, _super);
8
- function ListPackageVersionDependenciesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPackageVersionDependenciesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPackageVersionDependenciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListPackageVersionDependenciesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListPackageVersionDependenciesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPackageVersionDependenciesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPackageVersionDependenciesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPackageVersionDependenciesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListPackageVersionDependenciesCommand(input, context);
33
- };
34
- ListPackageVersionDependenciesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPackageVersionDependenciesCommand(output, context);
36
- };
37
- return ListPackageVersionDependenciesCommand;
38
- }($Command));
39
- export { ListPackageVersionDependenciesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPackageVersionsRequestFilterSensitiveLog, ListPackageVersionsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPackageVersionsCommand, serializeAws_restJson1ListPackageVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListPackageVersionsCommand = (function (_super) {
7
- __extends(ListPackageVersionsCommand, _super);
8
- function ListPackageVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPackageVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPackageVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListPackageVersionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListPackageVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPackageVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPackageVersionsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPackageVersionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListPackageVersionsCommand(input, context);
33
- };
34
- ListPackageVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPackageVersionsCommand(output, context);
36
- };
37
- return ListPackageVersionsCommand;
38
- }($Command));
39
- export { ListPackageVersionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPackagesRequestFilterSensitiveLog, ListPackagesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPackagesCommand, serializeAws_restJson1ListPackagesCommand, } from "../protocols/Aws_restJson1";
6
- var ListPackagesCommand = (function (_super) {
7
- __extends(ListPackagesCommand, _super);
8
- function ListPackagesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPackagesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPackagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListPackagesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListPackagesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPackagesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPackagesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPackagesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListPackagesCommand(input, context);
33
- };
34
- ListPackagesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPackagesCommand(output, context);
36
- };
37
- return ListPackagesCommand;
38
- }($Command));
39
- export { ListPackagesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListRepositoriesRequestFilterSensitiveLog, ListRepositoriesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListRepositoriesCommand, serializeAws_restJson1ListRepositoriesCommand, } from "../protocols/Aws_restJson1";
6
- var ListRepositoriesCommand = (function (_super) {
7
- __extends(ListRepositoriesCommand, _super);
8
- function ListRepositoriesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRepositoriesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRepositoriesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListRepositoriesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListRepositoriesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRepositoriesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRepositoriesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRepositoriesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListRepositoriesCommand(input, context);
33
- };
34
- ListRepositoriesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListRepositoriesCommand(output, context);
36
- };
37
- return ListRepositoriesCommand;
38
- }($Command));
39
- export { ListRepositoriesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListRepositoriesInDomainRequestFilterSensitiveLog, ListRepositoriesInDomainResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListRepositoriesInDomainCommand, serializeAws_restJson1ListRepositoriesInDomainCommand, } from "../protocols/Aws_restJson1";
6
- var ListRepositoriesInDomainCommand = (function (_super) {
7
- __extends(ListRepositoriesInDomainCommand, _super);
8
- function ListRepositoriesInDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRepositoriesInDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRepositoriesInDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListRepositoriesInDomainCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListRepositoriesInDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRepositoriesInDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRepositoriesInDomainResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRepositoriesInDomainCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListRepositoriesInDomainCommand(input, context);
33
- };
34
- ListRepositoriesInDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListRepositoriesInDomainCommand(output, context);
36
- };
37
- return ListRepositoriesInDomainCommand;
38
- }($Command));
39
- export { ListRepositoriesInDomainCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeartifactClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeartifactClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }