@aws-sdk/client-codeartifact 3.490.0 → 3.496.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/Codeartifact.js +1 -87
- package/dist-cjs/CodeartifactClient.js +1 -43
- package/dist-cjs/commands/AssociateExternalConnectionCommand.js +1 -28
- package/dist-cjs/commands/CopyPackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainCommand.js +1 -28
- package/dist-cjs/commands/CreateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeletePackageCommand.js +1 -28
- package/dist-cjs/commands/DeletePackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainCommand.js +1 -28
- package/dist-cjs/commands/DescribePackageCommand.js +1 -28
- package/dist-cjs/commands/DescribePackageVersionCommand.js +1 -28
- package/dist-cjs/commands/DescribeRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DisassociateExternalConnectionCommand.js +1 -28
- package/dist-cjs/commands/DisposePackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +1 -28
- package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetPackageVersionAssetCommand.js +1 -29
- package/dist-cjs/commands/GetPackageVersionReadmeCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/ListDomainsCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionAssetsCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js +1 -28
- package/dist-cjs/commands/ListPackageVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListPackagesCommand.js +1 -28
- package/dist-cjs/commands/ListRepositoriesCommand.js +1 -28
- package/dist-cjs/commands/ListRepositoriesInDomainCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PublishPackageVersionCommand.js +1 -29
- package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutPackageOriginConfigurationCommand.js +1 -28
- package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -41
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3943 -11
- package/dist-cjs/models/CodeartifactServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -178
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackagesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +1 -7
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2810
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3944 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AllowPublish: () => AllowPublish,
|
|
26
|
+
AllowUpstream: () => AllowUpstream,
|
|
27
|
+
AssociateExternalConnectionCommand: () => AssociateExternalConnectionCommand,
|
|
28
|
+
Codeartifact: () => Codeartifact,
|
|
29
|
+
CodeartifactClient: () => CodeartifactClient,
|
|
30
|
+
CodeartifactServiceException: () => CodeartifactServiceException,
|
|
31
|
+
ConflictException: () => ConflictException,
|
|
32
|
+
CopyPackageVersionsCommand: () => CopyPackageVersionsCommand,
|
|
33
|
+
CreateDomainCommand: () => CreateDomainCommand,
|
|
34
|
+
CreateRepositoryCommand: () => CreateRepositoryCommand,
|
|
35
|
+
DeleteDomainCommand: () => DeleteDomainCommand,
|
|
36
|
+
DeleteDomainPermissionsPolicyCommand: () => DeleteDomainPermissionsPolicyCommand,
|
|
37
|
+
DeletePackageCommand: () => DeletePackageCommand,
|
|
38
|
+
DeletePackageVersionsCommand: () => DeletePackageVersionsCommand,
|
|
39
|
+
DeleteRepositoryCommand: () => DeleteRepositoryCommand,
|
|
40
|
+
DeleteRepositoryPermissionsPolicyCommand: () => DeleteRepositoryPermissionsPolicyCommand,
|
|
41
|
+
DescribeDomainCommand: () => DescribeDomainCommand,
|
|
42
|
+
DescribePackageCommand: () => DescribePackageCommand,
|
|
43
|
+
DescribePackageVersionCommand: () => DescribePackageVersionCommand,
|
|
44
|
+
DescribeRepositoryCommand: () => DescribeRepositoryCommand,
|
|
45
|
+
DisassociateExternalConnectionCommand: () => DisassociateExternalConnectionCommand,
|
|
46
|
+
DisposePackageVersionsCommand: () => DisposePackageVersionsCommand,
|
|
47
|
+
DomainStatus: () => DomainStatus,
|
|
48
|
+
ExternalConnectionStatus: () => ExternalConnectionStatus,
|
|
49
|
+
GetAuthorizationTokenCommand: () => GetAuthorizationTokenCommand,
|
|
50
|
+
GetDomainPermissionsPolicyCommand: () => GetDomainPermissionsPolicyCommand,
|
|
51
|
+
GetPackageVersionAssetCommand: () => GetPackageVersionAssetCommand,
|
|
52
|
+
GetPackageVersionAssetResultFilterSensitiveLog: () => GetPackageVersionAssetResultFilterSensitiveLog,
|
|
53
|
+
GetPackageVersionReadmeCommand: () => GetPackageVersionReadmeCommand,
|
|
54
|
+
GetRepositoryEndpointCommand: () => GetRepositoryEndpointCommand,
|
|
55
|
+
GetRepositoryPermissionsPolicyCommand: () => GetRepositoryPermissionsPolicyCommand,
|
|
56
|
+
HashAlgorithm: () => HashAlgorithm,
|
|
57
|
+
InternalServerException: () => InternalServerException,
|
|
58
|
+
ListDomainsCommand: () => ListDomainsCommand,
|
|
59
|
+
ListPackageVersionAssetsCommand: () => ListPackageVersionAssetsCommand,
|
|
60
|
+
ListPackageVersionDependenciesCommand: () => ListPackageVersionDependenciesCommand,
|
|
61
|
+
ListPackageVersionsCommand: () => ListPackageVersionsCommand,
|
|
62
|
+
ListPackagesCommand: () => ListPackagesCommand,
|
|
63
|
+
ListRepositoriesCommand: () => ListRepositoriesCommand,
|
|
64
|
+
ListRepositoriesInDomainCommand: () => ListRepositoriesInDomainCommand,
|
|
65
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
66
|
+
PackageFormat: () => PackageFormat,
|
|
67
|
+
PackageVersionErrorCode: () => PackageVersionErrorCode,
|
|
68
|
+
PackageVersionOriginType: () => PackageVersionOriginType,
|
|
69
|
+
PackageVersionSortType: () => PackageVersionSortType,
|
|
70
|
+
PackageVersionStatus: () => PackageVersionStatus,
|
|
71
|
+
PublishPackageVersionCommand: () => PublishPackageVersionCommand,
|
|
72
|
+
PublishPackageVersionRequestFilterSensitiveLog: () => PublishPackageVersionRequestFilterSensitiveLog,
|
|
73
|
+
PutDomainPermissionsPolicyCommand: () => PutDomainPermissionsPolicyCommand,
|
|
74
|
+
PutPackageOriginConfigurationCommand: () => PutPackageOriginConfigurationCommand,
|
|
75
|
+
PutRepositoryPermissionsPolicyCommand: () => PutRepositoryPermissionsPolicyCommand,
|
|
76
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
77
|
+
ResourceType: () => ResourceType,
|
|
78
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
79
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
80
|
+
ThrottlingException: () => ThrottlingException,
|
|
81
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
82
|
+
UpdatePackageVersionsStatusCommand: () => UpdatePackageVersionsStatusCommand,
|
|
83
|
+
UpdateRepositoryCommand: () => UpdateRepositoryCommand,
|
|
84
|
+
ValidationException: () => ValidationException,
|
|
85
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
86
|
+
__Client: () => import_smithy_client.Client,
|
|
87
|
+
paginateListDomains: () => paginateListDomains,
|
|
88
|
+
paginateListPackageVersionAssets: () => paginateListPackageVersionAssets,
|
|
89
|
+
paginateListPackageVersions: () => paginateListPackageVersions,
|
|
90
|
+
paginateListPackages: () => paginateListPackages,
|
|
91
|
+
paginateListRepositories: () => paginateListRepositories,
|
|
92
|
+
paginateListRepositoriesInDomain: () => paginateListRepositoriesInDomain
|
|
93
|
+
});
|
|
94
|
+
module.exports = __toCommonJS(src_exports);
|
|
95
|
+
|
|
96
|
+
// src/CodeartifactClient.ts
|
|
97
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
98
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
99
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
100
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
101
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
102
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
103
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
104
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
105
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
// src/endpoint/EndpointParameters.ts
|
|
109
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
110
|
+
return {
|
|
111
|
+
...options,
|
|
112
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
113
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
114
|
+
defaultSigningName: "codeartifact"
|
|
115
|
+
};
|
|
116
|
+
}, "resolveClientEndpointParameters");
|
|
117
|
+
var commonParams = {
|
|
118
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
119
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
120
|
+
Region: { type: "builtInParams", name: "region" },
|
|
121
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/CodeartifactClient.ts
|
|
125
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
126
|
+
|
|
127
|
+
// src/runtimeExtensions.ts
|
|
128
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
129
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
130
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
131
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
132
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
133
|
+
const extensionConfiguration = {
|
|
134
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
135
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
136
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
137
|
+
};
|
|
138
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
139
|
+
return {
|
|
140
|
+
...runtimeConfig,
|
|
141
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
142
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
143
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
144
|
+
};
|
|
145
|
+
}, "resolveRuntimeExtensions");
|
|
146
|
+
|
|
147
|
+
// src/CodeartifactClient.ts
|
|
148
|
+
var _CodeartifactClient = class _CodeartifactClient extends import_smithy_client.Client {
|
|
149
|
+
constructor(...[configuration]) {
|
|
150
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
151
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
152
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
153
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
154
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
155
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
156
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
157
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
158
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
159
|
+
super(_config_8);
|
|
160
|
+
this.config = _config_8;
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
164
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
165
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
166
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
167
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
171
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
172
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
173
|
+
*/
|
|
174
|
+
destroy() {
|
|
175
|
+
super.destroy();
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
__name(_CodeartifactClient, "CodeartifactClient");
|
|
179
|
+
var CodeartifactClient = _CodeartifactClient;
|
|
180
|
+
|
|
181
|
+
// src/Codeartifact.ts
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
// src/commands/AssociateExternalConnectionCommand.ts
|
|
185
|
+
|
|
186
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
187
|
+
|
|
188
|
+
var import_types = require("@smithy/types");
|
|
189
|
+
|
|
190
|
+
// src/protocols/Aws_restJson1.ts
|
|
191
|
+
var import_core = require("@smithy/core");
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
// src/models/CodeartifactServiceException.ts
|
|
195
|
+
|
|
196
|
+
var _CodeartifactServiceException = class _CodeartifactServiceException extends import_smithy_client.ServiceException {
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
constructor(options) {
|
|
201
|
+
super(options);
|
|
202
|
+
Object.setPrototypeOf(this, _CodeartifactServiceException.prototype);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
__name(_CodeartifactServiceException, "CodeartifactServiceException");
|
|
206
|
+
var CodeartifactServiceException = _CodeartifactServiceException;
|
|
207
|
+
|
|
208
|
+
// src/models/models_0.ts
|
|
209
|
+
var _AccessDeniedException = class _AccessDeniedException extends CodeartifactServiceException {
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "AccessDeniedException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts
|
|
218
|
+
});
|
|
219
|
+
this.name = "AccessDeniedException";
|
|
220
|
+
this.$fault = "client";
|
|
221
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
225
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
226
|
+
var AllowPublish = {
|
|
227
|
+
ALLOW: "ALLOW",
|
|
228
|
+
BLOCK: "BLOCK"
|
|
229
|
+
};
|
|
230
|
+
var AllowUpstream = {
|
|
231
|
+
ALLOW: "ALLOW",
|
|
232
|
+
BLOCK: "BLOCK"
|
|
233
|
+
};
|
|
234
|
+
var HashAlgorithm = {
|
|
235
|
+
MD5: "MD5",
|
|
236
|
+
SHA1: "SHA-1",
|
|
237
|
+
SHA256: "SHA-256",
|
|
238
|
+
SHA512: "SHA-512"
|
|
239
|
+
};
|
|
240
|
+
var PackageFormat = {
|
|
241
|
+
GENERIC: "generic",
|
|
242
|
+
MAVEN: "maven",
|
|
243
|
+
NPM: "npm",
|
|
244
|
+
NUGET: "nuget",
|
|
245
|
+
PYPI: "pypi",
|
|
246
|
+
SWIFT: "swift"
|
|
247
|
+
};
|
|
248
|
+
var ExternalConnectionStatus = {
|
|
249
|
+
AVAILABLE: "Available"
|
|
250
|
+
};
|
|
251
|
+
var ResourceType = {
|
|
252
|
+
ASSET: "asset",
|
|
253
|
+
DOMAIN: "domain",
|
|
254
|
+
PACKAGE: "package",
|
|
255
|
+
PACKAGE_VERSION: "package-version",
|
|
256
|
+
REPOSITORY: "repository"
|
|
257
|
+
};
|
|
258
|
+
var _ConflictException = class _ConflictException extends CodeartifactServiceException {
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "ConflictException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts
|
|
267
|
+
});
|
|
268
|
+
this.name = "ConflictException";
|
|
269
|
+
this.$fault = "client";
|
|
270
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
271
|
+
this.resourceId = opts.resourceId;
|
|
272
|
+
this.resourceType = opts.resourceType;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
__name(_ConflictException, "ConflictException");
|
|
276
|
+
var ConflictException = _ConflictException;
|
|
277
|
+
var _InternalServerException = class _InternalServerException extends CodeartifactServiceException {
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "InternalServerException",
|
|
284
|
+
$fault: "server",
|
|
285
|
+
...opts
|
|
286
|
+
});
|
|
287
|
+
this.name = "InternalServerException";
|
|
288
|
+
this.$fault = "server";
|
|
289
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
__name(_InternalServerException, "InternalServerException");
|
|
293
|
+
var InternalServerException = _InternalServerException;
|
|
294
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends CodeartifactServiceException {
|
|
295
|
+
/**
|
|
296
|
+
* @internal
|
|
297
|
+
*/
|
|
298
|
+
constructor(opts) {
|
|
299
|
+
super({
|
|
300
|
+
name: "ResourceNotFoundException",
|
|
301
|
+
$fault: "client",
|
|
302
|
+
...opts
|
|
303
|
+
});
|
|
304
|
+
this.name = "ResourceNotFoundException";
|
|
305
|
+
this.$fault = "client";
|
|
306
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
307
|
+
this.resourceId = opts.resourceId;
|
|
308
|
+
this.resourceType = opts.resourceType;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
312
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
313
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CodeartifactServiceException {
|
|
314
|
+
/**
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
constructor(opts) {
|
|
318
|
+
super({
|
|
319
|
+
name: "ServiceQuotaExceededException",
|
|
320
|
+
$fault: "client",
|
|
321
|
+
...opts
|
|
322
|
+
});
|
|
323
|
+
this.name = "ServiceQuotaExceededException";
|
|
324
|
+
this.$fault = "client";
|
|
325
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
326
|
+
this.resourceId = opts.resourceId;
|
|
327
|
+
this.resourceType = opts.resourceType;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
331
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
332
|
+
var _ThrottlingException = class _ThrottlingException extends CodeartifactServiceException {
|
|
333
|
+
/**
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
constructor(opts) {
|
|
337
|
+
super({
|
|
338
|
+
name: "ThrottlingException",
|
|
339
|
+
$fault: "client",
|
|
340
|
+
...opts
|
|
341
|
+
});
|
|
342
|
+
this.name = "ThrottlingException";
|
|
343
|
+
this.$fault = "client";
|
|
344
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
345
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
349
|
+
var ThrottlingException = _ThrottlingException;
|
|
350
|
+
var ValidationExceptionReason = {
|
|
351
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
352
|
+
ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
|
|
353
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
354
|
+
OTHER: "OTHER",
|
|
355
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
|
|
356
|
+
};
|
|
357
|
+
var _ValidationException = class _ValidationException extends CodeartifactServiceException {
|
|
358
|
+
/**
|
|
359
|
+
* @internal
|
|
360
|
+
*/
|
|
361
|
+
constructor(opts) {
|
|
362
|
+
super({
|
|
363
|
+
name: "ValidationException",
|
|
364
|
+
$fault: "client",
|
|
365
|
+
...opts
|
|
366
|
+
});
|
|
367
|
+
this.name = "ValidationException";
|
|
368
|
+
this.$fault = "client";
|
|
369
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
370
|
+
this.reason = opts.reason;
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
__name(_ValidationException, "ValidationException");
|
|
374
|
+
var ValidationException = _ValidationException;
|
|
375
|
+
var PackageVersionErrorCode = {
|
|
376
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
377
|
+
MISMATCHED_REVISION: "MISMATCHED_REVISION",
|
|
378
|
+
MISMATCHED_STATUS: "MISMATCHED_STATUS",
|
|
379
|
+
NOT_ALLOWED: "NOT_ALLOWED",
|
|
380
|
+
NOT_FOUND: "NOT_FOUND",
|
|
381
|
+
SKIPPED: "SKIPPED"
|
|
382
|
+
};
|
|
383
|
+
var PackageVersionStatus = {
|
|
384
|
+
ARCHIVED: "Archived",
|
|
385
|
+
DELETED: "Deleted",
|
|
386
|
+
DISPOSED: "Disposed",
|
|
387
|
+
PUBLISHED: "Published",
|
|
388
|
+
UNFINISHED: "Unfinished",
|
|
389
|
+
UNLISTED: "Unlisted"
|
|
390
|
+
};
|
|
391
|
+
var DomainStatus = {
|
|
392
|
+
ACTIVE: "Active",
|
|
393
|
+
DELETED: "Deleted"
|
|
394
|
+
};
|
|
395
|
+
var PackageVersionOriginType = {
|
|
396
|
+
EXTERNAL: "EXTERNAL",
|
|
397
|
+
INTERNAL: "INTERNAL",
|
|
398
|
+
UNKNOWN: "UNKNOWN"
|
|
399
|
+
};
|
|
400
|
+
var PackageVersionSortType = {
|
|
401
|
+
PUBLISHED_TIME: "PUBLISHED_TIME"
|
|
402
|
+
};
|
|
403
|
+
var GetPackageVersionAssetResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
404
|
+
...obj
|
|
405
|
+
}), "GetPackageVersionAssetResultFilterSensitiveLog");
|
|
406
|
+
var PublishPackageVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
407
|
+
...obj
|
|
408
|
+
}), "PublishPackageVersionRequestFilterSensitiveLog");
|
|
409
|
+
|
|
410
|
+
// src/protocols/Aws_restJson1.ts
|
|
411
|
+
var se_AssociateExternalConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
412
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
413
|
+
const headers = {};
|
|
414
|
+
b.bp("/v1/repository/external-connection");
|
|
415
|
+
const query = (0, import_smithy_client.map)({
|
|
416
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
417
|
+
[_do]: [, input[_dO]],
|
|
418
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
419
|
+
[_ec]: [, (0, import_smithy_client.expectNonNull)(input[_eC], `externalConnection`)]
|
|
420
|
+
});
|
|
421
|
+
let body;
|
|
422
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
423
|
+
return b.build();
|
|
424
|
+
}, "se_AssociateExternalConnectionCommand");
|
|
425
|
+
var se_CopyPackageVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
426
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
427
|
+
const headers = {
|
|
428
|
+
"content-type": "application/json"
|
|
429
|
+
};
|
|
430
|
+
b.bp("/v1/package/versions/copy");
|
|
431
|
+
const query = (0, import_smithy_client.map)({
|
|
432
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
433
|
+
[_do]: [, input[_dO]],
|
|
434
|
+
[_sr]: [, (0, import_smithy_client.expectNonNull)(input[_sR], `sourceRepository`)],
|
|
435
|
+
[_dr]: [, (0, import_smithy_client.expectNonNull)(input[_dR], `destinationRepository`)],
|
|
436
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
437
|
+
[_n]: [, input[_n]],
|
|
438
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
439
|
+
});
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(
|
|
442
|
+
(0, import_smithy_client.take)(input, {
|
|
443
|
+
allowOverwrite: [],
|
|
444
|
+
includeFromUpstream: [],
|
|
445
|
+
versionRevisions: (_) => (0, import_smithy_client._json)(_),
|
|
446
|
+
versions: (_) => (0, import_smithy_client._json)(_)
|
|
447
|
+
})
|
|
448
|
+
);
|
|
449
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
450
|
+
return b.build();
|
|
451
|
+
}, "se_CopyPackageVersionsCommand");
|
|
452
|
+
var se_CreateDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
453
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
454
|
+
const headers = {
|
|
455
|
+
"content-type": "application/json"
|
|
456
|
+
};
|
|
457
|
+
b.bp("/v1/domain");
|
|
458
|
+
const query = (0, import_smithy_client.map)({
|
|
459
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)]
|
|
460
|
+
});
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify(
|
|
463
|
+
(0, import_smithy_client.take)(input, {
|
|
464
|
+
encryptionKey: [],
|
|
465
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
466
|
+
})
|
|
467
|
+
);
|
|
468
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
}, "se_CreateDomainCommand");
|
|
471
|
+
var se_CreateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
+
const headers = {
|
|
474
|
+
"content-type": "application/json"
|
|
475
|
+
};
|
|
476
|
+
b.bp("/v1/repository");
|
|
477
|
+
const query = (0, import_smithy_client.map)({
|
|
478
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
479
|
+
[_do]: [, input[_dO]],
|
|
480
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
481
|
+
});
|
|
482
|
+
let body;
|
|
483
|
+
body = JSON.stringify(
|
|
484
|
+
(0, import_smithy_client.take)(input, {
|
|
485
|
+
description: [],
|
|
486
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
487
|
+
upstreams: (_) => (0, import_smithy_client._json)(_)
|
|
488
|
+
})
|
|
489
|
+
);
|
|
490
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
491
|
+
return b.build();
|
|
492
|
+
}, "se_CreateRepositoryCommand");
|
|
493
|
+
var se_DeleteDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
495
|
+
const headers = {};
|
|
496
|
+
b.bp("/v1/domain");
|
|
497
|
+
const query = (0, import_smithy_client.map)({
|
|
498
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
499
|
+
[_do]: [, input[_dO]]
|
|
500
|
+
});
|
|
501
|
+
let body;
|
|
502
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
503
|
+
return b.build();
|
|
504
|
+
}, "se_DeleteDomainCommand");
|
|
505
|
+
var se_DeleteDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
507
|
+
const headers = {};
|
|
508
|
+
b.bp("/v1/domain/permissions/policy");
|
|
509
|
+
const query = (0, import_smithy_client.map)({
|
|
510
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
511
|
+
[_do]: [, input[_dO]],
|
|
512
|
+
[_pr]: [, input[_pR]]
|
|
513
|
+
});
|
|
514
|
+
let body;
|
|
515
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
516
|
+
return b.build();
|
|
517
|
+
}, "se_DeleteDomainPermissionsPolicyCommand");
|
|
518
|
+
var se_DeletePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
519
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
520
|
+
const headers = {};
|
|
521
|
+
b.bp("/v1/package");
|
|
522
|
+
const query = (0, import_smithy_client.map)({
|
|
523
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
524
|
+
[_do]: [, input[_dO]],
|
|
525
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
526
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
527
|
+
[_n]: [, input[_n]],
|
|
528
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
529
|
+
});
|
|
530
|
+
let body;
|
|
531
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_DeletePackageCommand");
|
|
534
|
+
var se_DeletePackageVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
536
|
+
const headers = {
|
|
537
|
+
"content-type": "application/json"
|
|
538
|
+
};
|
|
539
|
+
b.bp("/v1/package/versions/delete");
|
|
540
|
+
const query = (0, import_smithy_client.map)({
|
|
541
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
542
|
+
[_do]: [, input[_dO]],
|
|
543
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
544
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
545
|
+
[_n]: [, input[_n]],
|
|
546
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
547
|
+
});
|
|
548
|
+
let body;
|
|
549
|
+
body = JSON.stringify(
|
|
550
|
+
(0, import_smithy_client.take)(input, {
|
|
551
|
+
expectedStatus: [],
|
|
552
|
+
versions: (_) => (0, import_smithy_client._json)(_)
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
556
|
+
return b.build();
|
|
557
|
+
}, "se_DeletePackageVersionsCommand");
|
|
558
|
+
var se_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
559
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
560
|
+
const headers = {};
|
|
561
|
+
b.bp("/v1/repository");
|
|
562
|
+
const query = (0, import_smithy_client.map)({
|
|
563
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
564
|
+
[_do]: [, input[_dO]],
|
|
565
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
566
|
+
});
|
|
567
|
+
let body;
|
|
568
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
569
|
+
return b.build();
|
|
570
|
+
}, "se_DeleteRepositoryCommand");
|
|
571
|
+
var se_DeleteRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
572
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
573
|
+
const headers = {};
|
|
574
|
+
b.bp("/v1/repository/permissions/policies");
|
|
575
|
+
const query = (0, import_smithy_client.map)({
|
|
576
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
577
|
+
[_do]: [, input[_dO]],
|
|
578
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
579
|
+
[_pr]: [, input[_pR]]
|
|
580
|
+
});
|
|
581
|
+
let body;
|
|
582
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
583
|
+
return b.build();
|
|
584
|
+
}, "se_DeleteRepositoryPermissionsPolicyCommand");
|
|
585
|
+
var se_DescribeDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
|
+
const headers = {};
|
|
588
|
+
b.bp("/v1/domain");
|
|
589
|
+
const query = (0, import_smithy_client.map)({
|
|
590
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
591
|
+
[_do]: [, input[_dO]]
|
|
592
|
+
});
|
|
593
|
+
let body;
|
|
594
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
595
|
+
return b.build();
|
|
596
|
+
}, "se_DescribeDomainCommand");
|
|
597
|
+
var se_DescribePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
598
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
599
|
+
const headers = {};
|
|
600
|
+
b.bp("/v1/package");
|
|
601
|
+
const query = (0, import_smithy_client.map)({
|
|
602
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
603
|
+
[_do]: [, input[_dO]],
|
|
604
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
605
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
606
|
+
[_n]: [, input[_n]],
|
|
607
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
608
|
+
});
|
|
609
|
+
let body;
|
|
610
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
611
|
+
return b.build();
|
|
612
|
+
}, "se_DescribePackageCommand");
|
|
613
|
+
var se_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
614
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
615
|
+
const headers = {};
|
|
616
|
+
b.bp("/v1/package/version");
|
|
617
|
+
const query = (0, import_smithy_client.map)({
|
|
618
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
619
|
+
[_do]: [, input[_dO]],
|
|
620
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
621
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
622
|
+
[_n]: [, input[_n]],
|
|
623
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
624
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)]
|
|
625
|
+
});
|
|
626
|
+
let body;
|
|
627
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
628
|
+
return b.build();
|
|
629
|
+
}, "se_DescribePackageVersionCommand");
|
|
630
|
+
var se_DescribeRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
631
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
632
|
+
const headers = {};
|
|
633
|
+
b.bp("/v1/repository");
|
|
634
|
+
const query = (0, import_smithy_client.map)({
|
|
635
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
636
|
+
[_do]: [, input[_dO]],
|
|
637
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
638
|
+
});
|
|
639
|
+
let body;
|
|
640
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
641
|
+
return b.build();
|
|
642
|
+
}, "se_DescribeRepositoryCommand");
|
|
643
|
+
var se_DisassociateExternalConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
644
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
645
|
+
const headers = {};
|
|
646
|
+
b.bp("/v1/repository/external-connection");
|
|
647
|
+
const query = (0, import_smithy_client.map)({
|
|
648
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
649
|
+
[_do]: [, input[_dO]],
|
|
650
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
651
|
+
[_ec]: [, (0, import_smithy_client.expectNonNull)(input[_eC], `externalConnection`)]
|
|
652
|
+
});
|
|
653
|
+
let body;
|
|
654
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
655
|
+
return b.build();
|
|
656
|
+
}, "se_DisassociateExternalConnectionCommand");
|
|
657
|
+
var se_DisposePackageVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
658
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
659
|
+
const headers = {
|
|
660
|
+
"content-type": "application/json"
|
|
661
|
+
};
|
|
662
|
+
b.bp("/v1/package/versions/dispose");
|
|
663
|
+
const query = (0, import_smithy_client.map)({
|
|
664
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
665
|
+
[_do]: [, input[_dO]],
|
|
666
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
667
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
668
|
+
[_n]: [, input[_n]],
|
|
669
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
670
|
+
});
|
|
671
|
+
let body;
|
|
672
|
+
body = JSON.stringify(
|
|
673
|
+
(0, import_smithy_client.take)(input, {
|
|
674
|
+
expectedStatus: [],
|
|
675
|
+
versionRevisions: (_) => (0, import_smithy_client._json)(_),
|
|
676
|
+
versions: (_) => (0, import_smithy_client._json)(_)
|
|
677
|
+
})
|
|
678
|
+
);
|
|
679
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
680
|
+
return b.build();
|
|
681
|
+
}, "se_DisposePackageVersionsCommand");
|
|
682
|
+
var se_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
683
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
684
|
+
const headers = {};
|
|
685
|
+
b.bp("/v1/authorization-token");
|
|
686
|
+
const query = (0, import_smithy_client.map)({
|
|
687
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
688
|
+
[_do]: [, input[_dO]],
|
|
689
|
+
[_du]: [() => input.durationSeconds !== void 0, () => input[_dS].toString()]
|
|
690
|
+
});
|
|
691
|
+
let body;
|
|
692
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
693
|
+
return b.build();
|
|
694
|
+
}, "se_GetAuthorizationTokenCommand");
|
|
695
|
+
var se_GetDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
696
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
697
|
+
const headers = {};
|
|
698
|
+
b.bp("/v1/domain/permissions/policy");
|
|
699
|
+
const query = (0, import_smithy_client.map)({
|
|
700
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
701
|
+
[_do]: [, input[_dO]]
|
|
702
|
+
});
|
|
703
|
+
let body;
|
|
704
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
705
|
+
return b.build();
|
|
706
|
+
}, "se_GetDomainPermissionsPolicyCommand");
|
|
707
|
+
var se_GetPackageVersionAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
708
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
709
|
+
const headers = {};
|
|
710
|
+
b.bp("/v1/package/version/asset");
|
|
711
|
+
const query = (0, import_smithy_client.map)({
|
|
712
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
713
|
+
[_do]: [, input[_dO]],
|
|
714
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
715
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
716
|
+
[_n]: [, input[_n]],
|
|
717
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
718
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)],
|
|
719
|
+
[_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `asset`)],
|
|
720
|
+
[_re]: [, input[_pVR]]
|
|
721
|
+
});
|
|
722
|
+
let body;
|
|
723
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
}, "se_GetPackageVersionAssetCommand");
|
|
726
|
+
var se_GetPackageVersionReadmeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
727
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
728
|
+
const headers = {};
|
|
729
|
+
b.bp("/v1/package/version/readme");
|
|
730
|
+
const query = (0, import_smithy_client.map)({
|
|
731
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
732
|
+
[_do]: [, input[_dO]],
|
|
733
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
734
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
735
|
+
[_n]: [, input[_n]],
|
|
736
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
737
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)]
|
|
738
|
+
});
|
|
739
|
+
let body;
|
|
740
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
741
|
+
return b.build();
|
|
742
|
+
}, "se_GetPackageVersionReadmeCommand");
|
|
743
|
+
var se_GetRepositoryEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
744
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
745
|
+
const headers = {};
|
|
746
|
+
b.bp("/v1/repository/endpoint");
|
|
747
|
+
const query = (0, import_smithy_client.map)({
|
|
748
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
749
|
+
[_do]: [, input[_dO]],
|
|
750
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
751
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)]
|
|
752
|
+
});
|
|
753
|
+
let body;
|
|
754
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
755
|
+
return b.build();
|
|
756
|
+
}, "se_GetRepositoryEndpointCommand");
|
|
757
|
+
var se_GetRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
758
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
759
|
+
const headers = {};
|
|
760
|
+
b.bp("/v1/repository/permissions/policy");
|
|
761
|
+
const query = (0, import_smithy_client.map)({
|
|
762
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
763
|
+
[_do]: [, input[_dO]],
|
|
764
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
765
|
+
});
|
|
766
|
+
let body;
|
|
767
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
768
|
+
return b.build();
|
|
769
|
+
}, "se_GetRepositoryPermissionsPolicyCommand");
|
|
770
|
+
var se_ListDomainsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
771
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
772
|
+
const headers = {
|
|
773
|
+
"content-type": "application/json"
|
|
774
|
+
};
|
|
775
|
+
b.bp("/v1/domains");
|
|
776
|
+
let body;
|
|
777
|
+
body = JSON.stringify(
|
|
778
|
+
(0, import_smithy_client.take)(input, {
|
|
779
|
+
maxResults: [],
|
|
780
|
+
nextToken: []
|
|
781
|
+
})
|
|
782
|
+
);
|
|
783
|
+
b.m("POST").h(headers).b(body);
|
|
784
|
+
return b.build();
|
|
785
|
+
}, "se_ListDomainsCommand");
|
|
786
|
+
var se_ListPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
787
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
788
|
+
const headers = {};
|
|
789
|
+
b.bp("/v1/packages");
|
|
790
|
+
const query = (0, import_smithy_client.map)({
|
|
791
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
792
|
+
[_do]: [, input[_dO]],
|
|
793
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
794
|
+
[_f]: [, input[_f]],
|
|
795
|
+
[_n]: [, input[_n]],
|
|
796
|
+
[_pp]: [, input[_pP]],
|
|
797
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
798
|
+
[_nt]: [, input[_nT]],
|
|
799
|
+
[_pu]: [, input[_pu]],
|
|
800
|
+
[_u]: [, input[_u]]
|
|
801
|
+
});
|
|
802
|
+
let body;
|
|
803
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
804
|
+
return b.build();
|
|
805
|
+
}, "se_ListPackagesCommand");
|
|
806
|
+
var se_ListPackageVersionAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
807
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
808
|
+
const headers = {};
|
|
809
|
+
b.bp("/v1/package/version/assets");
|
|
810
|
+
const query = (0, import_smithy_client.map)({
|
|
811
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
812
|
+
[_do]: [, input[_dO]],
|
|
813
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
814
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
815
|
+
[_n]: [, input[_n]],
|
|
816
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
817
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)],
|
|
818
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
819
|
+
[_nt]: [, input[_nT]]
|
|
820
|
+
});
|
|
821
|
+
let body;
|
|
822
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
823
|
+
return b.build();
|
|
824
|
+
}, "se_ListPackageVersionAssetsCommand");
|
|
825
|
+
var se_ListPackageVersionDependenciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
826
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
827
|
+
const headers = {};
|
|
828
|
+
b.bp("/v1/package/version/dependencies");
|
|
829
|
+
const query = (0, import_smithy_client.map)({
|
|
830
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
831
|
+
[_do]: [, input[_dO]],
|
|
832
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
833
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
834
|
+
[_n]: [, input[_n]],
|
|
835
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
836
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)],
|
|
837
|
+
[_nt]: [, input[_nT]]
|
|
838
|
+
});
|
|
839
|
+
let body;
|
|
840
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
841
|
+
return b.build();
|
|
842
|
+
}, "se_ListPackageVersionDependenciesCommand");
|
|
843
|
+
var se_ListPackageVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
844
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
845
|
+
const headers = {};
|
|
846
|
+
b.bp("/v1/package/versions");
|
|
847
|
+
const query = (0, import_smithy_client.map)({
|
|
848
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
849
|
+
[_do]: [, input[_dO]],
|
|
850
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
851
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
852
|
+
[_n]: [, input[_n]],
|
|
853
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
854
|
+
[_s]: [, input[_s]],
|
|
855
|
+
[_sB]: [, input[_sB]],
|
|
856
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
857
|
+
[_nt]: [, input[_nT]],
|
|
858
|
+
[_oT]: [, input[_oT]]
|
|
859
|
+
});
|
|
860
|
+
let body;
|
|
861
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
862
|
+
return b.build();
|
|
863
|
+
}, "se_ListPackageVersionsCommand");
|
|
864
|
+
var se_ListRepositoriesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
865
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
866
|
+
const headers = {};
|
|
867
|
+
b.bp("/v1/repositories");
|
|
868
|
+
const query = (0, import_smithy_client.map)({
|
|
869
|
+
[_rp]: [, input[_rP]],
|
|
870
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
871
|
+
[_nt]: [, input[_nT]]
|
|
872
|
+
});
|
|
873
|
+
let body;
|
|
874
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
875
|
+
return b.build();
|
|
876
|
+
}, "se_ListRepositoriesCommand");
|
|
877
|
+
var se_ListRepositoriesInDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
878
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
879
|
+
const headers = {};
|
|
880
|
+
b.bp("/v1/domain/repositories");
|
|
881
|
+
const query = (0, import_smithy_client.map)({
|
|
882
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
883
|
+
[_do]: [, input[_dO]],
|
|
884
|
+
[_aa]: [, input[_aA]],
|
|
885
|
+
[_rp]: [, input[_rP]],
|
|
886
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
887
|
+
[_nt]: [, input[_nT]]
|
|
888
|
+
});
|
|
889
|
+
let body;
|
|
890
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
891
|
+
return b.build();
|
|
892
|
+
}, "se_ListRepositoriesInDomainCommand");
|
|
893
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
894
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
895
|
+
const headers = {};
|
|
896
|
+
b.bp("/v1/tags");
|
|
897
|
+
const query = (0, import_smithy_client.map)({
|
|
898
|
+
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
|
|
899
|
+
});
|
|
900
|
+
let body;
|
|
901
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
902
|
+
return b.build();
|
|
903
|
+
}, "se_ListTagsForResourceCommand");
|
|
904
|
+
var se_PublishPackageVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
905
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
906
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
907
|
+
"content-type": "application/octet-stream",
|
|
908
|
+
[_xacs]: input[_aSHA]
|
|
909
|
+
});
|
|
910
|
+
b.bp("/v1/package/version/publish");
|
|
911
|
+
const query = (0, import_smithy_client.map)({
|
|
912
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
913
|
+
[_do]: [, input[_dO]],
|
|
914
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
915
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
916
|
+
[_n]: [, input[_n]],
|
|
917
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)],
|
|
918
|
+
[_v]: [, (0, import_smithy_client.expectNonNull)(input[_pV], `packageVersion`)],
|
|
919
|
+
[_a]: [, (0, import_smithy_client.expectNonNull)(input[_aN], `assetName`)],
|
|
920
|
+
[_un]: [() => input.unfinished !== void 0, () => input[_un].toString()]
|
|
921
|
+
});
|
|
922
|
+
let body;
|
|
923
|
+
if (input.assetContent !== void 0) {
|
|
924
|
+
body = input.assetContent;
|
|
925
|
+
}
|
|
926
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
927
|
+
return b.build();
|
|
928
|
+
}, "se_PublishPackageVersionCommand");
|
|
929
|
+
var se_PutDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
930
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
931
|
+
const headers = {
|
|
932
|
+
"content-type": "application/json"
|
|
933
|
+
};
|
|
934
|
+
b.bp("/v1/domain/permissions/policy");
|
|
935
|
+
let body;
|
|
936
|
+
body = JSON.stringify(
|
|
937
|
+
(0, import_smithy_client.take)(input, {
|
|
938
|
+
domain: [],
|
|
939
|
+
domainOwner: [],
|
|
940
|
+
policyDocument: [],
|
|
941
|
+
policyRevision: []
|
|
942
|
+
})
|
|
943
|
+
);
|
|
944
|
+
b.m("PUT").h(headers).b(body);
|
|
945
|
+
return b.build();
|
|
946
|
+
}, "se_PutDomainPermissionsPolicyCommand");
|
|
947
|
+
var se_PutPackageOriginConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
948
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
949
|
+
const headers = {
|
|
950
|
+
"content-type": "application/json"
|
|
951
|
+
};
|
|
952
|
+
b.bp("/v1/package");
|
|
953
|
+
const query = (0, import_smithy_client.map)({
|
|
954
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
955
|
+
[_do]: [, input[_dO]],
|
|
956
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
957
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
958
|
+
[_n]: [, input[_n]],
|
|
959
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
960
|
+
});
|
|
961
|
+
let body;
|
|
962
|
+
body = JSON.stringify(
|
|
963
|
+
(0, import_smithy_client.take)(input, {
|
|
964
|
+
restrictions: (_) => (0, import_smithy_client._json)(_)
|
|
965
|
+
})
|
|
966
|
+
);
|
|
967
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
968
|
+
return b.build();
|
|
969
|
+
}, "se_PutPackageOriginConfigurationCommand");
|
|
970
|
+
var se_PutRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
971
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
972
|
+
const headers = {
|
|
973
|
+
"content-type": "application/json"
|
|
974
|
+
};
|
|
975
|
+
b.bp("/v1/repository/permissions/policy");
|
|
976
|
+
const query = (0, import_smithy_client.map)({
|
|
977
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
978
|
+
[_do]: [, input[_dO]],
|
|
979
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
980
|
+
});
|
|
981
|
+
let body;
|
|
982
|
+
body = JSON.stringify(
|
|
983
|
+
(0, import_smithy_client.take)(input, {
|
|
984
|
+
policyDocument: [],
|
|
985
|
+
policyRevision: []
|
|
986
|
+
})
|
|
987
|
+
);
|
|
988
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
989
|
+
return b.build();
|
|
990
|
+
}, "se_PutRepositoryPermissionsPolicyCommand");
|
|
991
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
992
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
993
|
+
const headers = {
|
|
994
|
+
"content-type": "application/json"
|
|
995
|
+
};
|
|
996
|
+
b.bp("/v1/tag");
|
|
997
|
+
const query = (0, import_smithy_client.map)({
|
|
998
|
+
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
|
|
999
|
+
});
|
|
1000
|
+
let body;
|
|
1001
|
+
body = JSON.stringify(
|
|
1002
|
+
(0, import_smithy_client.take)(input, {
|
|
1003
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1004
|
+
})
|
|
1005
|
+
);
|
|
1006
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1007
|
+
return b.build();
|
|
1008
|
+
}, "se_TagResourceCommand");
|
|
1009
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1010
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1011
|
+
const headers = {
|
|
1012
|
+
"content-type": "application/json"
|
|
1013
|
+
};
|
|
1014
|
+
b.bp("/v1/untag");
|
|
1015
|
+
const query = (0, import_smithy_client.map)({
|
|
1016
|
+
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
|
|
1017
|
+
});
|
|
1018
|
+
let body;
|
|
1019
|
+
body = JSON.stringify(
|
|
1020
|
+
(0, import_smithy_client.take)(input, {
|
|
1021
|
+
tagKeys: (_) => (0, import_smithy_client._json)(_)
|
|
1022
|
+
})
|
|
1023
|
+
);
|
|
1024
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1025
|
+
return b.build();
|
|
1026
|
+
}, "se_UntagResourceCommand");
|
|
1027
|
+
var se_UpdatePackageVersionsStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1028
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1029
|
+
const headers = {
|
|
1030
|
+
"content-type": "application/json"
|
|
1031
|
+
};
|
|
1032
|
+
b.bp("/v1/package/versions/update_status");
|
|
1033
|
+
const query = (0, import_smithy_client.map)({
|
|
1034
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
1035
|
+
[_do]: [, input[_dO]],
|
|
1036
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
|
|
1037
|
+
[_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
|
|
1038
|
+
[_n]: [, input[_n]],
|
|
1039
|
+
[_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `package`)]
|
|
1040
|
+
});
|
|
1041
|
+
let body;
|
|
1042
|
+
body = JSON.stringify(
|
|
1043
|
+
(0, import_smithy_client.take)(input, {
|
|
1044
|
+
expectedStatus: [],
|
|
1045
|
+
targetStatus: [],
|
|
1046
|
+
versionRevisions: (_) => (0, import_smithy_client._json)(_),
|
|
1047
|
+
versions: (_) => (0, import_smithy_client._json)(_)
|
|
1048
|
+
})
|
|
1049
|
+
);
|
|
1050
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1051
|
+
return b.build();
|
|
1052
|
+
}, "se_UpdatePackageVersionsStatusCommand");
|
|
1053
|
+
var se_UpdateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1054
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1055
|
+
const headers = {
|
|
1056
|
+
"content-type": "application/json"
|
|
1057
|
+
};
|
|
1058
|
+
b.bp("/v1/repository");
|
|
1059
|
+
const query = (0, import_smithy_client.map)({
|
|
1060
|
+
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
|
|
1061
|
+
[_do]: [, input[_dO]],
|
|
1062
|
+
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)]
|
|
1063
|
+
});
|
|
1064
|
+
let body;
|
|
1065
|
+
body = JSON.stringify(
|
|
1066
|
+
(0, import_smithy_client.take)(input, {
|
|
1067
|
+
description: [],
|
|
1068
|
+
upstreams: (_) => (0, import_smithy_client._json)(_)
|
|
1069
|
+
})
|
|
1070
|
+
);
|
|
1071
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1072
|
+
return b.build();
|
|
1073
|
+
}, "se_UpdateRepositoryCommand");
|
|
1074
|
+
var de_AssociateExternalConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1075
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
+
return de_AssociateExternalConnectionCommandError(output, context);
|
|
1077
|
+
}
|
|
1078
|
+
const contents = (0, import_smithy_client.map)({
|
|
1079
|
+
$metadata: deserializeMetadata(output)
|
|
1080
|
+
});
|
|
1081
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1082
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1083
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
1084
|
+
});
|
|
1085
|
+
Object.assign(contents, doc);
|
|
1086
|
+
return contents;
|
|
1087
|
+
}, "de_AssociateExternalConnectionCommand");
|
|
1088
|
+
var de_AssociateExternalConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
+
const parsedOutput = {
|
|
1090
|
+
...output,
|
|
1091
|
+
body: await parseErrorBody(output.body, context)
|
|
1092
|
+
};
|
|
1093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
+
switch (errorCode) {
|
|
1095
|
+
case "AccessDeniedException":
|
|
1096
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1097
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "ConflictException":
|
|
1099
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1100
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "InternalServerException":
|
|
1102
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1103
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
+
case "ResourceNotFoundException":
|
|
1105
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1106
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
+
case "ServiceQuotaExceededException":
|
|
1108
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1109
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1110
|
+
case "ThrottlingException":
|
|
1111
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1112
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1113
|
+
case "ValidationException":
|
|
1114
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1115
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1116
|
+
default:
|
|
1117
|
+
const parsedBody = parsedOutput.body;
|
|
1118
|
+
return throwDefaultError({
|
|
1119
|
+
output,
|
|
1120
|
+
parsedBody,
|
|
1121
|
+
errorCode
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
}, "de_AssociateExternalConnectionCommandError");
|
|
1125
|
+
var de_CopyPackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
+
return de_CopyPackageVersionsCommandError(output, context);
|
|
1128
|
+
}
|
|
1129
|
+
const contents = (0, import_smithy_client.map)({
|
|
1130
|
+
$metadata: deserializeMetadata(output)
|
|
1131
|
+
});
|
|
1132
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1133
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1134
|
+
failedVersions: import_smithy_client._json,
|
|
1135
|
+
successfulVersions: import_smithy_client._json
|
|
1136
|
+
});
|
|
1137
|
+
Object.assign(contents, doc);
|
|
1138
|
+
return contents;
|
|
1139
|
+
}, "de_CopyPackageVersionsCommand");
|
|
1140
|
+
var de_CopyPackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
|
+
const parsedOutput = {
|
|
1142
|
+
...output,
|
|
1143
|
+
body: await parseErrorBody(output.body, context)
|
|
1144
|
+
};
|
|
1145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
+
switch (errorCode) {
|
|
1147
|
+
case "AccessDeniedException":
|
|
1148
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1149
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ConflictException":
|
|
1151
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1152
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "InternalServerException":
|
|
1154
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1155
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ResourceNotFoundException":
|
|
1157
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "ServiceQuotaExceededException":
|
|
1160
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1161
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "ThrottlingException":
|
|
1163
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1164
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ValidationException":
|
|
1166
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1167
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1168
|
+
default:
|
|
1169
|
+
const parsedBody = parsedOutput.body;
|
|
1170
|
+
return throwDefaultError({
|
|
1171
|
+
output,
|
|
1172
|
+
parsedBody,
|
|
1173
|
+
errorCode
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
}, "de_CopyPackageVersionsCommandError");
|
|
1177
|
+
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
+
return de_CreateDomainCommandError(output, context);
|
|
1180
|
+
}
|
|
1181
|
+
const contents = (0, import_smithy_client.map)({
|
|
1182
|
+
$metadata: deserializeMetadata(output)
|
|
1183
|
+
});
|
|
1184
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1185
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1186
|
+
domain: (_) => de_DomainDescription(_, context)
|
|
1187
|
+
});
|
|
1188
|
+
Object.assign(contents, doc);
|
|
1189
|
+
return contents;
|
|
1190
|
+
}, "de_CreateDomainCommand");
|
|
1191
|
+
var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
+
const parsedOutput = {
|
|
1193
|
+
...output,
|
|
1194
|
+
body: await parseErrorBody(output.body, context)
|
|
1195
|
+
};
|
|
1196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
+
switch (errorCode) {
|
|
1198
|
+
case "AccessDeniedException":
|
|
1199
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1200
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1201
|
+
case "ConflictException":
|
|
1202
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1203
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1204
|
+
case "InternalServerException":
|
|
1205
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1206
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "ResourceNotFoundException":
|
|
1208
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1209
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
|
+
case "ServiceQuotaExceededException":
|
|
1211
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1212
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1213
|
+
case "ThrottlingException":
|
|
1214
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1215
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1216
|
+
case "ValidationException":
|
|
1217
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1218
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1219
|
+
default:
|
|
1220
|
+
const parsedBody = parsedOutput.body;
|
|
1221
|
+
return throwDefaultError({
|
|
1222
|
+
output,
|
|
1223
|
+
parsedBody,
|
|
1224
|
+
errorCode
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
}, "de_CreateDomainCommandError");
|
|
1228
|
+
var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1229
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
+
return de_CreateRepositoryCommandError(output, context);
|
|
1231
|
+
}
|
|
1232
|
+
const contents = (0, import_smithy_client.map)({
|
|
1233
|
+
$metadata: deserializeMetadata(output)
|
|
1234
|
+
});
|
|
1235
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1236
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1237
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
1238
|
+
});
|
|
1239
|
+
Object.assign(contents, doc);
|
|
1240
|
+
return contents;
|
|
1241
|
+
}, "de_CreateRepositoryCommand");
|
|
1242
|
+
var de_CreateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
|
+
const parsedOutput = {
|
|
1244
|
+
...output,
|
|
1245
|
+
body: await parseErrorBody(output.body, context)
|
|
1246
|
+
};
|
|
1247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
+
switch (errorCode) {
|
|
1249
|
+
case "AccessDeniedException":
|
|
1250
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1251
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
+
case "ConflictException":
|
|
1253
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1254
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "InternalServerException":
|
|
1256
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1257
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "ResourceNotFoundException":
|
|
1259
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1260
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1261
|
+
case "ServiceQuotaExceededException":
|
|
1262
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1263
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1264
|
+
case "ThrottlingException":
|
|
1265
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1266
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1267
|
+
case "ValidationException":
|
|
1268
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1269
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
|
+
default:
|
|
1271
|
+
const parsedBody = parsedOutput.body;
|
|
1272
|
+
return throwDefaultError({
|
|
1273
|
+
output,
|
|
1274
|
+
parsedBody,
|
|
1275
|
+
errorCode
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
}, "de_CreateRepositoryCommandError");
|
|
1279
|
+
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1280
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1281
|
+
return de_DeleteDomainCommandError(output, context);
|
|
1282
|
+
}
|
|
1283
|
+
const contents = (0, import_smithy_client.map)({
|
|
1284
|
+
$metadata: deserializeMetadata(output)
|
|
1285
|
+
});
|
|
1286
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1287
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1288
|
+
domain: (_) => de_DomainDescription(_, context)
|
|
1289
|
+
});
|
|
1290
|
+
Object.assign(contents, doc);
|
|
1291
|
+
return contents;
|
|
1292
|
+
}, "de_DeleteDomainCommand");
|
|
1293
|
+
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
|
+
const parsedOutput = {
|
|
1295
|
+
...output,
|
|
1296
|
+
body: await parseErrorBody(output.body, context)
|
|
1297
|
+
};
|
|
1298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
+
switch (errorCode) {
|
|
1300
|
+
case "AccessDeniedException":
|
|
1301
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1302
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "ConflictException":
|
|
1304
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1305
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "InternalServerException":
|
|
1307
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1308
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "ThrottlingException":
|
|
1310
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1311
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "ValidationException":
|
|
1313
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1314
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
+
default:
|
|
1316
|
+
const parsedBody = parsedOutput.body;
|
|
1317
|
+
return throwDefaultError({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
errorCode
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
}, "de_DeleteDomainCommandError");
|
|
1324
|
+
var de_DeleteDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
|
+
return de_DeleteDomainPermissionsPolicyCommandError(output, context);
|
|
1327
|
+
}
|
|
1328
|
+
const contents = (0, import_smithy_client.map)({
|
|
1329
|
+
$metadata: deserializeMetadata(output)
|
|
1330
|
+
});
|
|
1331
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1332
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1333
|
+
policy: import_smithy_client._json
|
|
1334
|
+
});
|
|
1335
|
+
Object.assign(contents, doc);
|
|
1336
|
+
return contents;
|
|
1337
|
+
}, "de_DeleteDomainPermissionsPolicyCommand");
|
|
1338
|
+
var de_DeleteDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
+
const parsedOutput = {
|
|
1340
|
+
...output,
|
|
1341
|
+
body: await parseErrorBody(output.body, context)
|
|
1342
|
+
};
|
|
1343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
switch (errorCode) {
|
|
1345
|
+
case "AccessDeniedException":
|
|
1346
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1347
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1348
|
+
case "ConflictException":
|
|
1349
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1350
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1351
|
+
case "InternalServerException":
|
|
1352
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1353
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "ResourceNotFoundException":
|
|
1355
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1356
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
+
case "ThrottlingException":
|
|
1358
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1359
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "ValidationException":
|
|
1361
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1362
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
|
+
default:
|
|
1364
|
+
const parsedBody = parsedOutput.body;
|
|
1365
|
+
return throwDefaultError({
|
|
1366
|
+
output,
|
|
1367
|
+
parsedBody,
|
|
1368
|
+
errorCode
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
}, "de_DeleteDomainPermissionsPolicyCommandError");
|
|
1372
|
+
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
+
return de_DeletePackageCommandError(output, context);
|
|
1375
|
+
}
|
|
1376
|
+
const contents = (0, import_smithy_client.map)({
|
|
1377
|
+
$metadata: deserializeMetadata(output)
|
|
1378
|
+
});
|
|
1379
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1380
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1381
|
+
deletedPackage: import_smithy_client._json
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1384
|
+
return contents;
|
|
1385
|
+
}, "de_DeletePackageCommand");
|
|
1386
|
+
var de_DeletePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
|
+
const parsedOutput = {
|
|
1388
|
+
...output,
|
|
1389
|
+
body: await parseErrorBody(output.body, context)
|
|
1390
|
+
};
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
+
switch (errorCode) {
|
|
1393
|
+
case "AccessDeniedException":
|
|
1394
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1395
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1396
|
+
case "ConflictException":
|
|
1397
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1398
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1399
|
+
case "InternalServerException":
|
|
1400
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
+
case "ResourceNotFoundException":
|
|
1403
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1404
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
+
case "ThrottlingException":
|
|
1406
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1407
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
+
case "ValidationException":
|
|
1409
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1410
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
+
default:
|
|
1412
|
+
const parsedBody = parsedOutput.body;
|
|
1413
|
+
return throwDefaultError({
|
|
1414
|
+
output,
|
|
1415
|
+
parsedBody,
|
|
1416
|
+
errorCode
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
}, "de_DeletePackageCommandError");
|
|
1420
|
+
var de_DeletePackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1422
|
+
return de_DeletePackageVersionsCommandError(output, context);
|
|
1423
|
+
}
|
|
1424
|
+
const contents = (0, import_smithy_client.map)({
|
|
1425
|
+
$metadata: deserializeMetadata(output)
|
|
1426
|
+
});
|
|
1427
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1428
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1429
|
+
failedVersions: import_smithy_client._json,
|
|
1430
|
+
successfulVersions: import_smithy_client._json
|
|
1431
|
+
});
|
|
1432
|
+
Object.assign(contents, doc);
|
|
1433
|
+
return contents;
|
|
1434
|
+
}, "de_DeletePackageVersionsCommand");
|
|
1435
|
+
var de_DeletePackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
|
+
const parsedOutput = {
|
|
1437
|
+
...output,
|
|
1438
|
+
body: await parseErrorBody(output.body, context)
|
|
1439
|
+
};
|
|
1440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
+
switch (errorCode) {
|
|
1442
|
+
case "AccessDeniedException":
|
|
1443
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1444
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1445
|
+
case "ConflictException":
|
|
1446
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1447
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1448
|
+
case "InternalServerException":
|
|
1449
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1450
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1451
|
+
case "ResourceNotFoundException":
|
|
1452
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1453
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
+
case "ThrottlingException":
|
|
1455
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1456
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1457
|
+
case "ValidationException":
|
|
1458
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1459
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
|
+
default:
|
|
1461
|
+
const parsedBody = parsedOutput.body;
|
|
1462
|
+
return throwDefaultError({
|
|
1463
|
+
output,
|
|
1464
|
+
parsedBody,
|
|
1465
|
+
errorCode
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
}, "de_DeletePackageVersionsCommandError");
|
|
1469
|
+
var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
+
return de_DeleteRepositoryCommandError(output, context);
|
|
1472
|
+
}
|
|
1473
|
+
const contents = (0, import_smithy_client.map)({
|
|
1474
|
+
$metadata: deserializeMetadata(output)
|
|
1475
|
+
});
|
|
1476
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1477
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1478
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
1479
|
+
});
|
|
1480
|
+
Object.assign(contents, doc);
|
|
1481
|
+
return contents;
|
|
1482
|
+
}, "de_DeleteRepositoryCommand");
|
|
1483
|
+
var de_DeleteRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
|
+
const parsedOutput = {
|
|
1485
|
+
...output,
|
|
1486
|
+
body: await parseErrorBody(output.body, context)
|
|
1487
|
+
};
|
|
1488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
+
switch (errorCode) {
|
|
1490
|
+
case "AccessDeniedException":
|
|
1491
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1492
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1493
|
+
case "ConflictException":
|
|
1494
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1495
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "InternalServerException":
|
|
1497
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1498
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "ResourceNotFoundException":
|
|
1500
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1501
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "ThrottlingException":
|
|
1503
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1504
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "ValidationException":
|
|
1506
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1507
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1508
|
+
default:
|
|
1509
|
+
const parsedBody = parsedOutput.body;
|
|
1510
|
+
return throwDefaultError({
|
|
1511
|
+
output,
|
|
1512
|
+
parsedBody,
|
|
1513
|
+
errorCode
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
}, "de_DeleteRepositoryCommandError");
|
|
1517
|
+
var de_DeleteRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
+
return de_DeleteRepositoryPermissionsPolicyCommandError(output, context);
|
|
1520
|
+
}
|
|
1521
|
+
const contents = (0, import_smithy_client.map)({
|
|
1522
|
+
$metadata: deserializeMetadata(output)
|
|
1523
|
+
});
|
|
1524
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1525
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1526
|
+
policy: import_smithy_client._json
|
|
1527
|
+
});
|
|
1528
|
+
Object.assign(contents, doc);
|
|
1529
|
+
return contents;
|
|
1530
|
+
}, "de_DeleteRepositoryPermissionsPolicyCommand");
|
|
1531
|
+
var de_DeleteRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1532
|
+
const parsedOutput = {
|
|
1533
|
+
...output,
|
|
1534
|
+
body: await parseErrorBody(output.body, context)
|
|
1535
|
+
};
|
|
1536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
switch (errorCode) {
|
|
1538
|
+
case "AccessDeniedException":
|
|
1539
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1540
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1541
|
+
case "ConflictException":
|
|
1542
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1543
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1544
|
+
case "InternalServerException":
|
|
1545
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1546
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
+
case "ResourceNotFoundException":
|
|
1548
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1549
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
+
case "ThrottlingException":
|
|
1551
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1552
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1553
|
+
case "ValidationException":
|
|
1554
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1555
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1556
|
+
default:
|
|
1557
|
+
const parsedBody = parsedOutput.body;
|
|
1558
|
+
return throwDefaultError({
|
|
1559
|
+
output,
|
|
1560
|
+
parsedBody,
|
|
1561
|
+
errorCode
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
}, "de_DeleteRepositoryPermissionsPolicyCommandError");
|
|
1565
|
+
var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1566
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
+
return de_DescribeDomainCommandError(output, context);
|
|
1568
|
+
}
|
|
1569
|
+
const contents = (0, import_smithy_client.map)({
|
|
1570
|
+
$metadata: deserializeMetadata(output)
|
|
1571
|
+
});
|
|
1572
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1573
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1574
|
+
domain: (_) => de_DomainDescription(_, context)
|
|
1575
|
+
});
|
|
1576
|
+
Object.assign(contents, doc);
|
|
1577
|
+
return contents;
|
|
1578
|
+
}, "de_DescribeDomainCommand");
|
|
1579
|
+
var de_DescribeDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
|
+
const parsedOutput = {
|
|
1581
|
+
...output,
|
|
1582
|
+
body: await parseErrorBody(output.body, context)
|
|
1583
|
+
};
|
|
1584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
+
switch (errorCode) {
|
|
1586
|
+
case "AccessDeniedException":
|
|
1587
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1588
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1589
|
+
case "InternalServerException":
|
|
1590
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "ResourceNotFoundException":
|
|
1593
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ThrottlingException":
|
|
1596
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1597
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
+
case "ValidationException":
|
|
1599
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
+
default:
|
|
1602
|
+
const parsedBody = parsedOutput.body;
|
|
1603
|
+
return throwDefaultError({
|
|
1604
|
+
output,
|
|
1605
|
+
parsedBody,
|
|
1606
|
+
errorCode
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
}, "de_DescribeDomainCommandError");
|
|
1610
|
+
var de_DescribePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
+
return de_DescribePackageCommandError(output, context);
|
|
1613
|
+
}
|
|
1614
|
+
const contents = (0, import_smithy_client.map)({
|
|
1615
|
+
$metadata: deserializeMetadata(output)
|
|
1616
|
+
});
|
|
1617
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1618
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1619
|
+
package: import_smithy_client._json
|
|
1620
|
+
});
|
|
1621
|
+
Object.assign(contents, doc);
|
|
1622
|
+
return contents;
|
|
1623
|
+
}, "de_DescribePackageCommand");
|
|
1624
|
+
var de_DescribePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
|
+
const parsedOutput = {
|
|
1626
|
+
...output,
|
|
1627
|
+
body: await parseErrorBody(output.body, context)
|
|
1628
|
+
};
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
+
switch (errorCode) {
|
|
1631
|
+
case "AccessDeniedException":
|
|
1632
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1633
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1634
|
+
case "InternalServerException":
|
|
1635
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1636
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "ResourceNotFoundException":
|
|
1638
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1639
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
+
case "ThrottlingException":
|
|
1641
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1642
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1643
|
+
case "ValidationException":
|
|
1644
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1645
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1646
|
+
default:
|
|
1647
|
+
const parsedBody = parsedOutput.body;
|
|
1648
|
+
return throwDefaultError({
|
|
1649
|
+
output,
|
|
1650
|
+
parsedBody,
|
|
1651
|
+
errorCode
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
}, "de_DescribePackageCommandError");
|
|
1655
|
+
var de_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
|
+
return de_DescribePackageVersionCommandError(output, context);
|
|
1658
|
+
}
|
|
1659
|
+
const contents = (0, import_smithy_client.map)({
|
|
1660
|
+
$metadata: deserializeMetadata(output)
|
|
1661
|
+
});
|
|
1662
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1663
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1664
|
+
packageVersion: (_) => de_PackageVersionDescription(_, context)
|
|
1665
|
+
});
|
|
1666
|
+
Object.assign(contents, doc);
|
|
1667
|
+
return contents;
|
|
1668
|
+
}, "de_DescribePackageVersionCommand");
|
|
1669
|
+
var de_DescribePackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
|
+
const parsedOutput = {
|
|
1671
|
+
...output,
|
|
1672
|
+
body: await parseErrorBody(output.body, context)
|
|
1673
|
+
};
|
|
1674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
switch (errorCode) {
|
|
1676
|
+
case "AccessDeniedException":
|
|
1677
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1678
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1679
|
+
case "ConflictException":
|
|
1680
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1681
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1682
|
+
case "InternalServerException":
|
|
1683
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1685
|
+
case "ResourceNotFoundException":
|
|
1686
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1687
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
+
case "ThrottlingException":
|
|
1689
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1690
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1691
|
+
case "ValidationException":
|
|
1692
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1693
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
|
+
default:
|
|
1695
|
+
const parsedBody = parsedOutput.body;
|
|
1696
|
+
return throwDefaultError({
|
|
1697
|
+
output,
|
|
1698
|
+
parsedBody,
|
|
1699
|
+
errorCode
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
}, "de_DescribePackageVersionCommandError");
|
|
1703
|
+
var de_DescribeRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1705
|
+
return de_DescribeRepositoryCommandError(output, context);
|
|
1706
|
+
}
|
|
1707
|
+
const contents = (0, import_smithy_client.map)({
|
|
1708
|
+
$metadata: deserializeMetadata(output)
|
|
1709
|
+
});
|
|
1710
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1711
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1712
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
1713
|
+
});
|
|
1714
|
+
Object.assign(contents, doc);
|
|
1715
|
+
return contents;
|
|
1716
|
+
}, "de_DescribeRepositoryCommand");
|
|
1717
|
+
var de_DescribeRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1718
|
+
const parsedOutput = {
|
|
1719
|
+
...output,
|
|
1720
|
+
body: await parseErrorBody(output.body, context)
|
|
1721
|
+
};
|
|
1722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
+
switch (errorCode) {
|
|
1724
|
+
case "AccessDeniedException":
|
|
1725
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1726
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1727
|
+
case "InternalServerException":
|
|
1728
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1729
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1730
|
+
case "ResourceNotFoundException":
|
|
1731
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1732
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
+
case "ThrottlingException":
|
|
1734
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1735
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1736
|
+
case "ValidationException":
|
|
1737
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1738
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1739
|
+
default:
|
|
1740
|
+
const parsedBody = parsedOutput.body;
|
|
1741
|
+
return throwDefaultError({
|
|
1742
|
+
output,
|
|
1743
|
+
parsedBody,
|
|
1744
|
+
errorCode
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
}, "de_DescribeRepositoryCommandError");
|
|
1748
|
+
var de_DisassociateExternalConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
+
return de_DisassociateExternalConnectionCommandError(output, context);
|
|
1751
|
+
}
|
|
1752
|
+
const contents = (0, import_smithy_client.map)({
|
|
1753
|
+
$metadata: deserializeMetadata(output)
|
|
1754
|
+
});
|
|
1755
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1756
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1757
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
1758
|
+
});
|
|
1759
|
+
Object.assign(contents, doc);
|
|
1760
|
+
return contents;
|
|
1761
|
+
}, "de_DisassociateExternalConnectionCommand");
|
|
1762
|
+
var de_DisassociateExternalConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1763
|
+
const parsedOutput = {
|
|
1764
|
+
...output,
|
|
1765
|
+
body: await parseErrorBody(output.body, context)
|
|
1766
|
+
};
|
|
1767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
+
switch (errorCode) {
|
|
1769
|
+
case "AccessDeniedException":
|
|
1770
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1772
|
+
case "ConflictException":
|
|
1773
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1774
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1775
|
+
case "InternalServerException":
|
|
1776
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1777
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1778
|
+
case "ResourceNotFoundException":
|
|
1779
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1780
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1781
|
+
case "ServiceQuotaExceededException":
|
|
1782
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
1783
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1784
|
+
case "ThrottlingException":
|
|
1785
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1786
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1787
|
+
case "ValidationException":
|
|
1788
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1789
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1790
|
+
default:
|
|
1791
|
+
const parsedBody = parsedOutput.body;
|
|
1792
|
+
return throwDefaultError({
|
|
1793
|
+
output,
|
|
1794
|
+
parsedBody,
|
|
1795
|
+
errorCode
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
}, "de_DisassociateExternalConnectionCommandError");
|
|
1799
|
+
var de_DisposePackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
+
return de_DisposePackageVersionsCommandError(output, context);
|
|
1802
|
+
}
|
|
1803
|
+
const contents = (0, import_smithy_client.map)({
|
|
1804
|
+
$metadata: deserializeMetadata(output)
|
|
1805
|
+
});
|
|
1806
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1807
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1808
|
+
failedVersions: import_smithy_client._json,
|
|
1809
|
+
successfulVersions: import_smithy_client._json
|
|
1810
|
+
});
|
|
1811
|
+
Object.assign(contents, doc);
|
|
1812
|
+
return contents;
|
|
1813
|
+
}, "de_DisposePackageVersionsCommand");
|
|
1814
|
+
var de_DisposePackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1815
|
+
const parsedOutput = {
|
|
1816
|
+
...output,
|
|
1817
|
+
body: await parseErrorBody(output.body, context)
|
|
1818
|
+
};
|
|
1819
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
+
switch (errorCode) {
|
|
1821
|
+
case "AccessDeniedException":
|
|
1822
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1823
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1824
|
+
case "ConflictException":
|
|
1825
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1826
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1827
|
+
case "InternalServerException":
|
|
1828
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1829
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1830
|
+
case "ResourceNotFoundException":
|
|
1831
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
|
+
case "ThrottlingException":
|
|
1834
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1835
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1836
|
+
case "ValidationException":
|
|
1837
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1838
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1839
|
+
default:
|
|
1840
|
+
const parsedBody = parsedOutput.body;
|
|
1841
|
+
return throwDefaultError({
|
|
1842
|
+
output,
|
|
1843
|
+
parsedBody,
|
|
1844
|
+
errorCode
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
}, "de_DisposePackageVersionsCommandError");
|
|
1848
|
+
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1849
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
+
return de_GetAuthorizationTokenCommandError(output, context);
|
|
1851
|
+
}
|
|
1852
|
+
const contents = (0, import_smithy_client.map)({
|
|
1853
|
+
$metadata: deserializeMetadata(output)
|
|
1854
|
+
});
|
|
1855
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1856
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1857
|
+
authorizationToken: import_smithy_client.expectString,
|
|
1858
|
+
expiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1859
|
+
});
|
|
1860
|
+
Object.assign(contents, doc);
|
|
1861
|
+
return contents;
|
|
1862
|
+
}, "de_GetAuthorizationTokenCommand");
|
|
1863
|
+
var de_GetAuthorizationTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1864
|
+
const parsedOutput = {
|
|
1865
|
+
...output,
|
|
1866
|
+
body: await parseErrorBody(output.body, context)
|
|
1867
|
+
};
|
|
1868
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
switch (errorCode) {
|
|
1870
|
+
case "AccessDeniedException":
|
|
1871
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1872
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1873
|
+
case "InternalServerException":
|
|
1874
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1875
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1876
|
+
case "ResourceNotFoundException":
|
|
1877
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
+
case "ThrottlingException":
|
|
1880
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1881
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1882
|
+
case "ValidationException":
|
|
1883
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1884
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1885
|
+
default:
|
|
1886
|
+
const parsedBody = parsedOutput.body;
|
|
1887
|
+
return throwDefaultError({
|
|
1888
|
+
output,
|
|
1889
|
+
parsedBody,
|
|
1890
|
+
errorCode
|
|
1891
|
+
});
|
|
1892
|
+
}
|
|
1893
|
+
}, "de_GetAuthorizationTokenCommandError");
|
|
1894
|
+
var de_GetDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1895
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
+
return de_GetDomainPermissionsPolicyCommandError(output, context);
|
|
1897
|
+
}
|
|
1898
|
+
const contents = (0, import_smithy_client.map)({
|
|
1899
|
+
$metadata: deserializeMetadata(output)
|
|
1900
|
+
});
|
|
1901
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1902
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1903
|
+
policy: import_smithy_client._json
|
|
1904
|
+
});
|
|
1905
|
+
Object.assign(contents, doc);
|
|
1906
|
+
return contents;
|
|
1907
|
+
}, "de_GetDomainPermissionsPolicyCommand");
|
|
1908
|
+
var de_GetDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1909
|
+
const parsedOutput = {
|
|
1910
|
+
...output,
|
|
1911
|
+
body: await parseErrorBody(output.body, context)
|
|
1912
|
+
};
|
|
1913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
+
switch (errorCode) {
|
|
1915
|
+
case "AccessDeniedException":
|
|
1916
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1917
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "InternalServerException":
|
|
1919
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1920
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1921
|
+
case "ResourceNotFoundException":
|
|
1922
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1923
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1924
|
+
case "ThrottlingException":
|
|
1925
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1926
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1927
|
+
case "ValidationException":
|
|
1928
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1929
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1930
|
+
default:
|
|
1931
|
+
const parsedBody = parsedOutput.body;
|
|
1932
|
+
return throwDefaultError({
|
|
1933
|
+
output,
|
|
1934
|
+
parsedBody,
|
|
1935
|
+
errorCode
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
}, "de_GetDomainPermissionsPolicyCommandError");
|
|
1939
|
+
var de_GetPackageVersionAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1940
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1941
|
+
return de_GetPackageVersionAssetCommandError(output, context);
|
|
1942
|
+
}
|
|
1943
|
+
const contents = (0, import_smithy_client.map)({
|
|
1944
|
+
$metadata: deserializeMetadata(output),
|
|
1945
|
+
[_aN]: [, output.headers[_xa]],
|
|
1946
|
+
[_pV]: [, output.headers[_xp]],
|
|
1947
|
+
[_pVR]: [, output.headers[_xp_]]
|
|
1948
|
+
});
|
|
1949
|
+
const data = output.body;
|
|
1950
|
+
context.sdkStreamMixin(data);
|
|
1951
|
+
contents.asset = data;
|
|
1952
|
+
return contents;
|
|
1953
|
+
}, "de_GetPackageVersionAssetCommand");
|
|
1954
|
+
var de_GetPackageVersionAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
+
const parsedOutput = {
|
|
1956
|
+
...output,
|
|
1957
|
+
body: await parseErrorBody(output.body, context)
|
|
1958
|
+
};
|
|
1959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
+
switch (errorCode) {
|
|
1961
|
+
case "AccessDeniedException":
|
|
1962
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1963
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1964
|
+
case "ConflictException":
|
|
1965
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1966
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1967
|
+
case "InternalServerException":
|
|
1968
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1969
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1970
|
+
case "ResourceNotFoundException":
|
|
1971
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1972
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
+
case "ThrottlingException":
|
|
1974
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1975
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1976
|
+
case "ValidationException":
|
|
1977
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1978
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1979
|
+
default:
|
|
1980
|
+
const parsedBody = parsedOutput.body;
|
|
1981
|
+
return throwDefaultError({
|
|
1982
|
+
output,
|
|
1983
|
+
parsedBody,
|
|
1984
|
+
errorCode
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
}, "de_GetPackageVersionAssetCommandError");
|
|
1988
|
+
var de_GetPackageVersionReadmeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1990
|
+
return de_GetPackageVersionReadmeCommandError(output, context);
|
|
1991
|
+
}
|
|
1992
|
+
const contents = (0, import_smithy_client.map)({
|
|
1993
|
+
$metadata: deserializeMetadata(output)
|
|
1994
|
+
});
|
|
1995
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1996
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1997
|
+
format: import_smithy_client.expectString,
|
|
1998
|
+
namespace: import_smithy_client.expectString,
|
|
1999
|
+
package: import_smithy_client.expectString,
|
|
2000
|
+
readme: import_smithy_client.expectString,
|
|
2001
|
+
version: import_smithy_client.expectString,
|
|
2002
|
+
versionRevision: import_smithy_client.expectString
|
|
2003
|
+
});
|
|
2004
|
+
Object.assign(contents, doc);
|
|
2005
|
+
return contents;
|
|
2006
|
+
}, "de_GetPackageVersionReadmeCommand");
|
|
2007
|
+
var de_GetPackageVersionReadmeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2008
|
+
const parsedOutput = {
|
|
2009
|
+
...output,
|
|
2010
|
+
body: await parseErrorBody(output.body, context)
|
|
2011
|
+
};
|
|
2012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
+
switch (errorCode) {
|
|
2014
|
+
case "AccessDeniedException":
|
|
2015
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2016
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2017
|
+
case "InternalServerException":
|
|
2018
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2019
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2020
|
+
case "ResourceNotFoundException":
|
|
2021
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2022
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
+
case "ThrottlingException":
|
|
2024
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2025
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2026
|
+
case "ValidationException":
|
|
2027
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2028
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2029
|
+
default:
|
|
2030
|
+
const parsedBody = parsedOutput.body;
|
|
2031
|
+
return throwDefaultError({
|
|
2032
|
+
output,
|
|
2033
|
+
parsedBody,
|
|
2034
|
+
errorCode
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
}, "de_GetPackageVersionReadmeCommandError");
|
|
2038
|
+
var de_GetRepositoryEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2039
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2040
|
+
return de_GetRepositoryEndpointCommandError(output, context);
|
|
2041
|
+
}
|
|
2042
|
+
const contents = (0, import_smithy_client.map)({
|
|
2043
|
+
$metadata: deserializeMetadata(output)
|
|
2044
|
+
});
|
|
2045
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2046
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2047
|
+
repositoryEndpoint: import_smithy_client.expectString
|
|
2048
|
+
});
|
|
2049
|
+
Object.assign(contents, doc);
|
|
2050
|
+
return contents;
|
|
2051
|
+
}, "de_GetRepositoryEndpointCommand");
|
|
2052
|
+
var de_GetRepositoryEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2053
|
+
const parsedOutput = {
|
|
2054
|
+
...output,
|
|
2055
|
+
body: await parseErrorBody(output.body, context)
|
|
2056
|
+
};
|
|
2057
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
|
+
switch (errorCode) {
|
|
2059
|
+
case "AccessDeniedException":
|
|
2060
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2061
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2062
|
+
case "InternalServerException":
|
|
2063
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2064
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2065
|
+
case "ResourceNotFoundException":
|
|
2066
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2067
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2068
|
+
case "ThrottlingException":
|
|
2069
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2070
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2071
|
+
case "ValidationException":
|
|
2072
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2073
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2074
|
+
default:
|
|
2075
|
+
const parsedBody = parsedOutput.body;
|
|
2076
|
+
return throwDefaultError({
|
|
2077
|
+
output,
|
|
2078
|
+
parsedBody,
|
|
2079
|
+
errorCode
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
}, "de_GetRepositoryEndpointCommandError");
|
|
2083
|
+
var de_GetRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
+
return de_GetRepositoryPermissionsPolicyCommandError(output, context);
|
|
2086
|
+
}
|
|
2087
|
+
const contents = (0, import_smithy_client.map)({
|
|
2088
|
+
$metadata: deserializeMetadata(output)
|
|
2089
|
+
});
|
|
2090
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2091
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2092
|
+
policy: import_smithy_client._json
|
|
2093
|
+
});
|
|
2094
|
+
Object.assign(contents, doc);
|
|
2095
|
+
return contents;
|
|
2096
|
+
}, "de_GetRepositoryPermissionsPolicyCommand");
|
|
2097
|
+
var de_GetRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
+
const parsedOutput = {
|
|
2099
|
+
...output,
|
|
2100
|
+
body: await parseErrorBody(output.body, context)
|
|
2101
|
+
};
|
|
2102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
|
+
switch (errorCode) {
|
|
2104
|
+
case "AccessDeniedException":
|
|
2105
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2106
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2107
|
+
case "InternalServerException":
|
|
2108
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2109
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2110
|
+
case "ResourceNotFoundException":
|
|
2111
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2112
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
+
case "ThrottlingException":
|
|
2114
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2115
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2116
|
+
case "ValidationException":
|
|
2117
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2118
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2119
|
+
default:
|
|
2120
|
+
const parsedBody = parsedOutput.body;
|
|
2121
|
+
return throwDefaultError({
|
|
2122
|
+
output,
|
|
2123
|
+
parsedBody,
|
|
2124
|
+
errorCode
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
}, "de_GetRepositoryPermissionsPolicyCommandError");
|
|
2128
|
+
var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
|
+
return de_ListDomainsCommandError(output, context);
|
|
2131
|
+
}
|
|
2132
|
+
const contents = (0, import_smithy_client.map)({
|
|
2133
|
+
$metadata: deserializeMetadata(output)
|
|
2134
|
+
});
|
|
2135
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2136
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2137
|
+
domains: (_) => de_DomainSummaryList(_, context),
|
|
2138
|
+
nextToken: import_smithy_client.expectString
|
|
2139
|
+
});
|
|
2140
|
+
Object.assign(contents, doc);
|
|
2141
|
+
return contents;
|
|
2142
|
+
}, "de_ListDomainsCommand");
|
|
2143
|
+
var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
|
+
const parsedOutput = {
|
|
2145
|
+
...output,
|
|
2146
|
+
body: await parseErrorBody(output.body, context)
|
|
2147
|
+
};
|
|
2148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
+
switch (errorCode) {
|
|
2150
|
+
case "AccessDeniedException":
|
|
2151
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2152
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2153
|
+
case "InternalServerException":
|
|
2154
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2155
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2156
|
+
case "ThrottlingException":
|
|
2157
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2158
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2159
|
+
case "ValidationException":
|
|
2160
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2161
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2162
|
+
default:
|
|
2163
|
+
const parsedBody = parsedOutput.body;
|
|
2164
|
+
return throwDefaultError({
|
|
2165
|
+
output,
|
|
2166
|
+
parsedBody,
|
|
2167
|
+
errorCode
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
}, "de_ListDomainsCommandError");
|
|
2171
|
+
var de_ListPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2172
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
|
+
return de_ListPackagesCommandError(output, context);
|
|
2174
|
+
}
|
|
2175
|
+
const contents = (0, import_smithy_client.map)({
|
|
2176
|
+
$metadata: deserializeMetadata(output)
|
|
2177
|
+
});
|
|
2178
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2179
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2180
|
+
nextToken: import_smithy_client.expectString,
|
|
2181
|
+
packages: import_smithy_client._json
|
|
2182
|
+
});
|
|
2183
|
+
Object.assign(contents, doc);
|
|
2184
|
+
return contents;
|
|
2185
|
+
}, "de_ListPackagesCommand");
|
|
2186
|
+
var de_ListPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2187
|
+
const parsedOutput = {
|
|
2188
|
+
...output,
|
|
2189
|
+
body: await parseErrorBody(output.body, context)
|
|
2190
|
+
};
|
|
2191
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
+
switch (errorCode) {
|
|
2193
|
+
case "AccessDeniedException":
|
|
2194
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2195
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2196
|
+
case "InternalServerException":
|
|
2197
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2198
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2199
|
+
case "ResourceNotFoundException":
|
|
2200
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2201
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2202
|
+
case "ThrottlingException":
|
|
2203
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2204
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2205
|
+
case "ValidationException":
|
|
2206
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2207
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
|
+
default:
|
|
2209
|
+
const parsedBody = parsedOutput.body;
|
|
2210
|
+
return throwDefaultError({
|
|
2211
|
+
output,
|
|
2212
|
+
parsedBody,
|
|
2213
|
+
errorCode
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
}, "de_ListPackagesCommandError");
|
|
2217
|
+
var de_ListPackageVersionAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
+
return de_ListPackageVersionAssetsCommandError(output, context);
|
|
2220
|
+
}
|
|
2221
|
+
const contents = (0, import_smithy_client.map)({
|
|
2222
|
+
$metadata: deserializeMetadata(output)
|
|
2223
|
+
});
|
|
2224
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2225
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2226
|
+
assets: import_smithy_client._json,
|
|
2227
|
+
format: import_smithy_client.expectString,
|
|
2228
|
+
namespace: import_smithy_client.expectString,
|
|
2229
|
+
nextToken: import_smithy_client.expectString,
|
|
2230
|
+
package: import_smithy_client.expectString,
|
|
2231
|
+
version: import_smithy_client.expectString,
|
|
2232
|
+
versionRevision: import_smithy_client.expectString
|
|
2233
|
+
});
|
|
2234
|
+
Object.assign(contents, doc);
|
|
2235
|
+
return contents;
|
|
2236
|
+
}, "de_ListPackageVersionAssetsCommand");
|
|
2237
|
+
var de_ListPackageVersionAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2238
|
+
const parsedOutput = {
|
|
2239
|
+
...output,
|
|
2240
|
+
body: await parseErrorBody(output.body, context)
|
|
2241
|
+
};
|
|
2242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
+
switch (errorCode) {
|
|
2244
|
+
case "AccessDeniedException":
|
|
2245
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2246
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2247
|
+
case "InternalServerException":
|
|
2248
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2249
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2250
|
+
case "ResourceNotFoundException":
|
|
2251
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2252
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2253
|
+
case "ThrottlingException":
|
|
2254
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2255
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2256
|
+
case "ValidationException":
|
|
2257
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2258
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2259
|
+
default:
|
|
2260
|
+
const parsedBody = parsedOutput.body;
|
|
2261
|
+
return throwDefaultError({
|
|
2262
|
+
output,
|
|
2263
|
+
parsedBody,
|
|
2264
|
+
errorCode
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
}, "de_ListPackageVersionAssetsCommandError");
|
|
2268
|
+
var de_ListPackageVersionDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2269
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2270
|
+
return de_ListPackageVersionDependenciesCommandError(output, context);
|
|
2271
|
+
}
|
|
2272
|
+
const contents = (0, import_smithy_client.map)({
|
|
2273
|
+
$metadata: deserializeMetadata(output)
|
|
2274
|
+
});
|
|
2275
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2276
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2277
|
+
dependencies: import_smithy_client._json,
|
|
2278
|
+
format: import_smithy_client.expectString,
|
|
2279
|
+
namespace: import_smithy_client.expectString,
|
|
2280
|
+
nextToken: import_smithy_client.expectString,
|
|
2281
|
+
package: import_smithy_client.expectString,
|
|
2282
|
+
version: import_smithy_client.expectString,
|
|
2283
|
+
versionRevision: import_smithy_client.expectString
|
|
2284
|
+
});
|
|
2285
|
+
Object.assign(contents, doc);
|
|
2286
|
+
return contents;
|
|
2287
|
+
}, "de_ListPackageVersionDependenciesCommand");
|
|
2288
|
+
var de_ListPackageVersionDependenciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
|
+
const parsedOutput = {
|
|
2290
|
+
...output,
|
|
2291
|
+
body: await parseErrorBody(output.body, context)
|
|
2292
|
+
};
|
|
2293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
|
+
switch (errorCode) {
|
|
2295
|
+
case "AccessDeniedException":
|
|
2296
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2297
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2298
|
+
case "InternalServerException":
|
|
2299
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2300
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2301
|
+
case "ResourceNotFoundException":
|
|
2302
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2303
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2304
|
+
case "ThrottlingException":
|
|
2305
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2306
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2307
|
+
case "ValidationException":
|
|
2308
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2309
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2310
|
+
default:
|
|
2311
|
+
const parsedBody = parsedOutput.body;
|
|
2312
|
+
return throwDefaultError({
|
|
2313
|
+
output,
|
|
2314
|
+
parsedBody,
|
|
2315
|
+
errorCode
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
}, "de_ListPackageVersionDependenciesCommandError");
|
|
2319
|
+
var de_ListPackageVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2320
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
|
+
return de_ListPackageVersionsCommandError(output, context);
|
|
2322
|
+
}
|
|
2323
|
+
const contents = (0, import_smithy_client.map)({
|
|
2324
|
+
$metadata: deserializeMetadata(output)
|
|
2325
|
+
});
|
|
2326
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2327
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2328
|
+
defaultDisplayVersion: import_smithy_client.expectString,
|
|
2329
|
+
format: import_smithy_client.expectString,
|
|
2330
|
+
namespace: import_smithy_client.expectString,
|
|
2331
|
+
nextToken: import_smithy_client.expectString,
|
|
2332
|
+
package: import_smithy_client.expectString,
|
|
2333
|
+
versions: import_smithy_client._json
|
|
2334
|
+
});
|
|
2335
|
+
Object.assign(contents, doc);
|
|
2336
|
+
return contents;
|
|
2337
|
+
}, "de_ListPackageVersionsCommand");
|
|
2338
|
+
var de_ListPackageVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
|
+
const parsedOutput = {
|
|
2340
|
+
...output,
|
|
2341
|
+
body: await parseErrorBody(output.body, context)
|
|
2342
|
+
};
|
|
2343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
|
+
switch (errorCode) {
|
|
2345
|
+
case "AccessDeniedException":
|
|
2346
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2347
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2348
|
+
case "InternalServerException":
|
|
2349
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2350
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2351
|
+
case "ResourceNotFoundException":
|
|
2352
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2353
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2354
|
+
case "ThrottlingException":
|
|
2355
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2356
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2357
|
+
case "ValidationException":
|
|
2358
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2359
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2360
|
+
default:
|
|
2361
|
+
const parsedBody = parsedOutput.body;
|
|
2362
|
+
return throwDefaultError({
|
|
2363
|
+
output,
|
|
2364
|
+
parsedBody,
|
|
2365
|
+
errorCode
|
|
2366
|
+
});
|
|
2367
|
+
}
|
|
2368
|
+
}, "de_ListPackageVersionsCommandError");
|
|
2369
|
+
var de_ListRepositoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2371
|
+
return de_ListRepositoriesCommandError(output, context);
|
|
2372
|
+
}
|
|
2373
|
+
const contents = (0, import_smithy_client.map)({
|
|
2374
|
+
$metadata: deserializeMetadata(output)
|
|
2375
|
+
});
|
|
2376
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2377
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2378
|
+
nextToken: import_smithy_client.expectString,
|
|
2379
|
+
repositories: (_) => de_RepositorySummaryList(_, context)
|
|
2380
|
+
});
|
|
2381
|
+
Object.assign(contents, doc);
|
|
2382
|
+
return contents;
|
|
2383
|
+
}, "de_ListRepositoriesCommand");
|
|
2384
|
+
var de_ListRepositoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
|
+
const parsedOutput = {
|
|
2386
|
+
...output,
|
|
2387
|
+
body: await parseErrorBody(output.body, context)
|
|
2388
|
+
};
|
|
2389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
+
switch (errorCode) {
|
|
2391
|
+
case "AccessDeniedException":
|
|
2392
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2393
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2394
|
+
case "InternalServerException":
|
|
2395
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2396
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2397
|
+
case "ThrottlingException":
|
|
2398
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2399
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2400
|
+
case "ValidationException":
|
|
2401
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2402
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2403
|
+
default:
|
|
2404
|
+
const parsedBody = parsedOutput.body;
|
|
2405
|
+
return throwDefaultError({
|
|
2406
|
+
output,
|
|
2407
|
+
parsedBody,
|
|
2408
|
+
errorCode
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2411
|
+
}, "de_ListRepositoriesCommandError");
|
|
2412
|
+
var de_ListRepositoriesInDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2413
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2414
|
+
return de_ListRepositoriesInDomainCommandError(output, context);
|
|
2415
|
+
}
|
|
2416
|
+
const contents = (0, import_smithy_client.map)({
|
|
2417
|
+
$metadata: deserializeMetadata(output)
|
|
2418
|
+
});
|
|
2419
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2420
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2421
|
+
nextToken: import_smithy_client.expectString,
|
|
2422
|
+
repositories: (_) => de_RepositorySummaryList(_, context)
|
|
2423
|
+
});
|
|
2424
|
+
Object.assign(contents, doc);
|
|
2425
|
+
return contents;
|
|
2426
|
+
}, "de_ListRepositoriesInDomainCommand");
|
|
2427
|
+
var de_ListRepositoriesInDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
|
+
const parsedOutput = {
|
|
2429
|
+
...output,
|
|
2430
|
+
body: await parseErrorBody(output.body, context)
|
|
2431
|
+
};
|
|
2432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
+
switch (errorCode) {
|
|
2434
|
+
case "AccessDeniedException":
|
|
2435
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2436
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2437
|
+
case "InternalServerException":
|
|
2438
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2439
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2440
|
+
case "ResourceNotFoundException":
|
|
2441
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2442
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
|
+
case "ThrottlingException":
|
|
2444
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2445
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2446
|
+
case "ValidationException":
|
|
2447
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2448
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2449
|
+
default:
|
|
2450
|
+
const parsedBody = parsedOutput.body;
|
|
2451
|
+
return throwDefaultError({
|
|
2452
|
+
output,
|
|
2453
|
+
parsedBody,
|
|
2454
|
+
errorCode
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
}, "de_ListRepositoriesInDomainCommandError");
|
|
2458
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2459
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2460
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2461
|
+
}
|
|
2462
|
+
const contents = (0, import_smithy_client.map)({
|
|
2463
|
+
$metadata: deserializeMetadata(output)
|
|
2464
|
+
});
|
|
2465
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2466
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2467
|
+
tags: import_smithy_client._json
|
|
2468
|
+
});
|
|
2469
|
+
Object.assign(contents, doc);
|
|
2470
|
+
return contents;
|
|
2471
|
+
}, "de_ListTagsForResourceCommand");
|
|
2472
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
|
+
const parsedOutput = {
|
|
2474
|
+
...output,
|
|
2475
|
+
body: await parseErrorBody(output.body, context)
|
|
2476
|
+
};
|
|
2477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
+
switch (errorCode) {
|
|
2479
|
+
case "AccessDeniedException":
|
|
2480
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2481
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2482
|
+
case "ResourceNotFoundException":
|
|
2483
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2484
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2485
|
+
case "ThrottlingException":
|
|
2486
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2487
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2488
|
+
case "ValidationException":
|
|
2489
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2490
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2491
|
+
default:
|
|
2492
|
+
const parsedBody = parsedOutput.body;
|
|
2493
|
+
return throwDefaultError({
|
|
2494
|
+
output,
|
|
2495
|
+
parsedBody,
|
|
2496
|
+
errorCode
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
}, "de_ListTagsForResourceCommandError");
|
|
2500
|
+
var de_PublishPackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
|
+
return de_PublishPackageVersionCommandError(output, context);
|
|
2503
|
+
}
|
|
2504
|
+
const contents = (0, import_smithy_client.map)({
|
|
2505
|
+
$metadata: deserializeMetadata(output)
|
|
2506
|
+
});
|
|
2507
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2508
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2509
|
+
asset: import_smithy_client._json,
|
|
2510
|
+
format: import_smithy_client.expectString,
|
|
2511
|
+
namespace: import_smithy_client.expectString,
|
|
2512
|
+
package: import_smithy_client.expectString,
|
|
2513
|
+
status: import_smithy_client.expectString,
|
|
2514
|
+
version: import_smithy_client.expectString,
|
|
2515
|
+
versionRevision: import_smithy_client.expectString
|
|
2516
|
+
});
|
|
2517
|
+
Object.assign(contents, doc);
|
|
2518
|
+
return contents;
|
|
2519
|
+
}, "de_PublishPackageVersionCommand");
|
|
2520
|
+
var de_PublishPackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2521
|
+
const parsedOutput = {
|
|
2522
|
+
...output,
|
|
2523
|
+
body: await parseErrorBody(output.body, context)
|
|
2524
|
+
};
|
|
2525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
+
switch (errorCode) {
|
|
2527
|
+
case "AccessDeniedException":
|
|
2528
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2529
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2530
|
+
case "ConflictException":
|
|
2531
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2532
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2533
|
+
case "InternalServerException":
|
|
2534
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2536
|
+
case "ResourceNotFoundException":
|
|
2537
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2538
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2539
|
+
case "ServiceQuotaExceededException":
|
|
2540
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2541
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2542
|
+
case "ThrottlingException":
|
|
2543
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2544
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2545
|
+
case "ValidationException":
|
|
2546
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2547
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2548
|
+
default:
|
|
2549
|
+
const parsedBody = parsedOutput.body;
|
|
2550
|
+
return throwDefaultError({
|
|
2551
|
+
output,
|
|
2552
|
+
parsedBody,
|
|
2553
|
+
errorCode
|
|
2554
|
+
});
|
|
2555
|
+
}
|
|
2556
|
+
}, "de_PublishPackageVersionCommandError");
|
|
2557
|
+
var de_PutDomainPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2559
|
+
return de_PutDomainPermissionsPolicyCommandError(output, context);
|
|
2560
|
+
}
|
|
2561
|
+
const contents = (0, import_smithy_client.map)({
|
|
2562
|
+
$metadata: deserializeMetadata(output)
|
|
2563
|
+
});
|
|
2564
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2565
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2566
|
+
policy: import_smithy_client._json
|
|
2567
|
+
});
|
|
2568
|
+
Object.assign(contents, doc);
|
|
2569
|
+
return contents;
|
|
2570
|
+
}, "de_PutDomainPermissionsPolicyCommand");
|
|
2571
|
+
var de_PutDomainPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2572
|
+
const parsedOutput = {
|
|
2573
|
+
...output,
|
|
2574
|
+
body: await parseErrorBody(output.body, context)
|
|
2575
|
+
};
|
|
2576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
|
+
switch (errorCode) {
|
|
2578
|
+
case "AccessDeniedException":
|
|
2579
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2580
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2581
|
+
case "ConflictException":
|
|
2582
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2583
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2584
|
+
case "InternalServerException":
|
|
2585
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2586
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2587
|
+
case "ResourceNotFoundException":
|
|
2588
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2589
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
+
case "ServiceQuotaExceededException":
|
|
2591
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2592
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2593
|
+
case "ThrottlingException":
|
|
2594
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2595
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2596
|
+
case "ValidationException":
|
|
2597
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2598
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2599
|
+
default:
|
|
2600
|
+
const parsedBody = parsedOutput.body;
|
|
2601
|
+
return throwDefaultError({
|
|
2602
|
+
output,
|
|
2603
|
+
parsedBody,
|
|
2604
|
+
errorCode
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
}, "de_PutDomainPermissionsPolicyCommandError");
|
|
2608
|
+
var de_PutPackageOriginConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
+
return de_PutPackageOriginConfigurationCommandError(output, context);
|
|
2611
|
+
}
|
|
2612
|
+
const contents = (0, import_smithy_client.map)({
|
|
2613
|
+
$metadata: deserializeMetadata(output)
|
|
2614
|
+
});
|
|
2615
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2616
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2617
|
+
originConfiguration: import_smithy_client._json
|
|
2618
|
+
});
|
|
2619
|
+
Object.assign(contents, doc);
|
|
2620
|
+
return contents;
|
|
2621
|
+
}, "de_PutPackageOriginConfigurationCommand");
|
|
2622
|
+
var de_PutPackageOriginConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2623
|
+
const parsedOutput = {
|
|
2624
|
+
...output,
|
|
2625
|
+
body: await parseErrorBody(output.body, context)
|
|
2626
|
+
};
|
|
2627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
|
+
switch (errorCode) {
|
|
2629
|
+
case "AccessDeniedException":
|
|
2630
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2631
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2632
|
+
case "InternalServerException":
|
|
2633
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2635
|
+
case "ResourceNotFoundException":
|
|
2636
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2637
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2638
|
+
case "ThrottlingException":
|
|
2639
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2640
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2641
|
+
case "ValidationException":
|
|
2642
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2644
|
+
default:
|
|
2645
|
+
const parsedBody = parsedOutput.body;
|
|
2646
|
+
return throwDefaultError({
|
|
2647
|
+
output,
|
|
2648
|
+
parsedBody,
|
|
2649
|
+
errorCode
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
}, "de_PutPackageOriginConfigurationCommandError");
|
|
2653
|
+
var de_PutRepositoryPermissionsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2655
|
+
return de_PutRepositoryPermissionsPolicyCommandError(output, context);
|
|
2656
|
+
}
|
|
2657
|
+
const contents = (0, import_smithy_client.map)({
|
|
2658
|
+
$metadata: deserializeMetadata(output)
|
|
2659
|
+
});
|
|
2660
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2661
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2662
|
+
policy: import_smithy_client._json
|
|
2663
|
+
});
|
|
2664
|
+
Object.assign(contents, doc);
|
|
2665
|
+
return contents;
|
|
2666
|
+
}, "de_PutRepositoryPermissionsPolicyCommand");
|
|
2667
|
+
var de_PutRepositoryPermissionsPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2668
|
+
const parsedOutput = {
|
|
2669
|
+
...output,
|
|
2670
|
+
body: await parseErrorBody(output.body, context)
|
|
2671
|
+
};
|
|
2672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
|
+
switch (errorCode) {
|
|
2674
|
+
case "AccessDeniedException":
|
|
2675
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2676
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2677
|
+
case "ConflictException":
|
|
2678
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2679
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2680
|
+
case "InternalServerException":
|
|
2681
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2682
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2683
|
+
case "ResourceNotFoundException":
|
|
2684
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2685
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2686
|
+
case "ServiceQuotaExceededException":
|
|
2687
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2688
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2689
|
+
case "ThrottlingException":
|
|
2690
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2691
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2692
|
+
case "ValidationException":
|
|
2693
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2694
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2695
|
+
default:
|
|
2696
|
+
const parsedBody = parsedOutput.body;
|
|
2697
|
+
return throwDefaultError({
|
|
2698
|
+
output,
|
|
2699
|
+
parsedBody,
|
|
2700
|
+
errorCode
|
|
2701
|
+
});
|
|
2702
|
+
}
|
|
2703
|
+
}, "de_PutRepositoryPermissionsPolicyCommandError");
|
|
2704
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2705
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2706
|
+
return de_TagResourceCommandError(output, context);
|
|
2707
|
+
}
|
|
2708
|
+
const contents = (0, import_smithy_client.map)({
|
|
2709
|
+
$metadata: deserializeMetadata(output)
|
|
2710
|
+
});
|
|
2711
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2712
|
+
return contents;
|
|
2713
|
+
}, "de_TagResourceCommand");
|
|
2714
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2715
|
+
const parsedOutput = {
|
|
2716
|
+
...output,
|
|
2717
|
+
body: await parseErrorBody(output.body, context)
|
|
2718
|
+
};
|
|
2719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
|
+
switch (errorCode) {
|
|
2721
|
+
case "AccessDeniedException":
|
|
2722
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2723
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2724
|
+
case "ResourceNotFoundException":
|
|
2725
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2726
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2727
|
+
case "ServiceQuotaExceededException":
|
|
2728
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2729
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2730
|
+
case "ThrottlingException":
|
|
2731
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2732
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2733
|
+
case "ValidationException":
|
|
2734
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2735
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2736
|
+
default:
|
|
2737
|
+
const parsedBody = parsedOutput.body;
|
|
2738
|
+
return throwDefaultError({
|
|
2739
|
+
output,
|
|
2740
|
+
parsedBody,
|
|
2741
|
+
errorCode
|
|
2742
|
+
});
|
|
2743
|
+
}
|
|
2744
|
+
}, "de_TagResourceCommandError");
|
|
2745
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2747
|
+
return de_UntagResourceCommandError(output, context);
|
|
2748
|
+
}
|
|
2749
|
+
const contents = (0, import_smithy_client.map)({
|
|
2750
|
+
$metadata: deserializeMetadata(output)
|
|
2751
|
+
});
|
|
2752
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2753
|
+
return contents;
|
|
2754
|
+
}, "de_UntagResourceCommand");
|
|
2755
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2756
|
+
const parsedOutput = {
|
|
2757
|
+
...output,
|
|
2758
|
+
body: await parseErrorBody(output.body, context)
|
|
2759
|
+
};
|
|
2760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
+
switch (errorCode) {
|
|
2762
|
+
case "AccessDeniedException":
|
|
2763
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2764
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2765
|
+
case "ResourceNotFoundException":
|
|
2766
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2768
|
+
case "ThrottlingException":
|
|
2769
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2770
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2771
|
+
case "ValidationException":
|
|
2772
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2774
|
+
default:
|
|
2775
|
+
const parsedBody = parsedOutput.body;
|
|
2776
|
+
return throwDefaultError({
|
|
2777
|
+
output,
|
|
2778
|
+
parsedBody,
|
|
2779
|
+
errorCode
|
|
2780
|
+
});
|
|
2781
|
+
}
|
|
2782
|
+
}, "de_UntagResourceCommandError");
|
|
2783
|
+
var de_UpdatePackageVersionsStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2784
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2785
|
+
return de_UpdatePackageVersionsStatusCommandError(output, context);
|
|
2786
|
+
}
|
|
2787
|
+
const contents = (0, import_smithy_client.map)({
|
|
2788
|
+
$metadata: deserializeMetadata(output)
|
|
2789
|
+
});
|
|
2790
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2791
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2792
|
+
failedVersions: import_smithy_client._json,
|
|
2793
|
+
successfulVersions: import_smithy_client._json
|
|
2794
|
+
});
|
|
2795
|
+
Object.assign(contents, doc);
|
|
2796
|
+
return contents;
|
|
2797
|
+
}, "de_UpdatePackageVersionsStatusCommand");
|
|
2798
|
+
var de_UpdatePackageVersionsStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2799
|
+
const parsedOutput = {
|
|
2800
|
+
...output,
|
|
2801
|
+
body: await parseErrorBody(output.body, context)
|
|
2802
|
+
};
|
|
2803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
+
switch (errorCode) {
|
|
2805
|
+
case "AccessDeniedException":
|
|
2806
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2807
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2808
|
+
case "ConflictException":
|
|
2809
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2810
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2811
|
+
case "InternalServerException":
|
|
2812
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2813
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2814
|
+
case "ResourceNotFoundException":
|
|
2815
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2816
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2817
|
+
case "ThrottlingException":
|
|
2818
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2819
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2820
|
+
case "ValidationException":
|
|
2821
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2822
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2823
|
+
default:
|
|
2824
|
+
const parsedBody = parsedOutput.body;
|
|
2825
|
+
return throwDefaultError({
|
|
2826
|
+
output,
|
|
2827
|
+
parsedBody,
|
|
2828
|
+
errorCode
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
}, "de_UpdatePackageVersionsStatusCommandError");
|
|
2832
|
+
var de_UpdateRepositoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2834
|
+
return de_UpdateRepositoryCommandError(output, context);
|
|
2835
|
+
}
|
|
2836
|
+
const contents = (0, import_smithy_client.map)({
|
|
2837
|
+
$metadata: deserializeMetadata(output)
|
|
2838
|
+
});
|
|
2839
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2840
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2841
|
+
repository: (_) => de_RepositoryDescription(_, context)
|
|
2842
|
+
});
|
|
2843
|
+
Object.assign(contents, doc);
|
|
2844
|
+
return contents;
|
|
2845
|
+
}, "de_UpdateRepositoryCommand");
|
|
2846
|
+
var de_UpdateRepositoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2847
|
+
const parsedOutput = {
|
|
2848
|
+
...output,
|
|
2849
|
+
body: await parseErrorBody(output.body, context)
|
|
2850
|
+
};
|
|
2851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2852
|
+
switch (errorCode) {
|
|
2853
|
+
case "AccessDeniedException":
|
|
2854
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2855
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2856
|
+
case "ConflictException":
|
|
2857
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2858
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2859
|
+
case "InternalServerException":
|
|
2860
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2861
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2862
|
+
case "ResourceNotFoundException":
|
|
2863
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2864
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2865
|
+
case "ServiceQuotaExceededException":
|
|
2866
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2867
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2868
|
+
case "ThrottlingException":
|
|
2869
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2870
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2871
|
+
case "ValidationException":
|
|
2872
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2873
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2874
|
+
default:
|
|
2875
|
+
const parsedBody = parsedOutput.body;
|
|
2876
|
+
return throwDefaultError({
|
|
2877
|
+
output,
|
|
2878
|
+
parsedBody,
|
|
2879
|
+
errorCode
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2882
|
+
}, "de_UpdateRepositoryCommandError");
|
|
2883
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeartifactServiceException);
|
|
2884
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2885
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2886
|
+
const data = parsedOutput.body;
|
|
2887
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2888
|
+
message: import_smithy_client.expectString
|
|
2889
|
+
});
|
|
2890
|
+
Object.assign(contents, doc);
|
|
2891
|
+
const exception = new AccessDeniedException({
|
|
2892
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2893
|
+
...contents
|
|
2894
|
+
});
|
|
2895
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2896
|
+
}, "de_AccessDeniedExceptionRes");
|
|
2897
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2898
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2899
|
+
const data = parsedOutput.body;
|
|
2900
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2901
|
+
message: import_smithy_client.expectString,
|
|
2902
|
+
resourceId: import_smithy_client.expectString,
|
|
2903
|
+
resourceType: import_smithy_client.expectString
|
|
2904
|
+
});
|
|
2905
|
+
Object.assign(contents, doc);
|
|
2906
|
+
const exception = new ConflictException({
|
|
2907
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2908
|
+
...contents
|
|
2909
|
+
});
|
|
2910
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2911
|
+
}, "de_ConflictExceptionRes");
|
|
2912
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2913
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2914
|
+
const data = parsedOutput.body;
|
|
2915
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2916
|
+
message: import_smithy_client.expectString
|
|
2917
|
+
});
|
|
2918
|
+
Object.assign(contents, doc);
|
|
2919
|
+
const exception = new InternalServerException({
|
|
2920
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2921
|
+
...contents
|
|
2922
|
+
});
|
|
2923
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2924
|
+
}, "de_InternalServerExceptionRes");
|
|
2925
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2926
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2927
|
+
const data = parsedOutput.body;
|
|
2928
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2929
|
+
message: import_smithy_client.expectString,
|
|
2930
|
+
resourceId: import_smithy_client.expectString,
|
|
2931
|
+
resourceType: import_smithy_client.expectString
|
|
2932
|
+
});
|
|
2933
|
+
Object.assign(contents, doc);
|
|
2934
|
+
const exception = new ResourceNotFoundException({
|
|
2935
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2936
|
+
...contents
|
|
2937
|
+
});
|
|
2938
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2939
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2940
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2941
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2942
|
+
const data = parsedOutput.body;
|
|
2943
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2944
|
+
message: import_smithy_client.expectString,
|
|
2945
|
+
resourceId: import_smithy_client.expectString,
|
|
2946
|
+
resourceType: import_smithy_client.expectString
|
|
2947
|
+
});
|
|
2948
|
+
Object.assign(contents, doc);
|
|
2949
|
+
const exception = new ServiceQuotaExceededException({
|
|
2950
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2951
|
+
...contents
|
|
2952
|
+
});
|
|
2953
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2954
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
2955
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2956
|
+
const contents = (0, import_smithy_client.map)({
|
|
2957
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
2958
|
+
});
|
|
2959
|
+
const data = parsedOutput.body;
|
|
2960
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2961
|
+
message: import_smithy_client.expectString
|
|
2962
|
+
});
|
|
2963
|
+
Object.assign(contents, doc);
|
|
2964
|
+
const exception = new ThrottlingException({
|
|
2965
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2966
|
+
...contents
|
|
2967
|
+
});
|
|
2968
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2969
|
+
}, "de_ThrottlingExceptionRes");
|
|
2970
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2971
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2972
|
+
const data = parsedOutput.body;
|
|
2973
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2974
|
+
message: import_smithy_client.expectString,
|
|
2975
|
+
reason: import_smithy_client.expectString
|
|
2976
|
+
});
|
|
2977
|
+
Object.assign(contents, doc);
|
|
2978
|
+
const exception = new ValidationException({
|
|
2979
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2980
|
+
...contents
|
|
2981
|
+
});
|
|
2982
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2983
|
+
}, "de_ValidationExceptionRes");
|
|
2984
|
+
var de_DomainDescription = /* @__PURE__ */ __name((output, context) => {
|
|
2985
|
+
return (0, import_smithy_client.take)(output, {
|
|
2986
|
+
arn: import_smithy_client.expectString,
|
|
2987
|
+
assetSizeBytes: import_smithy_client.expectLong,
|
|
2988
|
+
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2989
|
+
encryptionKey: import_smithy_client.expectString,
|
|
2990
|
+
name: import_smithy_client.expectString,
|
|
2991
|
+
owner: import_smithy_client.expectString,
|
|
2992
|
+
repositoryCount: import_smithy_client.expectInt32,
|
|
2993
|
+
s3BucketArn: import_smithy_client.expectString,
|
|
2994
|
+
status: import_smithy_client.expectString
|
|
2995
|
+
});
|
|
2996
|
+
}, "de_DomainDescription");
|
|
2997
|
+
var de_DomainSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2998
|
+
return (0, import_smithy_client.take)(output, {
|
|
2999
|
+
arn: import_smithy_client.expectString,
|
|
3000
|
+
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3001
|
+
encryptionKey: import_smithy_client.expectString,
|
|
3002
|
+
name: import_smithy_client.expectString,
|
|
3003
|
+
owner: import_smithy_client.expectString,
|
|
3004
|
+
status: import_smithy_client.expectString
|
|
3005
|
+
});
|
|
3006
|
+
}, "de_DomainSummary");
|
|
3007
|
+
var de_DomainSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
3008
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3009
|
+
return de_DomainSummary(entry, context);
|
|
3010
|
+
});
|
|
3011
|
+
return retVal;
|
|
3012
|
+
}, "de_DomainSummaryList");
|
|
3013
|
+
var de_PackageVersionDescription = /* @__PURE__ */ __name((output, context) => {
|
|
3014
|
+
return (0, import_smithy_client.take)(output, {
|
|
3015
|
+
displayName: import_smithy_client.expectString,
|
|
3016
|
+
format: import_smithy_client.expectString,
|
|
3017
|
+
homePage: import_smithy_client.expectString,
|
|
3018
|
+
licenses: import_smithy_client._json,
|
|
3019
|
+
namespace: import_smithy_client.expectString,
|
|
3020
|
+
origin: import_smithy_client._json,
|
|
3021
|
+
packageName: import_smithy_client.expectString,
|
|
3022
|
+
publishedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3023
|
+
revision: import_smithy_client.expectString,
|
|
3024
|
+
sourceCodeRepository: import_smithy_client.expectString,
|
|
3025
|
+
status: import_smithy_client.expectString,
|
|
3026
|
+
summary: import_smithy_client.expectString,
|
|
3027
|
+
version: import_smithy_client.expectString
|
|
3028
|
+
});
|
|
3029
|
+
}, "de_PackageVersionDescription");
|
|
3030
|
+
var de_RepositoryDescription = /* @__PURE__ */ __name((output, context) => {
|
|
3031
|
+
return (0, import_smithy_client.take)(output, {
|
|
3032
|
+
administratorAccount: import_smithy_client.expectString,
|
|
3033
|
+
arn: import_smithy_client.expectString,
|
|
3034
|
+
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3035
|
+
description: import_smithy_client.expectString,
|
|
3036
|
+
domainName: import_smithy_client.expectString,
|
|
3037
|
+
domainOwner: import_smithy_client.expectString,
|
|
3038
|
+
externalConnections: import_smithy_client._json,
|
|
3039
|
+
name: import_smithy_client.expectString,
|
|
3040
|
+
upstreams: import_smithy_client._json
|
|
3041
|
+
});
|
|
3042
|
+
}, "de_RepositoryDescription");
|
|
3043
|
+
var de_RepositorySummary = /* @__PURE__ */ __name((output, context) => {
|
|
3044
|
+
return (0, import_smithy_client.take)(output, {
|
|
3045
|
+
administratorAccount: import_smithy_client.expectString,
|
|
3046
|
+
arn: import_smithy_client.expectString,
|
|
3047
|
+
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3048
|
+
description: import_smithy_client.expectString,
|
|
3049
|
+
domainName: import_smithy_client.expectString,
|
|
3050
|
+
domainOwner: import_smithy_client.expectString,
|
|
3051
|
+
name: import_smithy_client.expectString
|
|
3052
|
+
});
|
|
3053
|
+
}, "de_RepositorySummary");
|
|
3054
|
+
var de_RepositorySummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
3055
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3056
|
+
return de_RepositorySummary(entry, context);
|
|
3057
|
+
});
|
|
3058
|
+
return retVal;
|
|
3059
|
+
}, "de_RepositorySummaryList");
|
|
3060
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
3061
|
+
httpStatusCode: output.statusCode,
|
|
3062
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3063
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3064
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
3065
|
+
}), "deserializeMetadata");
|
|
3066
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3067
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
3068
|
+
var _a = "asset";
|
|
3069
|
+
var _aA = "administratorAccount";
|
|
3070
|
+
var _aN = "assetName";
|
|
3071
|
+
var _aSHA = "assetSHA256";
|
|
3072
|
+
var _aa = "administrator-account";
|
|
3073
|
+
var _d = "domain";
|
|
3074
|
+
var _dO = "domainOwner";
|
|
3075
|
+
var _dR = "destinationRepository";
|
|
3076
|
+
var _dS = "durationSeconds";
|
|
3077
|
+
var _do = "domain-owner";
|
|
3078
|
+
var _dr = "destination-repository";
|
|
3079
|
+
var _du = "duration";
|
|
3080
|
+
var _eC = "externalConnection";
|
|
3081
|
+
var _ec = "external-connection";
|
|
3082
|
+
var _f = "format";
|
|
3083
|
+
var _mR = "maxResults";
|
|
3084
|
+
var _mr = "max-results";
|
|
3085
|
+
var _n = "namespace";
|
|
3086
|
+
var _nT = "nextToken";
|
|
3087
|
+
var _nt = "next-token";
|
|
3088
|
+
var _oT = "originType";
|
|
3089
|
+
var _p = "package";
|
|
3090
|
+
var _pP = "packagePrefix";
|
|
3091
|
+
var _pR = "policyRevision";
|
|
3092
|
+
var _pV = "packageVersion";
|
|
3093
|
+
var _pVR = "packageVersionRevision";
|
|
3094
|
+
var _pp = "package-prefix";
|
|
3095
|
+
var _pr = "policy-revision";
|
|
3096
|
+
var _pu = "publish";
|
|
3097
|
+
var _r = "repository";
|
|
3098
|
+
var _rA = "resourceArn";
|
|
3099
|
+
var _rAS = "retryAfterSeconds";
|
|
3100
|
+
var _rP = "repositoryPrefix";
|
|
3101
|
+
var _ra = "retry-after";
|
|
3102
|
+
var _re = "revision";
|
|
3103
|
+
var _rp = "repository-prefix";
|
|
3104
|
+
var _s = "status";
|
|
3105
|
+
var _sB = "sortBy";
|
|
3106
|
+
var _sR = "sourceRepository";
|
|
3107
|
+
var _sr = "source-repository";
|
|
3108
|
+
var _u = "upstream";
|
|
3109
|
+
var _un = "unfinished";
|
|
3110
|
+
var _v = "version";
|
|
3111
|
+
var _xa = "x-assetname";
|
|
3112
|
+
var _xacs = "x-amz-content-sha256";
|
|
3113
|
+
var _xp = "x-packageversion";
|
|
3114
|
+
var _xp_ = "x-packageversionrevision";
|
|
3115
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3116
|
+
if (encoded.length) {
|
|
3117
|
+
return JSON.parse(encoded);
|
|
3118
|
+
}
|
|
3119
|
+
return {};
|
|
3120
|
+
}), "parseBody");
|
|
3121
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3122
|
+
const value = await parseBody(errorBody, context);
|
|
3123
|
+
value.message = value.message ?? value.Message;
|
|
3124
|
+
return value;
|
|
3125
|
+
}, "parseErrorBody");
|
|
3126
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3127
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3128
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3129
|
+
let cleanValue = rawValue;
|
|
3130
|
+
if (typeof cleanValue === "number") {
|
|
3131
|
+
cleanValue = cleanValue.toString();
|
|
3132
|
+
}
|
|
3133
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
3134
|
+
cleanValue = cleanValue.split(",")[0];
|
|
3135
|
+
}
|
|
3136
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
3137
|
+
cleanValue = cleanValue.split(":")[0];
|
|
3138
|
+
}
|
|
3139
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
3140
|
+
cleanValue = cleanValue.split("#")[1];
|
|
3141
|
+
}
|
|
3142
|
+
return cleanValue;
|
|
3143
|
+
}, "sanitizeErrorCode");
|
|
3144
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3145
|
+
if (headerKey !== void 0) {
|
|
3146
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3147
|
+
}
|
|
3148
|
+
if (data.code !== void 0) {
|
|
3149
|
+
return sanitizeErrorCode(data.code);
|
|
3150
|
+
}
|
|
3151
|
+
if (data["__type"] !== void 0) {
|
|
3152
|
+
return sanitizeErrorCode(data["__type"]);
|
|
3153
|
+
}
|
|
3154
|
+
}, "loadRestJsonErrorCode");
|
|
3155
|
+
|
|
3156
|
+
// src/commands/AssociateExternalConnectionCommand.ts
|
|
3157
|
+
var _AssociateExternalConnectionCommand = class _AssociateExternalConnectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3158
|
+
...commonParams
|
|
3159
|
+
}).m(function(Command, cs, config, o) {
|
|
3160
|
+
return [
|
|
3161
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3162
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3163
|
+
];
|
|
3164
|
+
}).s("CodeArtifactControlPlaneService", "AssociateExternalConnection", {}).n("CodeartifactClient", "AssociateExternalConnectionCommand").f(void 0, void 0).ser(se_AssociateExternalConnectionCommand).de(de_AssociateExternalConnectionCommand).build() {
|
|
3165
|
+
};
|
|
3166
|
+
__name(_AssociateExternalConnectionCommand, "AssociateExternalConnectionCommand");
|
|
3167
|
+
var AssociateExternalConnectionCommand = _AssociateExternalConnectionCommand;
|
|
3168
|
+
|
|
3169
|
+
// src/commands/CopyPackageVersionsCommand.ts
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
var _CopyPackageVersionsCommand = class _CopyPackageVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3175
|
+
...commonParams
|
|
3176
|
+
}).m(function(Command, cs, config, o) {
|
|
3177
|
+
return [
|
|
3178
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3179
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3180
|
+
];
|
|
3181
|
+
}).s("CodeArtifactControlPlaneService", "CopyPackageVersions", {}).n("CodeartifactClient", "CopyPackageVersionsCommand").f(void 0, void 0).ser(se_CopyPackageVersionsCommand).de(de_CopyPackageVersionsCommand).build() {
|
|
3182
|
+
};
|
|
3183
|
+
__name(_CopyPackageVersionsCommand, "CopyPackageVersionsCommand");
|
|
3184
|
+
var CopyPackageVersionsCommand = _CopyPackageVersionsCommand;
|
|
3185
|
+
|
|
3186
|
+
// src/commands/CreateDomainCommand.ts
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
|
|
3190
|
+
|
|
3191
|
+
var _CreateDomainCommand = class _CreateDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3192
|
+
...commonParams
|
|
3193
|
+
}).m(function(Command, cs, config, o) {
|
|
3194
|
+
return [
|
|
3195
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3196
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3197
|
+
];
|
|
3198
|
+
}).s("CodeArtifactControlPlaneService", "CreateDomain", {}).n("CodeartifactClient", "CreateDomainCommand").f(void 0, void 0).ser(se_CreateDomainCommand).de(de_CreateDomainCommand).build() {
|
|
3199
|
+
};
|
|
3200
|
+
__name(_CreateDomainCommand, "CreateDomainCommand");
|
|
3201
|
+
var CreateDomainCommand = _CreateDomainCommand;
|
|
3202
|
+
|
|
3203
|
+
// src/commands/CreateRepositoryCommand.ts
|
|
3204
|
+
|
|
3205
|
+
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
var _CreateRepositoryCommand = class _CreateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3209
|
+
...commonParams
|
|
3210
|
+
}).m(function(Command, cs, config, o) {
|
|
3211
|
+
return [
|
|
3212
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3213
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3214
|
+
];
|
|
3215
|
+
}).s("CodeArtifactControlPlaneService", "CreateRepository", {}).n("CodeartifactClient", "CreateRepositoryCommand").f(void 0, void 0).ser(se_CreateRepositoryCommand).de(de_CreateRepositoryCommand).build() {
|
|
3216
|
+
};
|
|
3217
|
+
__name(_CreateRepositoryCommand, "CreateRepositoryCommand");
|
|
3218
|
+
var CreateRepositoryCommand = _CreateRepositoryCommand;
|
|
3219
|
+
|
|
3220
|
+
// src/commands/DeleteDomainCommand.ts
|
|
3221
|
+
|
|
3222
|
+
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
var _DeleteDomainCommand = class _DeleteDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3226
|
+
...commonParams
|
|
3227
|
+
}).m(function(Command, cs, config, o) {
|
|
3228
|
+
return [
|
|
3229
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3230
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3231
|
+
];
|
|
3232
|
+
}).s("CodeArtifactControlPlaneService", "DeleteDomain", {}).n("CodeartifactClient", "DeleteDomainCommand").f(void 0, void 0).ser(se_DeleteDomainCommand).de(de_DeleteDomainCommand).build() {
|
|
3233
|
+
};
|
|
3234
|
+
__name(_DeleteDomainCommand, "DeleteDomainCommand");
|
|
3235
|
+
var DeleteDomainCommand = _DeleteDomainCommand;
|
|
3236
|
+
|
|
3237
|
+
// src/commands/DeleteDomainPermissionsPolicyCommand.ts
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
var _DeleteDomainPermissionsPolicyCommand = class _DeleteDomainPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3243
|
+
...commonParams
|
|
3244
|
+
}).m(function(Command, cs, config, o) {
|
|
3245
|
+
return [
|
|
3246
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3247
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3248
|
+
];
|
|
3249
|
+
}).s("CodeArtifactControlPlaneService", "DeleteDomainPermissionsPolicy", {}).n("CodeartifactClient", "DeleteDomainPermissionsPolicyCommand").f(void 0, void 0).ser(se_DeleteDomainPermissionsPolicyCommand).de(de_DeleteDomainPermissionsPolicyCommand).build() {
|
|
3250
|
+
};
|
|
3251
|
+
__name(_DeleteDomainPermissionsPolicyCommand, "DeleteDomainPermissionsPolicyCommand");
|
|
3252
|
+
var DeleteDomainPermissionsPolicyCommand = _DeleteDomainPermissionsPolicyCommand;
|
|
3253
|
+
|
|
3254
|
+
// src/commands/DeletePackageCommand.ts
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
|
|
3259
|
+
var _DeletePackageCommand = class _DeletePackageCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3260
|
+
...commonParams
|
|
3261
|
+
}).m(function(Command, cs, config, o) {
|
|
3262
|
+
return [
|
|
3263
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3264
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3265
|
+
];
|
|
3266
|
+
}).s("CodeArtifactControlPlaneService", "DeletePackage", {}).n("CodeartifactClient", "DeletePackageCommand").f(void 0, void 0).ser(se_DeletePackageCommand).de(de_DeletePackageCommand).build() {
|
|
3267
|
+
};
|
|
3268
|
+
__name(_DeletePackageCommand, "DeletePackageCommand");
|
|
3269
|
+
var DeletePackageCommand = _DeletePackageCommand;
|
|
3270
|
+
|
|
3271
|
+
// src/commands/DeletePackageVersionsCommand.ts
|
|
3272
|
+
|
|
3273
|
+
|
|
3274
|
+
|
|
3275
|
+
|
|
3276
|
+
var _DeletePackageVersionsCommand = class _DeletePackageVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3277
|
+
...commonParams
|
|
3278
|
+
}).m(function(Command, cs, config, o) {
|
|
3279
|
+
return [
|
|
3280
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3281
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3282
|
+
];
|
|
3283
|
+
}).s("CodeArtifactControlPlaneService", "DeletePackageVersions", {}).n("CodeartifactClient", "DeletePackageVersionsCommand").f(void 0, void 0).ser(se_DeletePackageVersionsCommand).de(de_DeletePackageVersionsCommand).build() {
|
|
3284
|
+
};
|
|
3285
|
+
__name(_DeletePackageVersionsCommand, "DeletePackageVersionsCommand");
|
|
3286
|
+
var DeletePackageVersionsCommand = _DeletePackageVersionsCommand;
|
|
3287
|
+
|
|
3288
|
+
// src/commands/DeleteRepositoryCommand.ts
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
var _DeleteRepositoryCommand = class _DeleteRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3294
|
+
...commonParams
|
|
3295
|
+
}).m(function(Command, cs, config, o) {
|
|
3296
|
+
return [
|
|
3297
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3298
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3299
|
+
];
|
|
3300
|
+
}).s("CodeArtifactControlPlaneService", "DeleteRepository", {}).n("CodeartifactClient", "DeleteRepositoryCommand").f(void 0, void 0).ser(se_DeleteRepositoryCommand).de(de_DeleteRepositoryCommand).build() {
|
|
3301
|
+
};
|
|
3302
|
+
__name(_DeleteRepositoryCommand, "DeleteRepositoryCommand");
|
|
3303
|
+
var DeleteRepositoryCommand = _DeleteRepositoryCommand;
|
|
3304
|
+
|
|
3305
|
+
// src/commands/DeleteRepositoryPermissionsPolicyCommand.ts
|
|
3306
|
+
|
|
3307
|
+
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
var _DeleteRepositoryPermissionsPolicyCommand = class _DeleteRepositoryPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3311
|
+
...commonParams
|
|
3312
|
+
}).m(function(Command, cs, config, o) {
|
|
3313
|
+
return [
|
|
3314
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3315
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3316
|
+
];
|
|
3317
|
+
}).s("CodeArtifactControlPlaneService", "DeleteRepositoryPermissionsPolicy", {}).n("CodeartifactClient", "DeleteRepositoryPermissionsPolicyCommand").f(void 0, void 0).ser(se_DeleteRepositoryPermissionsPolicyCommand).de(de_DeleteRepositoryPermissionsPolicyCommand).build() {
|
|
3318
|
+
};
|
|
3319
|
+
__name(_DeleteRepositoryPermissionsPolicyCommand, "DeleteRepositoryPermissionsPolicyCommand");
|
|
3320
|
+
var DeleteRepositoryPermissionsPolicyCommand = _DeleteRepositoryPermissionsPolicyCommand;
|
|
3321
|
+
|
|
3322
|
+
// src/commands/DescribeDomainCommand.ts
|
|
3323
|
+
|
|
3324
|
+
|
|
3325
|
+
|
|
3326
|
+
|
|
3327
|
+
var _DescribeDomainCommand = class _DescribeDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3328
|
+
...commonParams
|
|
3329
|
+
}).m(function(Command, cs, config, o) {
|
|
3330
|
+
return [
|
|
3331
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3332
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3333
|
+
];
|
|
3334
|
+
}).s("CodeArtifactControlPlaneService", "DescribeDomain", {}).n("CodeartifactClient", "DescribeDomainCommand").f(void 0, void 0).ser(se_DescribeDomainCommand).de(de_DescribeDomainCommand).build() {
|
|
3335
|
+
};
|
|
3336
|
+
__name(_DescribeDomainCommand, "DescribeDomainCommand");
|
|
3337
|
+
var DescribeDomainCommand = _DescribeDomainCommand;
|
|
3338
|
+
|
|
3339
|
+
// src/commands/DescribePackageCommand.ts
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
var _DescribePackageCommand = class _DescribePackageCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3345
|
+
...commonParams
|
|
3346
|
+
}).m(function(Command, cs, config, o) {
|
|
3347
|
+
return [
|
|
3348
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3349
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3350
|
+
];
|
|
3351
|
+
}).s("CodeArtifactControlPlaneService", "DescribePackage", {}).n("CodeartifactClient", "DescribePackageCommand").f(void 0, void 0).ser(se_DescribePackageCommand).de(de_DescribePackageCommand).build() {
|
|
3352
|
+
};
|
|
3353
|
+
__name(_DescribePackageCommand, "DescribePackageCommand");
|
|
3354
|
+
var DescribePackageCommand = _DescribePackageCommand;
|
|
3355
|
+
|
|
3356
|
+
// src/commands/DescribePackageVersionCommand.ts
|
|
3357
|
+
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
var _DescribePackageVersionCommand = class _DescribePackageVersionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3362
|
+
...commonParams
|
|
3363
|
+
}).m(function(Command, cs, config, o) {
|
|
3364
|
+
return [
|
|
3365
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3366
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3367
|
+
];
|
|
3368
|
+
}).s("CodeArtifactControlPlaneService", "DescribePackageVersion", {}).n("CodeartifactClient", "DescribePackageVersionCommand").f(void 0, void 0).ser(se_DescribePackageVersionCommand).de(de_DescribePackageVersionCommand).build() {
|
|
3369
|
+
};
|
|
3370
|
+
__name(_DescribePackageVersionCommand, "DescribePackageVersionCommand");
|
|
3371
|
+
var DescribePackageVersionCommand = _DescribePackageVersionCommand;
|
|
3372
|
+
|
|
3373
|
+
// src/commands/DescribeRepositoryCommand.ts
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
var _DescribeRepositoryCommand = class _DescribeRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3379
|
+
...commonParams
|
|
3380
|
+
}).m(function(Command, cs, config, o) {
|
|
3381
|
+
return [
|
|
3382
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3383
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3384
|
+
];
|
|
3385
|
+
}).s("CodeArtifactControlPlaneService", "DescribeRepository", {}).n("CodeartifactClient", "DescribeRepositoryCommand").f(void 0, void 0).ser(se_DescribeRepositoryCommand).de(de_DescribeRepositoryCommand).build() {
|
|
3386
|
+
};
|
|
3387
|
+
__name(_DescribeRepositoryCommand, "DescribeRepositoryCommand");
|
|
3388
|
+
var DescribeRepositoryCommand = _DescribeRepositoryCommand;
|
|
3389
|
+
|
|
3390
|
+
// src/commands/DisassociateExternalConnectionCommand.ts
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
|
|
3395
|
+
var _DisassociateExternalConnectionCommand = class _DisassociateExternalConnectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3396
|
+
...commonParams
|
|
3397
|
+
}).m(function(Command, cs, config, o) {
|
|
3398
|
+
return [
|
|
3399
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3400
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3401
|
+
];
|
|
3402
|
+
}).s("CodeArtifactControlPlaneService", "DisassociateExternalConnection", {}).n("CodeartifactClient", "DisassociateExternalConnectionCommand").f(void 0, void 0).ser(se_DisassociateExternalConnectionCommand).de(de_DisassociateExternalConnectionCommand).build() {
|
|
3403
|
+
};
|
|
3404
|
+
__name(_DisassociateExternalConnectionCommand, "DisassociateExternalConnectionCommand");
|
|
3405
|
+
var DisassociateExternalConnectionCommand = _DisassociateExternalConnectionCommand;
|
|
3406
|
+
|
|
3407
|
+
// src/commands/DisposePackageVersionsCommand.ts
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
|
|
3412
|
+
var _DisposePackageVersionsCommand = class _DisposePackageVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3413
|
+
...commonParams
|
|
3414
|
+
}).m(function(Command, cs, config, o) {
|
|
3415
|
+
return [
|
|
3416
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3417
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3418
|
+
];
|
|
3419
|
+
}).s("CodeArtifactControlPlaneService", "DisposePackageVersions", {}).n("CodeartifactClient", "DisposePackageVersionsCommand").f(void 0, void 0).ser(se_DisposePackageVersionsCommand).de(de_DisposePackageVersionsCommand).build() {
|
|
3420
|
+
};
|
|
3421
|
+
__name(_DisposePackageVersionsCommand, "DisposePackageVersionsCommand");
|
|
3422
|
+
var DisposePackageVersionsCommand = _DisposePackageVersionsCommand;
|
|
3423
|
+
|
|
3424
|
+
// src/commands/GetAuthorizationTokenCommand.ts
|
|
3425
|
+
|
|
3426
|
+
|
|
3427
|
+
|
|
3428
|
+
|
|
3429
|
+
var _GetAuthorizationTokenCommand = class _GetAuthorizationTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3430
|
+
...commonParams
|
|
3431
|
+
}).m(function(Command, cs, config, o) {
|
|
3432
|
+
return [
|
|
3433
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3434
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3435
|
+
];
|
|
3436
|
+
}).s("CodeArtifactControlPlaneService", "GetAuthorizationToken", {}).n("CodeartifactClient", "GetAuthorizationTokenCommand").f(void 0, void 0).ser(se_GetAuthorizationTokenCommand).de(de_GetAuthorizationTokenCommand).build() {
|
|
3437
|
+
};
|
|
3438
|
+
__name(_GetAuthorizationTokenCommand, "GetAuthorizationTokenCommand");
|
|
3439
|
+
var GetAuthorizationTokenCommand = _GetAuthorizationTokenCommand;
|
|
3440
|
+
|
|
3441
|
+
// src/commands/GetDomainPermissionsPolicyCommand.ts
|
|
3442
|
+
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
|
|
3446
|
+
var _GetDomainPermissionsPolicyCommand = class _GetDomainPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3447
|
+
...commonParams
|
|
3448
|
+
}).m(function(Command, cs, config, o) {
|
|
3449
|
+
return [
|
|
3450
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3451
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3452
|
+
];
|
|
3453
|
+
}).s("CodeArtifactControlPlaneService", "GetDomainPermissionsPolicy", {}).n("CodeartifactClient", "GetDomainPermissionsPolicyCommand").f(void 0, void 0).ser(se_GetDomainPermissionsPolicyCommand).de(de_GetDomainPermissionsPolicyCommand).build() {
|
|
3454
|
+
};
|
|
3455
|
+
__name(_GetDomainPermissionsPolicyCommand, "GetDomainPermissionsPolicyCommand");
|
|
3456
|
+
var GetDomainPermissionsPolicyCommand = _GetDomainPermissionsPolicyCommand;
|
|
3457
|
+
|
|
3458
|
+
// src/commands/GetPackageVersionAssetCommand.ts
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
var _GetPackageVersionAssetCommand = class _GetPackageVersionAssetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3464
|
+
...commonParams
|
|
3465
|
+
}).m(function(Command, cs, config, o) {
|
|
3466
|
+
return [
|
|
3467
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3468
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3469
|
+
];
|
|
3470
|
+
}).s("CodeArtifactControlPlaneService", "GetPackageVersionAsset", {}).n("CodeartifactClient", "GetPackageVersionAssetCommand").f(void 0, GetPackageVersionAssetResultFilterSensitiveLog).ser(se_GetPackageVersionAssetCommand).de(de_GetPackageVersionAssetCommand).build() {
|
|
3471
|
+
};
|
|
3472
|
+
__name(_GetPackageVersionAssetCommand, "GetPackageVersionAssetCommand");
|
|
3473
|
+
var GetPackageVersionAssetCommand = _GetPackageVersionAssetCommand;
|
|
3474
|
+
|
|
3475
|
+
// src/commands/GetPackageVersionReadmeCommand.ts
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
var _GetPackageVersionReadmeCommand = class _GetPackageVersionReadmeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3481
|
+
...commonParams
|
|
3482
|
+
}).m(function(Command, cs, config, o) {
|
|
3483
|
+
return [
|
|
3484
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3485
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3486
|
+
];
|
|
3487
|
+
}).s("CodeArtifactControlPlaneService", "GetPackageVersionReadme", {}).n("CodeartifactClient", "GetPackageVersionReadmeCommand").f(void 0, void 0).ser(se_GetPackageVersionReadmeCommand).de(de_GetPackageVersionReadmeCommand).build() {
|
|
3488
|
+
};
|
|
3489
|
+
__name(_GetPackageVersionReadmeCommand, "GetPackageVersionReadmeCommand");
|
|
3490
|
+
var GetPackageVersionReadmeCommand = _GetPackageVersionReadmeCommand;
|
|
3491
|
+
|
|
3492
|
+
// src/commands/GetRepositoryEndpointCommand.ts
|
|
3493
|
+
|
|
3494
|
+
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
var _GetRepositoryEndpointCommand = class _GetRepositoryEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3498
|
+
...commonParams
|
|
3499
|
+
}).m(function(Command, cs, config, o) {
|
|
3500
|
+
return [
|
|
3501
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3502
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3503
|
+
];
|
|
3504
|
+
}).s("CodeArtifactControlPlaneService", "GetRepositoryEndpoint", {}).n("CodeartifactClient", "GetRepositoryEndpointCommand").f(void 0, void 0).ser(se_GetRepositoryEndpointCommand).de(de_GetRepositoryEndpointCommand).build() {
|
|
3505
|
+
};
|
|
3506
|
+
__name(_GetRepositoryEndpointCommand, "GetRepositoryEndpointCommand");
|
|
3507
|
+
var GetRepositoryEndpointCommand = _GetRepositoryEndpointCommand;
|
|
3508
|
+
|
|
3509
|
+
// src/commands/GetRepositoryPermissionsPolicyCommand.ts
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
var _GetRepositoryPermissionsPolicyCommand = class _GetRepositoryPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3515
|
+
...commonParams
|
|
3516
|
+
}).m(function(Command, cs, config, o) {
|
|
3517
|
+
return [
|
|
3518
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3519
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3520
|
+
];
|
|
3521
|
+
}).s("CodeArtifactControlPlaneService", "GetRepositoryPermissionsPolicy", {}).n("CodeartifactClient", "GetRepositoryPermissionsPolicyCommand").f(void 0, void 0).ser(se_GetRepositoryPermissionsPolicyCommand).de(de_GetRepositoryPermissionsPolicyCommand).build() {
|
|
3522
|
+
};
|
|
3523
|
+
__name(_GetRepositoryPermissionsPolicyCommand, "GetRepositoryPermissionsPolicyCommand");
|
|
3524
|
+
var GetRepositoryPermissionsPolicyCommand = _GetRepositoryPermissionsPolicyCommand;
|
|
3525
|
+
|
|
3526
|
+
// src/commands/ListDomainsCommand.ts
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
var _ListDomainsCommand = class _ListDomainsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3532
|
+
...commonParams
|
|
3533
|
+
}).m(function(Command, cs, config, o) {
|
|
3534
|
+
return [
|
|
3535
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3536
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3537
|
+
];
|
|
3538
|
+
}).s("CodeArtifactControlPlaneService", "ListDomains", {}).n("CodeartifactClient", "ListDomainsCommand").f(void 0, void 0).ser(se_ListDomainsCommand).de(de_ListDomainsCommand).build() {
|
|
3539
|
+
};
|
|
3540
|
+
__name(_ListDomainsCommand, "ListDomainsCommand");
|
|
3541
|
+
var ListDomainsCommand = _ListDomainsCommand;
|
|
3542
|
+
|
|
3543
|
+
// src/commands/ListPackagesCommand.ts
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
|
|
3548
|
+
var _ListPackagesCommand = class _ListPackagesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3549
|
+
...commonParams
|
|
3550
|
+
}).m(function(Command, cs, config, o) {
|
|
3551
|
+
return [
|
|
3552
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3553
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3554
|
+
];
|
|
3555
|
+
}).s("CodeArtifactControlPlaneService", "ListPackages", {}).n("CodeartifactClient", "ListPackagesCommand").f(void 0, void 0).ser(se_ListPackagesCommand).de(de_ListPackagesCommand).build() {
|
|
3556
|
+
};
|
|
3557
|
+
__name(_ListPackagesCommand, "ListPackagesCommand");
|
|
3558
|
+
var ListPackagesCommand = _ListPackagesCommand;
|
|
3559
|
+
|
|
3560
|
+
// src/commands/ListPackageVersionAssetsCommand.ts
|
|
3561
|
+
|
|
3562
|
+
|
|
3563
|
+
|
|
3564
|
+
|
|
3565
|
+
var _ListPackageVersionAssetsCommand = class _ListPackageVersionAssetsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3566
|
+
...commonParams
|
|
3567
|
+
}).m(function(Command, cs, config, o) {
|
|
3568
|
+
return [
|
|
3569
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3570
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3571
|
+
];
|
|
3572
|
+
}).s("CodeArtifactControlPlaneService", "ListPackageVersionAssets", {}).n("CodeartifactClient", "ListPackageVersionAssetsCommand").f(void 0, void 0).ser(se_ListPackageVersionAssetsCommand).de(de_ListPackageVersionAssetsCommand).build() {
|
|
3573
|
+
};
|
|
3574
|
+
__name(_ListPackageVersionAssetsCommand, "ListPackageVersionAssetsCommand");
|
|
3575
|
+
var ListPackageVersionAssetsCommand = _ListPackageVersionAssetsCommand;
|
|
3576
|
+
|
|
3577
|
+
// src/commands/ListPackageVersionDependenciesCommand.ts
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
var _ListPackageVersionDependenciesCommand = class _ListPackageVersionDependenciesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3583
|
+
...commonParams
|
|
3584
|
+
}).m(function(Command, cs, config, o) {
|
|
3585
|
+
return [
|
|
3586
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3587
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3588
|
+
];
|
|
3589
|
+
}).s("CodeArtifactControlPlaneService", "ListPackageVersionDependencies", {}).n("CodeartifactClient", "ListPackageVersionDependenciesCommand").f(void 0, void 0).ser(se_ListPackageVersionDependenciesCommand).de(de_ListPackageVersionDependenciesCommand).build() {
|
|
3590
|
+
};
|
|
3591
|
+
__name(_ListPackageVersionDependenciesCommand, "ListPackageVersionDependenciesCommand");
|
|
3592
|
+
var ListPackageVersionDependenciesCommand = _ListPackageVersionDependenciesCommand;
|
|
3593
|
+
|
|
3594
|
+
// src/commands/ListPackageVersionsCommand.ts
|
|
3595
|
+
|
|
3596
|
+
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
var _ListPackageVersionsCommand = class _ListPackageVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3600
|
+
...commonParams
|
|
3601
|
+
}).m(function(Command, cs, config, o) {
|
|
3602
|
+
return [
|
|
3603
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3604
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3605
|
+
];
|
|
3606
|
+
}).s("CodeArtifactControlPlaneService", "ListPackageVersions", {}).n("CodeartifactClient", "ListPackageVersionsCommand").f(void 0, void 0).ser(se_ListPackageVersionsCommand).de(de_ListPackageVersionsCommand).build() {
|
|
3607
|
+
};
|
|
3608
|
+
__name(_ListPackageVersionsCommand, "ListPackageVersionsCommand");
|
|
3609
|
+
var ListPackageVersionsCommand = _ListPackageVersionsCommand;
|
|
3610
|
+
|
|
3611
|
+
// src/commands/ListRepositoriesCommand.ts
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
var _ListRepositoriesCommand = class _ListRepositoriesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3617
|
+
...commonParams
|
|
3618
|
+
}).m(function(Command, cs, config, o) {
|
|
3619
|
+
return [
|
|
3620
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3621
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3622
|
+
];
|
|
3623
|
+
}).s("CodeArtifactControlPlaneService", "ListRepositories", {}).n("CodeartifactClient", "ListRepositoriesCommand").f(void 0, void 0).ser(se_ListRepositoriesCommand).de(de_ListRepositoriesCommand).build() {
|
|
3624
|
+
};
|
|
3625
|
+
__name(_ListRepositoriesCommand, "ListRepositoriesCommand");
|
|
3626
|
+
var ListRepositoriesCommand = _ListRepositoriesCommand;
|
|
3627
|
+
|
|
3628
|
+
// src/commands/ListRepositoriesInDomainCommand.ts
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
|
|
3633
|
+
var _ListRepositoriesInDomainCommand = class _ListRepositoriesInDomainCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3634
|
+
...commonParams
|
|
3635
|
+
}).m(function(Command, cs, config, o) {
|
|
3636
|
+
return [
|
|
3637
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3638
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3639
|
+
];
|
|
3640
|
+
}).s("CodeArtifactControlPlaneService", "ListRepositoriesInDomain", {}).n("CodeartifactClient", "ListRepositoriesInDomainCommand").f(void 0, void 0).ser(se_ListRepositoriesInDomainCommand).de(de_ListRepositoriesInDomainCommand).build() {
|
|
3641
|
+
};
|
|
3642
|
+
__name(_ListRepositoriesInDomainCommand, "ListRepositoriesInDomainCommand");
|
|
3643
|
+
var ListRepositoriesInDomainCommand = _ListRepositoriesInDomainCommand;
|
|
3644
|
+
|
|
3645
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3651
|
+
...commonParams
|
|
3652
|
+
}).m(function(Command, cs, config, o) {
|
|
3653
|
+
return [
|
|
3654
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3655
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3656
|
+
];
|
|
3657
|
+
}).s("CodeArtifactControlPlaneService", "ListTagsForResource", {}).n("CodeartifactClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
3658
|
+
};
|
|
3659
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
3660
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
3661
|
+
|
|
3662
|
+
// src/commands/PublishPackageVersionCommand.ts
|
|
3663
|
+
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
|
|
3667
|
+
var _PublishPackageVersionCommand = class _PublishPackageVersionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3668
|
+
...commonParams
|
|
3669
|
+
}).m(function(Command, cs, config, o) {
|
|
3670
|
+
return [
|
|
3671
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3672
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3673
|
+
];
|
|
3674
|
+
}).s("CodeArtifactControlPlaneService", "PublishPackageVersion", {}).n("CodeartifactClient", "PublishPackageVersionCommand").f(PublishPackageVersionRequestFilterSensitiveLog, void 0).ser(se_PublishPackageVersionCommand).de(de_PublishPackageVersionCommand).build() {
|
|
3675
|
+
};
|
|
3676
|
+
__name(_PublishPackageVersionCommand, "PublishPackageVersionCommand");
|
|
3677
|
+
var PublishPackageVersionCommand = _PublishPackageVersionCommand;
|
|
3678
|
+
|
|
3679
|
+
// src/commands/PutDomainPermissionsPolicyCommand.ts
|
|
3680
|
+
|
|
3681
|
+
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
var _PutDomainPermissionsPolicyCommand = class _PutDomainPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3685
|
+
...commonParams
|
|
3686
|
+
}).m(function(Command, cs, config, o) {
|
|
3687
|
+
return [
|
|
3688
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3689
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3690
|
+
];
|
|
3691
|
+
}).s("CodeArtifactControlPlaneService", "PutDomainPermissionsPolicy", {}).n("CodeartifactClient", "PutDomainPermissionsPolicyCommand").f(void 0, void 0).ser(se_PutDomainPermissionsPolicyCommand).de(de_PutDomainPermissionsPolicyCommand).build() {
|
|
3692
|
+
};
|
|
3693
|
+
__name(_PutDomainPermissionsPolicyCommand, "PutDomainPermissionsPolicyCommand");
|
|
3694
|
+
var PutDomainPermissionsPolicyCommand = _PutDomainPermissionsPolicyCommand;
|
|
3695
|
+
|
|
3696
|
+
// src/commands/PutPackageOriginConfigurationCommand.ts
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
var _PutPackageOriginConfigurationCommand = class _PutPackageOriginConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3702
|
+
...commonParams
|
|
3703
|
+
}).m(function(Command, cs, config, o) {
|
|
3704
|
+
return [
|
|
3705
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3706
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3707
|
+
];
|
|
3708
|
+
}).s("CodeArtifactControlPlaneService", "PutPackageOriginConfiguration", {}).n("CodeartifactClient", "PutPackageOriginConfigurationCommand").f(void 0, void 0).ser(se_PutPackageOriginConfigurationCommand).de(de_PutPackageOriginConfigurationCommand).build() {
|
|
3709
|
+
};
|
|
3710
|
+
__name(_PutPackageOriginConfigurationCommand, "PutPackageOriginConfigurationCommand");
|
|
3711
|
+
var PutPackageOriginConfigurationCommand = _PutPackageOriginConfigurationCommand;
|
|
3712
|
+
|
|
3713
|
+
// src/commands/PutRepositoryPermissionsPolicyCommand.ts
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
|
|
3718
|
+
var _PutRepositoryPermissionsPolicyCommand = class _PutRepositoryPermissionsPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3719
|
+
...commonParams
|
|
3720
|
+
}).m(function(Command, cs, config, o) {
|
|
3721
|
+
return [
|
|
3722
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3723
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3724
|
+
];
|
|
3725
|
+
}).s("CodeArtifactControlPlaneService", "PutRepositoryPermissionsPolicy", {}).n("CodeartifactClient", "PutRepositoryPermissionsPolicyCommand").f(void 0, void 0).ser(se_PutRepositoryPermissionsPolicyCommand).de(de_PutRepositoryPermissionsPolicyCommand).build() {
|
|
3726
|
+
};
|
|
3727
|
+
__name(_PutRepositoryPermissionsPolicyCommand, "PutRepositoryPermissionsPolicyCommand");
|
|
3728
|
+
var PutRepositoryPermissionsPolicyCommand = _PutRepositoryPermissionsPolicyCommand;
|
|
3729
|
+
|
|
3730
|
+
// src/commands/TagResourceCommand.ts
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3736
|
+
...commonParams
|
|
3737
|
+
}).m(function(Command, cs, config, o) {
|
|
3738
|
+
return [
|
|
3739
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3740
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3741
|
+
];
|
|
3742
|
+
}).s("CodeArtifactControlPlaneService", "TagResource", {}).n("CodeartifactClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
3743
|
+
};
|
|
3744
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
3745
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
3746
|
+
|
|
3747
|
+
// src/commands/UntagResourceCommand.ts
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
|
|
3752
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3753
|
+
...commonParams
|
|
3754
|
+
}).m(function(Command, cs, config, o) {
|
|
3755
|
+
return [
|
|
3756
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3757
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3758
|
+
];
|
|
3759
|
+
}).s("CodeArtifactControlPlaneService", "UntagResource", {}).n("CodeartifactClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
3760
|
+
};
|
|
3761
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
3762
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
3763
|
+
|
|
3764
|
+
// src/commands/UpdatePackageVersionsStatusCommand.ts
|
|
3765
|
+
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
var _UpdatePackageVersionsStatusCommand = class _UpdatePackageVersionsStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3770
|
+
...commonParams
|
|
3771
|
+
}).m(function(Command, cs, config, o) {
|
|
3772
|
+
return [
|
|
3773
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3774
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3775
|
+
];
|
|
3776
|
+
}).s("CodeArtifactControlPlaneService", "UpdatePackageVersionsStatus", {}).n("CodeartifactClient", "UpdatePackageVersionsStatusCommand").f(void 0, void 0).ser(se_UpdatePackageVersionsStatusCommand).de(de_UpdatePackageVersionsStatusCommand).build() {
|
|
3777
|
+
};
|
|
3778
|
+
__name(_UpdatePackageVersionsStatusCommand, "UpdatePackageVersionsStatusCommand");
|
|
3779
|
+
var UpdatePackageVersionsStatusCommand = _UpdatePackageVersionsStatusCommand;
|
|
3780
|
+
|
|
3781
|
+
// src/commands/UpdateRepositoryCommand.ts
|
|
3782
|
+
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
var _UpdateRepositoryCommand = class _UpdateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3787
|
+
...commonParams
|
|
3788
|
+
}).m(function(Command, cs, config, o) {
|
|
3789
|
+
return [
|
|
3790
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3791
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3792
|
+
];
|
|
3793
|
+
}).s("CodeArtifactControlPlaneService", "UpdateRepository", {}).n("CodeartifactClient", "UpdateRepositoryCommand").f(void 0, void 0).ser(se_UpdateRepositoryCommand).de(de_UpdateRepositoryCommand).build() {
|
|
3794
|
+
};
|
|
3795
|
+
__name(_UpdateRepositoryCommand, "UpdateRepositoryCommand");
|
|
3796
|
+
var UpdateRepositoryCommand = _UpdateRepositoryCommand;
|
|
3797
|
+
|
|
3798
|
+
// src/Codeartifact.ts
|
|
3799
|
+
var commands = {
|
|
3800
|
+
AssociateExternalConnectionCommand,
|
|
3801
|
+
CopyPackageVersionsCommand,
|
|
3802
|
+
CreateDomainCommand,
|
|
3803
|
+
CreateRepositoryCommand,
|
|
3804
|
+
DeleteDomainCommand,
|
|
3805
|
+
DeleteDomainPermissionsPolicyCommand,
|
|
3806
|
+
DeletePackageCommand,
|
|
3807
|
+
DeletePackageVersionsCommand,
|
|
3808
|
+
DeleteRepositoryCommand,
|
|
3809
|
+
DeleteRepositoryPermissionsPolicyCommand,
|
|
3810
|
+
DescribeDomainCommand,
|
|
3811
|
+
DescribePackageCommand,
|
|
3812
|
+
DescribePackageVersionCommand,
|
|
3813
|
+
DescribeRepositoryCommand,
|
|
3814
|
+
DisassociateExternalConnectionCommand,
|
|
3815
|
+
DisposePackageVersionsCommand,
|
|
3816
|
+
GetAuthorizationTokenCommand,
|
|
3817
|
+
GetDomainPermissionsPolicyCommand,
|
|
3818
|
+
GetPackageVersionAssetCommand,
|
|
3819
|
+
GetPackageVersionReadmeCommand,
|
|
3820
|
+
GetRepositoryEndpointCommand,
|
|
3821
|
+
GetRepositoryPermissionsPolicyCommand,
|
|
3822
|
+
ListDomainsCommand,
|
|
3823
|
+
ListPackagesCommand,
|
|
3824
|
+
ListPackageVersionAssetsCommand,
|
|
3825
|
+
ListPackageVersionDependenciesCommand,
|
|
3826
|
+
ListPackageVersionsCommand,
|
|
3827
|
+
ListRepositoriesCommand,
|
|
3828
|
+
ListRepositoriesInDomainCommand,
|
|
3829
|
+
ListTagsForResourceCommand,
|
|
3830
|
+
PublishPackageVersionCommand,
|
|
3831
|
+
PutDomainPermissionsPolicyCommand,
|
|
3832
|
+
PutPackageOriginConfigurationCommand,
|
|
3833
|
+
PutRepositoryPermissionsPolicyCommand,
|
|
3834
|
+
TagResourceCommand,
|
|
3835
|
+
UntagResourceCommand,
|
|
3836
|
+
UpdatePackageVersionsStatusCommand,
|
|
3837
|
+
UpdateRepositoryCommand
|
|
3838
|
+
};
|
|
3839
|
+
var _Codeartifact = class _Codeartifact extends CodeartifactClient {
|
|
3840
|
+
};
|
|
3841
|
+
__name(_Codeartifact, "Codeartifact");
|
|
3842
|
+
var Codeartifact = _Codeartifact;
|
|
3843
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Codeartifact);
|
|
3844
|
+
|
|
3845
|
+
// src/pagination/ListDomainsPaginator.ts
|
|
3846
|
+
|
|
3847
|
+
var paginateListDomains = (0, import_core.createPaginator)(CodeartifactClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
3848
|
+
|
|
3849
|
+
// src/pagination/ListPackageVersionAssetsPaginator.ts
|
|
3850
|
+
|
|
3851
|
+
var paginateListPackageVersionAssets = (0, import_core.createPaginator)(CodeartifactClient, ListPackageVersionAssetsCommand, "nextToken", "nextToken", "maxResults");
|
|
3852
|
+
|
|
3853
|
+
// src/pagination/ListPackageVersionsPaginator.ts
|
|
3854
|
+
|
|
3855
|
+
var paginateListPackageVersions = (0, import_core.createPaginator)(CodeartifactClient, ListPackageVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
3856
|
+
|
|
3857
|
+
// src/pagination/ListPackagesPaginator.ts
|
|
3858
|
+
|
|
3859
|
+
var paginateListPackages = (0, import_core.createPaginator)(CodeartifactClient, ListPackagesCommand, "nextToken", "nextToken", "maxResults");
|
|
3860
|
+
|
|
3861
|
+
// src/pagination/ListRepositoriesInDomainPaginator.ts
|
|
3862
|
+
|
|
3863
|
+
var paginateListRepositoriesInDomain = (0, import_core.createPaginator)(CodeartifactClient, ListRepositoriesInDomainCommand, "nextToken", "nextToken", "maxResults");
|
|
3864
|
+
|
|
3865
|
+
// src/pagination/ListRepositoriesPaginator.ts
|
|
3866
|
+
|
|
3867
|
+
var paginateListRepositories = (0, import_core.createPaginator)(CodeartifactClient, ListRepositoriesCommand, "nextToken", "nextToken", "maxResults");
|
|
3868
|
+
|
|
3869
|
+
// src/index.ts
|
|
3870
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3871
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3872
|
+
|
|
3873
|
+
0 && (module.exports = {
|
|
3874
|
+
AccessDeniedException,
|
|
3875
|
+
AllowPublish,
|
|
3876
|
+
AllowUpstream,
|
|
3877
|
+
AssociateExternalConnectionCommand,
|
|
3878
|
+
Codeartifact,
|
|
3879
|
+
CodeartifactClient,
|
|
3880
|
+
CodeartifactServiceException,
|
|
3881
|
+
ConflictException,
|
|
3882
|
+
CopyPackageVersionsCommand,
|
|
3883
|
+
CreateDomainCommand,
|
|
3884
|
+
CreateRepositoryCommand,
|
|
3885
|
+
DeleteDomainCommand,
|
|
3886
|
+
DeleteDomainPermissionsPolicyCommand,
|
|
3887
|
+
DeletePackageCommand,
|
|
3888
|
+
DeletePackageVersionsCommand,
|
|
3889
|
+
DeleteRepositoryCommand,
|
|
3890
|
+
DeleteRepositoryPermissionsPolicyCommand,
|
|
3891
|
+
DescribeDomainCommand,
|
|
3892
|
+
DescribePackageCommand,
|
|
3893
|
+
DescribePackageVersionCommand,
|
|
3894
|
+
DescribeRepositoryCommand,
|
|
3895
|
+
DisassociateExternalConnectionCommand,
|
|
3896
|
+
DisposePackageVersionsCommand,
|
|
3897
|
+
DomainStatus,
|
|
3898
|
+
ExternalConnectionStatus,
|
|
3899
|
+
GetAuthorizationTokenCommand,
|
|
3900
|
+
GetDomainPermissionsPolicyCommand,
|
|
3901
|
+
GetPackageVersionAssetCommand,
|
|
3902
|
+
GetPackageVersionAssetResultFilterSensitiveLog,
|
|
3903
|
+
GetPackageVersionReadmeCommand,
|
|
3904
|
+
GetRepositoryEndpointCommand,
|
|
3905
|
+
GetRepositoryPermissionsPolicyCommand,
|
|
3906
|
+
HashAlgorithm,
|
|
3907
|
+
InternalServerException,
|
|
3908
|
+
ListDomainsCommand,
|
|
3909
|
+
ListPackageVersionAssetsCommand,
|
|
3910
|
+
ListPackageVersionDependenciesCommand,
|
|
3911
|
+
ListPackageVersionsCommand,
|
|
3912
|
+
ListPackagesCommand,
|
|
3913
|
+
ListRepositoriesCommand,
|
|
3914
|
+
ListRepositoriesInDomainCommand,
|
|
3915
|
+
ListTagsForResourceCommand,
|
|
3916
|
+
PackageFormat,
|
|
3917
|
+
PackageVersionErrorCode,
|
|
3918
|
+
PackageVersionOriginType,
|
|
3919
|
+
PackageVersionSortType,
|
|
3920
|
+
PackageVersionStatus,
|
|
3921
|
+
PublishPackageVersionCommand,
|
|
3922
|
+
PublishPackageVersionRequestFilterSensitiveLog,
|
|
3923
|
+
PutDomainPermissionsPolicyCommand,
|
|
3924
|
+
PutPackageOriginConfigurationCommand,
|
|
3925
|
+
PutRepositoryPermissionsPolicyCommand,
|
|
3926
|
+
ResourceNotFoundException,
|
|
3927
|
+
ResourceType,
|
|
3928
|
+
ServiceQuotaExceededException,
|
|
3929
|
+
TagResourceCommand,
|
|
3930
|
+
ThrottlingException,
|
|
3931
|
+
UntagResourceCommand,
|
|
3932
|
+
UpdatePackageVersionsStatusCommand,
|
|
3933
|
+
UpdateRepositoryCommand,
|
|
3934
|
+
ValidationException,
|
|
3935
|
+
ValidationExceptionReason,
|
|
3936
|
+
__Client,
|
|
3937
|
+
paginateListDomains,
|
|
3938
|
+
paginateListPackageVersionAssets,
|
|
3939
|
+
paginateListPackageVersions,
|
|
3940
|
+
paginateListPackages,
|
|
3941
|
+
paginateListRepositories,
|
|
3942
|
+
paginateListRepositoriesInDomain
|
|
3943
|
+
});
|
|
3944
|
+
|