@aws-sdk/client-account 3.1068.0 → 3.1070.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +86 -106
- package/dist-cjs/models/AccountServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +105 -73
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultAccountHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultAccountHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultAccountHttpAuthSchemeParametersProvider = defaultAccountHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultAccountHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultAccountHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
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 { resolveHttpAuthSchemeConfig, defaultAccountHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { AcceptPrimaryEmailUpdate$, DeleteAlternateContact$, DisableRegion$, EnableRegion$, GetAccountInformation$, GetAlternateContact$, GetContactInformation$, GetGovCloudAccountInformation$, GetPrimaryEmail$, GetRegionOptStatus$, ListRegions$, PutAccountName$, PutAlternateContact$, PutContactInformation$, StartPrimaryEmailUpdate$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { AccountServiceException } = require("./models/AccountServiceException");
|
|
18
|
+
exports.AccountServiceException = AccountServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,227 +71,227 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class AccountClient extends
|
|
79
|
+
class AccountClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultAccountHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class AcceptPrimaryEmailUpdateCommand extends
|
|
114
|
+
class AcceptPrimaryEmailUpdateCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("Account", "AcceptPrimaryEmailUpdate", {})
|
|
118
121
|
.n("AccountClient", "AcceptPrimaryEmailUpdateCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(AcceptPrimaryEmailUpdate$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class DeleteAlternateContactCommand extends
|
|
126
|
+
class DeleteAlternateContactCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("Account", "DeleteAlternateContact", {})
|
|
130
133
|
.n("AccountClient", "DeleteAlternateContactCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(DeleteAlternateContact$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class DisableRegionCommand extends
|
|
138
|
+
class DisableRegionCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("Account", "DisableRegion", {})
|
|
142
145
|
.n("AccountClient", "DisableRegionCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(DisableRegion$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class EnableRegionCommand extends
|
|
150
|
+
class EnableRegionCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("Account", "EnableRegion", {})
|
|
154
157
|
.n("AccountClient", "EnableRegionCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(EnableRegion$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class GetAccountInformationCommand extends
|
|
162
|
+
class GetAccountInformationCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("Account", "GetAccountInformation", {})
|
|
166
169
|
.n("AccountClient", "GetAccountInformationCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(GetAccountInformation$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class GetAlternateContactCommand extends
|
|
174
|
+
class GetAlternateContactCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("Account", "GetAlternateContact", {})
|
|
178
181
|
.n("AccountClient", "GetAlternateContactCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(GetAlternateContact$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class GetContactInformationCommand extends
|
|
186
|
+
class GetContactInformationCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("Account", "GetContactInformation", {})
|
|
190
193
|
.n("AccountClient", "GetContactInformationCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(GetContactInformation$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class GetGovCloudAccountInformationCommand extends
|
|
198
|
+
class GetGovCloudAccountInformationCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("Account", "GetGovCloudAccountInformation", {})
|
|
202
205
|
.n("AccountClient", "GetGovCloudAccountInformationCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(GetGovCloudAccountInformation$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class GetPrimaryEmailCommand extends
|
|
210
|
+
class GetPrimaryEmailCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("Account", "GetPrimaryEmail", {})
|
|
214
217
|
.n("AccountClient", "GetPrimaryEmailCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(GetPrimaryEmail$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class GetRegionOptStatusCommand extends
|
|
222
|
+
class GetRegionOptStatusCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("Account", "GetRegionOptStatus", {})
|
|
226
229
|
.n("AccountClient", "GetRegionOptStatusCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(GetRegionOptStatus$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class ListRegionsCommand extends
|
|
234
|
+
class ListRegionsCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("Account", "ListRegions", {})
|
|
238
241
|
.n("AccountClient", "ListRegionsCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(ListRegions$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class PutAccountNameCommand extends
|
|
246
|
+
class PutAccountNameCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("Account", "PutAccountName", {})
|
|
250
253
|
.n("AccountClient", "PutAccountNameCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(PutAccountName$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
class PutAlternateContactCommand extends
|
|
258
|
+
class PutAlternateContactCommand extends Command
|
|
256
259
|
.classBuilder()
|
|
257
260
|
.ep(commonParams)
|
|
258
261
|
.m(function (Command, cs, config, o) {
|
|
259
|
-
return [
|
|
262
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
263
|
})
|
|
261
264
|
.s("Account", "PutAlternateContact", {})
|
|
262
265
|
.n("AccountClient", "PutAlternateContactCommand")
|
|
263
|
-
.sc(
|
|
266
|
+
.sc(PutAlternateContact$)
|
|
264
267
|
.build() {
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
class PutContactInformationCommand extends
|
|
270
|
+
class PutContactInformationCommand extends Command
|
|
268
271
|
.classBuilder()
|
|
269
272
|
.ep(commonParams)
|
|
270
273
|
.m(function (Command, cs, config, o) {
|
|
271
|
-
return [
|
|
274
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
272
275
|
})
|
|
273
276
|
.s("Account", "PutContactInformation", {})
|
|
274
277
|
.n("AccountClient", "PutContactInformationCommand")
|
|
275
|
-
.sc(
|
|
278
|
+
.sc(PutContactInformation$)
|
|
276
279
|
.build() {
|
|
277
280
|
}
|
|
278
281
|
|
|
279
|
-
class StartPrimaryEmailUpdateCommand extends
|
|
282
|
+
class StartPrimaryEmailUpdateCommand extends Command
|
|
280
283
|
.classBuilder()
|
|
281
284
|
.ep(commonParams)
|
|
282
285
|
.m(function (Command, cs, config, o) {
|
|
283
|
-
return [
|
|
286
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
284
287
|
})
|
|
285
288
|
.s("Account", "StartPrimaryEmailUpdate", {})
|
|
286
289
|
.n("AccountClient", "StartPrimaryEmailUpdateCommand")
|
|
287
|
-
.sc(
|
|
290
|
+
.sc(StartPrimaryEmailUpdate$)
|
|
288
291
|
.build() {
|
|
289
292
|
}
|
|
290
293
|
|
|
291
|
-
const paginateListRegions =
|
|
294
|
+
const paginateListRegions = createPaginator(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
292
295
|
|
|
293
296
|
const commands = {
|
|
294
297
|
AcceptPrimaryEmailUpdateCommand,
|
|
@@ -312,7 +315,7 @@ const paginators = {
|
|
|
312
315
|
};
|
|
313
316
|
class Account extends AccountClient {
|
|
314
317
|
}
|
|
315
|
-
|
|
318
|
+
createAggregatedClient(commands, Account, { paginators });
|
|
316
319
|
|
|
317
320
|
const PrimaryEmailUpdateStatus = {
|
|
318
321
|
ACCEPTED: "ACCEPTED",
|
|
@@ -347,9 +350,6 @@ const RegionOptStatus = {
|
|
|
347
350
|
ENABLING: "ENABLING",
|
|
348
351
|
};
|
|
349
352
|
|
|
350
|
-
exports.$Command = client.Command;
|
|
351
|
-
exports.__Client = client.Client;
|
|
352
|
-
exports.AccountServiceException = AccountServiceException.AccountServiceException;
|
|
353
353
|
exports.AcceptPrimaryEmailUpdateCommand = AcceptPrimaryEmailUpdateCommand;
|
|
354
354
|
exports.Account = Account;
|
|
355
355
|
exports.AccountClient = AccountClient;
|
|
@@ -374,23 +374,3 @@ exports.RegionOptStatus = RegionOptStatus;
|
|
|
374
374
|
exports.StartPrimaryEmailUpdateCommand = StartPrimaryEmailUpdateCommand;
|
|
375
375
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
376
376
|
exports.paginateListRegions = paginateListRegions;
|
|
377
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
378
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
379
|
-
Object.defineProperty(exports, '__proto__', {
|
|
380
|
-
enumerable: true,
|
|
381
|
-
value: schemas_0['__proto__']
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
385
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
386
|
-
});
|
|
387
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
388
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
389
|
-
Object.defineProperty(exports, '__proto__', {
|
|
390
|
-
enumerable: true,
|
|
391
|
-
value: errors['__proto__']
|
|
392
|
-
});
|
|
393
|
-
|
|
394
|
-
Object.keys(errors).forEach(function (k) {
|
|
395
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
396
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.AccountServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class AccountServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.AccountServiceException = class AccountServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, AccountServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.AccountServiceException = AccountServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ResourceUnavailableException = exports.ValidationException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const AccountServiceException_1 = require("./AccountServiceException");
|
|
5
|
-
class AccessDeniedException extends AccountServiceException_1.AccountServiceException {
|
|
1
|
+
const { AccountServiceException: __BaseException } = require("./AccountServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
errorType;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends AccountServiceException_1.AccountServiceExce
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.errorType = opts.errorType;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class ConflictException extends AccountServiceException_1.AccountServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
21
17
|
name = "ConflictException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
errorType;
|
|
@@ -30,9 +26,8 @@ class ConflictException extends AccountServiceException_1.AccountServiceExceptio
|
|
|
30
26
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
27
|
this.errorType = opts.errorType;
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
exports.
|
|
35
|
-
class InternalServerException extends AccountServiceException_1.AccountServiceException {
|
|
29
|
+
};
|
|
30
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
36
31
|
name = "InternalServerException";
|
|
37
32
|
$fault = "server";
|
|
38
33
|
$retryable = {};
|
|
@@ -46,9 +41,8 @@ class InternalServerException extends AccountServiceException_1.AccountServiceEx
|
|
|
46
41
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
47
42
|
this.errorType = opts.errorType;
|
|
48
43
|
}
|
|
49
|
-
}
|
|
50
|
-
exports.
|
|
51
|
-
class ResourceNotFoundException extends AccountServiceException_1.AccountServiceException {
|
|
44
|
+
};
|
|
45
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
52
46
|
name = "ResourceNotFoundException";
|
|
53
47
|
$fault = "client";
|
|
54
48
|
errorType;
|
|
@@ -61,9 +55,8 @@ class ResourceNotFoundException extends AccountServiceException_1.AccountService
|
|
|
61
55
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
62
56
|
this.errorType = opts.errorType;
|
|
63
57
|
}
|
|
64
|
-
}
|
|
65
|
-
exports.
|
|
66
|
-
class TooManyRequestsException extends AccountServiceException_1.AccountServiceException {
|
|
58
|
+
};
|
|
59
|
+
exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
|
|
67
60
|
name = "TooManyRequestsException";
|
|
68
61
|
$fault = "client";
|
|
69
62
|
$retryable = {
|
|
@@ -79,9 +72,8 @@ class TooManyRequestsException extends AccountServiceException_1.AccountServiceE
|
|
|
79
72
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
80
73
|
this.errorType = opts.errorType;
|
|
81
74
|
}
|
|
82
|
-
}
|
|
83
|
-
exports.
|
|
84
|
-
class ValidationException extends AccountServiceException_1.AccountServiceException {
|
|
75
|
+
};
|
|
76
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
85
77
|
name = "ValidationException";
|
|
86
78
|
$fault = "client";
|
|
87
79
|
reason;
|
|
@@ -96,9 +88,8 @@ class ValidationException extends AccountServiceException_1.AccountServiceExcept
|
|
|
96
88
|
this.reason = opts.reason;
|
|
97
89
|
this.fieldList = opts.fieldList;
|
|
98
90
|
}
|
|
99
|
-
}
|
|
100
|
-
exports.
|
|
101
|
-
class ResourceUnavailableException extends AccountServiceException_1.AccountServiceException {
|
|
91
|
+
};
|
|
92
|
+
exports.ResourceUnavailableException = class ResourceUnavailableException extends __BaseException {
|
|
102
93
|
name = "ResourceUnavailableException";
|
|
103
94
|
$fault = "client";
|
|
104
95
|
errorType;
|
|
@@ -111,5 +102,4 @@ class ResourceUnavailableException extends AccountServiceException_1.AccountServ
|
|
|
111
102
|
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
112
103
|
this.errorType = opts.errorType;
|
|
113
104
|
}
|
|
114
|
-
}
|
|
115
|
-
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
105
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultAccountHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2021-02-01",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAccountHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.account",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2021-02-01",
|
|
34
31
|
serviceTarget: "Account",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "Account",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutAlternateContact$ = exports.PutAccountName$ = exports.ListRegions$ = exports.GetRegionOptStatus$ = exports.GetPrimaryEmail$ = exports.GetGovCloudAccountInformation$ = exports.GetContactInformation$ = exports.GetAlternateContact$ = exports.GetAccountInformation$ = exports.EnableRegion$ = exports.DisableRegion$ = exports.DeleteAlternateContact$ = exports.AcceptPrimaryEmailUpdate$ = exports.ValidationExceptionField$ = exports.StartPrimaryEmailUpdateResponse$ = exports.StartPrimaryEmailUpdateRequest$ = exports.Region$ = exports.PutContactInformationRequest$ = exports.PutAlternateContactRequest$ = exports.PutAccountNameRequest$ = exports.ListRegionsResponse$ = exports.ListRegionsRequest$ = exports.GetRegionOptStatusResponse$ = exports.GetRegionOptStatusRequest$ = exports.GetPrimaryEmailResponse$ = exports.GetPrimaryEmailRequest$ = exports.GetGovCloudAccountInformationResponse$ = exports.GetGovCloudAccountInformationRequest$ = exports.GetContactInformationResponse$ = exports.GetContactInformationRequest$ = exports.GetAlternateContactResponse$ = exports.GetAlternateContactRequest$ = exports.GetAccountInformationResponse$ = exports.GetAccountInformationRequest$ = exports.EnableRegionRequest$ = exports.DisableRegionRequest$ = exports.DeleteAlternateContactRequest$ = exports.ContactInformation$ = exports.AlternateContact$ = exports.AcceptPrimaryEmailUpdateResponse$ = exports.AcceptPrimaryEmailUpdateRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsException$ = exports.ResourceUnavailableException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.AccountServiceException$ = void 0;
|
|
4
|
-
exports.StartPrimaryEmailUpdate$ = exports.PutContactInformation$ = void 0;
|
|
5
1
|
const _AC = "AlternateContact";
|
|
6
2
|
const _ACD = "AccountCreatedDate";
|
|
7
3
|
const _ACT = "AlternateContactType";
|
|
@@ -103,55 +99,63 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.account";
|
|
|
103
99
|
const _se = "server";
|
|
104
100
|
const _xaE = "x-amzn-ErrorType";
|
|
105
101
|
const n0 = "com.amazonaws.account";
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const _s_registry =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
102
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
103
|
+
const { AccountServiceException } = require("../models/AccountServiceException");
|
|
104
|
+
const { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException } = require("../models/errors");
|
|
105
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
106
|
+
const AccountServiceException$ = [-3, _s, "AccountServiceException", 0, [], []];
|
|
107
|
+
exports.AccountServiceException$ = AccountServiceException$;
|
|
108
|
+
_s_registry.registerError(AccountServiceException$, AccountServiceException);
|
|
109
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
110
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
114
111
|
{ [_e]: _c, [_hE]: 403 },
|
|
115
112
|
[_m, _eT],
|
|
116
113
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
117
114
|
];
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
116
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
117
|
+
const ConflictException$ = [-3, n0, _CE,
|
|
120
118
|
{ [_e]: _c, [_hE]: 409 },
|
|
121
119
|
[_m, _eT],
|
|
122
120
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
123
121
|
];
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
exports.ConflictException$ = ConflictException$;
|
|
123
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
124
|
+
const InternalServerException$ = [-3, n0, _ISE,
|
|
126
125
|
{ [_e]: _se, [_hE]: 500 },
|
|
127
126
|
[_m, _eT],
|
|
128
127
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
129
128
|
];
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
130
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
131
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
132
132
|
{ [_e]: _c, [_hE]: 404 },
|
|
133
133
|
[_m, _eT],
|
|
134
134
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
135
135
|
];
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
137
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
138
|
+
const ResourceUnavailableException$ = [-3, n0, _RUE,
|
|
138
139
|
{ [_e]: _c, [_hE]: 424 },
|
|
139
140
|
[_m, _eT],
|
|
140
141
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
141
142
|
];
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
exports.ResourceUnavailableException$ = ResourceUnavailableException$;
|
|
144
|
+
n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException);
|
|
145
|
+
const TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
144
146
|
{ [_e]: _c, [_hE]: 429 },
|
|
145
147
|
[_m, _eT],
|
|
146
148
|
[0, [0, { [_hH]: _xaE }]], 1
|
|
147
149
|
];
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
151
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
152
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
150
153
|
{ [_e]: _c, [_hE]: 400 },
|
|
151
154
|
[_m, _r, _fL],
|
|
152
155
|
[[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1
|
|
153
156
|
];
|
|
154
|
-
|
|
157
|
+
exports.ValidationException$ = ValidationException$;
|
|
158
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
155
159
|
exports.errorTypeRegistries = [
|
|
156
160
|
_s_registry,
|
|
157
161
|
n0_registry,
|
|
@@ -174,197 +178,225 @@ var SensitiveString = [0, n0, _SS, 8, 0];
|
|
|
174
178
|
var StateOrRegion = [0, n0, _SOR, 8, 0];
|
|
175
179
|
var Title = [0, n0, _T, 8, 0];
|
|
176
180
|
var WebsiteUrl = [0, n0, _WU, 8, 0];
|
|
177
|
-
|
|
181
|
+
const AcceptPrimaryEmailUpdateRequest$ = [3, n0, _APEUR,
|
|
178
182
|
0,
|
|
179
183
|
[_AI, _PE, _O],
|
|
180
184
|
[0, [() => PrimaryEmailAddress, 0], [() => Otp, 0]], 3
|
|
181
185
|
];
|
|
182
|
-
exports.
|
|
186
|
+
exports.AcceptPrimaryEmailUpdateRequest$ = AcceptPrimaryEmailUpdateRequest$;
|
|
187
|
+
const AcceptPrimaryEmailUpdateResponse$ = [3, n0, _APEURc,
|
|
183
188
|
0,
|
|
184
189
|
[_S],
|
|
185
190
|
[0]
|
|
186
191
|
];
|
|
187
|
-
exports.
|
|
192
|
+
exports.AcceptPrimaryEmailUpdateResponse$ = AcceptPrimaryEmailUpdateResponse$;
|
|
193
|
+
const AlternateContact$ = [3, n0, _AC,
|
|
188
194
|
0,
|
|
189
195
|
[_N, _T, _EA, _PN, _ACT],
|
|
190
196
|
[[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0]
|
|
191
197
|
];
|
|
192
|
-
exports.
|
|
198
|
+
exports.AlternateContact$ = AlternateContact$;
|
|
199
|
+
const ContactInformation$ = [3, n0, _CI,
|
|
193
200
|
0,
|
|
194
201
|
[_FN, _ALd, _C, _PC, _CC, _PN, _ALdd, _ALddr, _SOR, _DOC, _CN, _WU],
|
|
195
202
|
[[() => FullName, 0], [() => AddressLine, 0], [() => City, 0], [() => PostalCode, 0], [() => CountryCode, 0], [() => ContactInformationPhoneNumber, 0], [() => AddressLine, 0], [() => AddressLine, 0], [() => StateOrRegion, 0], [() => DistrictOrCounty, 0], [() => CompanyName, 0], [() => WebsiteUrl, 0]], 6
|
|
196
203
|
];
|
|
197
|
-
exports.
|
|
204
|
+
exports.ContactInformation$ = ContactInformation$;
|
|
205
|
+
const DeleteAlternateContactRequest$ = [3, n0, _DACR,
|
|
198
206
|
0,
|
|
199
207
|
[_ACT, _AI],
|
|
200
208
|
[0, 0], 1
|
|
201
209
|
];
|
|
202
|
-
exports.
|
|
210
|
+
exports.DeleteAlternateContactRequest$ = DeleteAlternateContactRequest$;
|
|
211
|
+
const DisableRegionRequest$ = [3, n0, _DRR,
|
|
203
212
|
0,
|
|
204
213
|
[_RN, _AI],
|
|
205
214
|
[0, 0], 1
|
|
206
215
|
];
|
|
207
|
-
exports.
|
|
216
|
+
exports.DisableRegionRequest$ = DisableRegionRequest$;
|
|
217
|
+
const EnableRegionRequest$ = [3, n0, _ERR,
|
|
208
218
|
0,
|
|
209
219
|
[_RN, _AI],
|
|
210
220
|
[0, 0], 1
|
|
211
221
|
];
|
|
212
|
-
exports.
|
|
222
|
+
exports.EnableRegionRequest$ = EnableRegionRequest$;
|
|
223
|
+
const GetAccountInformationRequest$ = [3, n0, _GAIR,
|
|
213
224
|
0,
|
|
214
225
|
[_AI],
|
|
215
226
|
[0]
|
|
216
227
|
];
|
|
217
|
-
exports.
|
|
228
|
+
exports.GetAccountInformationRequest$ = GetAccountInformationRequest$;
|
|
229
|
+
const GetAccountInformationResponse$ = [3, n0, _GAIRe,
|
|
218
230
|
0,
|
|
219
231
|
[_AI, _AN, _ACD, _AS],
|
|
220
232
|
[0, [() => AccountName, 0], 5, 0]
|
|
221
233
|
];
|
|
222
|
-
exports.
|
|
234
|
+
exports.GetAccountInformationResponse$ = GetAccountInformationResponse$;
|
|
235
|
+
const GetAlternateContactRequest$ = [3, n0, _GACR,
|
|
223
236
|
0,
|
|
224
237
|
[_ACT, _AI],
|
|
225
238
|
[0, 0], 1
|
|
226
239
|
];
|
|
227
|
-
exports.
|
|
240
|
+
exports.GetAlternateContactRequest$ = GetAlternateContactRequest$;
|
|
241
|
+
const GetAlternateContactResponse$ = [3, n0, _GACRe,
|
|
228
242
|
0,
|
|
229
243
|
[_AC],
|
|
230
|
-
[[() =>
|
|
244
|
+
[[() => AlternateContact$, 0]]
|
|
231
245
|
];
|
|
232
|
-
exports.
|
|
246
|
+
exports.GetAlternateContactResponse$ = GetAlternateContactResponse$;
|
|
247
|
+
const GetContactInformationRequest$ = [3, n0, _GCIR,
|
|
233
248
|
0,
|
|
234
249
|
[_AI],
|
|
235
250
|
[0]
|
|
236
251
|
];
|
|
237
|
-
exports.
|
|
252
|
+
exports.GetContactInformationRequest$ = GetContactInformationRequest$;
|
|
253
|
+
const GetContactInformationResponse$ = [3, n0, _GCIRe,
|
|
238
254
|
0,
|
|
239
255
|
[_CI],
|
|
240
|
-
[[() =>
|
|
256
|
+
[[() => ContactInformation$, 0]]
|
|
241
257
|
];
|
|
242
|
-
exports.
|
|
258
|
+
exports.GetContactInformationResponse$ = GetContactInformationResponse$;
|
|
259
|
+
const GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR,
|
|
243
260
|
0,
|
|
244
261
|
[_SAI],
|
|
245
262
|
[0]
|
|
246
263
|
];
|
|
247
|
-
exports.
|
|
264
|
+
exports.GetGovCloudAccountInformationRequest$ = GetGovCloudAccountInformationRequest$;
|
|
265
|
+
const GetGovCloudAccountInformationResponse$ = [3, n0, _GGCAIRe,
|
|
248
266
|
0,
|
|
249
267
|
[_GCAI, _AS],
|
|
250
268
|
[0, 0], 2
|
|
251
269
|
];
|
|
252
|
-
exports.
|
|
270
|
+
exports.GetGovCloudAccountInformationResponse$ = GetGovCloudAccountInformationResponse$;
|
|
271
|
+
const GetPrimaryEmailRequest$ = [3, n0, _GPER,
|
|
253
272
|
0,
|
|
254
273
|
[_AI],
|
|
255
274
|
[0], 1
|
|
256
275
|
];
|
|
257
|
-
exports.
|
|
276
|
+
exports.GetPrimaryEmailRequest$ = GetPrimaryEmailRequest$;
|
|
277
|
+
const GetPrimaryEmailResponse$ = [3, n0, _GPERe,
|
|
258
278
|
0,
|
|
259
279
|
[_PE],
|
|
260
280
|
[[() => PrimaryEmailAddress, 0]]
|
|
261
281
|
];
|
|
262
|
-
exports.
|
|
282
|
+
exports.GetPrimaryEmailResponse$ = GetPrimaryEmailResponse$;
|
|
283
|
+
const GetRegionOptStatusRequest$ = [3, n0, _GROSR,
|
|
263
284
|
0,
|
|
264
285
|
[_RN, _AI],
|
|
265
286
|
[0, 0], 1
|
|
266
287
|
];
|
|
267
|
-
exports.
|
|
288
|
+
exports.GetRegionOptStatusRequest$ = GetRegionOptStatusRequest$;
|
|
289
|
+
const GetRegionOptStatusResponse$ = [3, n0, _GROSRe,
|
|
268
290
|
0,
|
|
269
291
|
[_RN, _ROS],
|
|
270
292
|
[0, 0]
|
|
271
293
|
];
|
|
272
|
-
exports.
|
|
294
|
+
exports.GetRegionOptStatusResponse$ = GetRegionOptStatusResponse$;
|
|
295
|
+
const ListRegionsRequest$ = [3, n0, _LRR,
|
|
273
296
|
0,
|
|
274
297
|
[_AI, _MR, _NT, _ROSC],
|
|
275
298
|
[0, 1, 0, 64 | 0]
|
|
276
299
|
];
|
|
277
|
-
exports.
|
|
300
|
+
exports.ListRegionsRequest$ = ListRegionsRequest$;
|
|
301
|
+
const ListRegionsResponse$ = [3, n0, _LRRi,
|
|
278
302
|
0,
|
|
279
303
|
[_NT, _R],
|
|
280
304
|
[0, () => RegionOptList]
|
|
281
305
|
];
|
|
282
|
-
exports.
|
|
306
|
+
exports.ListRegionsResponse$ = ListRegionsResponse$;
|
|
307
|
+
const PutAccountNameRequest$ = [3, n0, _PANR,
|
|
283
308
|
0,
|
|
284
309
|
[_AN, _AI],
|
|
285
310
|
[[() => AccountName, 0], 0], 1
|
|
286
311
|
];
|
|
287
|
-
exports.
|
|
312
|
+
exports.PutAccountNameRequest$ = PutAccountNameRequest$;
|
|
313
|
+
const PutAlternateContactRequest$ = [3, n0, _PACR,
|
|
288
314
|
0,
|
|
289
315
|
[_N, _T, _EA, _PN, _ACT, _AI],
|
|
290
316
|
[[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0, 0], 5
|
|
291
317
|
];
|
|
292
|
-
exports.
|
|
318
|
+
exports.PutAlternateContactRequest$ = PutAlternateContactRequest$;
|
|
319
|
+
const PutContactInformationRequest$ = [3, n0, _PCIR,
|
|
293
320
|
0,
|
|
294
321
|
[_CI, _AI],
|
|
295
|
-
[[() =>
|
|
322
|
+
[[() => ContactInformation$, 0], 0], 1
|
|
296
323
|
];
|
|
297
|
-
exports.
|
|
324
|
+
exports.PutContactInformationRequest$ = PutContactInformationRequest$;
|
|
325
|
+
const Region$ = [3, n0, _Re,
|
|
298
326
|
0,
|
|
299
327
|
[_RN, _ROS],
|
|
300
328
|
[0, 0]
|
|
301
329
|
];
|
|
302
|
-
exports.
|
|
330
|
+
exports.Region$ = Region$;
|
|
331
|
+
const StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
|
|
303
332
|
0,
|
|
304
333
|
[_AI, _PE],
|
|
305
334
|
[0, [() => PrimaryEmailAddress, 0]], 2
|
|
306
335
|
];
|
|
307
|
-
exports.
|
|
336
|
+
exports.StartPrimaryEmailUpdateRequest$ = StartPrimaryEmailUpdateRequest$;
|
|
337
|
+
const StartPrimaryEmailUpdateResponse$ = [3, n0, _SPEURt,
|
|
308
338
|
0,
|
|
309
339
|
[_S],
|
|
310
340
|
[0]
|
|
311
341
|
];
|
|
312
|
-
exports.
|
|
342
|
+
exports.StartPrimaryEmailUpdateResponse$ = StartPrimaryEmailUpdateResponse$;
|
|
343
|
+
const ValidationExceptionField$ = [3, n0, _VEF,
|
|
313
344
|
0,
|
|
314
345
|
[_n, _m],
|
|
315
346
|
[0, [() => SensitiveString, 0]], 2
|
|
316
347
|
];
|
|
348
|
+
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
317
349
|
var __Unit = "unit";
|
|
318
350
|
var RegionOptList = [1, n0, _ROL,
|
|
319
|
-
0, () =>
|
|
351
|
+
0, () => Region$
|
|
320
352
|
];
|
|
321
353
|
var RegionOptStatusList = 64 | 0;
|
|
322
354
|
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
323
|
-
0, [() =>
|
|
355
|
+
0, [() => ValidationExceptionField$,
|
|
324
356
|
0]
|
|
325
357
|
];
|
|
326
358
|
exports.AcceptPrimaryEmailUpdate$ = [9, n0, _APEU,
|
|
327
|
-
{ [_h]: ["POST", "/acceptPrimaryEmailUpdate", 200] }, () =>
|
|
359
|
+
{ [_h]: ["POST", "/acceptPrimaryEmailUpdate", 200] }, () => AcceptPrimaryEmailUpdateRequest$, () => AcceptPrimaryEmailUpdateResponse$
|
|
328
360
|
];
|
|
329
361
|
exports.DeleteAlternateContact$ = [9, n0, _DAC,
|
|
330
|
-
{ [_h]: ["POST", "/deleteAlternateContact", 200] }, () =>
|
|
362
|
+
{ [_h]: ["POST", "/deleteAlternateContact", 200] }, () => DeleteAlternateContactRequest$, () => __Unit
|
|
331
363
|
];
|
|
332
364
|
exports.DisableRegion$ = [9, n0, _DR,
|
|
333
|
-
{ [_h]: ["POST", "/disableRegion", 200] }, () =>
|
|
365
|
+
{ [_h]: ["POST", "/disableRegion", 200] }, () => DisableRegionRequest$, () => __Unit
|
|
334
366
|
];
|
|
335
367
|
exports.EnableRegion$ = [9, n0, _ER,
|
|
336
|
-
{ [_h]: ["POST", "/enableRegion", 200] }, () =>
|
|
368
|
+
{ [_h]: ["POST", "/enableRegion", 200] }, () => EnableRegionRequest$, () => __Unit
|
|
337
369
|
];
|
|
338
370
|
exports.GetAccountInformation$ = [9, n0, _GAI,
|
|
339
|
-
{ [_h]: ["POST", "/getAccountInformation", 200] }, () =>
|
|
371
|
+
{ [_h]: ["POST", "/getAccountInformation", 200] }, () => GetAccountInformationRequest$, () => GetAccountInformationResponse$
|
|
340
372
|
];
|
|
341
373
|
exports.GetAlternateContact$ = [9, n0, _GAC,
|
|
342
|
-
{ [_h]: ["POST", "/getAlternateContact", 200] }, () =>
|
|
374
|
+
{ [_h]: ["POST", "/getAlternateContact", 200] }, () => GetAlternateContactRequest$, () => GetAlternateContactResponse$
|
|
343
375
|
];
|
|
344
376
|
exports.GetContactInformation$ = [9, n0, _GCI,
|
|
345
|
-
{ [_h]: ["POST", "/getContactInformation", 200] }, () =>
|
|
377
|
+
{ [_h]: ["POST", "/getContactInformation", 200] }, () => GetContactInformationRequest$, () => GetContactInformationResponse$
|
|
346
378
|
];
|
|
347
379
|
exports.GetGovCloudAccountInformation$ = [9, n0, _GGCAI,
|
|
348
|
-
{ [_h]: ["POST", "/getGovCloudAccountInformation", 200] }, () =>
|
|
380
|
+
{ [_h]: ["POST", "/getGovCloudAccountInformation", 200] }, () => GetGovCloudAccountInformationRequest$, () => GetGovCloudAccountInformationResponse$
|
|
349
381
|
];
|
|
350
382
|
exports.GetPrimaryEmail$ = [9, n0, _GPE,
|
|
351
|
-
{ [_h]: ["POST", "/getPrimaryEmail", 200] }, () =>
|
|
383
|
+
{ [_h]: ["POST", "/getPrimaryEmail", 200] }, () => GetPrimaryEmailRequest$, () => GetPrimaryEmailResponse$
|
|
352
384
|
];
|
|
353
385
|
exports.GetRegionOptStatus$ = [9, n0, _GROS,
|
|
354
|
-
{ [_h]: ["POST", "/getRegionOptStatus", 200] }, () =>
|
|
386
|
+
{ [_h]: ["POST", "/getRegionOptStatus", 200] }, () => GetRegionOptStatusRequest$, () => GetRegionOptStatusResponse$
|
|
355
387
|
];
|
|
356
388
|
exports.ListRegions$ = [9, n0, _LR,
|
|
357
|
-
{ [_h]: ["POST", "/listRegions", 200] }, () =>
|
|
389
|
+
{ [_h]: ["POST", "/listRegions", 200] }, () => ListRegionsRequest$, () => ListRegionsResponse$
|
|
358
390
|
];
|
|
359
391
|
exports.PutAccountName$ = [9, n0, _PAN,
|
|
360
|
-
{ [_h]: ["POST", "/putAccountName", 200] }, () =>
|
|
392
|
+
{ [_h]: ["POST", "/putAccountName", 200] }, () => PutAccountNameRequest$, () => __Unit
|
|
361
393
|
];
|
|
362
394
|
exports.PutAlternateContact$ = [9, n0, _PAC,
|
|
363
|
-
{ [_h]: ["POST", "/putAlternateContact", 200] }, () =>
|
|
395
|
+
{ [_h]: ["POST", "/putAlternateContact", 200] }, () => PutAlternateContactRequest$, () => __Unit
|
|
364
396
|
];
|
|
365
397
|
exports.PutContactInformation$ = [9, n0, _PCI,
|
|
366
|
-
{ [_h]: ["POST", "/putContactInformation", 200] }, () =>
|
|
398
|
+
{ [_h]: ["POST", "/putContactInformation", 200] }, () => PutContactInformationRequest$, () => __Unit
|
|
367
399
|
];
|
|
368
400
|
exports.StartPrimaryEmailUpdate$ = [9, n0, _SPEU,
|
|
369
|
-
{ [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () =>
|
|
401
|
+
{ [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => StartPrimaryEmailUpdateRequest$, () => StartPrimaryEmailUpdateResponse$
|
|
370
402
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-account",
|
|
3
3
|
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1070.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/types": "^3.973.13",
|
|
27
27
|
"@smithy/core": "^3.24.6",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
29
29
|
"@smithy/node-http-handler": "^4.7.6",
|