@aws-sdk/client-support-app 3.1075.0 → 3.1077.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/index.js +561 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/SupportAppServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -73
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -285
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
|
+
|
|
18
|
+
const defaultSupportAppHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
|
+
return {
|
|
20
|
+
operation: getSmithyContext(context).operation,
|
|
21
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
22
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
23
|
+
})(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
+
return {
|
|
28
|
+
schemeId: "aws.auth#sigv4",
|
|
29
|
+
signingProperties: {
|
|
30
|
+
name: "supportapp",
|
|
31
|
+
region: authParameters.region,
|
|
32
|
+
},
|
|
33
|
+
propertiesExtractor: (config, context) => ({
|
|
34
|
+
signingProperties: {
|
|
35
|
+
config,
|
|
36
|
+
context,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const defaultSupportAppHttpAuthSchemeProvider = (authParameters) => {
|
|
42
|
+
const options = [];
|
|
43
|
+
switch (authParameters.operation) {
|
|
44
|
+
default: {
|
|
45
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
const resolveClientEndpointParameters = (options) => {
|
|
21
58
|
return Object.assign(options, {
|
|
@@ -31,6 +68,468 @@ const commonParams = {
|
|
|
31
68
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
69
|
};
|
|
33
70
|
|
|
71
|
+
var version = "3.1076.0";
|
|
72
|
+
var packageInfo = {
|
|
73
|
+
version: version};
|
|
74
|
+
|
|
75
|
+
const k = "ref";
|
|
76
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
77
|
+
const _data = {
|
|
78
|
+
conditions: [
|
|
79
|
+
[c, [g]],
|
|
80
|
+
[c, j],
|
|
81
|
+
["aws.partition", j, d],
|
|
82
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
83
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
86
|
+
],
|
|
87
|
+
results: [
|
|
88
|
+
[a],
|
|
89
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
90
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
91
|
+
[g, i],
|
|
92
|
+
["https://supportapp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
93
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
94
|
+
["https://supportapp-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
95
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
96
|
+
["https://supportapp.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
97
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
98
|
+
["https://supportapp.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
99
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
const root = 2;
|
|
103
|
+
const r = 100_000_000;
|
|
104
|
+
const nodes = new Int32Array([
|
|
105
|
+
-1, 1, -1,
|
|
106
|
+
0, 12, 3,
|
|
107
|
+
1, 4, r + 11,
|
|
108
|
+
2, 5, r + 11,
|
|
109
|
+
3, 8, 6,
|
|
110
|
+
4, 7, r + 10,
|
|
111
|
+
5, r + 8, r + 9,
|
|
112
|
+
4, 10, 9,
|
|
113
|
+
6, r + 6, r + 7,
|
|
114
|
+
5, 11, r + 5,
|
|
115
|
+
6, r + 4, r + 5,
|
|
116
|
+
3, r + 1, 13,
|
|
117
|
+
4, r + 2, r + 3,
|
|
118
|
+
]);
|
|
119
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
120
|
+
|
|
121
|
+
const cache = new EndpointCache({
|
|
122
|
+
size: 50,
|
|
123
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
124
|
+
});
|
|
125
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
126
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
127
|
+
endpointParams: endpointParams,
|
|
128
|
+
logger: context.logger,
|
|
129
|
+
}));
|
|
130
|
+
};
|
|
131
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
132
|
+
|
|
133
|
+
class SupportAppServiceException extends ServiceException {
|
|
134
|
+
constructor(options) {
|
|
135
|
+
super(options);
|
|
136
|
+
Object.setPrototypeOf(this, SupportAppServiceException.prototype);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class AccessDeniedException extends SupportAppServiceException {
|
|
141
|
+
name = "AccessDeniedException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "AccessDeniedException",
|
|
146
|
+
$fault: "client",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
class ConflictException extends SupportAppServiceException {
|
|
153
|
+
name = "ConflictException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ConflictException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class InternalServerException extends SupportAppServiceException {
|
|
165
|
+
name = "InternalServerException";
|
|
166
|
+
$fault = "server";
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "InternalServerException",
|
|
170
|
+
$fault: "server",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ServiceQuotaExceededException extends SupportAppServiceException {
|
|
177
|
+
name = "ServiceQuotaExceededException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ServiceQuotaExceededException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class ValidationException extends SupportAppServiceException {
|
|
189
|
+
name = "ValidationException";
|
|
190
|
+
$fault = "client";
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ValidationException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class ResourceNotFoundException extends SupportAppServiceException {
|
|
201
|
+
name = "ResourceNotFoundException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ResourceNotFoundException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const _ADE = "AccessDeniedException";
|
|
214
|
+
const _CE = "ConflictException";
|
|
215
|
+
const _CSCC = "CreateSlackChannelConfiguration";
|
|
216
|
+
const _CSCCR = "CreateSlackChannelConfigurationRequest";
|
|
217
|
+
const _CSCCRr = "CreateSlackChannelConfigurationResult";
|
|
218
|
+
const _DAA = "DeleteAccountAlias";
|
|
219
|
+
const _DAAR = "DeleteAccountAliasRequest";
|
|
220
|
+
const _DAARe = "DeleteAccountAliasResult";
|
|
221
|
+
const _DSCC = "DeleteSlackChannelConfiguration";
|
|
222
|
+
const _DSCCR = "DeleteSlackChannelConfigurationRequest";
|
|
223
|
+
const _DSCCRe = "DeleteSlackChannelConfigurationResult";
|
|
224
|
+
const _DSWC = "DeleteSlackWorkspaceConfiguration";
|
|
225
|
+
const _DSWCR = "DeleteSlackWorkspaceConfigurationRequest";
|
|
226
|
+
const _DSWCRe = "DeleteSlackWorkspaceConfigurationResult";
|
|
227
|
+
const _GAA = "GetAccountAlias";
|
|
228
|
+
const _GAAR = "GetAccountAliasRequest";
|
|
229
|
+
const _GAARe = "GetAccountAliasResult";
|
|
230
|
+
const _ISE = "InternalServerException";
|
|
231
|
+
const _LSCC = "ListSlackChannelConfigurations";
|
|
232
|
+
const _LSCCR = "ListSlackChannelConfigurationsRequest";
|
|
233
|
+
const _LSCCRi = "ListSlackChannelConfigurationsResult";
|
|
234
|
+
const _LSWC = "ListSlackWorkspaceConfigurations";
|
|
235
|
+
const _LSWCR = "ListSlackWorkspaceConfigurationsRequest";
|
|
236
|
+
const _LSWCRi = "ListSlackWorkspaceConfigurationsResult";
|
|
237
|
+
const _PAA = "PutAccountAlias";
|
|
238
|
+
const _PAAR = "PutAccountAliasRequest";
|
|
239
|
+
const _PAARu = "PutAccountAliasResult";
|
|
240
|
+
const _RNFE = "ResourceNotFoundException";
|
|
241
|
+
const _RSWFO = "RegisterSlackWorkspaceForOrganization";
|
|
242
|
+
const _RSWFOR = "RegisterSlackWorkspaceForOrganizationRequest";
|
|
243
|
+
const _RSWFORe = "RegisterSlackWorkspaceForOrganizationResult";
|
|
244
|
+
const _SCC = "SlackChannelConfiguration";
|
|
245
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
246
|
+
const _SWC = "SlackWorkspaceConfiguration";
|
|
247
|
+
const _SWCL = "SlackWorkspaceConfigurationList";
|
|
248
|
+
const _USCC = "UpdateSlackChannelConfiguration";
|
|
249
|
+
const _USCCR = "UpdateSlackChannelConfigurationRequest";
|
|
250
|
+
const _USCCRp = "UpdateSlackChannelConfigurationResult";
|
|
251
|
+
const _VE = "ValidationException";
|
|
252
|
+
const _aA = "accountAlias";
|
|
253
|
+
const _aOMA = "allowOrganizationMemberAccount";
|
|
254
|
+
const _aT = "accountType";
|
|
255
|
+
const _c = "client";
|
|
256
|
+
const _cI = "channelId";
|
|
257
|
+
const _cN = "channelName";
|
|
258
|
+
const _cRA = "channelRoleArn";
|
|
259
|
+
const _e = "error";
|
|
260
|
+
const _h = "http";
|
|
261
|
+
const _hE = "httpError";
|
|
262
|
+
const _m = "message";
|
|
263
|
+
const _nOACTC = "notifyOnAddCorrespondenceToCase";
|
|
264
|
+
const _nOCORC = "notifyOnCreateOrReopenCase";
|
|
265
|
+
const _nOCS = "notifyOnCaseSeverity";
|
|
266
|
+
const _nORC = "notifyOnResolveCase";
|
|
267
|
+
const _nT = "nextToken";
|
|
268
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.supportapp";
|
|
269
|
+
const _sCC = "slackChannelConfigurations";
|
|
270
|
+
const _sCCL = "slackChannelConfigurationList";
|
|
271
|
+
const _sWC = "slackWorkspaceConfigurations";
|
|
272
|
+
const _se = "server";
|
|
273
|
+
const _tI = "teamId";
|
|
274
|
+
const _tN = "teamName";
|
|
275
|
+
const n0 = "com.amazonaws.supportapp";
|
|
276
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
277
|
+
var SupportAppServiceException$ = [-3, _s, "SupportAppServiceException", 0, [], []];
|
|
278
|
+
_s_registry.registerError(SupportAppServiceException$, SupportAppServiceException);
|
|
279
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
280
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
281
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
282
|
+
[_m],
|
|
283
|
+
[0]
|
|
284
|
+
];
|
|
285
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
286
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
287
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
288
|
+
[_m],
|
|
289
|
+
[0]
|
|
290
|
+
];
|
|
291
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
292
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
293
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
294
|
+
[_m],
|
|
295
|
+
[0]
|
|
296
|
+
];
|
|
297
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
298
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
299
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
300
|
+
[_m],
|
|
301
|
+
[0]
|
|
302
|
+
];
|
|
303
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
304
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
305
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
306
|
+
[_m],
|
|
307
|
+
[0]
|
|
308
|
+
];
|
|
309
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
310
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
311
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
312
|
+
[_m],
|
|
313
|
+
[0]
|
|
314
|
+
];
|
|
315
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
316
|
+
const errorTypeRegistries = [
|
|
317
|
+
_s_registry,
|
|
318
|
+
n0_registry,
|
|
319
|
+
];
|
|
320
|
+
var CreateSlackChannelConfigurationRequest$ = [3, n0, _CSCCR,
|
|
321
|
+
0,
|
|
322
|
+
[_tI, _cI, _nOCS, _cRA, _cN, _nOCORC, _nOACTC, _nORC],
|
|
323
|
+
[0, 0, 0, 0, 0, 2, 2, 2], 4
|
|
324
|
+
];
|
|
325
|
+
var CreateSlackChannelConfigurationResult$ = [3, n0, _CSCCRr,
|
|
326
|
+
0,
|
|
327
|
+
[],
|
|
328
|
+
[]
|
|
329
|
+
];
|
|
330
|
+
var DeleteAccountAliasRequest$ = [3, n0, _DAAR,
|
|
331
|
+
0,
|
|
332
|
+
[],
|
|
333
|
+
[]
|
|
334
|
+
];
|
|
335
|
+
var DeleteAccountAliasResult$ = [3, n0, _DAARe,
|
|
336
|
+
0,
|
|
337
|
+
[],
|
|
338
|
+
[]
|
|
339
|
+
];
|
|
340
|
+
var DeleteSlackChannelConfigurationRequest$ = [3, n0, _DSCCR,
|
|
341
|
+
0,
|
|
342
|
+
[_tI, _cI],
|
|
343
|
+
[0, 0], 2
|
|
344
|
+
];
|
|
345
|
+
var DeleteSlackChannelConfigurationResult$ = [3, n0, _DSCCRe,
|
|
346
|
+
0,
|
|
347
|
+
[],
|
|
348
|
+
[]
|
|
349
|
+
];
|
|
350
|
+
var DeleteSlackWorkspaceConfigurationRequest$ = [3, n0, _DSWCR,
|
|
351
|
+
0,
|
|
352
|
+
[_tI],
|
|
353
|
+
[0], 1
|
|
354
|
+
];
|
|
355
|
+
var DeleteSlackWorkspaceConfigurationResult$ = [3, n0, _DSWCRe,
|
|
356
|
+
0,
|
|
357
|
+
[],
|
|
358
|
+
[]
|
|
359
|
+
];
|
|
360
|
+
var GetAccountAliasRequest$ = [3, n0, _GAAR,
|
|
361
|
+
0,
|
|
362
|
+
[],
|
|
363
|
+
[]
|
|
364
|
+
];
|
|
365
|
+
var GetAccountAliasResult$ = [3, n0, _GAARe,
|
|
366
|
+
0,
|
|
367
|
+
[_aA],
|
|
368
|
+
[0]
|
|
369
|
+
];
|
|
370
|
+
var ListSlackChannelConfigurationsRequest$ = [3, n0, _LSCCR,
|
|
371
|
+
0,
|
|
372
|
+
[_nT],
|
|
373
|
+
[0]
|
|
374
|
+
];
|
|
375
|
+
var ListSlackChannelConfigurationsResult$ = [3, n0, _LSCCRi,
|
|
376
|
+
0,
|
|
377
|
+
[_sCC, _nT],
|
|
378
|
+
[() => slackChannelConfigurationList, 0], 1
|
|
379
|
+
];
|
|
380
|
+
var ListSlackWorkspaceConfigurationsRequest$ = [3, n0, _LSWCR,
|
|
381
|
+
0,
|
|
382
|
+
[_nT],
|
|
383
|
+
[0]
|
|
384
|
+
];
|
|
385
|
+
var ListSlackWorkspaceConfigurationsResult$ = [3, n0, _LSWCRi,
|
|
386
|
+
0,
|
|
387
|
+
[_nT, _sWC],
|
|
388
|
+
[0, () => SlackWorkspaceConfigurationList]
|
|
389
|
+
];
|
|
390
|
+
var PutAccountAliasRequest$ = [3, n0, _PAAR,
|
|
391
|
+
0,
|
|
392
|
+
[_aA],
|
|
393
|
+
[0], 1
|
|
394
|
+
];
|
|
395
|
+
var PutAccountAliasResult$ = [3, n0, _PAARu,
|
|
396
|
+
0,
|
|
397
|
+
[],
|
|
398
|
+
[]
|
|
399
|
+
];
|
|
400
|
+
var RegisterSlackWorkspaceForOrganizationRequest$ = [3, n0, _RSWFOR,
|
|
401
|
+
0,
|
|
402
|
+
[_tI],
|
|
403
|
+
[0], 1
|
|
404
|
+
];
|
|
405
|
+
var RegisterSlackWorkspaceForOrganizationResult$ = [3, n0, _RSWFORe,
|
|
406
|
+
0,
|
|
407
|
+
[_tI, _tN, _aT],
|
|
408
|
+
[0, 0, 0]
|
|
409
|
+
];
|
|
410
|
+
var SlackChannelConfiguration$ = [3, n0, _SCC,
|
|
411
|
+
0,
|
|
412
|
+
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
413
|
+
[0, 0, 0, 2, 2, 2, 0, 0], 2
|
|
414
|
+
];
|
|
415
|
+
var SlackWorkspaceConfiguration$ = [3, n0, _SWC,
|
|
416
|
+
0,
|
|
417
|
+
[_tI, _tN, _aOMA],
|
|
418
|
+
[0, 0, 2], 1
|
|
419
|
+
];
|
|
420
|
+
var UpdateSlackChannelConfigurationRequest$ = [3, n0, _USCCR,
|
|
421
|
+
0,
|
|
422
|
+
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
423
|
+
[0, 0, 0, 2, 2, 2, 0, 0], 2
|
|
424
|
+
];
|
|
425
|
+
var UpdateSlackChannelConfigurationResult$ = [3, n0, _USCCRp,
|
|
426
|
+
0,
|
|
427
|
+
[_tI, _cI, _cN, _nOCORC, _nOACTC, _nORC, _nOCS, _cRA],
|
|
428
|
+
[0, 0, 0, 2, 2, 2, 0, 0]
|
|
429
|
+
];
|
|
430
|
+
var slackChannelConfigurationList = [1, n0, _sCCL,
|
|
431
|
+
0, () => SlackChannelConfiguration$
|
|
432
|
+
];
|
|
433
|
+
var SlackWorkspaceConfigurationList = [1, n0, _SWCL,
|
|
434
|
+
0, () => SlackWorkspaceConfiguration$
|
|
435
|
+
];
|
|
436
|
+
var CreateSlackChannelConfiguration$ = [9, n0, _CSCC,
|
|
437
|
+
{ [_h]: ["POST", "/control/create-slack-channel-configuration", 200] }, () => CreateSlackChannelConfigurationRequest$, () => CreateSlackChannelConfigurationResult$
|
|
438
|
+
];
|
|
439
|
+
var DeleteAccountAlias$ = [9, n0, _DAA,
|
|
440
|
+
{ [_h]: ["POST", "/control/delete-account-alias", 200] }, () => DeleteAccountAliasRequest$, () => DeleteAccountAliasResult$
|
|
441
|
+
];
|
|
442
|
+
var DeleteSlackChannelConfiguration$ = [9, n0, _DSCC,
|
|
443
|
+
{ [_h]: ["POST", "/control/delete-slack-channel-configuration", 200] }, () => DeleteSlackChannelConfigurationRequest$, () => DeleteSlackChannelConfigurationResult$
|
|
444
|
+
];
|
|
445
|
+
var DeleteSlackWorkspaceConfiguration$ = [9, n0, _DSWC,
|
|
446
|
+
{ [_h]: ["POST", "/control/delete-slack-workspace-configuration", 200] }, () => DeleteSlackWorkspaceConfigurationRequest$, () => DeleteSlackWorkspaceConfigurationResult$
|
|
447
|
+
];
|
|
448
|
+
var GetAccountAlias$ = [9, n0, _GAA,
|
|
449
|
+
{ [_h]: ["POST", "/control/get-account-alias", 200] }, () => GetAccountAliasRequest$, () => GetAccountAliasResult$
|
|
450
|
+
];
|
|
451
|
+
var ListSlackChannelConfigurations$ = [9, n0, _LSCC,
|
|
452
|
+
{ [_h]: ["POST", "/control/list-slack-channel-configurations", 200] }, () => ListSlackChannelConfigurationsRequest$, () => ListSlackChannelConfigurationsResult$
|
|
453
|
+
];
|
|
454
|
+
var ListSlackWorkspaceConfigurations$ = [9, n0, _LSWC,
|
|
455
|
+
{ [_h]: ["POST", "/control/list-slack-workspace-configurations", 200] }, () => ListSlackWorkspaceConfigurationsRequest$, () => ListSlackWorkspaceConfigurationsResult$
|
|
456
|
+
];
|
|
457
|
+
var PutAccountAlias$ = [9, n0, _PAA,
|
|
458
|
+
{ [_h]: ["POST", "/control/put-account-alias", 200] }, () => PutAccountAliasRequest$, () => PutAccountAliasResult$
|
|
459
|
+
];
|
|
460
|
+
var RegisterSlackWorkspaceForOrganization$ = [9, n0, _RSWFO,
|
|
461
|
+
{ [_h]: ["POST", "/control/register-slack-workspace-for-organization", 200] }, () => RegisterSlackWorkspaceForOrganizationRequest$, () => RegisterSlackWorkspaceForOrganizationResult$
|
|
462
|
+
];
|
|
463
|
+
var UpdateSlackChannelConfiguration$ = [9, n0, _USCC,
|
|
464
|
+
{ [_h]: ["POST", "/control/update-slack-channel-configuration", 200] }, () => UpdateSlackChannelConfigurationRequest$, () => UpdateSlackChannelConfigurationResult$
|
|
465
|
+
];
|
|
466
|
+
|
|
467
|
+
const getRuntimeConfig$1 = (config) => {
|
|
468
|
+
return {
|
|
469
|
+
apiVersion: "2021-08-20",
|
|
470
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
471
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
472
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
473
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
474
|
+
extensions: config?.extensions ?? [],
|
|
475
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSupportAppHttpAuthSchemeProvider,
|
|
476
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
477
|
+
{
|
|
478
|
+
schemeId: "aws.auth#sigv4",
|
|
479
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
480
|
+
signer: new AwsSdkSigV4Signer(),
|
|
481
|
+
},
|
|
482
|
+
],
|
|
483
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
484
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
485
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
486
|
+
defaultNamespace: "com.amazonaws.supportapp",
|
|
487
|
+
errorTypeRegistries,
|
|
488
|
+
version: "2021-08-20",
|
|
489
|
+
serviceTarget: "SupportApp",
|
|
490
|
+
},
|
|
491
|
+
serviceId: config?.serviceId ?? "Support App",
|
|
492
|
+
sha256: config?.sha256 ?? Sha256,
|
|
493
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
494
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
495
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
const getRuntimeConfig = (config) => {
|
|
500
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
501
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
502
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
503
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
504
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
505
|
+
const loaderConfig = {
|
|
506
|
+
profile: config?.profile,
|
|
507
|
+
logger: clientSharedValues.logger,
|
|
508
|
+
};
|
|
509
|
+
return {
|
|
510
|
+
...clientSharedValues,
|
|
511
|
+
...config,
|
|
512
|
+
runtime: "node",
|
|
513
|
+
defaultsMode,
|
|
514
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
515
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
516
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
517
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
518
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
519
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
520
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
521
|
+
retryMode: config?.retryMode ??
|
|
522
|
+
loadConfig({
|
|
523
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
524
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
525
|
+
}, config),
|
|
526
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
527
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
528
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
529
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
|
|
34
533
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
534
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
535
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -265,19 +764,66 @@ const NotificationSeverityLevel = {
|
|
|
265
764
|
NONE: "none",
|
|
266
765
|
};
|
|
267
766
|
|
|
767
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
768
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
268
769
|
exports.AccountType = AccountType;
|
|
770
|
+
exports.ConflictException = ConflictException;
|
|
771
|
+
exports.ConflictException$ = ConflictException$;
|
|
772
|
+
exports.CreateSlackChannelConfiguration$ = CreateSlackChannelConfiguration$;
|
|
269
773
|
exports.CreateSlackChannelConfigurationCommand = CreateSlackChannelConfigurationCommand;
|
|
774
|
+
exports.CreateSlackChannelConfigurationRequest$ = CreateSlackChannelConfigurationRequest$;
|
|
775
|
+
exports.CreateSlackChannelConfigurationResult$ = CreateSlackChannelConfigurationResult$;
|
|
776
|
+
exports.DeleteAccountAlias$ = DeleteAccountAlias$;
|
|
270
777
|
exports.DeleteAccountAliasCommand = DeleteAccountAliasCommand;
|
|
778
|
+
exports.DeleteAccountAliasRequest$ = DeleteAccountAliasRequest$;
|
|
779
|
+
exports.DeleteAccountAliasResult$ = DeleteAccountAliasResult$;
|
|
780
|
+
exports.DeleteSlackChannelConfiguration$ = DeleteSlackChannelConfiguration$;
|
|
271
781
|
exports.DeleteSlackChannelConfigurationCommand = DeleteSlackChannelConfigurationCommand;
|
|
782
|
+
exports.DeleteSlackChannelConfigurationRequest$ = DeleteSlackChannelConfigurationRequest$;
|
|
783
|
+
exports.DeleteSlackChannelConfigurationResult$ = DeleteSlackChannelConfigurationResult$;
|
|
784
|
+
exports.DeleteSlackWorkspaceConfiguration$ = DeleteSlackWorkspaceConfiguration$;
|
|
272
785
|
exports.DeleteSlackWorkspaceConfigurationCommand = DeleteSlackWorkspaceConfigurationCommand;
|
|
786
|
+
exports.DeleteSlackWorkspaceConfigurationRequest$ = DeleteSlackWorkspaceConfigurationRequest$;
|
|
787
|
+
exports.DeleteSlackWorkspaceConfigurationResult$ = DeleteSlackWorkspaceConfigurationResult$;
|
|
788
|
+
exports.GetAccountAlias$ = GetAccountAlias$;
|
|
273
789
|
exports.GetAccountAliasCommand = GetAccountAliasCommand;
|
|
790
|
+
exports.GetAccountAliasRequest$ = GetAccountAliasRequest$;
|
|
791
|
+
exports.GetAccountAliasResult$ = GetAccountAliasResult$;
|
|
792
|
+
exports.InternalServerException = InternalServerException;
|
|
793
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
794
|
+
exports.ListSlackChannelConfigurations$ = ListSlackChannelConfigurations$;
|
|
274
795
|
exports.ListSlackChannelConfigurationsCommand = ListSlackChannelConfigurationsCommand;
|
|
796
|
+
exports.ListSlackChannelConfigurationsRequest$ = ListSlackChannelConfigurationsRequest$;
|
|
797
|
+
exports.ListSlackChannelConfigurationsResult$ = ListSlackChannelConfigurationsResult$;
|
|
798
|
+
exports.ListSlackWorkspaceConfigurations$ = ListSlackWorkspaceConfigurations$;
|
|
275
799
|
exports.ListSlackWorkspaceConfigurationsCommand = ListSlackWorkspaceConfigurationsCommand;
|
|
800
|
+
exports.ListSlackWorkspaceConfigurationsRequest$ = ListSlackWorkspaceConfigurationsRequest$;
|
|
801
|
+
exports.ListSlackWorkspaceConfigurationsResult$ = ListSlackWorkspaceConfigurationsResult$;
|
|
276
802
|
exports.NotificationSeverityLevel = NotificationSeverityLevel;
|
|
803
|
+
exports.PutAccountAlias$ = PutAccountAlias$;
|
|
277
804
|
exports.PutAccountAliasCommand = PutAccountAliasCommand;
|
|
805
|
+
exports.PutAccountAliasRequest$ = PutAccountAliasRequest$;
|
|
806
|
+
exports.PutAccountAliasResult$ = PutAccountAliasResult$;
|
|
807
|
+
exports.RegisterSlackWorkspaceForOrganization$ = RegisterSlackWorkspaceForOrganization$;
|
|
278
808
|
exports.RegisterSlackWorkspaceForOrganizationCommand = RegisterSlackWorkspaceForOrganizationCommand;
|
|
809
|
+
exports.RegisterSlackWorkspaceForOrganizationRequest$ = RegisterSlackWorkspaceForOrganizationRequest$;
|
|
810
|
+
exports.RegisterSlackWorkspaceForOrganizationResult$ = RegisterSlackWorkspaceForOrganizationResult$;
|
|
811
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
812
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
813
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
814
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
815
|
+
exports.SlackChannelConfiguration$ = SlackChannelConfiguration$;
|
|
816
|
+
exports.SlackWorkspaceConfiguration$ = SlackWorkspaceConfiguration$;
|
|
279
817
|
exports.SupportApp = SupportApp;
|
|
280
818
|
exports.SupportAppClient = SupportAppClient;
|
|
819
|
+
exports.SupportAppServiceException = SupportAppServiceException;
|
|
820
|
+
exports.SupportAppServiceException$ = SupportAppServiceException$;
|
|
821
|
+
exports.UpdateSlackChannelConfiguration$ = UpdateSlackChannelConfiguration$;
|
|
281
822
|
exports.UpdateSlackChannelConfigurationCommand = UpdateSlackChannelConfigurationCommand;
|
|
823
|
+
exports.UpdateSlackChannelConfigurationRequest$ = UpdateSlackChannelConfigurationRequest$;
|
|
824
|
+
exports.UpdateSlackChannelConfigurationResult$ = UpdateSlackChannelConfigurationResult$;
|
|
825
|
+
exports.ValidationException = ValidationException;
|
|
826
|
+
exports.ValidationException$ = ValidationException$;
|
|
827
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
282
828
|
exports.paginateListSlackChannelConfigurations = paginateListSlackChannelConfigurations;
|
|
283
829
|
exports.paginateListSlackWorkspaceConfigurations = paginateListSlackWorkspaceConfigurations;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "SupportApp",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Support App",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|