@aws-sdk/client-codeartifact 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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeartifactServiceException = 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 CodeartifactServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CodeartifactServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CodeartifactServiceException = CodeartifactServiceException;
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const CodeartifactServiceException_1 = require("./CodeartifactServiceException");
5
+ class AccessDeniedException extends CodeartifactServiceException_1.CodeartifactServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends CodeartifactServiceException_1.CodeartifactServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceId;
22
+ resourceType;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.resourceId = opts.resourceId;
31
+ this.resourceType = opts.resourceType;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends CodeartifactServiceException_1.CodeartifactServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ constructor(opts) {
39
+ super({
40
+ name: "InternalServerException",
41
+ $fault: "server",
42
+ ...opts,
43
+ });
44
+ Object.setPrototypeOf(this, InternalServerException.prototype);
45
+ }
46
+ }
47
+ exports.InternalServerException = InternalServerException;
48
+ class ResourceNotFoundException extends CodeartifactServiceException_1.CodeartifactServiceException {
49
+ name = "ResourceNotFoundException";
50
+ $fault = "client";
51
+ resourceId;
52
+ resourceType;
53
+ constructor(opts) {
54
+ super({
55
+ name: "ResourceNotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
+ this.resourceId = opts.resourceId;
61
+ this.resourceType = opts.resourceType;
62
+ }
63
+ }
64
+ exports.ResourceNotFoundException = ResourceNotFoundException;
65
+ class ServiceQuotaExceededException extends CodeartifactServiceException_1.CodeartifactServiceException {
66
+ name = "ServiceQuotaExceededException";
67
+ $fault = "client";
68
+ resourceId;
69
+ resourceType;
70
+ constructor(opts) {
71
+ super({
72
+ name: "ServiceQuotaExceededException",
73
+ $fault: "client",
74
+ ...opts,
75
+ });
76
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
77
+ this.resourceId = opts.resourceId;
78
+ this.resourceType = opts.resourceType;
79
+ }
80
+ }
81
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
82
+ class ThrottlingException extends CodeartifactServiceException_1.CodeartifactServiceException {
83
+ name = "ThrottlingException";
84
+ $fault = "client";
85
+ retryAfterSeconds;
86
+ constructor(opts) {
87
+ super({
88
+ name: "ThrottlingException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
93
+ this.retryAfterSeconds = opts.retryAfterSeconds;
94
+ }
95
+ }
96
+ exports.ThrottlingException = ThrottlingException;
97
+ class ValidationException extends CodeartifactServiceException_1.CodeartifactServiceException {
98
+ name = "ValidationException";
99
+ $fault = "client";
100
+ reason;
101
+ constructor(opts) {
102
+ super({
103
+ name: "ValidationException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, ValidationException.prototype);
108
+ this.reason = opts.reason;
109
+ }
110
+ }
111
+ exports.ValidationException = ValidationException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2018-09-22",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.codeartifact",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  version: "2018-09-22",
34
36
  serviceTarget: "CodeArtifactControlPlaneService",
35
37
  },