@aws-sdk/client-account-access-runtime 0.0.0-stage → 3.1163.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 +194 -2
- package/dist-cjs/index.js +517 -0
- package/dist-es/AccountAccessRuntime.js +15 -0
- package/dist-es/AccountAccessRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +36 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/GetRoleCredentialsCommand.js +4 -0
- package/dist-es/commands/ListRolesCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/AccountAccessRuntimeServiceException.js +9 -0
- package/dist-es/models/enums.js +3 -0
- package/dist-es/models/errors.js +66 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRolesPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +28 -0
- package/dist-es/runtimeConfig.js +53 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +125 -0
- package/dist-types/AccountAccessRuntime.d.ts +37 -0
- package/dist-types/AccountAccessRuntimeClient.d.ts +183 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/GetRoleCredentialsCommand.d.ts +97 -0
- package/dist-types/commands/ListRolesCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/AccountAccessRuntimeServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +11 -0
- package/dist-types/models/errors.d.ts +67 -0
- package/dist-types/models/models_0.d.ts +156 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListRolesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +54 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +53 -0
- package/dist-types/runtimeConfig.shared.d.ts +34 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +23 -0
- package/dist-types/ts3.4/AccountAccessRuntime.d.ts +53 -0
- package/dist-types/ts3.4/AccountAccessRuntimeClient.d.ts +106 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +23 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +40 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRolesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/AccountAccessRuntimeServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +4 -0
- package/dist-types/ts3.4/models/errors.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +48 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListRolesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +39 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +67 -4
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
|
+
const { memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh, HttpBearerAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
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");
|
|
8
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
|
+
const { nodeProvider } = require("@aws-sdk/token-providers");
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
18
|
+
|
|
19
|
+
const defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
25
|
+
return {
|
|
26
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
27
|
+
propertiesExtractor: ({ profile, filepath, configFilepath, ignoreCache, }, context) => ({
|
|
28
|
+
identityProperties: {
|
|
29
|
+
profile,
|
|
30
|
+
filepath,
|
|
31
|
+
configFilepath,
|
|
32
|
+
ignoreCache,
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const defaultAccountAccessRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
38
|
+
const options = [];
|
|
39
|
+
switch (authParameters.operation) {
|
|
40
|
+
default: {
|
|
41
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return options;
|
|
45
|
+
};
|
|
46
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
47
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
48
|
+
return Object.assign(config, {
|
|
49
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
50
|
+
token,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const resolveClientEndpointParameters = (options) => {
|
|
55
|
+
return Object.assign(options, {
|
|
56
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
57
|
+
defaultSigningName: "account-access",
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const commonParams = {
|
|
61
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
62
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
63
|
+
Region: { type: "builtInParams", name: "region" },
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var version = "3.0.0";
|
|
67
|
+
var packageInfo = {
|
|
68
|
+
version: version};
|
|
69
|
+
|
|
70
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
71
|
+
const _data = {
|
|
72
|
+
conditions: [
|
|
73
|
+
[a, [b]],
|
|
74
|
+
[a, c],
|
|
75
|
+
["aws.partition", c, "PartitionResult"],
|
|
76
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
77
|
+
],
|
|
78
|
+
results: [
|
|
79
|
+
[-1],
|
|
80
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
81
|
+
[b, {}],
|
|
82
|
+
["https://account-access-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
83
|
+
["https://account-access-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
84
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
85
|
+
]
|
|
86
|
+
};
|
|
87
|
+
const root = 2;
|
|
88
|
+
const r = 100_000_000;
|
|
89
|
+
const nodes = new Int32Array([
|
|
90
|
+
-1, 1, -1,
|
|
91
|
+
0, 6, 3,
|
|
92
|
+
1, 4, r + 5,
|
|
93
|
+
2, 5, r + 5,
|
|
94
|
+
3, r + 3, r + 4,
|
|
95
|
+
3, r + 1, r + 2,
|
|
96
|
+
]);
|
|
97
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
98
|
+
|
|
99
|
+
const cache = new EndpointCache({
|
|
100
|
+
size: 50,
|
|
101
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
102
|
+
});
|
|
103
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
104
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
105
|
+
endpointParams: endpointParams,
|
|
106
|
+
logger: context.logger,
|
|
107
|
+
}));
|
|
108
|
+
};
|
|
109
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
110
|
+
|
|
111
|
+
class AccountAccessRuntimeServiceException extends ServiceException {
|
|
112
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.accountaccessruntime#AccountAccessRuntimeServiceException";
|
|
113
|
+
constructor(options) {
|
|
114
|
+
super(options);
|
|
115
|
+
Object.setPrototypeOf(this, AccountAccessRuntimeServiceException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
class AccessDeniedException extends AccountAccessRuntimeServiceException {
|
|
120
|
+
static shapeId = "com.amazonaws.accountaccessruntime#AccessDeniedException";
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class InternalServerException extends AccountAccessRuntimeServiceException {
|
|
133
|
+
static shapeId = "com.amazonaws.accountaccessruntime#InternalServerException";
|
|
134
|
+
name = "InternalServerException";
|
|
135
|
+
$fault = "server";
|
|
136
|
+
constructor(opts) {
|
|
137
|
+
super({
|
|
138
|
+
name: "InternalServerException",
|
|
139
|
+
$fault: "server",
|
|
140
|
+
...opts,
|
|
141
|
+
});
|
|
142
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
class ThrottlingException extends AccountAccessRuntimeServiceException {
|
|
146
|
+
static shapeId = "com.amazonaws.accountaccessruntime#ThrottlingException";
|
|
147
|
+
name = "ThrottlingException";
|
|
148
|
+
$fault = "client";
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ThrottlingException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class UnauthorizedException extends AccountAccessRuntimeServiceException {
|
|
159
|
+
static shapeId = "com.amazonaws.accountaccessruntime#UnauthorizedException";
|
|
160
|
+
name = "UnauthorizedException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "UnauthorizedException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
class ValidationException extends AccountAccessRuntimeServiceException {
|
|
172
|
+
static shapeId = "com.amazonaws.accountaccessruntime#ValidationException";
|
|
173
|
+
name = "ValidationException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ValidationException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const _AD = "AccessDetails";
|
|
186
|
+
const _ADE = "AccessDeniedException";
|
|
187
|
+
const _ADL = "AccessDetailsList";
|
|
188
|
+
const _CD = "CredentialsDetails";
|
|
189
|
+
const _GRC = "GetRoleCredentials";
|
|
190
|
+
const _GRCR = "GetRoleCredentialsRequest";
|
|
191
|
+
const _GRCRe = "GetRoleCredentialsResponse";
|
|
192
|
+
const _ISE = "InternalServerException";
|
|
193
|
+
const _LR = "ListRoles";
|
|
194
|
+
const _LRR = "ListRolesRequest";
|
|
195
|
+
const _LRRi = "ListRolesResponse";
|
|
196
|
+
const _PAD = "ProgrammaticAccessDetails";
|
|
197
|
+
const _TE = "ThrottlingException";
|
|
198
|
+
const _UE = "UnauthorizedException";
|
|
199
|
+
const _VE = "ValidationException";
|
|
200
|
+
const _aI = "accountId";
|
|
201
|
+
const _aKI = "accessKeyId";
|
|
202
|
+
const _aN = "accountName";
|
|
203
|
+
const _aT = "accessType";
|
|
204
|
+
const _c = "client";
|
|
205
|
+
const _cD = "credentialsDetails";
|
|
206
|
+
const _e = "error";
|
|
207
|
+
const _eA = "expiresAt";
|
|
208
|
+
const _h = "http";
|
|
209
|
+
const _hE = "httpError";
|
|
210
|
+
const _hQ = "httpQuery";
|
|
211
|
+
const _m = "message";
|
|
212
|
+
const _mR = "maxResults";
|
|
213
|
+
const _nT = "nextToken";
|
|
214
|
+
const _pA = "programmaticAccess";
|
|
215
|
+
const _r = "roles";
|
|
216
|
+
const _rA = "roleArn";
|
|
217
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.accountaccessruntime";
|
|
218
|
+
const _sAK = "secretAccessKey";
|
|
219
|
+
const _sD = "sessionDuration";
|
|
220
|
+
const _sN = "sessionName";
|
|
221
|
+
const _sT = "sessionToken";
|
|
222
|
+
const _se = "server";
|
|
223
|
+
const _tI = "tenantId";
|
|
224
|
+
const n0 = "com.amazonaws.accountaccessruntime";
|
|
225
|
+
const _s_registry = new TypeRegistry(_s);
|
|
226
|
+
var AccountAccessRuntimeServiceException$ = [-3, _s, "AccountAccessRuntimeServiceException", 0, [], []];
|
|
227
|
+
_s_registry.registerError(AccountAccessRuntimeServiceException$, AccountAccessRuntimeServiceException);
|
|
228
|
+
const n0_registry = new TypeRegistry(n0);
|
|
229
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
230
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
231
|
+
[_m],
|
|
232
|
+
[0], 1
|
|
233
|
+
];
|
|
234
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
235
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
236
|
+
{ [_e]: _se },
|
|
237
|
+
[_m],
|
|
238
|
+
[0], 1
|
|
239
|
+
];
|
|
240
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
241
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
242
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
243
|
+
[_m],
|
|
244
|
+
[0], 1
|
|
245
|
+
];
|
|
246
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
247
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
248
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
249
|
+
[_m],
|
|
250
|
+
[0], 1
|
|
251
|
+
];
|
|
252
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
253
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
254
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
255
|
+
[_m],
|
|
256
|
+
[0], 1
|
|
257
|
+
];
|
|
258
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
259
|
+
const errorTypeRegistries = [
|
|
260
|
+
_s_registry,
|
|
261
|
+
n0_registry,
|
|
262
|
+
];
|
|
263
|
+
var AccessDetails$ = [3, n0, _AD,
|
|
264
|
+
0,
|
|
265
|
+
[_aI, _rA, _aN],
|
|
266
|
+
[0, 0, 0], 2
|
|
267
|
+
];
|
|
268
|
+
var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
269
|
+
0,
|
|
270
|
+
[_tI, _rA, _aT, _sN, _sD],
|
|
271
|
+
[[0, { [_hQ]: _tI }], [0, { [_hQ]: _rA }], [0, { [_hQ]: _aT }], [0, { [_hQ]: _sN }], [1, { [_hQ]: _sD }]], 3
|
|
272
|
+
];
|
|
273
|
+
var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
274
|
+
0,
|
|
275
|
+
[_cD],
|
|
276
|
+
[[() => CredentialsDetails$, 0]]
|
|
277
|
+
];
|
|
278
|
+
var ListRolesRequest$ = [3, n0, _LRR,
|
|
279
|
+
0,
|
|
280
|
+
[_tI, _mR, _nT],
|
|
281
|
+
[[0, { [_hQ]: _tI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
|
|
282
|
+
];
|
|
283
|
+
var ListRolesResponse$ = [3, n0, _LRRi,
|
|
284
|
+
0,
|
|
285
|
+
[_r, _nT],
|
|
286
|
+
[() => AccessDetailsList, 0], 1
|
|
287
|
+
];
|
|
288
|
+
var ProgrammaticAccessDetails$ = [3, n0, _PAD,
|
|
289
|
+
8,
|
|
290
|
+
[_aKI, _sAK, _sT, _eA],
|
|
291
|
+
[0, 0, 0, 4], 4
|
|
292
|
+
];
|
|
293
|
+
var AccessDetailsList = [1, n0, _ADL,
|
|
294
|
+
0, () => AccessDetails$
|
|
295
|
+
];
|
|
296
|
+
var CredentialsDetails$ = [4, n0, _CD,
|
|
297
|
+
8,
|
|
298
|
+
[_pA],
|
|
299
|
+
[[() => ProgrammaticAccessDetails$, 0]]
|
|
300
|
+
];
|
|
301
|
+
var GetRoleCredentials$ = [9, n0, _GRC,
|
|
302
|
+
{ [_h]: ["GET", "/access/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
303
|
+
];
|
|
304
|
+
var ListRoles$ = [9, n0, _LR,
|
|
305
|
+
{ [_h]: ["GET", "/access", 200] }, () => ListRolesRequest$, () => ListRolesResponse$
|
|
306
|
+
];
|
|
307
|
+
|
|
308
|
+
const getRuntimeConfig$1 = (config) => {
|
|
309
|
+
return {
|
|
310
|
+
apiVersion: "2018-05-10",
|
|
311
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
312
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
313
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
314
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
315
|
+
extensions: config?.extensions ?? [],
|
|
316
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAccountAccessRuntimeHttpAuthSchemeProvider,
|
|
317
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
318
|
+
{
|
|
319
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
320
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
321
|
+
signer: new HttpBearerAuthSigner(),
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
325
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
326
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
327
|
+
defaultNamespace: "com.amazonaws.accountaccessruntime",
|
|
328
|
+
errorTypeRegistries,
|
|
329
|
+
version: "2018-05-10",
|
|
330
|
+
serviceTarget: "AWSAccountAccessRuntime",
|
|
331
|
+
},
|
|
332
|
+
serviceId: config?.serviceId ?? "Account Access Runtime",
|
|
333
|
+
sha256: config?.sha256 ?? Sha256,
|
|
334
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
335
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
336
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
const getRuntimeConfig = (config) => {
|
|
341
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
342
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
343
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
344
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
345
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
346
|
+
const loaderConfig = {
|
|
347
|
+
profile: config?.profile,
|
|
348
|
+
logger: clientSharedValues.logger,
|
|
349
|
+
};
|
|
350
|
+
return {
|
|
351
|
+
...clientSharedValues,
|
|
352
|
+
...config,
|
|
353
|
+
runtime: "node",
|
|
354
|
+
defaultsMode,
|
|
355
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
356
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
357
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
358
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
359
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
360
|
+
{
|
|
361
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
362
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
|
|
363
|
+
return await nodeProvider(idProps)(idProps);
|
|
364
|
+
}),
|
|
365
|
+
signer: new HttpBearerAuthSigner(),
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
369
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
370
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
371
|
+
retryMode: config?.retryMode ??
|
|
372
|
+
loadConfig({
|
|
373
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
374
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
375
|
+
}, config),
|
|
376
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
377
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
378
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
379
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
384
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
385
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
386
|
+
let _token = runtimeConfig.token;
|
|
387
|
+
return {
|
|
388
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
389
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
390
|
+
if (index === -1) {
|
|
391
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
httpAuthSchemes() {
|
|
398
|
+
return _httpAuthSchemes;
|
|
399
|
+
},
|
|
400
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
401
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
402
|
+
},
|
|
403
|
+
httpAuthSchemeProvider() {
|
|
404
|
+
return _httpAuthSchemeProvider;
|
|
405
|
+
},
|
|
406
|
+
setToken(token) {
|
|
407
|
+
_token = token;
|
|
408
|
+
},
|
|
409
|
+
token() {
|
|
410
|
+
return _token;
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
415
|
+
return {
|
|
416
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
417
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
418
|
+
token: config.token(),
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
423
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
424
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
425
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
class AccountAccessRuntimeClient extends Client {
|
|
429
|
+
config;
|
|
430
|
+
constructor(...[configuration]) {
|
|
431
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
432
|
+
super(_config_0);
|
|
433
|
+
this.initConfig = _config_0;
|
|
434
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
435
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
436
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
437
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
438
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
439
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
440
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
441
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
442
|
+
this.config = _config_8;
|
|
443
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
444
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
445
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
446
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
447
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
448
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
449
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
450
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
451
|
+
httpAuthSchemeParametersProvider: defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider,
|
|
452
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
453
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
454
|
+
}),
|
|
455
|
+
}));
|
|
456
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
457
|
+
}
|
|
458
|
+
destroy() {
|
|
459
|
+
super.destroy();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const command = makeBuilder(commonParams, "AWSAccountAccessRuntime", "AccountAccessRuntimeClient", getEndpointPlugin);
|
|
464
|
+
const _ep0 = {};
|
|
465
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
466
|
+
|
|
467
|
+
class GetRoleCredentialsCommand extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
class ListRolesCommand extends command(_ep0, _mw0, "ListRoles", ListRoles$) {
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
const paginateListRoles = createPaginator(AccountAccessRuntimeClient, ListRolesCommand, "nextToken", "nextToken", "maxResults");
|
|
474
|
+
|
|
475
|
+
const commands = {
|
|
476
|
+
GetRoleCredentialsCommand,
|
|
477
|
+
ListRolesCommand,
|
|
478
|
+
};
|
|
479
|
+
const paginators = {
|
|
480
|
+
paginateListRoles,
|
|
481
|
+
};
|
|
482
|
+
class AccountAccessRuntime extends AccountAccessRuntimeClient {
|
|
483
|
+
}
|
|
484
|
+
createAggregatedClient(commands, AccountAccessRuntime, { paginators });
|
|
485
|
+
|
|
486
|
+
const AccessType = {
|
|
487
|
+
PROGRAMMATIC_ACCESS: "PROGRAMMATIC_ACCESS",
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
491
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
492
|
+
exports.AccessDetails$ = AccessDetails$;
|
|
493
|
+
exports.AccessType = AccessType;
|
|
494
|
+
exports.AccountAccessRuntime = AccountAccessRuntime;
|
|
495
|
+
exports.AccountAccessRuntimeClient = AccountAccessRuntimeClient;
|
|
496
|
+
exports.AccountAccessRuntimeServiceException = AccountAccessRuntimeServiceException;
|
|
497
|
+
exports.AccountAccessRuntimeServiceException$ = AccountAccessRuntimeServiceException$;
|
|
498
|
+
exports.CredentialsDetails$ = CredentialsDetails$;
|
|
499
|
+
exports.GetRoleCredentials$ = GetRoleCredentials$;
|
|
500
|
+
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
501
|
+
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
502
|
+
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
503
|
+
exports.InternalServerException = InternalServerException;
|
|
504
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
505
|
+
exports.ListRoles$ = ListRoles$;
|
|
506
|
+
exports.ListRolesCommand = ListRolesCommand;
|
|
507
|
+
exports.ListRolesRequest$ = ListRolesRequest$;
|
|
508
|
+
exports.ListRolesResponse$ = ListRolesResponse$;
|
|
509
|
+
exports.ProgrammaticAccessDetails$ = ProgrammaticAccessDetails$;
|
|
510
|
+
exports.ThrottlingException = ThrottlingException;
|
|
511
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
512
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
513
|
+
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
514
|
+
exports.ValidationException = ValidationException;
|
|
515
|
+
exports.ValidationException$ = ValidationException$;
|
|
516
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
517
|
+
exports.paginateListRoles = paginateListRoles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { AccountAccessRuntimeClient } from "./AccountAccessRuntimeClient";
|
|
3
|
+
import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
|
|
4
|
+
import { ListRolesCommand } from "./commands/ListRolesCommand";
|
|
5
|
+
import { paginateListRoles } from "./pagination/ListRolesPaginator";
|
|
6
|
+
const commands = {
|
|
7
|
+
GetRoleCredentialsCommand,
|
|
8
|
+
ListRolesCommand,
|
|
9
|
+
};
|
|
10
|
+
const paginators = {
|
|
11
|
+
paginateListRoles,
|
|
12
|
+
};
|
|
13
|
+
export class AccountAccessRuntime extends AccountAccessRuntimeClient {
|
|
14
|
+
}
|
|
15
|
+
createAggregatedClient(commands, AccountAccessRuntime, { paginators });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
5
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
8
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
|
+
import { defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
export class AccountAccessRuntimeClient extends __Client {
|
|
15
|
+
config;
|
|
16
|
+
constructor(...[configuration]) {
|
|
17
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
|
+
super(_config_0);
|
|
19
|
+
this.initConfig = _config_0;
|
|
20
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
23
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
24
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
25
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
37
|
+
httpAuthSchemeParametersProvider: defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider,
|
|
38
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
39
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
43
|
+
}
|
|
44
|
+
destroy() {
|
|
45
|
+
super.destroy();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultAccountAccessRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
propertiesExtractor: ({ profile, filepath, configFilepath, ignoreCache, }, context) => ({
|
|
12
|
+
identityProperties: {
|
|
13
|
+
profile,
|
|
14
|
+
filepath,
|
|
15
|
+
configFilepath,
|
|
16
|
+
ignoreCache,
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export const defaultAccountAccessRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
22
|
+
const options = [];
|
|
23
|
+
switch (authParameters.operation) {
|
|
24
|
+
default: {
|
|
25
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return options;
|
|
29
|
+
};
|
|
30
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
31
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
32
|
+
return Object.assign(config, {
|
|
33
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
34
|
+
token,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "AWSAccountAccessRuntime", "AccountAccessRuntimeClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|