@aws-sdk/client-workmail 3.46.0 → 3.47.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/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +4 -136
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/models/models_0.js +0 -88
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/WorkMailClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -132
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -88
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateResourceResponse = exports.UpdateResourceRequest = exports.UpdatePrimaryEmailAddressResponse = exports.UpdatePrimaryEmailAddressRequest = exports.UpdateMobileDeviceAccessRuleResponse = exports.UpdateMobileDeviceAccessRuleRequest = exports.UpdateMailboxQuotaResponse = exports.UpdateMailboxQuotaRequest = exports.UpdateDefaultMailDomainResponse = exports.UpdateDefaultMailDomainRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.
|
|
3
|
+
exports.DeregisterFromWorkMailResponse = exports.DeregisterFromWorkMailRequest = exports.DeleteUserResponse = exports.DeleteUserRequest = exports.DeleteRetentionPolicyResponse = exports.DeleteRetentionPolicyRequest = exports.DeleteResourceResponse = exports.DeleteResourceRequest = exports.DeleteOrganizationResponse = exports.DeleteOrganizationRequest = exports.DeleteMobileDeviceAccessRuleResponse = exports.DeleteMobileDeviceAccessRuleRequest = exports.DeleteMobileDeviceAccessOverrideResponse = exports.DeleteMobileDeviceAccessOverrideRequest = exports.DeleteMailboxPermissionsResponse = exports.DeleteMailboxPermissionsRequest = exports.DeleteGroupResponse = exports.DeleteGroupRequest = exports.DeleteEmailMonitoringConfigurationResponse = exports.DeleteEmailMonitoringConfigurationRequest = exports.DeleteAliasResponse = exports.DeleteAliasRequest = exports.DeleteAccessControlRuleResponse = exports.DeleteAccessControlRuleRequest = exports.Delegate = exports.MemberType = exports.CreateUserResponse = exports.CreateUserRequest = exports.CreateResourceResponse = exports.CreateResourceRequest = exports.ResourceType = exports.CreateOrganizationResponse = exports.CreateOrganizationRequest = exports.Domain = exports.CreateMobileDeviceAccessRuleResponse = exports.CreateMobileDeviceAccessRuleRequest = exports.MobileDeviceAccessRuleEffect = exports.CreateGroupResponse = exports.CreateGroupRequest = exports.CreateAliasResponse = exports.CreateAliasRequest = exports.CancelMailboxExportJobResponse = exports.CancelMailboxExportJobRequest = exports.BookingOptions = exports.AssociateMemberToGroupResponse = exports.AssociateMemberToGroupRequest = exports.AssociateDelegateToResourceResponse = exports.AssociateDelegateToResourceRequest = exports.AccessControlRule = exports.AccessControlRuleEffect = void 0;
|
|
4
|
+
exports.ListGroupMembersResponse = exports.Member = exports.ListGroupMembersRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.ListAccessControlRulesResponse = exports.ListAccessControlRulesRequest = exports.MailboxExportJob = exports.Group = exports.GetMobileDeviceAccessOverrideResponse = exports.GetMobileDeviceAccessOverrideRequest = exports.GetMobileDeviceAccessEffectResponse = exports.MobileDeviceAccessMatchedRule = exports.GetMobileDeviceAccessEffectRequest = exports.GetMailDomainResponse = exports.GetMailDomainRequest = exports.GetMailboxDetailsResponse = exports.GetMailboxDetailsRequest = exports.GetDefaultRetentionPolicyResponse = exports.GetDefaultRetentionPolicyRequest = exports.GetAccessControlEffectResponse = exports.GetAccessControlEffectRequest = exports.FolderConfiguration = exports.FolderName = exports.RetentionAction = exports.DnsRecordVerificationStatus = exports.DnsRecord = exports.DisassociateMemberFromGroupResponse = exports.DisassociateMemberFromGroupRequest = exports.DisassociateDelegateFromResourceResponse = exports.DisassociateDelegateFromResourceRequest = exports.DescribeUserResponse = exports.UserRole = exports.DescribeUserRequest = exports.DescribeResourceResponse = exports.DescribeResourceRequest = exports.DescribeOrganizationResponse = exports.DescribeOrganizationRequest = exports.DescribeMailboxExportJobResponse = exports.MailboxExportJobState = exports.DescribeMailboxExportJobRequest = exports.DescribeInboundDmarcSettingsResponse = exports.DescribeInboundDmarcSettingsRequest = exports.DescribeGroupResponse = exports.EntityState = exports.DescribeGroupRequest = exports.DescribeEmailMonitoringConfigurationResponse = exports.DescribeEmailMonitoringConfigurationRequest = exports.DeregisterMailDomainResponse = exports.DeregisterMailDomainRequest = void 0;
|
|
5
|
+
exports.StartMailboxExportJobRequest = exports.ResetPasswordResponse = exports.ResetPasswordRequest = exports.RegisterToWorkMailResponse = exports.RegisterToWorkMailRequest = exports.RegisterMailDomainResponse = exports.RegisterMailDomainRequest = exports.PutRetentionPolicyResponse = exports.PutRetentionPolicyRequest = exports.PutMobileDeviceAccessOverrideResponse = exports.PutMobileDeviceAccessOverrideRequest = exports.PutMailboxPermissionsResponse = exports.PutMailboxPermissionsRequest = exports.PutInboundDmarcSettingsResponse = exports.PutInboundDmarcSettingsRequest = exports.PutEmailMonitoringConfigurationResponse = exports.PutEmailMonitoringConfigurationRequest = exports.PutAccessControlRuleResponse = exports.PutAccessControlRuleRequest = exports.ListUsersResponse = exports.User = exports.ListUsersRequest = exports.ListTagsForResourceResponse = exports.Tag = exports.ListTagsForResourceRequest = exports.ListResourcesResponse = exports.Resource = exports.ListResourcesRequest = exports.ListResourceDelegatesResponse = exports.ListResourceDelegatesRequest = exports.ListOrganizationsResponse = exports.OrganizationSummary = exports.ListOrganizationsRequest = exports.ListMobileDeviceAccessRulesResponse = exports.MobileDeviceAccessRule = exports.ListMobileDeviceAccessRulesRequest = exports.ListMobileDeviceAccessOverridesResponse = exports.MobileDeviceAccessOverride = exports.ListMobileDeviceAccessOverridesRequest = exports.ListMailDomainsResponse = exports.MailDomainSummary = exports.ListMailDomainsRequest = exports.ListMailboxPermissionsResponse = exports.Permission = exports.PermissionType = exports.ListMailboxPermissionsRequest = exports.ListMailboxExportJobsResponse = exports.ListMailboxExportJobsRequest = exports.ListGroupsResponse = exports.ListGroupsRequest = void 0;
|
|
6
|
+
exports.UpdateResourceResponse = exports.UpdateResourceRequest = exports.UpdatePrimaryEmailAddressResponse = exports.UpdatePrimaryEmailAddressRequest = exports.UpdateMobileDeviceAccessRuleResponse = exports.UpdateMobileDeviceAccessRuleRequest = exports.UpdateMailboxQuotaResponse = exports.UpdateMailboxQuotaRequest = exports.UpdateDefaultMailDomainResponse = exports.UpdateDefaultMailDomainRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartMailboxExportJobResponse = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
var AccessControlRuleEffect;
|
|
9
9
|
(function (AccessControlRuleEffect) {
|
|
@@ -28,36 +28,6 @@ var AssociateDelegateToResourceResponse;
|
|
|
28
28
|
...obj,
|
|
29
29
|
});
|
|
30
30
|
})(AssociateDelegateToResourceResponse = exports.AssociateDelegateToResourceResponse || (exports.AssociateDelegateToResourceResponse = {}));
|
|
31
|
-
var EntityNotFoundException;
|
|
32
|
-
(function (EntityNotFoundException) {
|
|
33
|
-
EntityNotFoundException.filterSensitiveLog = (obj) => ({
|
|
34
|
-
...obj,
|
|
35
|
-
});
|
|
36
|
-
})(EntityNotFoundException = exports.EntityNotFoundException || (exports.EntityNotFoundException = {}));
|
|
37
|
-
var EntityStateException;
|
|
38
|
-
(function (EntityStateException) {
|
|
39
|
-
EntityStateException.filterSensitiveLog = (obj) => ({
|
|
40
|
-
...obj,
|
|
41
|
-
});
|
|
42
|
-
})(EntityStateException = exports.EntityStateException || (exports.EntityStateException = {}));
|
|
43
|
-
var InvalidParameterException;
|
|
44
|
-
(function (InvalidParameterException) {
|
|
45
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
46
|
-
...obj,
|
|
47
|
-
});
|
|
48
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
49
|
-
var OrganizationNotFoundException;
|
|
50
|
-
(function (OrganizationNotFoundException) {
|
|
51
|
-
OrganizationNotFoundException.filterSensitiveLog = (obj) => ({
|
|
52
|
-
...obj,
|
|
53
|
-
});
|
|
54
|
-
})(OrganizationNotFoundException = exports.OrganizationNotFoundException || (exports.OrganizationNotFoundException = {}));
|
|
55
|
-
var OrganizationStateException;
|
|
56
|
-
(function (OrganizationStateException) {
|
|
57
|
-
OrganizationStateException.filterSensitiveLog = (obj) => ({
|
|
58
|
-
...obj,
|
|
59
|
-
});
|
|
60
|
-
})(OrganizationStateException = exports.OrganizationStateException || (exports.OrganizationStateException = {}));
|
|
61
31
|
var AssociateMemberToGroupRequest;
|
|
62
32
|
(function (AssociateMemberToGroupRequest) {
|
|
63
33
|
AssociateMemberToGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -70,24 +40,6 @@ var AssociateMemberToGroupResponse;
|
|
|
70
40
|
...obj,
|
|
71
41
|
});
|
|
72
42
|
})(AssociateMemberToGroupResponse = exports.AssociateMemberToGroupResponse || (exports.AssociateMemberToGroupResponse = {}));
|
|
73
|
-
var DirectoryServiceAuthenticationFailedException;
|
|
74
|
-
(function (DirectoryServiceAuthenticationFailedException) {
|
|
75
|
-
DirectoryServiceAuthenticationFailedException.filterSensitiveLog = (obj) => ({
|
|
76
|
-
...obj,
|
|
77
|
-
});
|
|
78
|
-
})(DirectoryServiceAuthenticationFailedException = exports.DirectoryServiceAuthenticationFailedException || (exports.DirectoryServiceAuthenticationFailedException = {}));
|
|
79
|
-
var DirectoryUnavailableException;
|
|
80
|
-
(function (DirectoryUnavailableException) {
|
|
81
|
-
DirectoryUnavailableException.filterSensitiveLog = (obj) => ({
|
|
82
|
-
...obj,
|
|
83
|
-
});
|
|
84
|
-
})(DirectoryUnavailableException = exports.DirectoryUnavailableException || (exports.DirectoryUnavailableException = {}));
|
|
85
|
-
var UnsupportedOperationException;
|
|
86
|
-
(function (UnsupportedOperationException) {
|
|
87
|
-
UnsupportedOperationException.filterSensitiveLog = (obj) => ({
|
|
88
|
-
...obj,
|
|
89
|
-
});
|
|
90
|
-
})(UnsupportedOperationException = exports.UnsupportedOperationException || (exports.UnsupportedOperationException = {}));
|
|
91
43
|
var BookingOptions;
|
|
92
44
|
(function (BookingOptions) {
|
|
93
45
|
BookingOptions.filterSensitiveLog = (obj) => ({
|
|
@@ -118,30 +70,6 @@ var CreateAliasResponse;
|
|
|
118
70
|
...obj,
|
|
119
71
|
});
|
|
120
72
|
})(CreateAliasResponse = exports.CreateAliasResponse || (exports.CreateAliasResponse = {}));
|
|
121
|
-
var EmailAddressInUseException;
|
|
122
|
-
(function (EmailAddressInUseException) {
|
|
123
|
-
EmailAddressInUseException.filterSensitiveLog = (obj) => ({
|
|
124
|
-
...obj,
|
|
125
|
-
});
|
|
126
|
-
})(EmailAddressInUseException = exports.EmailAddressInUseException || (exports.EmailAddressInUseException = {}));
|
|
127
|
-
var LimitExceededException;
|
|
128
|
-
(function (LimitExceededException) {
|
|
129
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
130
|
-
...obj,
|
|
131
|
-
});
|
|
132
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
133
|
-
var MailDomainNotFoundException;
|
|
134
|
-
(function (MailDomainNotFoundException) {
|
|
135
|
-
MailDomainNotFoundException.filterSensitiveLog = (obj) => ({
|
|
136
|
-
...obj,
|
|
137
|
-
});
|
|
138
|
-
})(MailDomainNotFoundException = exports.MailDomainNotFoundException || (exports.MailDomainNotFoundException = {}));
|
|
139
|
-
var MailDomainStateException;
|
|
140
|
-
(function (MailDomainStateException) {
|
|
141
|
-
MailDomainStateException.filterSensitiveLog = (obj) => ({
|
|
142
|
-
...obj,
|
|
143
|
-
});
|
|
144
|
-
})(MailDomainStateException = exports.MailDomainStateException || (exports.MailDomainStateException = {}));
|
|
145
73
|
var CreateGroupRequest;
|
|
146
74
|
(function (CreateGroupRequest) {
|
|
147
75
|
CreateGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -154,18 +82,6 @@ var CreateGroupResponse;
|
|
|
154
82
|
...obj,
|
|
155
83
|
});
|
|
156
84
|
})(CreateGroupResponse = exports.CreateGroupResponse || (exports.CreateGroupResponse = {}));
|
|
157
|
-
var NameAvailabilityException;
|
|
158
|
-
(function (NameAvailabilityException) {
|
|
159
|
-
NameAvailabilityException.filterSensitiveLog = (obj) => ({
|
|
160
|
-
...obj,
|
|
161
|
-
});
|
|
162
|
-
})(NameAvailabilityException = exports.NameAvailabilityException || (exports.NameAvailabilityException = {}));
|
|
163
|
-
var ReservedNameException;
|
|
164
|
-
(function (ReservedNameException) {
|
|
165
|
-
ReservedNameException.filterSensitiveLog = (obj) => ({
|
|
166
|
-
...obj,
|
|
167
|
-
});
|
|
168
|
-
})(ReservedNameException = exports.ReservedNameException || (exports.ReservedNameException = {}));
|
|
169
85
|
var MobileDeviceAccessRuleEffect;
|
|
170
86
|
(function (MobileDeviceAccessRuleEffect) {
|
|
171
87
|
MobileDeviceAccessRuleEffect["ALLOW"] = "ALLOW";
|
|
@@ -201,12 +117,6 @@ var CreateOrganizationResponse;
|
|
|
201
117
|
...obj,
|
|
202
118
|
});
|
|
203
119
|
})(CreateOrganizationResponse = exports.CreateOrganizationResponse || (exports.CreateOrganizationResponse = {}));
|
|
204
|
-
var DirectoryInUseException;
|
|
205
|
-
(function (DirectoryInUseException) {
|
|
206
|
-
DirectoryInUseException.filterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
});
|
|
209
|
-
})(DirectoryInUseException = exports.DirectoryInUseException || (exports.DirectoryInUseException = {}));
|
|
210
120
|
var ResourceType;
|
|
211
121
|
(function (ResourceType) {
|
|
212
122
|
ResourceType["EQUIPMENT"] = "EQUIPMENT";
|
|
@@ -237,12 +147,6 @@ var CreateUserResponse;
|
|
|
237
147
|
...obj,
|
|
238
148
|
});
|
|
239
149
|
})(CreateUserResponse = exports.CreateUserResponse || (exports.CreateUserResponse = {}));
|
|
240
|
-
var InvalidPasswordException;
|
|
241
|
-
(function (InvalidPasswordException) {
|
|
242
|
-
InvalidPasswordException.filterSensitiveLog = (obj) => ({
|
|
243
|
-
...obj,
|
|
244
|
-
});
|
|
245
|
-
})(InvalidPasswordException = exports.InvalidPasswordException || (exports.InvalidPasswordException = {}));
|
|
246
150
|
var MemberType;
|
|
247
151
|
(function (MemberType) {
|
|
248
152
|
MemberType["GROUP"] = "GROUP";
|
|
@@ -410,18 +314,6 @@ var DeregisterMailDomainResponse;
|
|
|
410
314
|
...obj,
|
|
411
315
|
});
|
|
412
316
|
})(DeregisterMailDomainResponse = exports.DeregisterMailDomainResponse || (exports.DeregisterMailDomainResponse = {}));
|
|
413
|
-
var InvalidCustomSesConfigurationException;
|
|
414
|
-
(function (InvalidCustomSesConfigurationException) {
|
|
415
|
-
InvalidCustomSesConfigurationException.filterSensitiveLog = (obj) => ({
|
|
416
|
-
...obj,
|
|
417
|
-
});
|
|
418
|
-
})(InvalidCustomSesConfigurationException = exports.InvalidCustomSesConfigurationException || (exports.InvalidCustomSesConfigurationException = {}));
|
|
419
|
-
var MailDomainInUseException;
|
|
420
|
-
(function (MailDomainInUseException) {
|
|
421
|
-
MailDomainInUseException.filterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
});
|
|
424
|
-
})(MailDomainInUseException = exports.MailDomainInUseException || (exports.MailDomainInUseException = {}));
|
|
425
317
|
var DescribeEmailMonitoringConfigurationRequest;
|
|
426
318
|
(function (DescribeEmailMonitoringConfigurationRequest) {
|
|
427
319
|
DescribeEmailMonitoringConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -434,12 +326,6 @@ var DescribeEmailMonitoringConfigurationResponse;
|
|
|
434
326
|
...obj,
|
|
435
327
|
});
|
|
436
328
|
})(DescribeEmailMonitoringConfigurationResponse = exports.DescribeEmailMonitoringConfigurationResponse || (exports.DescribeEmailMonitoringConfigurationResponse = {}));
|
|
437
|
-
var ResourceNotFoundException;
|
|
438
|
-
(function (ResourceNotFoundException) {
|
|
439
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
440
|
-
...obj,
|
|
441
|
-
});
|
|
442
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
443
329
|
var DescribeGroupRequest;
|
|
444
330
|
(function (DescribeGroupRequest) {
|
|
445
331
|
DescribeGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -567,12 +453,6 @@ var DnsRecordVerificationStatus;
|
|
|
567
453
|
DnsRecordVerificationStatus["PENDING"] = "PENDING";
|
|
568
454
|
DnsRecordVerificationStatus["VERIFIED"] = "VERIFIED";
|
|
569
455
|
})(DnsRecordVerificationStatus = exports.DnsRecordVerificationStatus || (exports.DnsRecordVerificationStatus = {}));
|
|
570
|
-
var EntityAlreadyRegisteredException;
|
|
571
|
-
(function (EntityAlreadyRegisteredException) {
|
|
572
|
-
EntityAlreadyRegisteredException.filterSensitiveLog = (obj) => ({
|
|
573
|
-
...obj,
|
|
574
|
-
});
|
|
575
|
-
})(EntityAlreadyRegisteredException = exports.EntityAlreadyRegisteredException || (exports.EntityAlreadyRegisteredException = {}));
|
|
576
456
|
var RetentionAction;
|
|
577
457
|
(function (RetentionAction) {
|
|
578
458
|
RetentionAction["DELETE"] = "DELETE";
|
|
@@ -677,12 +557,6 @@ var Group;
|
|
|
677
557
|
...obj,
|
|
678
558
|
});
|
|
679
559
|
})(Group = exports.Group || (exports.Group = {}));
|
|
680
|
-
var InvalidConfigurationException;
|
|
681
|
-
(function (InvalidConfigurationException) {
|
|
682
|
-
InvalidConfigurationException.filterSensitiveLog = (obj) => ({
|
|
683
|
-
...obj,
|
|
684
|
-
});
|
|
685
|
-
})(InvalidConfigurationException = exports.InvalidConfigurationException || (exports.InvalidConfigurationException = {}));
|
|
686
560
|
var MailboxExportJob;
|
|
687
561
|
(function (MailboxExportJob) {
|
|
688
562
|
MailboxExportJob.filterSensitiveLog = (obj) => ({
|
|
@@ -1051,12 +925,6 @@ var TagResourceResponse;
|
|
|
1051
925
|
...obj,
|
|
1052
926
|
});
|
|
1053
927
|
})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
|
|
1054
|
-
var TooManyTagsException;
|
|
1055
|
-
(function (TooManyTagsException) {
|
|
1056
|
-
TooManyTagsException.filterSensitiveLog = (obj) => ({
|
|
1057
|
-
...obj,
|
|
1058
|
-
});
|
|
1059
|
-
})(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
|
|
1060
928
|
var UntagResourceRequest;
|
|
1061
929
|
(function (UntagResourceRequest) {
|
|
1062
930
|
UntagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -17,26 +17,6 @@ export var AssociateDelegateToResourceResponse;
|
|
|
17
17
|
(function (AssociateDelegateToResourceResponse) {
|
|
18
18
|
AssociateDelegateToResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
19
19
|
})(AssociateDelegateToResourceResponse || (AssociateDelegateToResourceResponse = {}));
|
|
20
|
-
export var EntityNotFoundException;
|
|
21
|
-
(function (EntityNotFoundException) {
|
|
22
|
-
EntityNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
23
|
-
})(EntityNotFoundException || (EntityNotFoundException = {}));
|
|
24
|
-
export var EntityStateException;
|
|
25
|
-
(function (EntityStateException) {
|
|
26
|
-
EntityStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
27
|
-
})(EntityStateException || (EntityStateException = {}));
|
|
28
|
-
export var InvalidParameterException;
|
|
29
|
-
(function (InvalidParameterException) {
|
|
30
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
31
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
32
|
-
export var OrganizationNotFoundException;
|
|
33
|
-
(function (OrganizationNotFoundException) {
|
|
34
|
-
OrganizationNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
|
-
})(OrganizationNotFoundException || (OrganizationNotFoundException = {}));
|
|
36
|
-
export var OrganizationStateException;
|
|
37
|
-
(function (OrganizationStateException) {
|
|
38
|
-
OrganizationStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
39
|
-
})(OrganizationStateException || (OrganizationStateException = {}));
|
|
40
20
|
export var AssociateMemberToGroupRequest;
|
|
41
21
|
(function (AssociateMemberToGroupRequest) {
|
|
42
22
|
AssociateMemberToGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -45,18 +25,6 @@ export var AssociateMemberToGroupResponse;
|
|
|
45
25
|
(function (AssociateMemberToGroupResponse) {
|
|
46
26
|
AssociateMemberToGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
47
27
|
})(AssociateMemberToGroupResponse || (AssociateMemberToGroupResponse = {}));
|
|
48
|
-
export var DirectoryServiceAuthenticationFailedException;
|
|
49
|
-
(function (DirectoryServiceAuthenticationFailedException) {
|
|
50
|
-
DirectoryServiceAuthenticationFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
51
|
-
})(DirectoryServiceAuthenticationFailedException || (DirectoryServiceAuthenticationFailedException = {}));
|
|
52
|
-
export var DirectoryUnavailableException;
|
|
53
|
-
(function (DirectoryUnavailableException) {
|
|
54
|
-
DirectoryUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
55
|
-
})(DirectoryUnavailableException || (DirectoryUnavailableException = {}));
|
|
56
|
-
export var UnsupportedOperationException;
|
|
57
|
-
(function (UnsupportedOperationException) {
|
|
58
|
-
UnsupportedOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
-
})(UnsupportedOperationException || (UnsupportedOperationException = {}));
|
|
60
28
|
export var BookingOptions;
|
|
61
29
|
(function (BookingOptions) {
|
|
62
30
|
BookingOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -77,22 +45,6 @@ export var CreateAliasResponse;
|
|
|
77
45
|
(function (CreateAliasResponse) {
|
|
78
46
|
CreateAliasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
47
|
})(CreateAliasResponse || (CreateAliasResponse = {}));
|
|
80
|
-
export var EmailAddressInUseException;
|
|
81
|
-
(function (EmailAddressInUseException) {
|
|
82
|
-
EmailAddressInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
|
-
})(EmailAddressInUseException || (EmailAddressInUseException = {}));
|
|
84
|
-
export var LimitExceededException;
|
|
85
|
-
(function (LimitExceededException) {
|
|
86
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
88
|
-
export var MailDomainNotFoundException;
|
|
89
|
-
(function (MailDomainNotFoundException) {
|
|
90
|
-
MailDomainNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
-
})(MailDomainNotFoundException || (MailDomainNotFoundException = {}));
|
|
92
|
-
export var MailDomainStateException;
|
|
93
|
-
(function (MailDomainStateException) {
|
|
94
|
-
MailDomainStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
-
})(MailDomainStateException || (MailDomainStateException = {}));
|
|
96
48
|
export var CreateGroupRequest;
|
|
97
49
|
(function (CreateGroupRequest) {
|
|
98
50
|
CreateGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -101,14 +53,6 @@ export var CreateGroupResponse;
|
|
|
101
53
|
(function (CreateGroupResponse) {
|
|
102
54
|
CreateGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
55
|
})(CreateGroupResponse || (CreateGroupResponse = {}));
|
|
104
|
-
export var NameAvailabilityException;
|
|
105
|
-
(function (NameAvailabilityException) {
|
|
106
|
-
NameAvailabilityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
-
})(NameAvailabilityException || (NameAvailabilityException = {}));
|
|
108
|
-
export var ReservedNameException;
|
|
109
|
-
(function (ReservedNameException) {
|
|
110
|
-
ReservedNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
-
})(ReservedNameException || (ReservedNameException = {}));
|
|
112
56
|
export var MobileDeviceAccessRuleEffect;
|
|
113
57
|
(function (MobileDeviceAccessRuleEffect) {
|
|
114
58
|
MobileDeviceAccessRuleEffect["ALLOW"] = "ALLOW";
|
|
@@ -134,10 +78,6 @@ export var CreateOrganizationResponse;
|
|
|
134
78
|
(function (CreateOrganizationResponse) {
|
|
135
79
|
CreateOrganizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
80
|
})(CreateOrganizationResponse || (CreateOrganizationResponse = {}));
|
|
137
|
-
export var DirectoryInUseException;
|
|
138
|
-
(function (DirectoryInUseException) {
|
|
139
|
-
DirectoryInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
-
})(DirectoryInUseException || (DirectoryInUseException = {}));
|
|
141
81
|
export var ResourceType;
|
|
142
82
|
(function (ResourceType) {
|
|
143
83
|
ResourceType["EQUIPMENT"] = "EQUIPMENT";
|
|
@@ -159,10 +99,6 @@ export var CreateUserResponse;
|
|
|
159
99
|
(function (CreateUserResponse) {
|
|
160
100
|
CreateUserResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
101
|
})(CreateUserResponse || (CreateUserResponse = {}));
|
|
162
|
-
export var InvalidPasswordException;
|
|
163
|
-
(function (InvalidPasswordException) {
|
|
164
|
-
InvalidPasswordException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
|
-
})(InvalidPasswordException || (InvalidPasswordException = {}));
|
|
166
102
|
export var MemberType;
|
|
167
103
|
(function (MemberType) {
|
|
168
104
|
MemberType["GROUP"] = "GROUP";
|
|
@@ -276,14 +212,6 @@ export var DeregisterMailDomainResponse;
|
|
|
276
212
|
(function (DeregisterMailDomainResponse) {
|
|
277
213
|
DeregisterMailDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
278
214
|
})(DeregisterMailDomainResponse || (DeregisterMailDomainResponse = {}));
|
|
279
|
-
export var InvalidCustomSesConfigurationException;
|
|
280
|
-
(function (InvalidCustomSesConfigurationException) {
|
|
281
|
-
InvalidCustomSesConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
282
|
-
})(InvalidCustomSesConfigurationException || (InvalidCustomSesConfigurationException = {}));
|
|
283
|
-
export var MailDomainInUseException;
|
|
284
|
-
(function (MailDomainInUseException) {
|
|
285
|
-
MailDomainInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
286
|
-
})(MailDomainInUseException || (MailDomainInUseException = {}));
|
|
287
215
|
export var DescribeEmailMonitoringConfigurationRequest;
|
|
288
216
|
(function (DescribeEmailMonitoringConfigurationRequest) {
|
|
289
217
|
DescribeEmailMonitoringConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -292,10 +220,6 @@ export var DescribeEmailMonitoringConfigurationResponse;
|
|
|
292
220
|
(function (DescribeEmailMonitoringConfigurationResponse) {
|
|
293
221
|
DescribeEmailMonitoringConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
294
222
|
})(DescribeEmailMonitoringConfigurationResponse || (DescribeEmailMonitoringConfigurationResponse = {}));
|
|
295
|
-
export var ResourceNotFoundException;
|
|
296
|
-
(function (ResourceNotFoundException) {
|
|
297
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
298
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
299
223
|
export var DescribeGroupRequest;
|
|
300
224
|
(function (DescribeGroupRequest) {
|
|
301
225
|
DescribeGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -389,10 +313,6 @@ export var DnsRecordVerificationStatus;
|
|
|
389
313
|
DnsRecordVerificationStatus["PENDING"] = "PENDING";
|
|
390
314
|
DnsRecordVerificationStatus["VERIFIED"] = "VERIFIED";
|
|
391
315
|
})(DnsRecordVerificationStatus || (DnsRecordVerificationStatus = {}));
|
|
392
|
-
export var EntityAlreadyRegisteredException;
|
|
393
|
-
(function (EntityAlreadyRegisteredException) {
|
|
394
|
-
EntityAlreadyRegisteredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
395
|
-
})(EntityAlreadyRegisteredException || (EntityAlreadyRegisteredException = {}));
|
|
396
316
|
export var RetentionAction;
|
|
397
317
|
(function (RetentionAction) {
|
|
398
318
|
RetentionAction["DELETE"] = "DELETE";
|
|
@@ -467,10 +387,6 @@ export var Group;
|
|
|
467
387
|
(function (Group) {
|
|
468
388
|
Group.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
469
389
|
})(Group || (Group = {}));
|
|
470
|
-
export var InvalidConfigurationException;
|
|
471
|
-
(function (InvalidConfigurationException) {
|
|
472
|
-
InvalidConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
473
|
-
})(InvalidConfigurationException || (InvalidConfigurationException = {}));
|
|
474
390
|
export var MailboxExportJob;
|
|
475
391
|
(function (MailboxExportJob) {
|
|
476
392
|
MailboxExportJob.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -717,10 +633,6 @@ export var TagResourceResponse;
|
|
|
717
633
|
(function (TagResourceResponse) {
|
|
718
634
|
TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
719
635
|
})(TagResourceResponse || (TagResourceResponse = {}));
|
|
720
|
-
export var TooManyTagsException;
|
|
721
|
-
(function (TooManyTagsException) {
|
|
722
|
-
TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
723
|
-
})(TooManyTagsException || (TooManyTagsException = {}));
|
|
724
636
|
export var UntagResourceRequest;
|
|
725
637
|
(function (UntagResourceRequest) {
|
|
726
638
|
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssociateDelegateToResourceCommandInput, AssociateDelegateToResourceCommandOutput } from "./commands/AssociateDelegateToResourceCommand";
|
|
10
10
|
import { AssociateMemberToGroupCommandInput, AssociateMemberToGroupCommandOutput } from "./commands/AssociateMemberToGroupCommand";
|
|
@@ -176,6 +176,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
176
176
|
* @internal
|
|
177
177
|
*/
|
|
178
178
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
179
|
+
/**
|
|
180
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
181
|
+
*/
|
|
182
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
179
183
|
}
|
|
180
184
|
declare type WorkMailClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
181
185
|
/**
|