@aws-sdk/client-account-access 3.1108.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 +258 -0
- package/dist-cjs/index.js +979 -0
- package/dist-es/AccountAccess.js +39 -0
- package/dist-es/AccountAccessClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateApplicationCommand.js +4 -0
- package/dist-es/commands/CreateEntitlementCommand.js +4 -0
- package/dist-es/commands/DeleteApplicationCommand.js +4 -0
- package/dist-es/commands/DeleteEntitlementCommand.js +4 -0
- package/dist-es/commands/GetApplicationCommand.js +4 -0
- package/dist-es/commands/GetEntitlementCommand.js +4 -0
- package/dist-es/commands/ListApplicationsCommand.js +4 -0
- package/dist-es/commands/ListEntitlementsCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/index.js +11 -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 +11 -0
- package/dist-es/models/AccountAccessServiceException.js +8 -0
- package/dist-es/models/enums.js +13 -0
- package/dist-es/models/errors.js +97 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +4 -0
- package/dist-es/pagination/ListEntitlementsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -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 +402 -0
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForApplicationActive.js +49 -0
- package/dist-types/AccountAccess.d.ts +109 -0
- package/dist-types/AccountAccessClient.d.ts +197 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +93 -0
- package/dist-types/commands/CreateEntitlementCommand.d.ts +103 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +84 -0
- package/dist-types/commands/DeleteEntitlementCommand.d.ts +88 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +99 -0
- package/dist-types/commands/GetEntitlementCommand.d.ts +102 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +92 -0
- package/dist-types/commands/ListEntitlementsCommand.d.ts +119 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +85 -0
- package/dist-types/commands/TagResourceCommand.d.ts +84 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +84 -0
- package/dist-types/commands/index.d.ts +11 -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 +19 -0
- package/dist-types/models/AccountAccessServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +29 -0
- package/dist-types/models/errors.d.ts +98 -0
- package/dist-types/models/models_0.d.ts +817 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEntitlementsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +69 -0
- package/dist-types/ts3.4/AccountAccess.d.ts +219 -0
- package/dist-types/ts3.4/AccountAccessClient.d.ts +164 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEntitlementCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEntitlementsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -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 +14 -0
- package/dist-types/ts3.4/models/AccountAccessServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +15 -0
- package/dist-types/ts3.4/models/errors.d.ts +42 -0
- package/dist-types/ts3.4/models/models_0.d.ts +289 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEntitlementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +69 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForApplicationActive.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForApplicationActive.d.ts +15 -0
- package/package.json +69 -0
|
@@ -0,0 +1,979 @@
|
|
|
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");
|
|
2
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, 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 { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
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 defaultAccountAccessHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
23
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
24
|
+
})(),
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "aws.auth#sigv4",
|
|
30
|
+
signingProperties: {
|
|
31
|
+
name: "account-access",
|
|
32
|
+
region: authParameters.region,
|
|
33
|
+
},
|
|
34
|
+
propertiesExtractor: (config, context) => ({
|
|
35
|
+
signingProperties: {
|
|
36
|
+
config,
|
|
37
|
+
context,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const defaultAccountAccessHttpAuthSchemeProvider = (authParameters) => {
|
|
43
|
+
const options = [];
|
|
44
|
+
switch (authParameters.operation) {
|
|
45
|
+
default: {
|
|
46
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return options;
|
|
50
|
+
};
|
|
51
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
52
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
53
|
+
return Object.assign(config_0, {
|
|
54
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const resolveClientEndpointParameters = (options) => {
|
|
59
|
+
return Object.assign(options, {
|
|
60
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
61
|
+
defaultSigningName: "account-access",
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const commonParams = {
|
|
65
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
66
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
67
|
+
Region: { type: "builtInParams", name: "region" },
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var version = "3.0.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
75
|
+
const _data = {
|
|
76
|
+
conditions: [
|
|
77
|
+
[a, [b]],
|
|
78
|
+
[a, c],
|
|
79
|
+
["aws.partition", c, "PartitionResult"],
|
|
80
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
81
|
+
],
|
|
82
|
+
results: [
|
|
83
|
+
[-1],
|
|
84
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
85
|
+
[b, {}],
|
|
86
|
+
["https://account-access-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
87
|
+
["https://account-access.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
88
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
89
|
+
]
|
|
90
|
+
};
|
|
91
|
+
const root = 2;
|
|
92
|
+
const r = 100_000_000;
|
|
93
|
+
const nodes = new Int32Array([
|
|
94
|
+
-1, 1, -1,
|
|
95
|
+
0, 6, 3,
|
|
96
|
+
1, 4, r + 5,
|
|
97
|
+
2, 5, r + 5,
|
|
98
|
+
3, r + 3, r + 4,
|
|
99
|
+
3, r + 1, r + 2,
|
|
100
|
+
]);
|
|
101
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
102
|
+
|
|
103
|
+
const cache = new EndpointCache({
|
|
104
|
+
size: 50,
|
|
105
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
106
|
+
});
|
|
107
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
108
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
109
|
+
endpointParams: endpointParams,
|
|
110
|
+
logger: context.logger,
|
|
111
|
+
}));
|
|
112
|
+
};
|
|
113
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
114
|
+
|
|
115
|
+
class AccountAccessServiceException extends ServiceException {
|
|
116
|
+
constructor(options) {
|
|
117
|
+
super(options);
|
|
118
|
+
Object.setPrototypeOf(this, AccountAccessServiceException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
class AccessDeniedException extends AccountAccessServiceException {
|
|
123
|
+
name = "AccessDeniedException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "AccessDeniedException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class AlreadyCreatedException extends AccountAccessServiceException {
|
|
135
|
+
name = "AlreadyCreatedException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "AlreadyCreatedException",
|
|
140
|
+
$fault: "client",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
Object.setPrototypeOf(this, AlreadyCreatedException.prototype);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
class ConflictException extends AccountAccessServiceException {
|
|
147
|
+
name = "ConflictException";
|
|
148
|
+
$fault = "client";
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ConflictException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class InternalServerException extends AccountAccessServiceException {
|
|
159
|
+
name = "InternalServerException";
|
|
160
|
+
$fault = "server";
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "InternalServerException",
|
|
164
|
+
$fault: "server",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
class ValidationException extends AccountAccessServiceException {
|
|
171
|
+
name = "ValidationException";
|
|
172
|
+
$fault = "client";
|
|
173
|
+
constructor(opts) {
|
|
174
|
+
super({
|
|
175
|
+
name: "ValidationException",
|
|
176
|
+
$fault: "client",
|
|
177
|
+
...opts,
|
|
178
|
+
});
|
|
179
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class ResourceNotFoundException extends AccountAccessServiceException {
|
|
183
|
+
name = "ResourceNotFoundException";
|
|
184
|
+
$fault = "client";
|
|
185
|
+
constructor(opts) {
|
|
186
|
+
super({
|
|
187
|
+
name: "ResourceNotFoundException",
|
|
188
|
+
$fault: "client",
|
|
189
|
+
...opts,
|
|
190
|
+
});
|
|
191
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
class ServiceQuotaExceededException extends AccountAccessServiceException {
|
|
195
|
+
name = "ServiceQuotaExceededException";
|
|
196
|
+
$fault = "client";
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ServiceQuotaExceededException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
class ThrottlingException extends AccountAccessServiceException {
|
|
207
|
+
name = "ThrottlingException";
|
|
208
|
+
$fault = "client";
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "ThrottlingException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts,
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const _ACE = "AlreadyCreatedException";
|
|
220
|
+
const _ADE = "AccessDeniedException";
|
|
221
|
+
const _AL = "ApplicationList";
|
|
222
|
+
const _AS = "ApplicationSummary";
|
|
223
|
+
const _CA = "CreateApplication";
|
|
224
|
+
const _CAR = "CreateApplicationRequest";
|
|
225
|
+
const _CARr = "CreateApplicationResponse";
|
|
226
|
+
const _CE = "ConflictException";
|
|
227
|
+
const _CER = "CreateEntitlementRequest";
|
|
228
|
+
const _CERr = "CreateEntitlementResponse";
|
|
229
|
+
const _CEr = "CreateEntitlement";
|
|
230
|
+
const _DA = "DeleteApplication";
|
|
231
|
+
const _DAR = "DeleteApplicationRequest";
|
|
232
|
+
const _DARe = "DeleteApplicationResponse";
|
|
233
|
+
const _DE = "DeleteEntitlement";
|
|
234
|
+
const _DER = "DeleteEntitlementRequest";
|
|
235
|
+
const _DERe = "DeleteEntitlementResponse";
|
|
236
|
+
const _E = "Entitlement";
|
|
237
|
+
const _ED = "ErrorDetails";
|
|
238
|
+
const _EDn = "EntitlementDetails";
|
|
239
|
+
const _EF = "EntitlementFilter";
|
|
240
|
+
const _EL = "EntitlementsList";
|
|
241
|
+
const _ELM = "EntitlementsListMember";
|
|
242
|
+
const _ES = "EntitlementSummary";
|
|
243
|
+
const _GA = "GetApplication";
|
|
244
|
+
const _GAR = "GetApplicationRequest";
|
|
245
|
+
const _GARe = "GetApplicationResponse";
|
|
246
|
+
const _GE = "GetEntitlement";
|
|
247
|
+
const _GER = "GetEntitlementRequest";
|
|
248
|
+
const _GERe = "GetEntitlementResponse";
|
|
249
|
+
const _IC = "IdentityCenter";
|
|
250
|
+
const _ICD = "IdentityCenterDetails";
|
|
251
|
+
const _ICP = "IdentityCenterPrincipal";
|
|
252
|
+
const _ICPF = "IdentityCenterPrincipalFilter";
|
|
253
|
+
const _IS = "IdentitySource";
|
|
254
|
+
const _ISD = "IdentitySourceDetails";
|
|
255
|
+
const _ISE = "InternalServerException";
|
|
256
|
+
const _LA = "ListApplications";
|
|
257
|
+
const _LAR = "ListApplicationsRequest";
|
|
258
|
+
const _LARi = "ListApplicationsResponse";
|
|
259
|
+
const _LE = "ListEntitlements";
|
|
260
|
+
const _LER = "ListEntitlementsRequest";
|
|
261
|
+
const _LERi = "ListEntitlementsResponse";
|
|
262
|
+
const _LTFR = "ListTagsForResource";
|
|
263
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
264
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
265
|
+
const _P = "Principal";
|
|
266
|
+
const _PF = "PrincipalFilter";
|
|
267
|
+
const _PRE = "PrincipalRoleEntitlement";
|
|
268
|
+
const _PRED = "PrincipalRoleEntitlementDetails";
|
|
269
|
+
const _PREF = "PrincipalRoleEntitlementFilter";
|
|
270
|
+
const _PRES = "PrincipalRoleEntitlementSummary";
|
|
271
|
+
const _RNFE = "ResourceNotFoundException";
|
|
272
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
273
|
+
const _TE = "ThrottlingException";
|
|
274
|
+
const _TR = "TagResource";
|
|
275
|
+
const _TRR = "TagResourceRequest";
|
|
276
|
+
const _TRRa = "TagResourceResponse";
|
|
277
|
+
const _UR = "UntagResource";
|
|
278
|
+
const _URR = "UntagResourceRequest";
|
|
279
|
+
const _URRn = "UntagResourceResponse";
|
|
280
|
+
const _VE = "ValidationException";
|
|
281
|
+
const _a = "applications";
|
|
282
|
+
const _aA = "applicationArn";
|
|
283
|
+
const _aN = "accountName";
|
|
284
|
+
const _ac = "account";
|
|
285
|
+
const _c = "client";
|
|
286
|
+
const _cA = "createdAt";
|
|
287
|
+
const _co = "code";
|
|
288
|
+
const _e = "error";
|
|
289
|
+
const _eI = "entitlementId";
|
|
290
|
+
const _en = "entitlement";
|
|
291
|
+
const _ent = "entitlements";
|
|
292
|
+
const _f = "filter";
|
|
293
|
+
const _gI = "groupId";
|
|
294
|
+
const _h = "http";
|
|
295
|
+
const _hE = "httpError";
|
|
296
|
+
const _hQ = "httpQuery";
|
|
297
|
+
const _iA = "instanceArn";
|
|
298
|
+
const _iC = "identityCenter";
|
|
299
|
+
const _iS = "identitySource";
|
|
300
|
+
const _m = "message";
|
|
301
|
+
const _mR = "maxResults";
|
|
302
|
+
const _nT = "nextToken";
|
|
303
|
+
const _p = "principal";
|
|
304
|
+
const _pR = "principalRole";
|
|
305
|
+
const _rA = "resourceArn";
|
|
306
|
+
const _rAo = "roleArn";
|
|
307
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.accountaccess";
|
|
308
|
+
const _se = "server";
|
|
309
|
+
const _st = "status";
|
|
310
|
+
const _t = "tags";
|
|
311
|
+
const _tI = "tenantId";
|
|
312
|
+
const _tK = "tagKeys";
|
|
313
|
+
const _uA = "updatedAt";
|
|
314
|
+
const _uI = "userId";
|
|
315
|
+
const n0 = "com.amazonaws.accountaccess";
|
|
316
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
317
|
+
var AccountAccessServiceException$ = [-3, _s, "AccountAccessServiceException", 0, [], []];
|
|
318
|
+
_s_registry.registerError(AccountAccessServiceException$, AccountAccessServiceException);
|
|
319
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
320
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
321
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
322
|
+
[_m],
|
|
323
|
+
[0]
|
|
324
|
+
];
|
|
325
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
326
|
+
var AlreadyCreatedException$ = [-3, n0, _ACE,
|
|
327
|
+
{ [_e]: _c },
|
|
328
|
+
[_m],
|
|
329
|
+
[0]
|
|
330
|
+
];
|
|
331
|
+
n0_registry.registerError(AlreadyCreatedException$, AlreadyCreatedException);
|
|
332
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
333
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
334
|
+
[_m],
|
|
335
|
+
[0]
|
|
336
|
+
];
|
|
337
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
338
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
339
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
340
|
+
[_m],
|
|
341
|
+
[0]
|
|
342
|
+
];
|
|
343
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
344
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
345
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
346
|
+
[_m],
|
|
347
|
+
[0]
|
|
348
|
+
];
|
|
349
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
350
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
351
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
352
|
+
[_m],
|
|
353
|
+
[0]
|
|
354
|
+
];
|
|
355
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
356
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
357
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
358
|
+
[_m],
|
|
359
|
+
[0]
|
|
360
|
+
];
|
|
361
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
362
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
363
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
364
|
+
[_m],
|
|
365
|
+
[0]
|
|
366
|
+
];
|
|
367
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
368
|
+
const errorTypeRegistries = [
|
|
369
|
+
_s_registry,
|
|
370
|
+
n0_registry,
|
|
371
|
+
];
|
|
372
|
+
var ApplicationSummary$ = [3, n0, _AS,
|
|
373
|
+
0,
|
|
374
|
+
[_aA, _cA, _uA, _tI],
|
|
375
|
+
[0, 5, 5, 0], 3
|
|
376
|
+
];
|
|
377
|
+
var CreateApplicationRequest$ = [3, n0, _CAR,
|
|
378
|
+
0,
|
|
379
|
+
[_iS, _t],
|
|
380
|
+
[() => IdentitySource$, 128 | 0], 1
|
|
381
|
+
];
|
|
382
|
+
var CreateApplicationResponse$ = [3, n0, _CARr,
|
|
383
|
+
0,
|
|
384
|
+
[_aA],
|
|
385
|
+
[0], 1
|
|
386
|
+
];
|
|
387
|
+
var CreateEntitlementRequest$ = [3, n0, _CER,
|
|
388
|
+
0,
|
|
389
|
+
[_aA, _en],
|
|
390
|
+
[0, () => Entitlement$], 2
|
|
391
|
+
];
|
|
392
|
+
var CreateEntitlementResponse$ = [3, n0, _CERr,
|
|
393
|
+
0,
|
|
394
|
+
[_eI],
|
|
395
|
+
[0], 1
|
|
396
|
+
];
|
|
397
|
+
var DeleteApplicationRequest$ = [3, n0, _DAR,
|
|
398
|
+
0,
|
|
399
|
+
[_aA],
|
|
400
|
+
[[0, 1]], 1
|
|
401
|
+
];
|
|
402
|
+
var DeleteApplicationResponse$ = [3, n0, _DARe,
|
|
403
|
+
0,
|
|
404
|
+
[],
|
|
405
|
+
[]
|
|
406
|
+
];
|
|
407
|
+
var DeleteEntitlementRequest$ = [3, n0, _DER,
|
|
408
|
+
0,
|
|
409
|
+
[_aA, _eI],
|
|
410
|
+
[[0, { [_hQ]: _aA }], [0, 1]], 2
|
|
411
|
+
];
|
|
412
|
+
var DeleteEntitlementResponse$ = [3, n0, _DERe,
|
|
413
|
+
0,
|
|
414
|
+
[],
|
|
415
|
+
[]
|
|
416
|
+
];
|
|
417
|
+
var EntitlementFilter$ = [3, n0, _EF,
|
|
418
|
+
0,
|
|
419
|
+
[_pR],
|
|
420
|
+
[() => PrincipalRoleEntitlementFilter$]
|
|
421
|
+
];
|
|
422
|
+
var EntitlementsListMember$ = [3, n0, _ELM,
|
|
423
|
+
0,
|
|
424
|
+
[_eI, _en, _cA],
|
|
425
|
+
[0, () => EntitlementSummary$, 5], 3
|
|
426
|
+
];
|
|
427
|
+
var ErrorDetails$ = [3, n0, _ED,
|
|
428
|
+
0,
|
|
429
|
+
[_co, _m],
|
|
430
|
+
[0, 0], 2
|
|
431
|
+
];
|
|
432
|
+
var GetApplicationRequest$ = [3, n0, _GAR,
|
|
433
|
+
0,
|
|
434
|
+
[_aA],
|
|
435
|
+
[[0, 1]], 1
|
|
436
|
+
];
|
|
437
|
+
var GetApplicationResponse$ = [3, n0, _GARe,
|
|
438
|
+
0,
|
|
439
|
+
[_iS, _st, _cA, _uA, _tI, _t, _e],
|
|
440
|
+
[() => IdentitySourceDetails$, 0, 5, 5, 0, 128 | 0, () => ErrorDetails$], 4
|
|
441
|
+
];
|
|
442
|
+
var GetEntitlementRequest$ = [3, n0, _GER,
|
|
443
|
+
0,
|
|
444
|
+
[_aA, _eI],
|
|
445
|
+
[[0, { [_hQ]: _aA }], [0, 1]], 2
|
|
446
|
+
];
|
|
447
|
+
var GetEntitlementResponse$ = [3, n0, _GERe,
|
|
448
|
+
0,
|
|
449
|
+
[_aA, _eI, _en, _cA],
|
|
450
|
+
[0, 0, () => EntitlementDetails$, 5], 4
|
|
451
|
+
];
|
|
452
|
+
var IdentityCenter$ = [3, n0, _IC,
|
|
453
|
+
0,
|
|
454
|
+
[_iA],
|
|
455
|
+
[0], 1
|
|
456
|
+
];
|
|
457
|
+
var IdentityCenterDetails$ = [3, n0, _ICD,
|
|
458
|
+
0,
|
|
459
|
+
[_iA, _aA],
|
|
460
|
+
[0, 0], 1
|
|
461
|
+
];
|
|
462
|
+
var ListApplicationsRequest$ = [3, n0, _LAR,
|
|
463
|
+
0,
|
|
464
|
+
[_mR, _nT],
|
|
465
|
+
[1, 0]
|
|
466
|
+
];
|
|
467
|
+
var ListApplicationsResponse$ = [3, n0, _LARi,
|
|
468
|
+
0,
|
|
469
|
+
[_a, _nT],
|
|
470
|
+
[() => ApplicationList, 0], 1
|
|
471
|
+
];
|
|
472
|
+
var ListEntitlementsRequest$ = [3, n0, _LER,
|
|
473
|
+
0,
|
|
474
|
+
[_aA, _f, _nT, _mR],
|
|
475
|
+
[0, () => EntitlementFilter$, 0, 1], 2
|
|
476
|
+
];
|
|
477
|
+
var ListEntitlementsResponse$ = [3, n0, _LERi,
|
|
478
|
+
0,
|
|
479
|
+
[_ent, _nT],
|
|
480
|
+
[() => EntitlementsList, 0], 1
|
|
481
|
+
];
|
|
482
|
+
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
483
|
+
0,
|
|
484
|
+
[_rA],
|
|
485
|
+
[[0, 1]], 1
|
|
486
|
+
];
|
|
487
|
+
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
488
|
+
0,
|
|
489
|
+
[_t],
|
|
490
|
+
[128 | 0]
|
|
491
|
+
];
|
|
492
|
+
var PrincipalRoleEntitlement$ = [3, n0, _PRE,
|
|
493
|
+
0,
|
|
494
|
+
[_p, _rAo],
|
|
495
|
+
[() => Principal$, 0], 2
|
|
496
|
+
];
|
|
497
|
+
var PrincipalRoleEntitlementDetails$ = [3, n0, _PRED,
|
|
498
|
+
0,
|
|
499
|
+
[_p, _rAo, _ac, _aN],
|
|
500
|
+
[() => Principal$, 0, 0, 0], 3
|
|
501
|
+
];
|
|
502
|
+
var PrincipalRoleEntitlementFilter$ = [3, n0, _PREF,
|
|
503
|
+
0,
|
|
504
|
+
[_p, _rAo, _ac],
|
|
505
|
+
[() => PrincipalFilter$, 0, 0]
|
|
506
|
+
];
|
|
507
|
+
var PrincipalRoleEntitlementSummary$ = [3, n0, _PRES,
|
|
508
|
+
0,
|
|
509
|
+
[_p, _rAo, _ac, _aN],
|
|
510
|
+
[() => Principal$, 0, 0, 0], 3
|
|
511
|
+
];
|
|
512
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
513
|
+
0,
|
|
514
|
+
[_rA, _t],
|
|
515
|
+
[[0, 1], 128 | 0], 2
|
|
516
|
+
];
|
|
517
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
518
|
+
0,
|
|
519
|
+
[],
|
|
520
|
+
[]
|
|
521
|
+
];
|
|
522
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
523
|
+
0,
|
|
524
|
+
[_rA, _tK],
|
|
525
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
526
|
+
];
|
|
527
|
+
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
528
|
+
0,
|
|
529
|
+
[],
|
|
530
|
+
[]
|
|
531
|
+
];
|
|
532
|
+
var ApplicationList = [1, n0, _AL,
|
|
533
|
+
0, () => ApplicationSummary$
|
|
534
|
+
];
|
|
535
|
+
var EntitlementsList = [1, n0, _EL,
|
|
536
|
+
0, () => EntitlementsListMember$
|
|
537
|
+
];
|
|
538
|
+
var Entitlement$ = [4, n0, _E,
|
|
539
|
+
0,
|
|
540
|
+
[_pR],
|
|
541
|
+
[() => PrincipalRoleEntitlement$]
|
|
542
|
+
];
|
|
543
|
+
var EntitlementDetails$ = [4, n0, _EDn,
|
|
544
|
+
0,
|
|
545
|
+
[_pR],
|
|
546
|
+
[() => PrincipalRoleEntitlementDetails$]
|
|
547
|
+
];
|
|
548
|
+
var EntitlementSummary$ = [4, n0, _ES,
|
|
549
|
+
0,
|
|
550
|
+
[_pR],
|
|
551
|
+
[() => PrincipalRoleEntitlementSummary$]
|
|
552
|
+
];
|
|
553
|
+
var IdentityCenterPrincipal$ = [4, n0, _ICP,
|
|
554
|
+
0,
|
|
555
|
+
[_uI, _gI],
|
|
556
|
+
[0, 0]
|
|
557
|
+
];
|
|
558
|
+
var IdentityCenterPrincipalFilter$ = [4, n0, _ICPF,
|
|
559
|
+
0,
|
|
560
|
+
[_uI, _gI],
|
|
561
|
+
[0, 0]
|
|
562
|
+
];
|
|
563
|
+
var IdentitySource$ = [4, n0, _IS,
|
|
564
|
+
0,
|
|
565
|
+
[_iC],
|
|
566
|
+
[() => IdentityCenter$]
|
|
567
|
+
];
|
|
568
|
+
var IdentitySourceDetails$ = [4, n0, _ISD,
|
|
569
|
+
0,
|
|
570
|
+
[_iC],
|
|
571
|
+
[() => IdentityCenterDetails$]
|
|
572
|
+
];
|
|
573
|
+
var Principal$ = [4, n0, _P,
|
|
574
|
+
0,
|
|
575
|
+
[_iC],
|
|
576
|
+
[() => IdentityCenterPrincipal$]
|
|
577
|
+
];
|
|
578
|
+
var PrincipalFilter$ = [4, n0, _PF,
|
|
579
|
+
0,
|
|
580
|
+
[_iC],
|
|
581
|
+
[() => IdentityCenterPrincipalFilter$]
|
|
582
|
+
];
|
|
583
|
+
var CreateApplication$ = [9, n0, _CA,
|
|
584
|
+
{ [_h]: ["POST", "/applications", 200] }, () => CreateApplicationRequest$, () => CreateApplicationResponse$
|
|
585
|
+
];
|
|
586
|
+
var CreateEntitlement$ = [9, n0, _CEr,
|
|
587
|
+
{ [_h]: ["POST", "/entitlements", 200] }, () => CreateEntitlementRequest$, () => CreateEntitlementResponse$
|
|
588
|
+
];
|
|
589
|
+
var DeleteApplication$ = [9, n0, _DA,
|
|
590
|
+
{ [_h]: ["DELETE", "/applications/{applicationArn}", 204] }, () => DeleteApplicationRequest$, () => DeleteApplicationResponse$
|
|
591
|
+
];
|
|
592
|
+
var DeleteEntitlement$ = [9, n0, _DE,
|
|
593
|
+
{ [_h]: ["DELETE", "/entitlements/{entitlementId}", 204] }, () => DeleteEntitlementRequest$, () => DeleteEntitlementResponse$
|
|
594
|
+
];
|
|
595
|
+
var GetApplication$ = [9, n0, _GA,
|
|
596
|
+
{ [_h]: ["GET", "/applications/{applicationArn}", 200] }, () => GetApplicationRequest$, () => GetApplicationResponse$
|
|
597
|
+
];
|
|
598
|
+
var GetEntitlement$ = [9, n0, _GE,
|
|
599
|
+
{ [_h]: ["GET", "/entitlements/{entitlementId}", 200] }, () => GetEntitlementRequest$, () => GetEntitlementResponse$
|
|
600
|
+
];
|
|
601
|
+
var ListApplications$ = [9, n0, _LA,
|
|
602
|
+
{ [_h]: ["POST", "/applications-list", 200] }, () => ListApplicationsRequest$, () => ListApplicationsResponse$
|
|
603
|
+
];
|
|
604
|
+
var ListEntitlements$ = [9, n0, _LE,
|
|
605
|
+
{ [_h]: ["POST", "/entitlements-list", 200] }, () => ListEntitlementsRequest$, () => ListEntitlementsResponse$
|
|
606
|
+
];
|
|
607
|
+
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
608
|
+
{ [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
609
|
+
];
|
|
610
|
+
var TagResource$ = [9, n0, _TR,
|
|
611
|
+
{ [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
612
|
+
];
|
|
613
|
+
var UntagResource$ = [9, n0, _UR,
|
|
614
|
+
{ [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
615
|
+
];
|
|
616
|
+
|
|
617
|
+
const getRuntimeConfig$1 = (config) => {
|
|
618
|
+
return {
|
|
619
|
+
apiVersion: "2018-05-10",
|
|
620
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
621
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
622
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
623
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
624
|
+
extensions: config?.extensions ?? [],
|
|
625
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAccountAccessHttpAuthSchemeProvider,
|
|
626
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
627
|
+
{
|
|
628
|
+
schemeId: "aws.auth#sigv4",
|
|
629
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
630
|
+
signer: new AwsSdkSigV4Signer(),
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
634
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
635
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
636
|
+
defaultNamespace: "com.amazonaws.accountaccess",
|
|
637
|
+
errorTypeRegistries,
|
|
638
|
+
version: "2018-05-10",
|
|
639
|
+
serviceTarget: "AWSAccountAccess",
|
|
640
|
+
},
|
|
641
|
+
serviceId: config?.serviceId ?? "Account Access",
|
|
642
|
+
sha256: config?.sha256 ?? Sha256,
|
|
643
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
644
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
645
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
const getRuntimeConfig = (config) => {
|
|
650
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
651
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
652
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
653
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
654
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
655
|
+
const loaderConfig = {
|
|
656
|
+
profile: config?.profile,
|
|
657
|
+
logger: clientSharedValues.logger,
|
|
658
|
+
};
|
|
659
|
+
return {
|
|
660
|
+
...clientSharedValues,
|
|
661
|
+
...config,
|
|
662
|
+
runtime: "node",
|
|
663
|
+
defaultsMode,
|
|
664
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
665
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
666
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
667
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
668
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
669
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
670
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
671
|
+
retryMode: config?.retryMode ??
|
|
672
|
+
loadConfig({
|
|
673
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
674
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
675
|
+
}, config),
|
|
676
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
677
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
678
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
679
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
684
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
685
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
686
|
+
let _credentials = runtimeConfig.credentials;
|
|
687
|
+
return {
|
|
688
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
689
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
690
|
+
if (index === -1) {
|
|
691
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
692
|
+
}
|
|
693
|
+
else {
|
|
694
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
httpAuthSchemes() {
|
|
698
|
+
return _httpAuthSchemes;
|
|
699
|
+
},
|
|
700
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
701
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
702
|
+
},
|
|
703
|
+
httpAuthSchemeProvider() {
|
|
704
|
+
return _httpAuthSchemeProvider;
|
|
705
|
+
},
|
|
706
|
+
setCredentials(credentials) {
|
|
707
|
+
_credentials = credentials;
|
|
708
|
+
},
|
|
709
|
+
credentials() {
|
|
710
|
+
return _credentials;
|
|
711
|
+
},
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
715
|
+
return {
|
|
716
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
717
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
718
|
+
credentials: config.credentials(),
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
723
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
724
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
725
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
class AccountAccessClient extends Client {
|
|
729
|
+
config;
|
|
730
|
+
constructor(...[configuration]) {
|
|
731
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
732
|
+
super(_config_0);
|
|
733
|
+
this.initConfig = _config_0;
|
|
734
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
735
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
736
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
737
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
738
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
739
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
740
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
741
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
742
|
+
this.config = _config_8;
|
|
743
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
744
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
745
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
746
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
747
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
748
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
749
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
750
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
751
|
+
httpAuthSchemeParametersProvider: defaultAccountAccessHttpAuthSchemeParametersProvider,
|
|
752
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
753
|
+
"aws.auth#sigv4": config.credentials,
|
|
754
|
+
}),
|
|
755
|
+
}));
|
|
756
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
757
|
+
}
|
|
758
|
+
destroy() {
|
|
759
|
+
super.destroy();
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
const command = makeBuilder(commonParams, "AWSAccountAccess", "AccountAccessClient", getEndpointPlugin);
|
|
764
|
+
const _ep0 = {};
|
|
765
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
766
|
+
|
|
767
|
+
class CreateApplicationCommand extends command(_ep0, _mw0, "CreateApplication", CreateApplication$) {
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
class CreateEntitlementCommand extends command(_ep0, _mw0, "CreateEntitlement", CreateEntitlement$) {
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
class DeleteApplicationCommand extends command(_ep0, _mw0, "DeleteApplication", DeleteApplication$) {
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
class DeleteEntitlementCommand extends command(_ep0, _mw0, "DeleteEntitlement", DeleteEntitlement$) {
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
class GetApplicationCommand extends command(_ep0, _mw0, "GetApplication", GetApplication$) {
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
class GetEntitlementCommand extends command(_ep0, _mw0, "GetEntitlement", GetEntitlement$) {
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
class ListApplicationsCommand extends command(_ep0, _mw0, "ListApplications", ListApplications$) {
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
class ListEntitlementsCommand extends command(_ep0, _mw0, "ListEntitlements", ListEntitlements$) {
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
const paginateListApplications = createPaginator(AccountAccessClient, ListApplicationsCommand, "nextToken", "nextToken", "");
|
|
801
|
+
|
|
802
|
+
const paginateListEntitlements = createPaginator(AccountAccessClient, ListEntitlementsCommand, "nextToken", "nextToken", "");
|
|
803
|
+
|
|
804
|
+
const checkState = async (client, input) => {
|
|
805
|
+
let reason;
|
|
806
|
+
try {
|
|
807
|
+
let result = await client.send(new GetApplicationCommand(input));
|
|
808
|
+
reason = result;
|
|
809
|
+
try {
|
|
810
|
+
const returnComparator = () => {
|
|
811
|
+
return result.status;
|
|
812
|
+
};
|
|
813
|
+
if (returnComparator() === "ACTIVE") {
|
|
814
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
catch (e) { }
|
|
818
|
+
try {
|
|
819
|
+
const returnComparator = () => {
|
|
820
|
+
return result.status;
|
|
821
|
+
};
|
|
822
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
823
|
+
return { state: WaiterState.FAILURE, reason };
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
catch (e) { }
|
|
827
|
+
try {
|
|
828
|
+
const returnComparator = () => {
|
|
829
|
+
return result.status;
|
|
830
|
+
};
|
|
831
|
+
if (returnComparator() === "DELETE_FAILED") {
|
|
832
|
+
return { state: WaiterState.FAILURE, reason };
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
catch (e) { }
|
|
836
|
+
}
|
|
837
|
+
catch (exception) {
|
|
838
|
+
reason = exception;
|
|
839
|
+
}
|
|
840
|
+
return { state: WaiterState.RETRY, reason };
|
|
841
|
+
};
|
|
842
|
+
const waitForApplicationActive = async (params, input) => {
|
|
843
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
844
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
845
|
+
};
|
|
846
|
+
const waitUntilApplicationActive = async (params, input) => {
|
|
847
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
848
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
849
|
+
return checkExceptions(result);
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
const commands = {
|
|
853
|
+
CreateApplicationCommand,
|
|
854
|
+
CreateEntitlementCommand,
|
|
855
|
+
DeleteApplicationCommand,
|
|
856
|
+
DeleteEntitlementCommand,
|
|
857
|
+
GetApplicationCommand,
|
|
858
|
+
GetEntitlementCommand,
|
|
859
|
+
ListApplicationsCommand,
|
|
860
|
+
ListEntitlementsCommand,
|
|
861
|
+
ListTagsForResourceCommand,
|
|
862
|
+
TagResourceCommand,
|
|
863
|
+
UntagResourceCommand,
|
|
864
|
+
};
|
|
865
|
+
const paginators = {
|
|
866
|
+
paginateListApplications,
|
|
867
|
+
paginateListEntitlements,
|
|
868
|
+
};
|
|
869
|
+
const waiters = {
|
|
870
|
+
waitUntilApplicationActive,
|
|
871
|
+
};
|
|
872
|
+
class AccountAccess extends AccountAccessClient {
|
|
873
|
+
}
|
|
874
|
+
createAggregatedClient(commands, AccountAccess, { paginators, waiters });
|
|
875
|
+
|
|
876
|
+
const ErrorCode = {
|
|
877
|
+
AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
|
|
878
|
+
INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR",
|
|
879
|
+
RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",
|
|
880
|
+
SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR",
|
|
881
|
+
};
|
|
882
|
+
const Status = {
|
|
883
|
+
ACTIVE: "ACTIVE",
|
|
884
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
885
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
886
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
887
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
891
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
892
|
+
exports.AccountAccess = AccountAccess;
|
|
893
|
+
exports.AccountAccessClient = AccountAccessClient;
|
|
894
|
+
exports.AccountAccessServiceException = AccountAccessServiceException;
|
|
895
|
+
exports.AccountAccessServiceException$ = AccountAccessServiceException$;
|
|
896
|
+
exports.AlreadyCreatedException = AlreadyCreatedException;
|
|
897
|
+
exports.AlreadyCreatedException$ = AlreadyCreatedException$;
|
|
898
|
+
exports.ApplicationSummary$ = ApplicationSummary$;
|
|
899
|
+
exports.ConflictException = ConflictException;
|
|
900
|
+
exports.ConflictException$ = ConflictException$;
|
|
901
|
+
exports.CreateApplication$ = CreateApplication$;
|
|
902
|
+
exports.CreateApplicationCommand = CreateApplicationCommand;
|
|
903
|
+
exports.CreateApplicationRequest$ = CreateApplicationRequest$;
|
|
904
|
+
exports.CreateApplicationResponse$ = CreateApplicationResponse$;
|
|
905
|
+
exports.CreateEntitlement$ = CreateEntitlement$;
|
|
906
|
+
exports.CreateEntitlementCommand = CreateEntitlementCommand;
|
|
907
|
+
exports.CreateEntitlementRequest$ = CreateEntitlementRequest$;
|
|
908
|
+
exports.CreateEntitlementResponse$ = CreateEntitlementResponse$;
|
|
909
|
+
exports.DeleteApplication$ = DeleteApplication$;
|
|
910
|
+
exports.DeleteApplicationCommand = DeleteApplicationCommand;
|
|
911
|
+
exports.DeleteApplicationRequest$ = DeleteApplicationRequest$;
|
|
912
|
+
exports.DeleteApplicationResponse$ = DeleteApplicationResponse$;
|
|
913
|
+
exports.DeleteEntitlement$ = DeleteEntitlement$;
|
|
914
|
+
exports.DeleteEntitlementCommand = DeleteEntitlementCommand;
|
|
915
|
+
exports.DeleteEntitlementRequest$ = DeleteEntitlementRequest$;
|
|
916
|
+
exports.DeleteEntitlementResponse$ = DeleteEntitlementResponse$;
|
|
917
|
+
exports.Entitlement$ = Entitlement$;
|
|
918
|
+
exports.EntitlementDetails$ = EntitlementDetails$;
|
|
919
|
+
exports.EntitlementFilter$ = EntitlementFilter$;
|
|
920
|
+
exports.EntitlementSummary$ = EntitlementSummary$;
|
|
921
|
+
exports.EntitlementsListMember$ = EntitlementsListMember$;
|
|
922
|
+
exports.ErrorCode = ErrorCode;
|
|
923
|
+
exports.ErrorDetails$ = ErrorDetails$;
|
|
924
|
+
exports.GetApplication$ = GetApplication$;
|
|
925
|
+
exports.GetApplicationCommand = GetApplicationCommand;
|
|
926
|
+
exports.GetApplicationRequest$ = GetApplicationRequest$;
|
|
927
|
+
exports.GetApplicationResponse$ = GetApplicationResponse$;
|
|
928
|
+
exports.GetEntitlement$ = GetEntitlement$;
|
|
929
|
+
exports.GetEntitlementCommand = GetEntitlementCommand;
|
|
930
|
+
exports.GetEntitlementRequest$ = GetEntitlementRequest$;
|
|
931
|
+
exports.GetEntitlementResponse$ = GetEntitlementResponse$;
|
|
932
|
+
exports.IdentityCenter$ = IdentityCenter$;
|
|
933
|
+
exports.IdentityCenterDetails$ = IdentityCenterDetails$;
|
|
934
|
+
exports.IdentityCenterPrincipal$ = IdentityCenterPrincipal$;
|
|
935
|
+
exports.IdentityCenterPrincipalFilter$ = IdentityCenterPrincipalFilter$;
|
|
936
|
+
exports.IdentitySource$ = IdentitySource$;
|
|
937
|
+
exports.IdentitySourceDetails$ = IdentitySourceDetails$;
|
|
938
|
+
exports.InternalServerException = InternalServerException;
|
|
939
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
940
|
+
exports.ListApplications$ = ListApplications$;
|
|
941
|
+
exports.ListApplicationsCommand = ListApplicationsCommand;
|
|
942
|
+
exports.ListApplicationsRequest$ = ListApplicationsRequest$;
|
|
943
|
+
exports.ListApplicationsResponse$ = ListApplicationsResponse$;
|
|
944
|
+
exports.ListEntitlements$ = ListEntitlements$;
|
|
945
|
+
exports.ListEntitlementsCommand = ListEntitlementsCommand;
|
|
946
|
+
exports.ListEntitlementsRequest$ = ListEntitlementsRequest$;
|
|
947
|
+
exports.ListEntitlementsResponse$ = ListEntitlementsResponse$;
|
|
948
|
+
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
949
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
950
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
951
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
952
|
+
exports.Principal$ = Principal$;
|
|
953
|
+
exports.PrincipalFilter$ = PrincipalFilter$;
|
|
954
|
+
exports.PrincipalRoleEntitlement$ = PrincipalRoleEntitlement$;
|
|
955
|
+
exports.PrincipalRoleEntitlementDetails$ = PrincipalRoleEntitlementDetails$;
|
|
956
|
+
exports.PrincipalRoleEntitlementFilter$ = PrincipalRoleEntitlementFilter$;
|
|
957
|
+
exports.PrincipalRoleEntitlementSummary$ = PrincipalRoleEntitlementSummary$;
|
|
958
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
959
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
960
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
961
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
962
|
+
exports.Status = Status;
|
|
963
|
+
exports.TagResource$ = TagResource$;
|
|
964
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
965
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
966
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
967
|
+
exports.ThrottlingException = ThrottlingException;
|
|
968
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
969
|
+
exports.UntagResource$ = UntagResource$;
|
|
970
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
971
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
972
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
973
|
+
exports.ValidationException = ValidationException;
|
|
974
|
+
exports.ValidationException$ = ValidationException$;
|
|
975
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
976
|
+
exports.paginateListApplications = paginateListApplications;
|
|
977
|
+
exports.paginateListEntitlements = paginateListEntitlements;
|
|
978
|
+
exports.waitForApplicationActive = waitForApplicationActive;
|
|
979
|
+
exports.waitUntilApplicationActive = waitUntilApplicationActive;
|