@aws-sdk/client-artifact 3.515.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/LICENSE +201 -0
- package/README.md +253 -0
- package/dist-cjs/Artifact.js +23 -0
- package/dist-cjs/ArtifactClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/GetAccountSettingsCommand.js +28 -0
- package/dist-cjs/commands/GetReportCommand.js +28 -0
- package/dist-cjs/commands/GetReportMetadataCommand.js +28 -0
- package/dist-cjs/commands/GetTermForReportCommand.js +28 -0
- package/dist-cjs/commands/ListReportsCommand.js +28 -0
- package/dist-cjs/commands/PutAccountSettingsCommand.js +28 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/ArtifactServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +138 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListReportsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +432 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/Artifact.js +19 -0
- package/dist-es/ArtifactClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +24 -0
- package/dist-es/commands/GetReportCommand.js +24 -0
- package/dist-es/commands/GetReportMetadataCommand.js +24 -0
- package/dist-es/commands/GetTermForReportCommand.js +24 -0
- package/dist-es/commands/ListReportsCommand.js +24 -0
- package/dist-es/commands/PutAccountSettingsCommand.js +24 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/ArtifactServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +128 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListReportsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +417 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/Artifact.d.ts +52 -0
- package/dist-types/ArtifactClient.d.ts +177 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +79 -0
- package/dist-types/commands/GetReportCommand.d.ts +81 -0
- package/dist-types/commands/GetReportMetadataCommand.d.ts +98 -0
- package/dist-types/commands/GetTermForReportCommand.d.ts +81 -0
- package/dist-types/commands/ListReportsCommand.d.ts +95 -0
- package/dist-types/commands/PutAccountSettingsCommand.d.ts +81 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/ArtifactServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +605 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListReportsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/Artifact.d.ts +107 -0
- package/dist-types/ts3.4/ArtifactClient.d.ts +156 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetReportCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/GetReportMetadataCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetTermForReportCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/ListReportsCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/PutAccountSettingsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/ArtifactServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +187 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListReportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { ArtifactServiceException as __BaseException } from "../models/ArtifactServiceException";
|
|
4
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
export const se_GetAccountSettingsCommand = async (input, context) => {
|
|
6
|
+
const b = rb(input, context);
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
b.bp("/v1/account-settings/get");
|
|
11
|
+
let body;
|
|
12
|
+
body = "";
|
|
13
|
+
b.m("GET").h(headers).b(body);
|
|
14
|
+
return b.build();
|
|
15
|
+
};
|
|
16
|
+
export const se_GetReportCommand = async (input, context) => {
|
|
17
|
+
const b = rb(input, context);
|
|
18
|
+
const headers = {};
|
|
19
|
+
b.bp("/v1/report/get");
|
|
20
|
+
const query = map({
|
|
21
|
+
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
22
|
+
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
23
|
+
[_tT]: [, __expectNonNull(input[_tT], `termToken`)],
|
|
24
|
+
});
|
|
25
|
+
let body;
|
|
26
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
27
|
+
return b.build();
|
|
28
|
+
};
|
|
29
|
+
export const se_GetReportMetadataCommand = async (input, context) => {
|
|
30
|
+
const b = rb(input, context);
|
|
31
|
+
const headers = {};
|
|
32
|
+
b.bp("/v1/report/getMetadata");
|
|
33
|
+
const query = map({
|
|
34
|
+
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
35
|
+
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
36
|
+
});
|
|
37
|
+
let body;
|
|
38
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
39
|
+
return b.build();
|
|
40
|
+
};
|
|
41
|
+
export const se_GetTermForReportCommand = async (input, context) => {
|
|
42
|
+
const b = rb(input, context);
|
|
43
|
+
const headers = {};
|
|
44
|
+
b.bp("/v1/report/getTermForReport");
|
|
45
|
+
const query = map({
|
|
46
|
+
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
47
|
+
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
48
|
+
});
|
|
49
|
+
let body;
|
|
50
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
51
|
+
return b.build();
|
|
52
|
+
};
|
|
53
|
+
export const se_ListReportsCommand = async (input, context) => {
|
|
54
|
+
const b = rb(input, context);
|
|
55
|
+
const headers = {};
|
|
56
|
+
b.bp("/v1/report/list");
|
|
57
|
+
const query = map({
|
|
58
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
59
|
+
[_nT]: [, input[_nT]],
|
|
60
|
+
});
|
|
61
|
+
let body;
|
|
62
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
63
|
+
return b.build();
|
|
64
|
+
};
|
|
65
|
+
export const se_PutAccountSettingsCommand = async (input, context) => {
|
|
66
|
+
const b = rb(input, context);
|
|
67
|
+
const headers = {
|
|
68
|
+
"content-type": "application/json",
|
|
69
|
+
};
|
|
70
|
+
b.bp("/v1/account-settings/put");
|
|
71
|
+
let body;
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
notificationSubscriptionStatus: [],
|
|
74
|
+
}));
|
|
75
|
+
b.m("PUT").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
77
|
+
};
|
|
78
|
+
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
79
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
80
|
+
return de_CommandError(output, context);
|
|
81
|
+
}
|
|
82
|
+
const contents = map({
|
|
83
|
+
$metadata: deserializeMetadata(output),
|
|
84
|
+
});
|
|
85
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
86
|
+
const doc = take(data, {
|
|
87
|
+
accountSettings: _json,
|
|
88
|
+
});
|
|
89
|
+
Object.assign(contents, doc);
|
|
90
|
+
return contents;
|
|
91
|
+
};
|
|
92
|
+
export const de_GetReportCommand = async (output, context) => {
|
|
93
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
94
|
+
return de_CommandError(output, context);
|
|
95
|
+
}
|
|
96
|
+
const contents = map({
|
|
97
|
+
$metadata: deserializeMetadata(output),
|
|
98
|
+
});
|
|
99
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
100
|
+
const doc = take(data, {
|
|
101
|
+
documentPresignedUrl: __expectString,
|
|
102
|
+
});
|
|
103
|
+
Object.assign(contents, doc);
|
|
104
|
+
return contents;
|
|
105
|
+
};
|
|
106
|
+
export const de_GetReportMetadataCommand = async (output, context) => {
|
|
107
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
108
|
+
return de_CommandError(output, context);
|
|
109
|
+
}
|
|
110
|
+
const contents = map({
|
|
111
|
+
$metadata: deserializeMetadata(output),
|
|
112
|
+
});
|
|
113
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
114
|
+
const doc = take(data, {
|
|
115
|
+
reportDetails: (_) => de_ReportDetail(_, context),
|
|
116
|
+
});
|
|
117
|
+
Object.assign(contents, doc);
|
|
118
|
+
return contents;
|
|
119
|
+
};
|
|
120
|
+
export const de_GetTermForReportCommand = async (output, context) => {
|
|
121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
122
|
+
return de_CommandError(output, context);
|
|
123
|
+
}
|
|
124
|
+
const contents = map({
|
|
125
|
+
$metadata: deserializeMetadata(output),
|
|
126
|
+
});
|
|
127
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
128
|
+
const doc = take(data, {
|
|
129
|
+
documentPresignedUrl: __expectString,
|
|
130
|
+
termToken: __expectString,
|
|
131
|
+
});
|
|
132
|
+
Object.assign(contents, doc);
|
|
133
|
+
return contents;
|
|
134
|
+
};
|
|
135
|
+
export const de_ListReportsCommand = async (output, context) => {
|
|
136
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
137
|
+
return de_CommandError(output, context);
|
|
138
|
+
}
|
|
139
|
+
const contents = map({
|
|
140
|
+
$metadata: deserializeMetadata(output),
|
|
141
|
+
});
|
|
142
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
143
|
+
const doc = take(data, {
|
|
144
|
+
nextToken: __expectString,
|
|
145
|
+
reports: (_) => de_ReportsList(_, context),
|
|
146
|
+
});
|
|
147
|
+
Object.assign(contents, doc);
|
|
148
|
+
return contents;
|
|
149
|
+
};
|
|
150
|
+
export const de_PutAccountSettingsCommand = async (output, context) => {
|
|
151
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
152
|
+
return de_CommandError(output, context);
|
|
153
|
+
}
|
|
154
|
+
const contents = map({
|
|
155
|
+
$metadata: deserializeMetadata(output),
|
|
156
|
+
});
|
|
157
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
158
|
+
const doc = take(data, {
|
|
159
|
+
accountSettings: _json,
|
|
160
|
+
});
|
|
161
|
+
Object.assign(contents, doc);
|
|
162
|
+
return contents;
|
|
163
|
+
};
|
|
164
|
+
const de_CommandError = async (output, context) => {
|
|
165
|
+
const parsedOutput = {
|
|
166
|
+
...output,
|
|
167
|
+
body: await parseErrorBody(output.body, context),
|
|
168
|
+
};
|
|
169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
170
|
+
switch (errorCode) {
|
|
171
|
+
case "AccessDeniedException":
|
|
172
|
+
case "com.amazonaws.artifact#AccessDeniedException":
|
|
173
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
174
|
+
case "ConflictException":
|
|
175
|
+
case "com.amazonaws.artifact#ConflictException":
|
|
176
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
177
|
+
case "InternalServerException":
|
|
178
|
+
case "com.amazonaws.artifact#InternalServerException":
|
|
179
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
180
|
+
case "ResourceNotFoundException":
|
|
181
|
+
case "com.amazonaws.artifact#ResourceNotFoundException":
|
|
182
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
183
|
+
case "ServiceQuotaExceededException":
|
|
184
|
+
case "com.amazonaws.artifact#ServiceQuotaExceededException":
|
|
185
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
186
|
+
case "ThrottlingException":
|
|
187
|
+
case "com.amazonaws.artifact#ThrottlingException":
|
|
188
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
189
|
+
case "ValidationException":
|
|
190
|
+
case "com.amazonaws.artifact#ValidationException":
|
|
191
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
192
|
+
default:
|
|
193
|
+
const parsedBody = parsedOutput.body;
|
|
194
|
+
return throwDefaultError({
|
|
195
|
+
output,
|
|
196
|
+
parsedBody,
|
|
197
|
+
errorCode,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
202
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
203
|
+
const contents = map({});
|
|
204
|
+
const data = parsedOutput.body;
|
|
205
|
+
const doc = take(data, {
|
|
206
|
+
message: __expectString,
|
|
207
|
+
});
|
|
208
|
+
Object.assign(contents, doc);
|
|
209
|
+
const exception = new AccessDeniedException({
|
|
210
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
211
|
+
...contents,
|
|
212
|
+
});
|
|
213
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
214
|
+
};
|
|
215
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
216
|
+
const contents = map({});
|
|
217
|
+
const data = parsedOutput.body;
|
|
218
|
+
const doc = take(data, {
|
|
219
|
+
message: __expectString,
|
|
220
|
+
resourceId: __expectString,
|
|
221
|
+
resourceType: __expectString,
|
|
222
|
+
});
|
|
223
|
+
Object.assign(contents, doc);
|
|
224
|
+
const exception = new ConflictException({
|
|
225
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
226
|
+
...contents,
|
|
227
|
+
});
|
|
228
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
229
|
+
};
|
|
230
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
231
|
+
const contents = map({
|
|
232
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
233
|
+
});
|
|
234
|
+
const data = parsedOutput.body;
|
|
235
|
+
const doc = take(data, {
|
|
236
|
+
message: __expectString,
|
|
237
|
+
});
|
|
238
|
+
Object.assign(contents, doc);
|
|
239
|
+
const exception = new InternalServerException({
|
|
240
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
241
|
+
...contents,
|
|
242
|
+
});
|
|
243
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
244
|
+
};
|
|
245
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
246
|
+
const contents = map({});
|
|
247
|
+
const data = parsedOutput.body;
|
|
248
|
+
const doc = take(data, {
|
|
249
|
+
message: __expectString,
|
|
250
|
+
resourceId: __expectString,
|
|
251
|
+
resourceType: __expectString,
|
|
252
|
+
});
|
|
253
|
+
Object.assign(contents, doc);
|
|
254
|
+
const exception = new ResourceNotFoundException({
|
|
255
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
256
|
+
...contents,
|
|
257
|
+
});
|
|
258
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
259
|
+
};
|
|
260
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
261
|
+
const contents = map({});
|
|
262
|
+
const data = parsedOutput.body;
|
|
263
|
+
const doc = take(data, {
|
|
264
|
+
message: __expectString,
|
|
265
|
+
quotaCode: __expectString,
|
|
266
|
+
resourceId: __expectString,
|
|
267
|
+
resourceType: __expectString,
|
|
268
|
+
serviceCode: __expectString,
|
|
269
|
+
});
|
|
270
|
+
Object.assign(contents, doc);
|
|
271
|
+
const exception = new ServiceQuotaExceededException({
|
|
272
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
273
|
+
...contents,
|
|
274
|
+
});
|
|
275
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
276
|
+
};
|
|
277
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
278
|
+
const contents = map({
|
|
279
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
280
|
+
});
|
|
281
|
+
const data = parsedOutput.body;
|
|
282
|
+
const doc = take(data, {
|
|
283
|
+
message: __expectString,
|
|
284
|
+
quotaCode: __expectString,
|
|
285
|
+
serviceCode: __expectString,
|
|
286
|
+
});
|
|
287
|
+
Object.assign(contents, doc);
|
|
288
|
+
const exception = new ThrottlingException({
|
|
289
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
290
|
+
...contents,
|
|
291
|
+
});
|
|
292
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
293
|
+
};
|
|
294
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
295
|
+
const contents = map({});
|
|
296
|
+
const data = parsedOutput.body;
|
|
297
|
+
const doc = take(data, {
|
|
298
|
+
fieldList: _json,
|
|
299
|
+
message: __expectString,
|
|
300
|
+
reason: __expectString,
|
|
301
|
+
});
|
|
302
|
+
Object.assign(contents, doc);
|
|
303
|
+
const exception = new ValidationException({
|
|
304
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
305
|
+
...contents,
|
|
306
|
+
});
|
|
307
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
308
|
+
};
|
|
309
|
+
const de_ReportDetail = (output, context) => {
|
|
310
|
+
return take(output, {
|
|
311
|
+
acceptanceType: __expectString,
|
|
312
|
+
arn: __expectString,
|
|
313
|
+
category: __expectString,
|
|
314
|
+
companyName: __expectString,
|
|
315
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
316
|
+
deletedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
317
|
+
description: __expectString,
|
|
318
|
+
id: __expectString,
|
|
319
|
+
lastModifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
320
|
+
name: __expectString,
|
|
321
|
+
periodEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
322
|
+
periodStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
323
|
+
productName: __expectString,
|
|
324
|
+
sequenceNumber: __expectLong,
|
|
325
|
+
series: __expectString,
|
|
326
|
+
state: __expectString,
|
|
327
|
+
statusMessage: __expectString,
|
|
328
|
+
termArn: __expectString,
|
|
329
|
+
uploadState: __expectString,
|
|
330
|
+
version: __expectLong,
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
const de_ReportsList = (output, context) => {
|
|
334
|
+
const retVal = (output || [])
|
|
335
|
+
.filter((e) => e != null)
|
|
336
|
+
.map((entry) => {
|
|
337
|
+
return de_ReportSummary(entry, context);
|
|
338
|
+
});
|
|
339
|
+
return retVal;
|
|
340
|
+
};
|
|
341
|
+
const de_ReportSummary = (output, context) => {
|
|
342
|
+
return take(output, {
|
|
343
|
+
arn: __expectString,
|
|
344
|
+
category: __expectString,
|
|
345
|
+
companyName: __expectString,
|
|
346
|
+
description: __expectString,
|
|
347
|
+
id: __expectString,
|
|
348
|
+
name: __expectString,
|
|
349
|
+
periodEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
350
|
+
periodStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
351
|
+
productName: __expectString,
|
|
352
|
+
series: __expectString,
|
|
353
|
+
state: __expectString,
|
|
354
|
+
statusMessage: __expectString,
|
|
355
|
+
uploadState: __expectString,
|
|
356
|
+
version: __expectLong,
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
const deserializeMetadata = (output) => ({
|
|
360
|
+
httpStatusCode: output.statusCode,
|
|
361
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
362
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
363
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
364
|
+
});
|
|
365
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
366
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
367
|
+
value !== null &&
|
|
368
|
+
value !== "" &&
|
|
369
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
370
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
371
|
+
const _mR = "maxResults";
|
|
372
|
+
const _nT = "nextToken";
|
|
373
|
+
const _rAS = "retryAfterSeconds";
|
|
374
|
+
const _rI = "reportId";
|
|
375
|
+
const _rV = "reportVersion";
|
|
376
|
+
const _ra = "retry-after";
|
|
377
|
+
const _tT = "termToken";
|
|
378
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
379
|
+
if (encoded.length) {
|
|
380
|
+
return JSON.parse(encoded);
|
|
381
|
+
}
|
|
382
|
+
return {};
|
|
383
|
+
});
|
|
384
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
385
|
+
const value = await parseBody(errorBody, context);
|
|
386
|
+
value.message = value.message ?? value.Message;
|
|
387
|
+
return value;
|
|
388
|
+
};
|
|
389
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
390
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
391
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
392
|
+
let cleanValue = rawValue;
|
|
393
|
+
if (typeof cleanValue === "number") {
|
|
394
|
+
cleanValue = cleanValue.toString();
|
|
395
|
+
}
|
|
396
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
397
|
+
cleanValue = cleanValue.split(",")[0];
|
|
398
|
+
}
|
|
399
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
400
|
+
cleanValue = cleanValue.split(":")[0];
|
|
401
|
+
}
|
|
402
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
403
|
+
cleanValue = cleanValue.split("#")[1];
|
|
404
|
+
}
|
|
405
|
+
return cleanValue;
|
|
406
|
+
};
|
|
407
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
408
|
+
if (headerKey !== undefined) {
|
|
409
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
410
|
+
}
|
|
411
|
+
if (data.code !== undefined) {
|
|
412
|
+
return sanitizeErrorCode(data.code);
|
|
413
|
+
}
|
|
414
|
+
if (data["__type"] !== undefined) {
|
|
415
|
+
return sanitizeErrorCode(data["__type"]);
|
|
416
|
+
}
|
|
417
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
34
|
+
retryMode: config?.retryMode ??
|
|
35
|
+
loadNodeConfig({
|
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
+
}),
|
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
5
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultArtifactHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2018-05-10",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
15
|
+
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultArtifactHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
25
|
+
serviceId: config?.serviceId ?? "Artifact",
|
|
26
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
27
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
28
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
const asPartial = (t) => t;
|
|
6
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
+
};
|
|
13
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
+
return {
|
|
15
|
+
...runtimeConfig,
|
|
16
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { ArtifactClient } from "./ArtifactClient";
|
|
3
|
+
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
|
|
4
|
+
import { GetReportCommandInput, GetReportCommandOutput } from "./commands/GetReportCommand";
|
|
5
|
+
import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from "./commands/GetReportMetadataCommand";
|
|
6
|
+
import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "./commands/GetTermForReportCommand";
|
|
7
|
+
import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
|
|
8
|
+
import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "./commands/PutAccountSettingsCommand";
|
|
9
|
+
export interface Artifact {
|
|
10
|
+
/**
|
|
11
|
+
* @see {@link GetAccountSettingsCommand}
|
|
12
|
+
*/
|
|
13
|
+
getAccountSettings(args: GetAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountSettingsCommandOutput>;
|
|
14
|
+
getAccountSettings(args: GetAccountSettingsCommandInput, cb: (err: any, data?: GetAccountSettingsCommandOutput) => void): void;
|
|
15
|
+
getAccountSettings(args: GetAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountSettingsCommandOutput) => void): void;
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link GetReportCommand}
|
|
18
|
+
*/
|
|
19
|
+
getReport(args: GetReportCommandInput, options?: __HttpHandlerOptions): Promise<GetReportCommandOutput>;
|
|
20
|
+
getReport(args: GetReportCommandInput, cb: (err: any, data?: GetReportCommandOutput) => void): void;
|
|
21
|
+
getReport(args: GetReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReportCommandOutput) => void): void;
|
|
22
|
+
/**
|
|
23
|
+
* @see {@link GetReportMetadataCommand}
|
|
24
|
+
*/
|
|
25
|
+
getReportMetadata(args: GetReportMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetReportMetadataCommandOutput>;
|
|
26
|
+
getReportMetadata(args: GetReportMetadataCommandInput, cb: (err: any, data?: GetReportMetadataCommandOutput) => void): void;
|
|
27
|
+
getReportMetadata(args: GetReportMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReportMetadataCommandOutput) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link GetTermForReportCommand}
|
|
30
|
+
*/
|
|
31
|
+
getTermForReport(args: GetTermForReportCommandInput, options?: __HttpHandlerOptions): Promise<GetTermForReportCommandOutput>;
|
|
32
|
+
getTermForReport(args: GetTermForReportCommandInput, cb: (err: any, data?: GetTermForReportCommandOutput) => void): void;
|
|
33
|
+
getTermForReport(args: GetTermForReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTermForReportCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link ListReportsCommand}
|
|
36
|
+
*/
|
|
37
|
+
listReports(args: ListReportsCommandInput, options?: __HttpHandlerOptions): Promise<ListReportsCommandOutput>;
|
|
38
|
+
listReports(args: ListReportsCommandInput, cb: (err: any, data?: ListReportsCommandOutput) => void): void;
|
|
39
|
+
listReports(args: ListReportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReportsCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link PutAccountSettingsCommand}
|
|
42
|
+
*/
|
|
43
|
+
putAccountSettings(args: PutAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PutAccountSettingsCommandOutput>;
|
|
44
|
+
putAccountSettings(args: PutAccountSettingsCommandInput, cb: (err: any, data?: PutAccountSettingsCommandOutput) => void): void;
|
|
45
|
+
putAccountSettings(args: PutAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAccountSettingsCommandOutput) => void): void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* <p>This reference provides descriptions of the low-level AWS Artifact Service API.</p>
|
|
50
|
+
*/
|
|
51
|
+
export declare class Artifact extends ArtifactClient implements Artifact {
|
|
52
|
+
}
|