@aws-sdk/client-workmail 3.118.1 → 3.128.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 +28 -0
- package/dist-cjs/WorkMail.js +75 -0
- package/dist-cjs/commands/CreateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAvailabilityConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/TestAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +106 -12
- package/dist-cjs/pagination/ListAvailabilityConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1023 -710
- package/dist-es/WorkMail.js +75 -0
- package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +39 -0
- package/dist-es/commands/TestAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +69 -8
- package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +944 -573
- package/dist-types/WorkMail.d.ts +43 -0
- package/dist-types/WorkMailClient.d.ts +7 -2
- package/dist-types/commands/CreateAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListAvailabilityConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/TestAvailabilityConfigurationCommand.d.ts +42 -0
- package/dist-types/commands/UpdateAvailabilityConfigurationCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +286 -12
- package/dist-types/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/WorkMail.d.ts +25 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailabilityConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TestAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +168 -8
- package/dist-types/ts3.4/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +26 -26
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateResourceCommand = exports.deserializeAws_json1_1UpdatePrimaryEmailAddressCommand = exports.deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = exports.deserializeAws_json1_1UpdateMailboxQuotaCommand = exports.deserializeAws_json1_1UpdateDefaultMailDomainCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartMailboxExportJobCommand = exports.deserializeAws_json1_1ResetPasswordCommand = exports.deserializeAws_json1_1RegisterToWorkMailCommand = exports.deserializeAws_json1_1RegisterMailDomainCommand = exports.deserializeAws_json1_1PutRetentionPolicyCommand = exports.deserializeAws_json1_1PutMobileDeviceAccessOverrideCommand = exports.deserializeAws_json1_1PutMailboxPermissionsCommand = exports.deserializeAws_json1_1PutInboundDmarcSettingsCommand = exports.deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = exports.deserializeAws_json1_1PutAccessControlRuleCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourcesCommand = exports.deserializeAws_json1_1ListResourceDelegatesCommand = exports.deserializeAws_json1_1ListOrganizationsCommand = exports.deserializeAws_json1_1ListMobileDeviceAccessRulesCommand = exports.deserializeAws_json1_1ListMobileDeviceAccessOverridesCommand = exports.deserializeAws_json1_1ListMailDomainsCommand = exports.deserializeAws_json1_1ListMailboxPermissionsCommand = exports.deserializeAws_json1_1ListMailboxExportJobsCommand = exports.deserializeAws_json1_1ListGroupsCommand = exports.deserializeAws_json1_1ListGroupMembersCommand = exports.deserializeAws_json1_1ListAliasesCommand = exports.deserializeAws_json1_1ListAccessControlRulesCommand = exports.deserializeAws_json1_1GetMobileDeviceAccessOverrideCommand = exports.deserializeAws_json1_1GetMobileDeviceAccessEffectCommand = exports.deserializeAws_json1_1GetMailDomainCommand = exports.deserializeAws_json1_1GetMailboxDetailsCommand = exports.deserializeAws_json1_1GetDefaultRetentionPolicyCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1ListOrganizationsCommand = exports.serializeAws_json1_1ListMobileDeviceAccessRulesCommand = exports.serializeAws_json1_1ListMobileDeviceAccessOverridesCommand = exports.serializeAws_json1_1ListMailDomainsCommand = exports.serializeAws_json1_1ListMailboxPermissionsCommand = exports.serializeAws_json1_1ListMailboxExportJobsCommand = exports.serializeAws_json1_1ListGroupsCommand = exports.serializeAws_json1_1ListGroupMembersCommand = exports.serializeAws_json1_1ListAvailabilityConfigurationsCommand = exports.serializeAws_json1_1ListAliasesCommand = exports.serializeAws_json1_1ListAccessControlRulesCommand = exports.serializeAws_json1_1GetMobileDeviceAccessOverrideCommand = exports.serializeAws_json1_1GetMobileDeviceAccessEffectCommand = exports.serializeAws_json1_1GetMailDomainCommand = exports.serializeAws_json1_1GetMailboxDetailsCommand = exports.serializeAws_json1_1GetDefaultRetentionPolicyCommand = exports.serializeAws_json1_1GetAccessControlEffectCommand = exports.serializeAws_json1_1DisassociateMemberFromGroupCommand = exports.serializeAws_json1_1DisassociateDelegateFromResourceCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeResourceCommand = exports.serializeAws_json1_1DescribeOrganizationCommand = exports.serializeAws_json1_1DescribeMailboxExportJobCommand = exports.serializeAws_json1_1DescribeInboundDmarcSettingsCommand = exports.serializeAws_json1_1DescribeGroupCommand = exports.serializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = exports.serializeAws_json1_1DeregisterMailDomainCommand = exports.serializeAws_json1_1DeregisterFromWorkMailCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteRetentionPolicyCommand = exports.serializeAws_json1_1DeleteResourceCommand = exports.serializeAws_json1_1DeleteOrganizationCommand = exports.serializeAws_json1_1DeleteMobileDeviceAccessRuleCommand = exports.serializeAws_json1_1DeleteMobileDeviceAccessOverrideCommand = exports.serializeAws_json1_1DeleteMailboxPermissionsCommand = exports.serializeAws_json1_1DeleteGroupCommand = exports.serializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = exports.serializeAws_json1_1DeleteAvailabilityConfigurationCommand = exports.serializeAws_json1_1DeleteAliasCommand = exports.serializeAws_json1_1DeleteAccessControlRuleCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateResourceCommand = exports.serializeAws_json1_1CreateOrganizationCommand = exports.serializeAws_json1_1CreateMobileDeviceAccessRuleCommand = exports.serializeAws_json1_1CreateGroupCommand = exports.serializeAws_json1_1CreateAvailabilityConfigurationCommand = exports.serializeAws_json1_1CreateAliasCommand = exports.serializeAws_json1_1CancelMailboxExportJobCommand = exports.serializeAws_json1_1AssociateMemberToGroupCommand = exports.serializeAws_json1_1AssociateDelegateToResourceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DescribeInboundDmarcSettingsCommand = exports.deserializeAws_json1_1DescribeGroupCommand = exports.deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = exports.deserializeAws_json1_1DeregisterMailDomainCommand = exports.deserializeAws_json1_1DeregisterFromWorkMailCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = exports.deserializeAws_json1_1DeleteResourceCommand = exports.deserializeAws_json1_1DeleteOrganizationCommand = exports.deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommand = exports.deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommand = exports.deserializeAws_json1_1DeleteMailboxPermissionsCommand = exports.deserializeAws_json1_1DeleteGroupCommand = exports.deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = exports.deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = exports.deserializeAws_json1_1DeleteAliasCommand = exports.deserializeAws_json1_1DeleteAccessControlRuleCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateResourceCommand = exports.deserializeAws_json1_1CreateOrganizationCommand = exports.deserializeAws_json1_1CreateMobileDeviceAccessRuleCommand = exports.deserializeAws_json1_1CreateGroupCommand = exports.deserializeAws_json1_1CreateAvailabilityConfigurationCommand = exports.deserializeAws_json1_1CreateAliasCommand = exports.deserializeAws_json1_1CancelMailboxExportJobCommand = exports.deserializeAws_json1_1AssociateMemberToGroupCommand = exports.deserializeAws_json1_1AssociateDelegateToResourceCommand = exports.serializeAws_json1_1UpdateResourceCommand = exports.serializeAws_json1_1UpdatePrimaryEmailAddressCommand = exports.serializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = exports.serializeAws_json1_1UpdateMailboxQuotaCommand = exports.serializeAws_json1_1UpdateDefaultMailDomainCommand = exports.serializeAws_json1_1UpdateAvailabilityConfigurationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestAvailabilityConfigurationCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartMailboxExportJobCommand = exports.serializeAws_json1_1ResetPasswordCommand = exports.serializeAws_json1_1RegisterToWorkMailCommand = exports.serializeAws_json1_1RegisterMailDomainCommand = exports.serializeAws_json1_1PutRetentionPolicyCommand = exports.serializeAws_json1_1PutMobileDeviceAccessOverrideCommand = exports.serializeAws_json1_1PutMailboxPermissionsCommand = exports.serializeAws_json1_1PutInboundDmarcSettingsCommand = exports.serializeAws_json1_1PutEmailMonitoringConfigurationCommand = exports.serializeAws_json1_1PutAccessControlRuleCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListResourcesCommand = exports.serializeAws_json1_1ListResourceDelegatesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateResourceCommand = exports.deserializeAws_json1_1UpdatePrimaryEmailAddressCommand = exports.deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = exports.deserializeAws_json1_1UpdateMailboxQuotaCommand = exports.deserializeAws_json1_1UpdateDefaultMailDomainCommand = exports.deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestAvailabilityConfigurationCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartMailboxExportJobCommand = exports.deserializeAws_json1_1ResetPasswordCommand = exports.deserializeAws_json1_1RegisterToWorkMailCommand = exports.deserializeAws_json1_1RegisterMailDomainCommand = exports.deserializeAws_json1_1PutRetentionPolicyCommand = exports.deserializeAws_json1_1PutMobileDeviceAccessOverrideCommand = exports.deserializeAws_json1_1PutMailboxPermissionsCommand = exports.deserializeAws_json1_1PutInboundDmarcSettingsCommand = exports.deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = exports.deserializeAws_json1_1PutAccessControlRuleCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourcesCommand = exports.deserializeAws_json1_1ListResourceDelegatesCommand = exports.deserializeAws_json1_1ListOrganizationsCommand = exports.deserializeAws_json1_1ListMobileDeviceAccessRulesCommand = exports.deserializeAws_json1_1ListMobileDeviceAccessOverridesCommand = exports.deserializeAws_json1_1ListMailDomainsCommand = exports.deserializeAws_json1_1ListMailboxPermissionsCommand = exports.deserializeAws_json1_1ListMailboxExportJobsCommand = exports.deserializeAws_json1_1ListGroupsCommand = exports.deserializeAws_json1_1ListGroupMembersCommand = exports.deserializeAws_json1_1ListAvailabilityConfigurationsCommand = exports.deserializeAws_json1_1ListAliasesCommand = exports.deserializeAws_json1_1ListAccessControlRulesCommand = exports.deserializeAws_json1_1GetMobileDeviceAccessOverrideCommand = exports.deserializeAws_json1_1GetMobileDeviceAccessEffectCommand = exports.deserializeAws_json1_1GetMailDomainCommand = exports.deserializeAws_json1_1GetMailboxDetailsCommand = exports.deserializeAws_json1_1GetDefaultRetentionPolicyCommand = exports.deserializeAws_json1_1GetAccessControlEffectCommand = exports.deserializeAws_json1_1DisassociateMemberFromGroupCommand = exports.deserializeAws_json1_1DisassociateDelegateFromResourceCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeResourceCommand = exports.deserializeAws_json1_1DescribeOrganizationCommand = exports.deserializeAws_json1_1DescribeMailboxExportJobCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -48,6 +48,16 @@ const serializeAws_json1_1CreateAliasCommand = async (input, context) => {
|
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.serializeAws_json1_1CreateAliasCommand = serializeAws_json1_1CreateAliasCommand;
|
|
51
|
+
const serializeAws_json1_1CreateAvailabilityConfigurationCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "WorkMailService.CreateAvailabilityConfiguration",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1CreateAvailabilityConfigurationRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
exports.serializeAws_json1_1CreateAvailabilityConfigurationCommand = serializeAws_json1_1CreateAvailabilityConfigurationCommand;
|
|
51
61
|
const serializeAws_json1_1CreateGroupCommand = async (input, context) => {
|
|
52
62
|
const headers = {
|
|
53
63
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -118,6 +128,16 @@ const serializeAws_json1_1DeleteAliasCommand = async (input, context) => {
|
|
|
118
128
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
129
|
};
|
|
120
130
|
exports.serializeAws_json1_1DeleteAliasCommand = serializeAws_json1_1DeleteAliasCommand;
|
|
131
|
+
const serializeAws_json1_1DeleteAvailabilityConfigurationCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "WorkMailService.DeleteAvailabilityConfiguration",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAvailabilityConfigurationRequest(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
exports.serializeAws_json1_1DeleteAvailabilityConfigurationCommand = serializeAws_json1_1DeleteAvailabilityConfigurationCommand;
|
|
121
141
|
const serializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = async (input, context) => {
|
|
122
142
|
const headers = {
|
|
123
143
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -398,6 +418,16 @@ const serializeAws_json1_1ListAliasesCommand = async (input, context) => {
|
|
|
398
418
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
419
|
};
|
|
400
420
|
exports.serializeAws_json1_1ListAliasesCommand = serializeAws_json1_1ListAliasesCommand;
|
|
421
|
+
const serializeAws_json1_1ListAvailabilityConfigurationsCommand = async (input, context) => {
|
|
422
|
+
const headers = {
|
|
423
|
+
"content-type": "application/x-amz-json-1.1",
|
|
424
|
+
"x-amz-target": "WorkMailService.ListAvailabilityConfigurations",
|
|
425
|
+
};
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify(serializeAws_json1_1ListAvailabilityConfigurationsRequest(input, context));
|
|
428
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
+
};
|
|
430
|
+
exports.serializeAws_json1_1ListAvailabilityConfigurationsCommand = serializeAws_json1_1ListAvailabilityConfigurationsCommand;
|
|
401
431
|
const serializeAws_json1_1ListGroupMembersCommand = async (input, context) => {
|
|
402
432
|
const headers = {
|
|
403
433
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -628,6 +658,16 @@ const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
|
628
658
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
629
659
|
};
|
|
630
660
|
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
661
|
+
const serializeAws_json1_1TestAvailabilityConfigurationCommand = async (input, context) => {
|
|
662
|
+
const headers = {
|
|
663
|
+
"content-type": "application/x-amz-json-1.1",
|
|
664
|
+
"x-amz-target": "WorkMailService.TestAvailabilityConfiguration",
|
|
665
|
+
};
|
|
666
|
+
let body;
|
|
667
|
+
body = JSON.stringify(serializeAws_json1_1TestAvailabilityConfigurationRequest(input, context));
|
|
668
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
669
|
+
};
|
|
670
|
+
exports.serializeAws_json1_1TestAvailabilityConfigurationCommand = serializeAws_json1_1TestAvailabilityConfigurationCommand;
|
|
631
671
|
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
632
672
|
const headers = {
|
|
633
673
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -638,6 +678,16 @@ const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
|
638
678
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
639
679
|
};
|
|
640
680
|
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
681
|
+
const serializeAws_json1_1UpdateAvailabilityConfigurationCommand = async (input, context) => {
|
|
682
|
+
const headers = {
|
|
683
|
+
"content-type": "application/x-amz-json-1.1",
|
|
684
|
+
"x-amz-target": "WorkMailService.UpdateAvailabilityConfiguration",
|
|
685
|
+
};
|
|
686
|
+
let body;
|
|
687
|
+
body = JSON.stringify(serializeAws_json1_1UpdateAvailabilityConfigurationRequest(input, context));
|
|
688
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
689
|
+
};
|
|
690
|
+
exports.serializeAws_json1_1UpdateAvailabilityConfigurationCommand = serializeAws_json1_1UpdateAvailabilityConfigurationCommand;
|
|
641
691
|
const serializeAws_json1_1UpdateDefaultMailDomainCommand = async (input, context) => {
|
|
642
692
|
const headers = {
|
|
643
693
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -708,8 +758,7 @@ const deserializeAws_json1_1AssociateDelegateToResourceCommandError = async (out
|
|
|
708
758
|
body: await parseBody(output.body, context),
|
|
709
759
|
};
|
|
710
760
|
let response;
|
|
711
|
-
|
|
712
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
762
|
switch (errorCode) {
|
|
714
763
|
case "EntityNotFoundException":
|
|
715
764
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -728,10 +777,12 @@ const deserializeAws_json1_1AssociateDelegateToResourceCommandError = async (out
|
|
|
728
777
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
729
778
|
default:
|
|
730
779
|
const parsedBody = parsedOutput.body;
|
|
780
|
+
const $metadata = deserializeMetadata(output);
|
|
781
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
731
782
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
732
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
783
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
733
784
|
$fault: "client",
|
|
734
|
-
$metadata
|
|
785
|
+
$metadata,
|
|
735
786
|
});
|
|
736
787
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
737
788
|
}
|
|
@@ -756,8 +807,7 @@ const deserializeAws_json1_1AssociateMemberToGroupCommandError = async (output,
|
|
|
756
807
|
body: await parseBody(output.body, context),
|
|
757
808
|
};
|
|
758
809
|
let response;
|
|
759
|
-
|
|
760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
811
|
switch (errorCode) {
|
|
762
812
|
case "DirectoryServiceAuthenticationFailedException":
|
|
763
813
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -785,10 +835,12 @@ const deserializeAws_json1_1AssociateMemberToGroupCommandError = async (output,
|
|
|
785
835
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
786
836
|
default:
|
|
787
837
|
const parsedBody = parsedOutput.body;
|
|
838
|
+
const $metadata = deserializeMetadata(output);
|
|
839
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
788
840
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
841
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
790
842
|
$fault: "client",
|
|
791
|
-
$metadata
|
|
843
|
+
$metadata,
|
|
792
844
|
});
|
|
793
845
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
794
846
|
}
|
|
@@ -813,8 +865,7 @@ const deserializeAws_json1_1CancelMailboxExportJobCommandError = async (output,
|
|
|
813
865
|
body: await parseBody(output.body, context),
|
|
814
866
|
};
|
|
815
867
|
let response;
|
|
816
|
-
|
|
817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
869
|
switch (errorCode) {
|
|
819
870
|
case "EntityNotFoundException":
|
|
820
871
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -830,10 +881,12 @@ const deserializeAws_json1_1CancelMailboxExportJobCommandError = async (output,
|
|
|
830
881
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
831
882
|
default:
|
|
832
883
|
const parsedBody = parsedOutput.body;
|
|
884
|
+
const $metadata = deserializeMetadata(output);
|
|
885
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
833
886
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
887
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
835
888
|
$fault: "client",
|
|
836
|
-
$metadata
|
|
889
|
+
$metadata,
|
|
837
890
|
});
|
|
838
891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
839
892
|
}
|
|
@@ -858,8 +911,7 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
858
911
|
body: await parseBody(output.body, context),
|
|
859
912
|
};
|
|
860
913
|
let response;
|
|
861
|
-
|
|
862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
915
|
switch (errorCode) {
|
|
864
916
|
case "EmailAddressInUseException":
|
|
865
917
|
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
@@ -890,10 +942,61 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
890
942
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
891
943
|
default:
|
|
892
944
|
const parsedBody = parsedOutput.body;
|
|
945
|
+
const $metadata = deserializeMetadata(output);
|
|
946
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
947
|
+
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
949
|
+
$fault: "client",
|
|
950
|
+
$metadata,
|
|
951
|
+
});
|
|
952
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
const deserializeAws_json1_1CreateAvailabilityConfigurationCommand = async (output, context) => {
|
|
956
|
+
if (output.statusCode >= 300) {
|
|
957
|
+
return deserializeAws_json1_1CreateAvailabilityConfigurationCommandError(output, context);
|
|
958
|
+
}
|
|
959
|
+
const data = await parseBody(output.body, context);
|
|
960
|
+
let contents = {};
|
|
961
|
+
contents = deserializeAws_json1_1CreateAvailabilityConfigurationResponse(data, context);
|
|
962
|
+
const response = {
|
|
963
|
+
$metadata: deserializeMetadata(output),
|
|
964
|
+
...contents,
|
|
965
|
+
};
|
|
966
|
+
return Promise.resolve(response);
|
|
967
|
+
};
|
|
968
|
+
exports.deserializeAws_json1_1CreateAvailabilityConfigurationCommand = deserializeAws_json1_1CreateAvailabilityConfigurationCommand;
|
|
969
|
+
const deserializeAws_json1_1CreateAvailabilityConfigurationCommandError = async (output, context) => {
|
|
970
|
+
const parsedOutput = {
|
|
971
|
+
...output,
|
|
972
|
+
body: await parseBody(output.body, context),
|
|
973
|
+
};
|
|
974
|
+
let response;
|
|
975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
+
switch (errorCode) {
|
|
977
|
+
case "InvalidParameterException":
|
|
978
|
+
case "com.amazonaws.workmail#InvalidParameterException":
|
|
979
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
980
|
+
case "LimitExceededException":
|
|
981
|
+
case "com.amazonaws.workmail#LimitExceededException":
|
|
982
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
983
|
+
case "NameAvailabilityException":
|
|
984
|
+
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
985
|
+
throw await deserializeAws_json1_1NameAvailabilityExceptionResponse(parsedOutput, context);
|
|
986
|
+
case "OrganizationNotFoundException":
|
|
987
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
988
|
+
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
989
|
+
case "OrganizationStateException":
|
|
990
|
+
case "com.amazonaws.workmail#OrganizationStateException":
|
|
991
|
+
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
992
|
+
default:
|
|
993
|
+
const parsedBody = parsedOutput.body;
|
|
994
|
+
const $metadata = deserializeMetadata(output);
|
|
995
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
893
996
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
997
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
895
998
|
$fault: "client",
|
|
896
|
-
$metadata
|
|
999
|
+
$metadata,
|
|
897
1000
|
});
|
|
898
1001
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
899
1002
|
}
|
|
@@ -918,8 +1021,7 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
918
1021
|
body: await parseBody(output.body, context),
|
|
919
1022
|
};
|
|
920
1023
|
let response;
|
|
921
|
-
|
|
922
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
1025
|
switch (errorCode) {
|
|
924
1026
|
case "DirectoryServiceAuthenticationFailedException":
|
|
925
1027
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -947,10 +1049,12 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
947
1049
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
948
1050
|
default:
|
|
949
1051
|
const parsedBody = parsedOutput.body;
|
|
1052
|
+
const $metadata = deserializeMetadata(output);
|
|
1053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
950
1054
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
951
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
952
1056
|
$fault: "client",
|
|
953
|
-
$metadata
|
|
1057
|
+
$metadata,
|
|
954
1058
|
});
|
|
955
1059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
956
1060
|
}
|
|
@@ -975,8 +1079,7 @@ const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
975
1079
|
body: await parseBody(output.body, context),
|
|
976
1080
|
};
|
|
977
1081
|
let response;
|
|
978
|
-
|
|
979
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
1083
|
switch (errorCode) {
|
|
981
1084
|
case "InvalidParameterException":
|
|
982
1085
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -992,10 +1095,12 @@ const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
992
1095
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
993
1096
|
default:
|
|
994
1097
|
const parsedBody = parsedOutput.body;
|
|
1098
|
+
const $metadata = deserializeMetadata(output);
|
|
1099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
995
1100
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
996
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
997
1102
|
$fault: "client",
|
|
998
|
-
$metadata
|
|
1103
|
+
$metadata,
|
|
999
1104
|
});
|
|
1000
1105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1001
1106
|
}
|
|
@@ -1020,8 +1125,7 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
1020
1125
|
body: await parseBody(output.body, context),
|
|
1021
1126
|
};
|
|
1022
1127
|
let response;
|
|
1023
|
-
|
|
1024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1129
|
switch (errorCode) {
|
|
1026
1130
|
case "DirectoryInUseException":
|
|
1027
1131
|
case "com.amazonaws.workmail#DirectoryInUseException":
|
|
@@ -1040,10 +1144,12 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
1040
1144
|
throw await deserializeAws_json1_1NameAvailabilityExceptionResponse(parsedOutput, context);
|
|
1041
1145
|
default:
|
|
1042
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
|
+
const $metadata = deserializeMetadata(output);
|
|
1148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1043
1149
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1044
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1045
1151
|
$fault: "client",
|
|
1046
|
-
$metadata
|
|
1152
|
+
$metadata,
|
|
1047
1153
|
});
|
|
1048
1154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1049
1155
|
}
|
|
@@ -1068,8 +1174,7 @@ const deserializeAws_json1_1CreateResourceCommandError = async (output, context)
|
|
|
1068
1174
|
body: await parseBody(output.body, context),
|
|
1069
1175
|
};
|
|
1070
1176
|
let response;
|
|
1071
|
-
|
|
1072
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1178
|
switch (errorCode) {
|
|
1074
1179
|
case "DirectoryServiceAuthenticationFailedException":
|
|
1075
1180
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -1094,10 +1199,12 @@ const deserializeAws_json1_1CreateResourceCommandError = async (output, context)
|
|
|
1094
1199
|
throw await deserializeAws_json1_1ReservedNameExceptionResponse(parsedOutput, context);
|
|
1095
1200
|
default:
|
|
1096
1201
|
const parsedBody = parsedOutput.body;
|
|
1202
|
+
const $metadata = deserializeMetadata(output);
|
|
1203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1097
1204
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1098
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1099
1206
|
$fault: "client",
|
|
1100
|
-
$metadata
|
|
1207
|
+
$metadata,
|
|
1101
1208
|
});
|
|
1102
1209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1103
1210
|
}
|
|
@@ -1122,8 +1229,7 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1122
1229
|
body: await parseBody(output.body, context),
|
|
1123
1230
|
};
|
|
1124
1231
|
let response;
|
|
1125
|
-
|
|
1126
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1233
|
switch (errorCode) {
|
|
1128
1234
|
case "DirectoryServiceAuthenticationFailedException":
|
|
1129
1235
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -1154,10 +1260,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1154
1260
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1155
1261
|
default:
|
|
1156
1262
|
const parsedBody = parsedOutput.body;
|
|
1263
|
+
const $metadata = deserializeMetadata(output);
|
|
1264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1157
1265
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1159
1267
|
$fault: "client",
|
|
1160
|
-
$metadata
|
|
1268
|
+
$metadata,
|
|
1161
1269
|
});
|
|
1162
1270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1163
1271
|
}
|
|
@@ -1182,8 +1290,7 @@ const deserializeAws_json1_1DeleteAccessControlRuleCommandError = async (output,
|
|
|
1182
1290
|
body: await parseBody(output.body, context),
|
|
1183
1291
|
};
|
|
1184
1292
|
let response;
|
|
1185
|
-
|
|
1186
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
1294
|
switch (errorCode) {
|
|
1188
1295
|
case "OrganizationNotFoundException":
|
|
1189
1296
|
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
@@ -1193,10 +1300,12 @@ const deserializeAws_json1_1DeleteAccessControlRuleCommandError = async (output,
|
|
|
1193
1300
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1194
1301
|
default:
|
|
1195
1302
|
const parsedBody = parsedOutput.body;
|
|
1303
|
+
const $metadata = deserializeMetadata(output);
|
|
1304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1196
1305
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1198
1307
|
$fault: "client",
|
|
1199
|
-
$metadata
|
|
1308
|
+
$metadata,
|
|
1200
1309
|
});
|
|
1201
1310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1202
1311
|
}
|
|
@@ -1221,8 +1330,7 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
1221
1330
|
body: await parseBody(output.body, context),
|
|
1222
1331
|
};
|
|
1223
1332
|
let response;
|
|
1224
|
-
|
|
1225
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1334
|
switch (errorCode) {
|
|
1227
1335
|
case "EntityNotFoundException":
|
|
1228
1336
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1241,10 +1349,52 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
1241
1349
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1242
1350
|
default:
|
|
1243
1351
|
const parsedBody = parsedOutput.body;
|
|
1352
|
+
const $metadata = deserializeMetadata(output);
|
|
1353
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1244
1354
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1246
1356
|
$fault: "client",
|
|
1247
|
-
$metadata
|
|
1357
|
+
$metadata,
|
|
1358
|
+
});
|
|
1359
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
const deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = async (output, context) => {
|
|
1363
|
+
if (output.statusCode >= 300) {
|
|
1364
|
+
return deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError(output, context);
|
|
1365
|
+
}
|
|
1366
|
+
const data = await parseBody(output.body, context);
|
|
1367
|
+
let contents = {};
|
|
1368
|
+
contents = deserializeAws_json1_1DeleteAvailabilityConfigurationResponse(data, context);
|
|
1369
|
+
const response = {
|
|
1370
|
+
$metadata: deserializeMetadata(output),
|
|
1371
|
+
...contents,
|
|
1372
|
+
};
|
|
1373
|
+
return Promise.resolve(response);
|
|
1374
|
+
};
|
|
1375
|
+
exports.deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = deserializeAws_json1_1DeleteAvailabilityConfigurationCommand;
|
|
1376
|
+
const deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError = async (output, context) => {
|
|
1377
|
+
const parsedOutput = {
|
|
1378
|
+
...output,
|
|
1379
|
+
body: await parseBody(output.body, context),
|
|
1380
|
+
};
|
|
1381
|
+
let response;
|
|
1382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
+
switch (errorCode) {
|
|
1384
|
+
case "OrganizationNotFoundException":
|
|
1385
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1386
|
+
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
1387
|
+
case "OrganizationStateException":
|
|
1388
|
+
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1389
|
+
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1390
|
+
default:
|
|
1391
|
+
const parsedBody = parsedOutput.body;
|
|
1392
|
+
const $metadata = deserializeMetadata(output);
|
|
1393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1394
|
+
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1396
|
+
$fault: "client",
|
|
1397
|
+
$metadata,
|
|
1248
1398
|
});
|
|
1249
1399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1250
1400
|
}
|
|
@@ -1269,8 +1419,7 @@ const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = asy
|
|
|
1269
1419
|
body: await parseBody(output.body, context),
|
|
1270
1420
|
};
|
|
1271
1421
|
let response;
|
|
1272
|
-
|
|
1273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
1423
|
switch (errorCode) {
|
|
1275
1424
|
case "InvalidParameterException":
|
|
1276
1425
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1283,10 +1432,12 @@ const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = asy
|
|
|
1283
1432
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1284
1433
|
default:
|
|
1285
1434
|
const parsedBody = parsedOutput.body;
|
|
1435
|
+
const $metadata = deserializeMetadata(output);
|
|
1436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1286
1437
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1287
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1288
1439
|
$fault: "client",
|
|
1289
|
-
$metadata
|
|
1440
|
+
$metadata,
|
|
1290
1441
|
});
|
|
1291
1442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1292
1443
|
}
|
|
@@ -1311,8 +1462,7 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
1311
1462
|
body: await parseBody(output.body, context),
|
|
1312
1463
|
};
|
|
1313
1464
|
let response;
|
|
1314
|
-
|
|
1315
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1466
|
switch (errorCode) {
|
|
1317
1467
|
case "DirectoryServiceAuthenticationFailedException":
|
|
1318
1468
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -1337,10 +1487,12 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
1337
1487
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1338
1488
|
default:
|
|
1339
1489
|
const parsedBody = parsedOutput.body;
|
|
1490
|
+
const $metadata = deserializeMetadata(output);
|
|
1491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1340
1492
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1341
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1342
1494
|
$fault: "client",
|
|
1343
|
-
$metadata
|
|
1495
|
+
$metadata,
|
|
1344
1496
|
});
|
|
1345
1497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1346
1498
|
}
|
|
@@ -1365,8 +1517,7 @@ const deserializeAws_json1_1DeleteMailboxPermissionsCommandError = async (output
|
|
|
1365
1517
|
body: await parseBody(output.body, context),
|
|
1366
1518
|
};
|
|
1367
1519
|
let response;
|
|
1368
|
-
|
|
1369
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1521
|
switch (errorCode) {
|
|
1371
1522
|
case "EntityNotFoundException":
|
|
1372
1523
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1385,10 +1536,12 @@ const deserializeAws_json1_1DeleteMailboxPermissionsCommandError = async (output
|
|
|
1385
1536
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1386
1537
|
default:
|
|
1387
1538
|
const parsedBody = parsedOutput.body;
|
|
1539
|
+
const $metadata = deserializeMetadata(output);
|
|
1540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1388
1541
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1389
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1390
1543
|
$fault: "client",
|
|
1391
|
-
$metadata
|
|
1544
|
+
$metadata,
|
|
1392
1545
|
});
|
|
1393
1546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1394
1547
|
}
|
|
@@ -1413,8 +1566,7 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = async
|
|
|
1413
1566
|
body: await parseBody(output.body, context),
|
|
1414
1567
|
};
|
|
1415
1568
|
let response;
|
|
1416
|
-
|
|
1417
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1570
|
switch (errorCode) {
|
|
1419
1571
|
case "EntityNotFoundException":
|
|
1420
1572
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1430,10 +1582,12 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = async
|
|
|
1430
1582
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1431
1583
|
default:
|
|
1432
1584
|
const parsedBody = parsedOutput.body;
|
|
1585
|
+
const $metadata = deserializeMetadata(output);
|
|
1586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1433
1587
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1435
1589
|
$fault: "client",
|
|
1436
|
-
$metadata
|
|
1590
|
+
$metadata,
|
|
1437
1591
|
});
|
|
1438
1592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1439
1593
|
}
|
|
@@ -1458,8 +1612,7 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1458
1612
|
body: await parseBody(output.body, context),
|
|
1459
1613
|
};
|
|
1460
1614
|
let response;
|
|
1461
|
-
|
|
1462
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
1616
|
switch (errorCode) {
|
|
1464
1617
|
case "InvalidParameterException":
|
|
1465
1618
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1472,10 +1625,12 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1472
1625
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1473
1626
|
default:
|
|
1474
1627
|
const parsedBody = parsedOutput.body;
|
|
1628
|
+
const $metadata = deserializeMetadata(output);
|
|
1629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1475
1630
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1477
1632
|
$fault: "client",
|
|
1478
|
-
$metadata
|
|
1633
|
+
$metadata,
|
|
1479
1634
|
});
|
|
1480
1635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1481
1636
|
}
|
|
@@ -1500,8 +1655,7 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1500
1655
|
body: await parseBody(output.body, context),
|
|
1501
1656
|
};
|
|
1502
1657
|
let response;
|
|
1503
|
-
|
|
1504
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
1659
|
switch (errorCode) {
|
|
1506
1660
|
case "InvalidParameterException":
|
|
1507
1661
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1514,10 +1668,12 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1514
1668
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1515
1669
|
default:
|
|
1516
1670
|
const parsedBody = parsedOutput.body;
|
|
1671
|
+
const $metadata = deserializeMetadata(output);
|
|
1672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1517
1673
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1519
1675
|
$fault: "client",
|
|
1520
|
-
$metadata
|
|
1676
|
+
$metadata,
|
|
1521
1677
|
});
|
|
1522
1678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1523
1679
|
}
|
|
@@ -1542,8 +1698,7 @@ const deserializeAws_json1_1DeleteResourceCommandError = async (output, context)
|
|
|
1542
1698
|
body: await parseBody(output.body, context),
|
|
1543
1699
|
};
|
|
1544
1700
|
let response;
|
|
1545
|
-
|
|
1546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1702
|
switch (errorCode) {
|
|
1548
1703
|
case "EntityStateException":
|
|
1549
1704
|
case "com.amazonaws.workmail#EntityStateException":
|
|
@@ -1559,10 +1714,12 @@ const deserializeAws_json1_1DeleteResourceCommandError = async (output, context)
|
|
|
1559
1714
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1560
1715
|
default:
|
|
1561
1716
|
const parsedBody = parsedOutput.body;
|
|
1717
|
+
const $metadata = deserializeMetadata(output);
|
|
1718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1562
1719
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1564
1721
|
$fault: "client",
|
|
1565
|
-
$metadata
|
|
1722
|
+
$metadata,
|
|
1566
1723
|
});
|
|
1567
1724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1568
1725
|
}
|
|
@@ -1587,8 +1744,7 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1587
1744
|
body: await parseBody(output.body, context),
|
|
1588
1745
|
};
|
|
1589
1746
|
let response;
|
|
1590
|
-
|
|
1591
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
1748
|
switch (errorCode) {
|
|
1593
1749
|
case "InvalidParameterException":
|
|
1594
1750
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1601,10 +1757,12 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1601
1757
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1602
1758
|
default:
|
|
1603
1759
|
const parsedBody = parsedOutput.body;
|
|
1760
|
+
const $metadata = deserializeMetadata(output);
|
|
1761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1604
1762
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1605
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1606
1764
|
$fault: "client",
|
|
1607
|
-
$metadata
|
|
1765
|
+
$metadata,
|
|
1608
1766
|
});
|
|
1609
1767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1610
1768
|
}
|
|
@@ -1629,8 +1787,7 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1629
1787
|
body: await parseBody(output.body, context),
|
|
1630
1788
|
};
|
|
1631
1789
|
let response;
|
|
1632
|
-
|
|
1633
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
1791
|
switch (errorCode) {
|
|
1635
1792
|
case "DirectoryServiceAuthenticationFailedException":
|
|
1636
1793
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -1655,10 +1812,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1655
1812
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1656
1813
|
default:
|
|
1657
1814
|
const parsedBody = parsedOutput.body;
|
|
1815
|
+
const $metadata = deserializeMetadata(output);
|
|
1816
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1658
1817
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1660
1819
|
$fault: "client",
|
|
1661
|
-
$metadata
|
|
1820
|
+
$metadata,
|
|
1662
1821
|
});
|
|
1663
1822
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1664
1823
|
}
|
|
@@ -1683,8 +1842,7 @@ const deserializeAws_json1_1DeregisterFromWorkMailCommandError = async (output,
|
|
|
1683
1842
|
body: await parseBody(output.body, context),
|
|
1684
1843
|
};
|
|
1685
1844
|
let response;
|
|
1686
|
-
|
|
1687
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
1846
|
switch (errorCode) {
|
|
1689
1847
|
case "EntityNotFoundException":
|
|
1690
1848
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1703,10 +1861,12 @@ const deserializeAws_json1_1DeregisterFromWorkMailCommandError = async (output,
|
|
|
1703
1861
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1704
1862
|
default:
|
|
1705
1863
|
const parsedBody = parsedOutput.body;
|
|
1864
|
+
const $metadata = deserializeMetadata(output);
|
|
1865
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1706
1866
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1707
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1867
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1708
1868
|
$fault: "client",
|
|
1709
|
-
$metadata
|
|
1869
|
+
$metadata,
|
|
1710
1870
|
});
|
|
1711
1871
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1712
1872
|
}
|
|
@@ -1731,8 +1891,7 @@ const deserializeAws_json1_1DeregisterMailDomainCommandError = async (output, co
|
|
|
1731
1891
|
body: await parseBody(output.body, context),
|
|
1732
1892
|
};
|
|
1733
1893
|
let response;
|
|
1734
|
-
|
|
1735
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
1895
|
switch (errorCode) {
|
|
1737
1896
|
case "InvalidCustomSesConfigurationException":
|
|
1738
1897
|
case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
|
|
@@ -1751,10 +1910,12 @@ const deserializeAws_json1_1DeregisterMailDomainCommandError = async (output, co
|
|
|
1751
1910
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1752
1911
|
default:
|
|
1753
1912
|
const parsedBody = parsedOutput.body;
|
|
1913
|
+
const $metadata = deserializeMetadata(output);
|
|
1914
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1754
1915
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1755
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1756
1917
|
$fault: "client",
|
|
1757
|
-
$metadata
|
|
1918
|
+
$metadata,
|
|
1758
1919
|
});
|
|
1759
1920
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1760
1921
|
}
|
|
@@ -1779,8 +1940,7 @@ const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = a
|
|
|
1779
1940
|
body: await parseBody(output.body, context),
|
|
1780
1941
|
};
|
|
1781
1942
|
let response;
|
|
1782
|
-
|
|
1783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1944
|
switch (errorCode) {
|
|
1785
1945
|
case "InvalidParameterException":
|
|
1786
1946
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1796,10 +1956,12 @@ const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = a
|
|
|
1796
1956
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1797
1957
|
default:
|
|
1798
1958
|
const parsedBody = parsedOutput.body;
|
|
1959
|
+
const $metadata = deserializeMetadata(output);
|
|
1960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1799
1961
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1801
1963
|
$fault: "client",
|
|
1802
|
-
$metadata
|
|
1964
|
+
$metadata,
|
|
1803
1965
|
});
|
|
1804
1966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1805
1967
|
}
|
|
@@ -1824,8 +1986,7 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
1824
1986
|
body: await parseBody(output.body, context),
|
|
1825
1987
|
};
|
|
1826
1988
|
let response;
|
|
1827
|
-
|
|
1828
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
1990
|
switch (errorCode) {
|
|
1830
1991
|
case "EntityNotFoundException":
|
|
1831
1992
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1841,10 +2002,12 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
1841
2002
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1842
2003
|
default:
|
|
1843
2004
|
const parsedBody = parsedOutput.body;
|
|
2005
|
+
const $metadata = deserializeMetadata(output);
|
|
2006
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1844
2007
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1845
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1846
2009
|
$fault: "client",
|
|
1847
|
-
$metadata
|
|
2010
|
+
$metadata,
|
|
1848
2011
|
});
|
|
1849
2012
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1850
2013
|
}
|
|
@@ -1869,8 +2032,7 @@ const deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = async (ou
|
|
|
1869
2032
|
body: await parseBody(output.body, context),
|
|
1870
2033
|
};
|
|
1871
2034
|
let response;
|
|
1872
|
-
|
|
1873
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
2036
|
switch (errorCode) {
|
|
1875
2037
|
case "OrganizationNotFoundException":
|
|
1876
2038
|
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
@@ -1880,10 +2042,12 @@ const deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = async (ou
|
|
|
1880
2042
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1881
2043
|
default:
|
|
1882
2044
|
const parsedBody = parsedOutput.body;
|
|
2045
|
+
const $metadata = deserializeMetadata(output);
|
|
2046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1883
2047
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1885
2049
|
$fault: "client",
|
|
1886
|
-
$metadata
|
|
2050
|
+
$metadata,
|
|
1887
2051
|
});
|
|
1888
2052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1889
2053
|
}
|
|
@@ -1908,8 +2072,7 @@ const deserializeAws_json1_1DescribeMailboxExportJobCommandError = async (output
|
|
|
1908
2072
|
body: await parseBody(output.body, context),
|
|
1909
2073
|
};
|
|
1910
2074
|
let response;
|
|
1911
|
-
|
|
1912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
2076
|
switch (errorCode) {
|
|
1914
2077
|
case "EntityNotFoundException":
|
|
1915
2078
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -1925,10 +2088,12 @@ const deserializeAws_json1_1DescribeMailboxExportJobCommandError = async (output
|
|
|
1925
2088
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1926
2089
|
default:
|
|
1927
2090
|
const parsedBody = parsedOutput.body;
|
|
2091
|
+
const $metadata = deserializeMetadata(output);
|
|
2092
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1928
2093
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2094
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1930
2095
|
$fault: "client",
|
|
1931
|
-
$metadata
|
|
2096
|
+
$metadata,
|
|
1932
2097
|
});
|
|
1933
2098
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1934
2099
|
}
|
|
@@ -1953,8 +2118,7 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
1953
2118
|
body: await parseBody(output.body, context),
|
|
1954
2119
|
};
|
|
1955
2120
|
let response;
|
|
1956
|
-
|
|
1957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
2122
|
switch (errorCode) {
|
|
1959
2123
|
case "InvalidParameterException":
|
|
1960
2124
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -1964,10 +2128,12 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
1964
2128
|
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
1965
2129
|
default:
|
|
1966
2130
|
const parsedBody = parsedOutput.body;
|
|
2131
|
+
const $metadata = deserializeMetadata(output);
|
|
2132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1967
2133
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
1968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1969
2135
|
$fault: "client",
|
|
1970
|
-
$metadata
|
|
2136
|
+
$metadata,
|
|
1971
2137
|
});
|
|
1972
2138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1973
2139
|
}
|
|
@@ -1992,8 +2158,7 @@ const deserializeAws_json1_1DescribeResourceCommandError = async (output, contex
|
|
|
1992
2158
|
body: await parseBody(output.body, context),
|
|
1993
2159
|
};
|
|
1994
2160
|
let response;
|
|
1995
|
-
|
|
1996
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
2162
|
switch (errorCode) {
|
|
1998
2163
|
case "EntityNotFoundException":
|
|
1999
2164
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2009,10 +2174,12 @@ const deserializeAws_json1_1DescribeResourceCommandError = async (output, contex
|
|
|
2009
2174
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2010
2175
|
default:
|
|
2011
2176
|
const parsedBody = parsedOutput.body;
|
|
2177
|
+
const $metadata = deserializeMetadata(output);
|
|
2178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2012
2179
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2013
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2014
2181
|
$fault: "client",
|
|
2015
|
-
$metadata
|
|
2182
|
+
$metadata,
|
|
2016
2183
|
});
|
|
2017
2184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2018
2185
|
}
|
|
@@ -2037,8 +2204,7 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
2037
2204
|
body: await parseBody(output.body, context),
|
|
2038
2205
|
};
|
|
2039
2206
|
let response;
|
|
2040
|
-
|
|
2041
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
2208
|
switch (errorCode) {
|
|
2043
2209
|
case "EntityNotFoundException":
|
|
2044
2210
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2054,10 +2220,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
2054
2220
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2055
2221
|
default:
|
|
2056
2222
|
const parsedBody = parsedOutput.body;
|
|
2223
|
+
const $metadata = deserializeMetadata(output);
|
|
2224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2057
2225
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2059
2227
|
$fault: "client",
|
|
2060
|
-
$metadata
|
|
2228
|
+
$metadata,
|
|
2061
2229
|
});
|
|
2062
2230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2063
2231
|
}
|
|
@@ -2082,8 +2250,7 @@ const deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = async
|
|
|
2082
2250
|
body: await parseBody(output.body, context),
|
|
2083
2251
|
};
|
|
2084
2252
|
let response;
|
|
2085
|
-
|
|
2086
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
2254
|
switch (errorCode) {
|
|
2088
2255
|
case "EntityNotFoundException":
|
|
2089
2256
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2102,10 +2269,12 @@ const deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = async
|
|
|
2102
2269
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2103
2270
|
default:
|
|
2104
2271
|
const parsedBody = parsedOutput.body;
|
|
2272
|
+
const $metadata = deserializeMetadata(output);
|
|
2273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2105
2274
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2107
2276
|
$fault: "client",
|
|
2108
|
-
$metadata
|
|
2277
|
+
$metadata,
|
|
2109
2278
|
});
|
|
2110
2279
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2111
2280
|
}
|
|
@@ -2130,8 +2299,7 @@ const deserializeAws_json1_1DisassociateMemberFromGroupCommandError = async (out
|
|
|
2130
2299
|
body: await parseBody(output.body, context),
|
|
2131
2300
|
};
|
|
2132
2301
|
let response;
|
|
2133
|
-
|
|
2134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
2303
|
switch (errorCode) {
|
|
2136
2304
|
case "DirectoryServiceAuthenticationFailedException":
|
|
2137
2305
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -2159,10 +2327,12 @@ const deserializeAws_json1_1DisassociateMemberFromGroupCommandError = async (out
|
|
|
2159
2327
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2160
2328
|
default:
|
|
2161
2329
|
const parsedBody = parsedOutput.body;
|
|
2330
|
+
const $metadata = deserializeMetadata(output);
|
|
2331
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2162
2332
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2163
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2164
2334
|
$fault: "client",
|
|
2165
|
-
$metadata
|
|
2335
|
+
$metadata,
|
|
2166
2336
|
});
|
|
2167
2337
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2168
2338
|
}
|
|
@@ -2187,8 +2357,7 @@ const deserializeAws_json1_1GetAccessControlEffectCommandError = async (output,
|
|
|
2187
2357
|
body: await parseBody(output.body, context),
|
|
2188
2358
|
};
|
|
2189
2359
|
let response;
|
|
2190
|
-
|
|
2191
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
2361
|
switch (errorCode) {
|
|
2193
2362
|
case "EntityNotFoundException":
|
|
2194
2363
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2204,10 +2373,12 @@ const deserializeAws_json1_1GetAccessControlEffectCommandError = async (output,
|
|
|
2204
2373
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2205
2374
|
default:
|
|
2206
2375
|
const parsedBody = parsedOutput.body;
|
|
2376
|
+
const $metadata = deserializeMetadata(output);
|
|
2377
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2378
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2379
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2380
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2381
|
+
$metadata,
|
|
2211
2382
|
});
|
|
2212
2383
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2213
2384
|
}
|
|
@@ -2232,8 +2403,7 @@ const deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = async (outpu
|
|
|
2232
2403
|
body: await parseBody(output.body, context),
|
|
2233
2404
|
};
|
|
2234
2405
|
let response;
|
|
2235
|
-
|
|
2236
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
2407
|
switch (errorCode) {
|
|
2238
2408
|
case "EntityNotFoundException":
|
|
2239
2409
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2249,10 +2419,12 @@ const deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = async (outpu
|
|
|
2249
2419
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2250
2420
|
default:
|
|
2251
2421
|
const parsedBody = parsedOutput.body;
|
|
2422
|
+
const $metadata = deserializeMetadata(output);
|
|
2423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2252
2424
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2253
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2425
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2254
2426
|
$fault: "client",
|
|
2255
|
-
$metadata
|
|
2427
|
+
$metadata,
|
|
2256
2428
|
});
|
|
2257
2429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2258
2430
|
}
|
|
@@ -2277,8 +2449,7 @@ const deserializeAws_json1_1GetMailboxDetailsCommandError = async (output, conte
|
|
|
2277
2449
|
body: await parseBody(output.body, context),
|
|
2278
2450
|
};
|
|
2279
2451
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2453
|
switch (errorCode) {
|
|
2283
2454
|
case "EntityNotFoundException":
|
|
2284
2455
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2291,10 +2462,12 @@ const deserializeAws_json1_1GetMailboxDetailsCommandError = async (output, conte
|
|
|
2291
2462
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2292
2463
|
default:
|
|
2293
2464
|
const parsedBody = parsedOutput.body;
|
|
2465
|
+
const $metadata = deserializeMetadata(output);
|
|
2466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2294
2467
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2296
2469
|
$fault: "client",
|
|
2297
|
-
$metadata
|
|
2470
|
+
$metadata,
|
|
2298
2471
|
});
|
|
2299
2472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2300
2473
|
}
|
|
@@ -2319,8 +2492,7 @@ const deserializeAws_json1_1GetMailDomainCommandError = async (output, context)
|
|
|
2319
2492
|
body: await parseBody(output.body, context),
|
|
2320
2493
|
};
|
|
2321
2494
|
let response;
|
|
2322
|
-
|
|
2323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
2496
|
switch (errorCode) {
|
|
2325
2497
|
case "InvalidParameterException":
|
|
2326
2498
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2336,10 +2508,12 @@ const deserializeAws_json1_1GetMailDomainCommandError = async (output, context)
|
|
|
2336
2508
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2337
2509
|
default:
|
|
2338
2510
|
const parsedBody = parsedOutput.body;
|
|
2511
|
+
const $metadata = deserializeMetadata(output);
|
|
2512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2339
2513
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2341
2515
|
$fault: "client",
|
|
2342
|
-
$metadata
|
|
2516
|
+
$metadata,
|
|
2343
2517
|
});
|
|
2344
2518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2345
2519
|
}
|
|
@@ -2364,8 +2538,7 @@ const deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = async (out
|
|
|
2364
2538
|
body: await parseBody(output.body, context),
|
|
2365
2539
|
};
|
|
2366
2540
|
let response;
|
|
2367
|
-
|
|
2368
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2542
|
switch (errorCode) {
|
|
2370
2543
|
case "InvalidParameterException":
|
|
2371
2544
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2378,10 +2551,12 @@ const deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = async (out
|
|
|
2378
2551
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2379
2552
|
default:
|
|
2380
2553
|
const parsedBody = parsedOutput.body;
|
|
2554
|
+
const $metadata = deserializeMetadata(output);
|
|
2555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2381
2556
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2382
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2383
2558
|
$fault: "client",
|
|
2384
|
-
$metadata
|
|
2559
|
+
$metadata,
|
|
2385
2560
|
});
|
|
2386
2561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2387
2562
|
}
|
|
@@ -2406,8 +2581,7 @@ const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = async (o
|
|
|
2406
2581
|
body: await parseBody(output.body, context),
|
|
2407
2582
|
};
|
|
2408
2583
|
let response;
|
|
2409
|
-
|
|
2410
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2585
|
switch (errorCode) {
|
|
2412
2586
|
case "EntityNotFoundException":
|
|
2413
2587
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2426,10 +2600,12 @@ const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = async (o
|
|
|
2426
2600
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2427
2601
|
default:
|
|
2428
2602
|
const parsedBody = parsedOutput.body;
|
|
2603
|
+
const $metadata = deserializeMetadata(output);
|
|
2604
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2429
2605
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2430
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2606
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2431
2607
|
$fault: "client",
|
|
2432
|
-
$metadata
|
|
2608
|
+
$metadata,
|
|
2433
2609
|
});
|
|
2434
2610
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2435
2611
|
}
|
|
@@ -2454,8 +2630,7 @@ const deserializeAws_json1_1ListAccessControlRulesCommandError = async (output,
|
|
|
2454
2630
|
body: await parseBody(output.body, context),
|
|
2455
2631
|
};
|
|
2456
2632
|
let response;
|
|
2457
|
-
|
|
2458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
2634
|
switch (errorCode) {
|
|
2460
2635
|
case "OrganizationNotFoundException":
|
|
2461
2636
|
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
@@ -2465,10 +2640,12 @@ const deserializeAws_json1_1ListAccessControlRulesCommandError = async (output,
|
|
|
2465
2640
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2466
2641
|
default:
|
|
2467
2642
|
const parsedBody = parsedOutput.body;
|
|
2643
|
+
const $metadata = deserializeMetadata(output);
|
|
2644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2468
2645
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2469
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2470
2647
|
$fault: "client",
|
|
2471
|
-
$metadata
|
|
2648
|
+
$metadata,
|
|
2472
2649
|
});
|
|
2473
2650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2474
2651
|
}
|
|
@@ -2493,8 +2670,7 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2493
2670
|
body: await parseBody(output.body, context),
|
|
2494
2671
|
};
|
|
2495
2672
|
let response;
|
|
2496
|
-
|
|
2497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2498
2674
|
switch (errorCode) {
|
|
2499
2675
|
case "EntityNotFoundException":
|
|
2500
2676
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2513,10 +2689,52 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2513
2689
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2514
2690
|
default:
|
|
2515
2691
|
const parsedBody = parsedOutput.body;
|
|
2692
|
+
const $metadata = deserializeMetadata(output);
|
|
2693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2516
2694
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2518
2696
|
$fault: "client",
|
|
2519
|
-
$metadata
|
|
2697
|
+
$metadata,
|
|
2698
|
+
});
|
|
2699
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2700
|
+
}
|
|
2701
|
+
};
|
|
2702
|
+
const deserializeAws_json1_1ListAvailabilityConfigurationsCommand = async (output, context) => {
|
|
2703
|
+
if (output.statusCode >= 300) {
|
|
2704
|
+
return deserializeAws_json1_1ListAvailabilityConfigurationsCommandError(output, context);
|
|
2705
|
+
}
|
|
2706
|
+
const data = await parseBody(output.body, context);
|
|
2707
|
+
let contents = {};
|
|
2708
|
+
contents = deserializeAws_json1_1ListAvailabilityConfigurationsResponse(data, context);
|
|
2709
|
+
const response = {
|
|
2710
|
+
$metadata: deserializeMetadata(output),
|
|
2711
|
+
...contents,
|
|
2712
|
+
};
|
|
2713
|
+
return Promise.resolve(response);
|
|
2714
|
+
};
|
|
2715
|
+
exports.deserializeAws_json1_1ListAvailabilityConfigurationsCommand = deserializeAws_json1_1ListAvailabilityConfigurationsCommand;
|
|
2716
|
+
const deserializeAws_json1_1ListAvailabilityConfigurationsCommandError = async (output, context) => {
|
|
2717
|
+
const parsedOutput = {
|
|
2718
|
+
...output,
|
|
2719
|
+
body: await parseBody(output.body, context),
|
|
2720
|
+
};
|
|
2721
|
+
let response;
|
|
2722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2723
|
+
switch (errorCode) {
|
|
2724
|
+
case "OrganizationNotFoundException":
|
|
2725
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2726
|
+
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
2727
|
+
case "OrganizationStateException":
|
|
2728
|
+
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2729
|
+
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2730
|
+
default:
|
|
2731
|
+
const parsedBody = parsedOutput.body;
|
|
2732
|
+
const $metadata = deserializeMetadata(output);
|
|
2733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2734
|
+
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2736
|
+
$fault: "client",
|
|
2737
|
+
$metadata,
|
|
2520
2738
|
});
|
|
2521
2739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2522
2740
|
}
|
|
@@ -2541,8 +2759,7 @@ const deserializeAws_json1_1ListGroupMembersCommandError = async (output, contex
|
|
|
2541
2759
|
body: await parseBody(output.body, context),
|
|
2542
2760
|
};
|
|
2543
2761
|
let response;
|
|
2544
|
-
|
|
2545
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
2763
|
switch (errorCode) {
|
|
2547
2764
|
case "EntityNotFoundException":
|
|
2548
2765
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2561,10 +2778,12 @@ const deserializeAws_json1_1ListGroupMembersCommandError = async (output, contex
|
|
|
2561
2778
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2562
2779
|
default:
|
|
2563
2780
|
const parsedBody = parsedOutput.body;
|
|
2781
|
+
const $metadata = deserializeMetadata(output);
|
|
2782
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2564
2783
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2784
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2566
2785
|
$fault: "client",
|
|
2567
|
-
$metadata
|
|
2786
|
+
$metadata,
|
|
2568
2787
|
});
|
|
2569
2788
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2789
|
}
|
|
@@ -2589,8 +2808,7 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
2589
2808
|
body: await parseBody(output.body, context),
|
|
2590
2809
|
};
|
|
2591
2810
|
let response;
|
|
2592
|
-
|
|
2593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2594
2812
|
switch (errorCode) {
|
|
2595
2813
|
case "EntityNotFoundException":
|
|
2596
2814
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2606,10 +2824,12 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
2606
2824
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2607
2825
|
default:
|
|
2608
2826
|
const parsedBody = parsedOutput.body;
|
|
2827
|
+
const $metadata = deserializeMetadata(output);
|
|
2828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2609
2829
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2611
2831
|
$fault: "client",
|
|
2612
|
-
$metadata
|
|
2832
|
+
$metadata,
|
|
2613
2833
|
});
|
|
2614
2834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2615
2835
|
}
|
|
@@ -2634,8 +2854,7 @@ const deserializeAws_json1_1ListMailboxExportJobsCommandError = async (output, c
|
|
|
2634
2854
|
body: await parseBody(output.body, context),
|
|
2635
2855
|
};
|
|
2636
2856
|
let response;
|
|
2637
|
-
|
|
2638
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2857
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
2858
|
switch (errorCode) {
|
|
2640
2859
|
case "InvalidParameterException":
|
|
2641
2860
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2648,10 +2867,12 @@ const deserializeAws_json1_1ListMailboxExportJobsCommandError = async (output, c
|
|
|
2648
2867
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2649
2868
|
default:
|
|
2650
2869
|
const parsedBody = parsedOutput.body;
|
|
2870
|
+
const $metadata = deserializeMetadata(output);
|
|
2871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2651
2872
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2652
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2873
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2653
2874
|
$fault: "client",
|
|
2654
|
-
$metadata
|
|
2875
|
+
$metadata,
|
|
2655
2876
|
});
|
|
2656
2877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2657
2878
|
}
|
|
@@ -2676,8 +2897,7 @@ const deserializeAws_json1_1ListMailboxPermissionsCommandError = async (output,
|
|
|
2676
2897
|
body: await parseBody(output.body, context),
|
|
2677
2898
|
};
|
|
2678
2899
|
let response;
|
|
2679
|
-
|
|
2680
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
2901
|
switch (errorCode) {
|
|
2682
2902
|
case "EntityNotFoundException":
|
|
2683
2903
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2693,10 +2913,12 @@ const deserializeAws_json1_1ListMailboxPermissionsCommandError = async (output,
|
|
|
2693
2913
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2694
2914
|
default:
|
|
2695
2915
|
const parsedBody = parsedOutput.body;
|
|
2916
|
+
const $metadata = deserializeMetadata(output);
|
|
2917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2696
2918
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2698
2920
|
$fault: "client",
|
|
2699
|
-
$metadata
|
|
2921
|
+
$metadata,
|
|
2700
2922
|
});
|
|
2701
2923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2702
2924
|
}
|
|
@@ -2721,8 +2943,7 @@ const deserializeAws_json1_1ListMailDomainsCommandError = async (output, context
|
|
|
2721
2943
|
body: await parseBody(output.body, context),
|
|
2722
2944
|
};
|
|
2723
2945
|
let response;
|
|
2724
|
-
|
|
2725
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
2947
|
switch (errorCode) {
|
|
2727
2948
|
case "InvalidParameterException":
|
|
2728
2949
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2735,10 +2956,12 @@ const deserializeAws_json1_1ListMailDomainsCommandError = async (output, context
|
|
|
2735
2956
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2736
2957
|
default:
|
|
2737
2958
|
const parsedBody = parsedOutput.body;
|
|
2959
|
+
const $metadata = deserializeMetadata(output);
|
|
2960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2738
2961
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2740
2963
|
$fault: "client",
|
|
2741
|
-
$metadata
|
|
2964
|
+
$metadata,
|
|
2742
2965
|
});
|
|
2743
2966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2744
2967
|
}
|
|
@@ -2763,8 +2986,7 @@ const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = async
|
|
|
2763
2986
|
body: await parseBody(output.body, context),
|
|
2764
2987
|
};
|
|
2765
2988
|
let response;
|
|
2766
|
-
|
|
2767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
2990
|
switch (errorCode) {
|
|
2769
2991
|
case "EntityNotFoundException":
|
|
2770
2992
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2780,10 +3002,12 @@ const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = async
|
|
|
2780
3002
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2781
3003
|
default:
|
|
2782
3004
|
const parsedBody = parsedOutput.body;
|
|
3005
|
+
const $metadata = deserializeMetadata(output);
|
|
3006
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2783
3007
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2785
3009
|
$fault: "client",
|
|
2786
|
-
$metadata
|
|
3010
|
+
$metadata,
|
|
2787
3011
|
});
|
|
2788
3012
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2789
3013
|
}
|
|
@@ -2808,8 +3032,7 @@ const deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = async (out
|
|
|
2808
3032
|
body: await parseBody(output.body, context),
|
|
2809
3033
|
};
|
|
2810
3034
|
let response;
|
|
2811
|
-
|
|
2812
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
3036
|
switch (errorCode) {
|
|
2814
3037
|
case "InvalidParameterException":
|
|
2815
3038
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2822,10 +3045,12 @@ const deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = async (out
|
|
|
2822
3045
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2823
3046
|
default:
|
|
2824
3047
|
const parsedBody = parsedOutput.body;
|
|
3048
|
+
const $metadata = deserializeMetadata(output);
|
|
3049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2825
3050
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2827
3052
|
$fault: "client",
|
|
2828
|
-
$metadata
|
|
3053
|
+
$metadata,
|
|
2829
3054
|
});
|
|
2830
3055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2831
3056
|
}
|
|
@@ -2850,18 +3075,19 @@ const deserializeAws_json1_1ListOrganizationsCommandError = async (output, conte
|
|
|
2850
3075
|
body: await parseBody(output.body, context),
|
|
2851
3076
|
};
|
|
2852
3077
|
let response;
|
|
2853
|
-
|
|
2854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2855
3079
|
switch (errorCode) {
|
|
2856
3080
|
case "InvalidParameterException":
|
|
2857
3081
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2858
3082
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2859
3083
|
default:
|
|
2860
3084
|
const parsedBody = parsedOutput.body;
|
|
3085
|
+
const $metadata = deserializeMetadata(output);
|
|
3086
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2861
3087
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3088
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2863
3089
|
$fault: "client",
|
|
2864
|
-
$metadata
|
|
3090
|
+
$metadata,
|
|
2865
3091
|
});
|
|
2866
3092
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2867
3093
|
}
|
|
@@ -2886,8 +3112,7 @@ const deserializeAws_json1_1ListResourceDelegatesCommandError = async (output, c
|
|
|
2886
3112
|
body: await parseBody(output.body, context),
|
|
2887
3113
|
};
|
|
2888
3114
|
let response;
|
|
2889
|
-
|
|
2890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
3116
|
switch (errorCode) {
|
|
2892
3117
|
case "EntityNotFoundException":
|
|
2893
3118
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -2906,10 +3131,12 @@ const deserializeAws_json1_1ListResourceDelegatesCommandError = async (output, c
|
|
|
2906
3131
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2907
3132
|
default:
|
|
2908
3133
|
const parsedBody = parsedOutput.body;
|
|
3134
|
+
const $metadata = deserializeMetadata(output);
|
|
3135
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2909
3136
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3137
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2911
3138
|
$fault: "client",
|
|
2912
|
-
$metadata
|
|
3139
|
+
$metadata,
|
|
2913
3140
|
});
|
|
2914
3141
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2915
3142
|
}
|
|
@@ -2934,8 +3161,7 @@ const deserializeAws_json1_1ListResourcesCommandError = async (output, context)
|
|
|
2934
3161
|
body: await parseBody(output.body, context),
|
|
2935
3162
|
};
|
|
2936
3163
|
let response;
|
|
2937
|
-
|
|
2938
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2939
3165
|
switch (errorCode) {
|
|
2940
3166
|
case "InvalidParameterException":
|
|
2941
3167
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -2948,10 +3174,12 @@ const deserializeAws_json1_1ListResourcesCommandError = async (output, context)
|
|
|
2948
3174
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2949
3175
|
default:
|
|
2950
3176
|
const parsedBody = parsedOutput.body;
|
|
3177
|
+
const $metadata = deserializeMetadata(output);
|
|
3178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2951
3179
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2953
3181
|
$fault: "client",
|
|
2954
|
-
$metadata
|
|
3182
|
+
$metadata,
|
|
2955
3183
|
});
|
|
2956
3184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2957
3185
|
}
|
|
@@ -2976,18 +3204,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2976
3204
|
body: await parseBody(output.body, context),
|
|
2977
3205
|
};
|
|
2978
3206
|
let response;
|
|
2979
|
-
|
|
2980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
3208
|
switch (errorCode) {
|
|
2982
3209
|
case "ResourceNotFoundException":
|
|
2983
3210
|
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2984
3211
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2985
3212
|
default:
|
|
2986
3213
|
const parsedBody = parsedOutput.body;
|
|
3214
|
+
const $metadata = deserializeMetadata(output);
|
|
3215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2987
3216
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
2988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2989
3218
|
$fault: "client",
|
|
2990
|
-
$metadata
|
|
3219
|
+
$metadata,
|
|
2991
3220
|
});
|
|
2992
3221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2993
3222
|
}
|
|
@@ -3012,8 +3241,7 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
3012
3241
|
body: await parseBody(output.body, context),
|
|
3013
3242
|
};
|
|
3014
3243
|
let response;
|
|
3015
|
-
|
|
3016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
3245
|
switch (errorCode) {
|
|
3018
3246
|
case "InvalidParameterException":
|
|
3019
3247
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -3026,10 +3254,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
3026
3254
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3027
3255
|
default:
|
|
3028
3256
|
const parsedBody = parsedOutput.body;
|
|
3257
|
+
const $metadata = deserializeMetadata(output);
|
|
3258
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3029
3259
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3031
3261
|
$fault: "client",
|
|
3032
|
-
$metadata
|
|
3262
|
+
$metadata,
|
|
3033
3263
|
});
|
|
3034
3264
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3035
3265
|
}
|
|
@@ -3054,8 +3284,7 @@ const deserializeAws_json1_1PutAccessControlRuleCommandError = async (output, co
|
|
|
3054
3284
|
body: await parseBody(output.body, context),
|
|
3055
3285
|
};
|
|
3056
3286
|
let response;
|
|
3057
|
-
|
|
3058
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
3288
|
switch (errorCode) {
|
|
3060
3289
|
case "EntityNotFoundException":
|
|
3061
3290
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3074,10 +3303,12 @@ const deserializeAws_json1_1PutAccessControlRuleCommandError = async (output, co
|
|
|
3074
3303
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3075
3304
|
default:
|
|
3076
3305
|
const parsedBody = parsedOutput.body;
|
|
3306
|
+
const $metadata = deserializeMetadata(output);
|
|
3307
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3077
3308
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3078
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3309
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3079
3310
|
$fault: "client",
|
|
3080
|
-
$metadata
|
|
3311
|
+
$metadata,
|
|
3081
3312
|
});
|
|
3082
3313
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3083
3314
|
}
|
|
@@ -3102,8 +3333,7 @@ const deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = async
|
|
|
3102
3333
|
body: await parseBody(output.body, context),
|
|
3103
3334
|
};
|
|
3104
3335
|
let response;
|
|
3105
|
-
|
|
3106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3107
3337
|
switch (errorCode) {
|
|
3108
3338
|
case "InvalidParameterException":
|
|
3109
3339
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -3119,10 +3349,12 @@ const deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = async
|
|
|
3119
3349
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3120
3350
|
default:
|
|
3121
3351
|
const parsedBody = parsedOutput.body;
|
|
3352
|
+
const $metadata = deserializeMetadata(output);
|
|
3353
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3122
3354
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3123
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3124
3356
|
$fault: "client",
|
|
3125
|
-
$metadata
|
|
3357
|
+
$metadata,
|
|
3126
3358
|
});
|
|
3127
3359
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3128
3360
|
}
|
|
@@ -3147,8 +3379,7 @@ const deserializeAws_json1_1PutInboundDmarcSettingsCommandError = async (output,
|
|
|
3147
3379
|
body: await parseBody(output.body, context),
|
|
3148
3380
|
};
|
|
3149
3381
|
let response;
|
|
3150
|
-
|
|
3151
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3152
3383
|
switch (errorCode) {
|
|
3153
3384
|
case "OrganizationNotFoundException":
|
|
3154
3385
|
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
@@ -3158,10 +3389,12 @@ const deserializeAws_json1_1PutInboundDmarcSettingsCommandError = async (output,
|
|
|
3158
3389
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3159
3390
|
default:
|
|
3160
3391
|
const parsedBody = parsedOutput.body;
|
|
3392
|
+
const $metadata = deserializeMetadata(output);
|
|
3393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3161
3394
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3163
3396
|
$fault: "client",
|
|
3164
|
-
$metadata
|
|
3397
|
+
$metadata,
|
|
3165
3398
|
});
|
|
3166
3399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3167
3400
|
}
|
|
@@ -3186,8 +3419,7 @@ const deserializeAws_json1_1PutMailboxPermissionsCommandError = async (output, c
|
|
|
3186
3419
|
body: await parseBody(output.body, context),
|
|
3187
3420
|
};
|
|
3188
3421
|
let response;
|
|
3189
|
-
|
|
3190
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
3423
|
switch (errorCode) {
|
|
3192
3424
|
case "EntityNotFoundException":
|
|
3193
3425
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3206,10 +3438,12 @@ const deserializeAws_json1_1PutMailboxPermissionsCommandError = async (output, c
|
|
|
3206
3438
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3207
3439
|
default:
|
|
3208
3440
|
const parsedBody = parsedOutput.body;
|
|
3441
|
+
const $metadata = deserializeMetadata(output);
|
|
3442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3209
3443
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3210
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3211
3445
|
$fault: "client",
|
|
3212
|
-
$metadata
|
|
3446
|
+
$metadata,
|
|
3213
3447
|
});
|
|
3214
3448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3215
3449
|
}
|
|
@@ -3234,8 +3468,7 @@ const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = async (o
|
|
|
3234
3468
|
body: await parseBody(output.body, context),
|
|
3235
3469
|
};
|
|
3236
3470
|
let response;
|
|
3237
|
-
|
|
3238
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3472
|
switch (errorCode) {
|
|
3240
3473
|
case "EntityNotFoundException":
|
|
3241
3474
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3254,10 +3487,12 @@ const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = async (o
|
|
|
3254
3487
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3255
3488
|
default:
|
|
3256
3489
|
const parsedBody = parsedOutput.body;
|
|
3490
|
+
const $metadata = deserializeMetadata(output);
|
|
3491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3257
3492
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3259
3494
|
$fault: "client",
|
|
3260
|
-
$metadata
|
|
3495
|
+
$metadata,
|
|
3261
3496
|
});
|
|
3262
3497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3263
3498
|
}
|
|
@@ -3282,8 +3517,7 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
3282
3517
|
body: await parseBody(output.body, context),
|
|
3283
3518
|
};
|
|
3284
3519
|
let response;
|
|
3285
|
-
|
|
3286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3287
3521
|
switch (errorCode) {
|
|
3288
3522
|
case "InvalidParameterException":
|
|
3289
3523
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -3299,10 +3533,12 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
3299
3533
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3300
3534
|
default:
|
|
3301
3535
|
const parsedBody = parsedOutput.body;
|
|
3536
|
+
const $metadata = deserializeMetadata(output);
|
|
3537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3302
3538
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3303
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3304
3540
|
$fault: "client",
|
|
3305
|
-
$metadata
|
|
3541
|
+
$metadata,
|
|
3306
3542
|
});
|
|
3307
3543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3308
3544
|
}
|
|
@@ -3327,8 +3563,7 @@ const deserializeAws_json1_1RegisterMailDomainCommandError = async (output, cont
|
|
|
3327
3563
|
body: await parseBody(output.body, context),
|
|
3328
3564
|
};
|
|
3329
3565
|
let response;
|
|
3330
|
-
|
|
3331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3332
3567
|
switch (errorCode) {
|
|
3333
3568
|
case "InvalidParameterException":
|
|
3334
3569
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -3347,10 +3582,12 @@ const deserializeAws_json1_1RegisterMailDomainCommandError = async (output, cont
|
|
|
3347
3582
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3348
3583
|
default:
|
|
3349
3584
|
const parsedBody = parsedOutput.body;
|
|
3585
|
+
const $metadata = deserializeMetadata(output);
|
|
3586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3350
3587
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3352
3589
|
$fault: "client",
|
|
3353
|
-
$metadata
|
|
3590
|
+
$metadata,
|
|
3354
3591
|
});
|
|
3355
3592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3356
3593
|
}
|
|
@@ -3375,8 +3612,7 @@ const deserializeAws_json1_1RegisterToWorkMailCommandError = async (output, cont
|
|
|
3375
3612
|
body: await parseBody(output.body, context),
|
|
3376
3613
|
};
|
|
3377
3614
|
let response;
|
|
3378
|
-
|
|
3379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
3616
|
switch (errorCode) {
|
|
3381
3617
|
case "DirectoryServiceAuthenticationFailedException":
|
|
3382
3618
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -3413,10 +3649,12 @@ const deserializeAws_json1_1RegisterToWorkMailCommandError = async (output, cont
|
|
|
3413
3649
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3414
3650
|
default:
|
|
3415
3651
|
const parsedBody = parsedOutput.body;
|
|
3652
|
+
const $metadata = deserializeMetadata(output);
|
|
3653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3416
3654
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3418
3656
|
$fault: "client",
|
|
3419
|
-
$metadata
|
|
3657
|
+
$metadata,
|
|
3420
3658
|
});
|
|
3421
3659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3422
3660
|
}
|
|
@@ -3441,8 +3679,7 @@ const deserializeAws_json1_1ResetPasswordCommandError = async (output, context)
|
|
|
3441
3679
|
body: await parseBody(output.body, context),
|
|
3442
3680
|
};
|
|
3443
3681
|
let response;
|
|
3444
|
-
|
|
3445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
3683
|
switch (errorCode) {
|
|
3447
3684
|
case "DirectoryServiceAuthenticationFailedException":
|
|
3448
3685
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -3473,10 +3710,12 @@ const deserializeAws_json1_1ResetPasswordCommandError = async (output, context)
|
|
|
3473
3710
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3474
3711
|
default:
|
|
3475
3712
|
const parsedBody = parsedOutput.body;
|
|
3713
|
+
const $metadata = deserializeMetadata(output);
|
|
3714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3476
3715
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3477
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3478
3717
|
$fault: "client",
|
|
3479
|
-
$metadata
|
|
3718
|
+
$metadata,
|
|
3480
3719
|
});
|
|
3481
3720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3482
3721
|
}
|
|
@@ -3501,8 +3740,7 @@ const deserializeAws_json1_1StartMailboxExportJobCommandError = async (output, c
|
|
|
3501
3740
|
body: await parseBody(output.body, context),
|
|
3502
3741
|
};
|
|
3503
3742
|
let response;
|
|
3504
|
-
|
|
3505
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3506
3744
|
switch (errorCode) {
|
|
3507
3745
|
case "EntityNotFoundException":
|
|
3508
3746
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3521,10 +3759,12 @@ const deserializeAws_json1_1StartMailboxExportJobCommandError = async (output, c
|
|
|
3521
3759
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3522
3760
|
default:
|
|
3523
3761
|
const parsedBody = parsedOutput.body;
|
|
3762
|
+
const $metadata = deserializeMetadata(output);
|
|
3763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3524
3764
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3526
3766
|
$fault: "client",
|
|
3527
|
-
$metadata
|
|
3767
|
+
$metadata,
|
|
3528
3768
|
});
|
|
3529
3769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3530
3770
|
}
|
|
@@ -3549,8 +3789,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3549
3789
|
body: await parseBody(output.body, context),
|
|
3550
3790
|
};
|
|
3551
3791
|
let response;
|
|
3552
|
-
|
|
3553
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3792
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3554
3793
|
switch (errorCode) {
|
|
3555
3794
|
case "OrganizationStateException":
|
|
3556
3795
|
case "com.amazonaws.workmail#OrganizationStateException":
|
|
@@ -3563,10 +3802,58 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3563
3802
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3564
3803
|
default:
|
|
3565
3804
|
const parsedBody = parsedOutput.body;
|
|
3805
|
+
const $metadata = deserializeMetadata(output);
|
|
3806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3566
3807
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3567
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3568
3809
|
$fault: "client",
|
|
3569
|
-
$metadata
|
|
3810
|
+
$metadata,
|
|
3811
|
+
});
|
|
3812
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3813
|
+
}
|
|
3814
|
+
};
|
|
3815
|
+
const deserializeAws_json1_1TestAvailabilityConfigurationCommand = async (output, context) => {
|
|
3816
|
+
if (output.statusCode >= 300) {
|
|
3817
|
+
return deserializeAws_json1_1TestAvailabilityConfigurationCommandError(output, context);
|
|
3818
|
+
}
|
|
3819
|
+
const data = await parseBody(output.body, context);
|
|
3820
|
+
let contents = {};
|
|
3821
|
+
contents = deserializeAws_json1_1TestAvailabilityConfigurationResponse(data, context);
|
|
3822
|
+
const response = {
|
|
3823
|
+
$metadata: deserializeMetadata(output),
|
|
3824
|
+
...contents,
|
|
3825
|
+
};
|
|
3826
|
+
return Promise.resolve(response);
|
|
3827
|
+
};
|
|
3828
|
+
exports.deserializeAws_json1_1TestAvailabilityConfigurationCommand = deserializeAws_json1_1TestAvailabilityConfigurationCommand;
|
|
3829
|
+
const deserializeAws_json1_1TestAvailabilityConfigurationCommandError = async (output, context) => {
|
|
3830
|
+
const parsedOutput = {
|
|
3831
|
+
...output,
|
|
3832
|
+
body: await parseBody(output.body, context),
|
|
3833
|
+
};
|
|
3834
|
+
let response;
|
|
3835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3836
|
+
switch (errorCode) {
|
|
3837
|
+
case "InvalidParameterException":
|
|
3838
|
+
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3839
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3840
|
+
case "OrganizationNotFoundException":
|
|
3841
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3842
|
+
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
3843
|
+
case "OrganizationStateException":
|
|
3844
|
+
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3845
|
+
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3846
|
+
case "ResourceNotFoundException":
|
|
3847
|
+
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3848
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3849
|
+
default:
|
|
3850
|
+
const parsedBody = parsedOutput.body;
|
|
3851
|
+
const $metadata = deserializeMetadata(output);
|
|
3852
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3853
|
+
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3855
|
+
$fault: "client",
|
|
3856
|
+
$metadata,
|
|
3570
3857
|
});
|
|
3571
3858
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3572
3859
|
}
|
|
@@ -3591,18 +3878,65 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3591
3878
|
body: await parseBody(output.body, context),
|
|
3592
3879
|
};
|
|
3593
3880
|
let response;
|
|
3594
|
-
|
|
3595
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3596
3882
|
switch (errorCode) {
|
|
3597
3883
|
case "ResourceNotFoundException":
|
|
3598
3884
|
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3599
3885
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3600
3886
|
default:
|
|
3601
3887
|
const parsedBody = parsedOutput.body;
|
|
3888
|
+
const $metadata = deserializeMetadata(output);
|
|
3889
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3602
3890
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3604
3892
|
$fault: "client",
|
|
3605
|
-
$metadata
|
|
3893
|
+
$metadata,
|
|
3894
|
+
});
|
|
3895
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3896
|
+
}
|
|
3897
|
+
};
|
|
3898
|
+
const deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = async (output, context) => {
|
|
3899
|
+
if (output.statusCode >= 300) {
|
|
3900
|
+
return deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError(output, context);
|
|
3901
|
+
}
|
|
3902
|
+
const data = await parseBody(output.body, context);
|
|
3903
|
+
let contents = {};
|
|
3904
|
+
contents = deserializeAws_json1_1UpdateAvailabilityConfigurationResponse(data, context);
|
|
3905
|
+
const response = {
|
|
3906
|
+
$metadata: deserializeMetadata(output),
|
|
3907
|
+
...contents,
|
|
3908
|
+
};
|
|
3909
|
+
return Promise.resolve(response);
|
|
3910
|
+
};
|
|
3911
|
+
exports.deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = deserializeAws_json1_1UpdateAvailabilityConfigurationCommand;
|
|
3912
|
+
const deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError = async (output, context) => {
|
|
3913
|
+
const parsedOutput = {
|
|
3914
|
+
...output,
|
|
3915
|
+
body: await parseBody(output.body, context),
|
|
3916
|
+
};
|
|
3917
|
+
let response;
|
|
3918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
|
+
switch (errorCode) {
|
|
3920
|
+
case "InvalidParameterException":
|
|
3921
|
+
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3922
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3923
|
+
case "OrganizationNotFoundException":
|
|
3924
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3925
|
+
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
3926
|
+
case "OrganizationStateException":
|
|
3927
|
+
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3928
|
+
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3929
|
+
case "ResourceNotFoundException":
|
|
3930
|
+
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3931
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3932
|
+
default:
|
|
3933
|
+
const parsedBody = parsedOutput.body;
|
|
3934
|
+
const $metadata = deserializeMetadata(output);
|
|
3935
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3936
|
+
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3938
|
+
$fault: "client",
|
|
3939
|
+
$metadata,
|
|
3606
3940
|
});
|
|
3607
3941
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3608
3942
|
}
|
|
@@ -3627,8 +3961,7 @@ const deserializeAws_json1_1UpdateDefaultMailDomainCommandError = async (output,
|
|
|
3627
3961
|
body: await parseBody(output.body, context),
|
|
3628
3962
|
};
|
|
3629
3963
|
let response;
|
|
3630
|
-
|
|
3631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3632
3965
|
switch (errorCode) {
|
|
3633
3966
|
case "InvalidParameterException":
|
|
3634
3967
|
case "com.amazonaws.workmail#InvalidParameterException":
|
|
@@ -3647,10 +3980,12 @@ const deserializeAws_json1_1UpdateDefaultMailDomainCommandError = async (output,
|
|
|
3647
3980
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3648
3981
|
default:
|
|
3649
3982
|
const parsedBody = parsedOutput.body;
|
|
3983
|
+
const $metadata = deserializeMetadata(output);
|
|
3984
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3650
3985
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3652
3987
|
$fault: "client",
|
|
3653
|
-
$metadata
|
|
3988
|
+
$metadata,
|
|
3654
3989
|
});
|
|
3655
3990
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3656
3991
|
}
|
|
@@ -3675,8 +4010,7 @@ const deserializeAws_json1_1UpdateMailboxQuotaCommandError = async (output, cont
|
|
|
3675
4010
|
body: await parseBody(output.body, context),
|
|
3676
4011
|
};
|
|
3677
4012
|
let response;
|
|
3678
|
-
|
|
3679
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3680
4014
|
switch (errorCode) {
|
|
3681
4015
|
case "EntityNotFoundException":
|
|
3682
4016
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3695,10 +4029,12 @@ const deserializeAws_json1_1UpdateMailboxQuotaCommandError = async (output, cont
|
|
|
3695
4029
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3696
4030
|
default:
|
|
3697
4031
|
const parsedBody = parsedOutput.body;
|
|
4032
|
+
const $metadata = deserializeMetadata(output);
|
|
4033
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3698
4034
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4035
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3700
4036
|
$fault: "client",
|
|
3701
|
-
$metadata
|
|
4037
|
+
$metadata,
|
|
3702
4038
|
});
|
|
3703
4039
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3704
4040
|
}
|
|
@@ -3723,8 +4059,7 @@ const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
3723
4059
|
body: await parseBody(output.body, context),
|
|
3724
4060
|
};
|
|
3725
4061
|
let response;
|
|
3726
|
-
|
|
3727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3728
4063
|
switch (errorCode) {
|
|
3729
4064
|
case "EntityNotFoundException":
|
|
3730
4065
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
@@ -3740,10 +4075,12 @@ const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
3740
4075
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3741
4076
|
default:
|
|
3742
4077
|
const parsedBody = parsedOutput.body;
|
|
4078
|
+
const $metadata = deserializeMetadata(output);
|
|
4079
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3743
4080
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3745
4082
|
$fault: "client",
|
|
3746
|
-
$metadata
|
|
4083
|
+
$metadata,
|
|
3747
4084
|
});
|
|
3748
4085
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3749
4086
|
}
|
|
@@ -3768,8 +4105,7 @@ const deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = async (outpu
|
|
|
3768
4105
|
body: await parseBody(output.body, context),
|
|
3769
4106
|
};
|
|
3770
4107
|
let response;
|
|
3771
|
-
|
|
3772
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3773
4109
|
switch (errorCode) {
|
|
3774
4110
|
case "DirectoryServiceAuthenticationFailedException":
|
|
3775
4111
|
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
@@ -3806,10 +4142,12 @@ const deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = async (outpu
|
|
|
3806
4142
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3807
4143
|
default:
|
|
3808
4144
|
const parsedBody = parsedOutput.body;
|
|
4145
|
+
const $metadata = deserializeMetadata(output);
|
|
4146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3809
4147
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3811
4149
|
$fault: "client",
|
|
3812
|
-
$metadata
|
|
4150
|
+
$metadata,
|
|
3813
4151
|
});
|
|
3814
4152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3815
4153
|
}
|
|
@@ -3834,8 +4172,7 @@ const deserializeAws_json1_1UpdateResourceCommandError = async (output, context)
|
|
|
3834
4172
|
body: await parseBody(output.body, context),
|
|
3835
4173
|
};
|
|
3836
4174
|
let response;
|
|
3837
|
-
|
|
3838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3839
4176
|
switch (errorCode) {
|
|
3840
4177
|
case "DirectoryUnavailableException":
|
|
3841
4178
|
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
@@ -3869,10 +4206,12 @@ const deserializeAws_json1_1UpdateResourceCommandError = async (output, context)
|
|
|
3869
4206
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3870
4207
|
default:
|
|
3871
4208
|
const parsedBody = parsedOutput.body;
|
|
4209
|
+
const $metadata = deserializeMetadata(output);
|
|
4210
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3872
4211
|
response = new WorkMailServiceException_1.WorkMailServiceException({
|
|
3873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4212
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3874
4213
|
$fault: "client",
|
|
3875
|
-
$metadata
|
|
4214
|
+
$metadata,
|
|
3876
4215
|
});
|
|
3877
4216
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3878
4217
|
}
|
|
@@ -4087,30 +4426,25 @@ const serializeAws_json1_1ActionsList = (input, context) => {
|
|
|
4087
4426
|
};
|
|
4088
4427
|
const serializeAws_json1_1AssociateDelegateToResourceRequest = (input, context) => {
|
|
4089
4428
|
return {
|
|
4090
|
-
...(input.EntityId
|
|
4091
|
-
...(input.OrganizationId
|
|
4092
|
-
|
|
4093
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4429
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4430
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4431
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4094
4432
|
};
|
|
4095
4433
|
};
|
|
4096
4434
|
const serializeAws_json1_1AssociateMemberToGroupRequest = (input, context) => {
|
|
4097
4435
|
return {
|
|
4098
|
-
...(input.GroupId
|
|
4099
|
-
...(input.MemberId
|
|
4100
|
-
...(input.OrganizationId
|
|
4101
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4436
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4437
|
+
...(input.MemberId != null && { MemberId: input.MemberId }),
|
|
4438
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4102
4439
|
};
|
|
4103
4440
|
};
|
|
4104
4441
|
const serializeAws_json1_1BookingOptions = (input, context) => {
|
|
4105
4442
|
return {
|
|
4106
|
-
...(input.AutoAcceptRequests
|
|
4107
|
-
|
|
4108
|
-
...(input.AutoDeclineConflictingRequests !== undefined &&
|
|
4109
|
-
input.AutoDeclineConflictingRequests !== null && {
|
|
4443
|
+
...(input.AutoAcceptRequests != null && { AutoAcceptRequests: input.AutoAcceptRequests }),
|
|
4444
|
+
...(input.AutoDeclineConflictingRequests != null && {
|
|
4110
4445
|
AutoDeclineConflictingRequests: input.AutoDeclineConflictingRequests,
|
|
4111
4446
|
}),
|
|
4112
|
-
...(input.AutoDeclineRecurringRequests
|
|
4113
|
-
input.AutoDeclineRecurringRequests !== null && {
|
|
4447
|
+
...(input.AutoDeclineRecurringRequests != null && {
|
|
4114
4448
|
AutoDeclineRecurringRequests: input.AutoDeclineRecurringRequests,
|
|
4115
4449
|
}),
|
|
4116
4450
|
};
|
|
@@ -4119,238 +4453,220 @@ const serializeAws_json1_1CancelMailboxExportJobRequest = (input, context) => {
|
|
|
4119
4453
|
var _a;
|
|
4120
4454
|
return {
|
|
4121
4455
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4122
|
-
...(input.JobId
|
|
4123
|
-
...(input.OrganizationId
|
|
4124
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4456
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4457
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4125
4458
|
};
|
|
4126
4459
|
};
|
|
4127
4460
|
const serializeAws_json1_1CreateAliasRequest = (input, context) => {
|
|
4128
4461
|
return {
|
|
4129
|
-
...(input.Alias
|
|
4130
|
-
...(input.EntityId
|
|
4131
|
-
...(input.OrganizationId
|
|
4132
|
-
|
|
4462
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
4463
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4464
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4465
|
+
};
|
|
4466
|
+
};
|
|
4467
|
+
const serializeAws_json1_1CreateAvailabilityConfigurationRequest = (input, context) => {
|
|
4468
|
+
var _a;
|
|
4469
|
+
return {
|
|
4470
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4471
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4472
|
+
...(input.EwsProvider != null && {
|
|
4473
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
4474
|
+
}),
|
|
4475
|
+
...(input.LambdaProvider != null && {
|
|
4476
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
4477
|
+
}),
|
|
4478
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4133
4479
|
};
|
|
4134
4480
|
};
|
|
4135
4481
|
const serializeAws_json1_1CreateGroupRequest = (input, context) => {
|
|
4136
4482
|
return {
|
|
4137
|
-
...(input.Name
|
|
4138
|
-
...(input.OrganizationId
|
|
4139
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4483
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4484
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4140
4485
|
};
|
|
4141
4486
|
};
|
|
4142
4487
|
const serializeAws_json1_1CreateMobileDeviceAccessRuleRequest = (input, context) => {
|
|
4143
4488
|
var _a;
|
|
4144
4489
|
return {
|
|
4145
4490
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4146
|
-
...(input.Description
|
|
4147
|
-
...(input.DeviceModels
|
|
4148
|
-
input.DeviceModels !== null && {
|
|
4491
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4492
|
+
...(input.DeviceModels != null && {
|
|
4149
4493
|
DeviceModels: serializeAws_json1_1DeviceModelList(input.DeviceModels, context),
|
|
4150
4494
|
}),
|
|
4151
|
-
...(input.DeviceOperatingSystems
|
|
4152
|
-
input.DeviceOperatingSystems !== null && {
|
|
4495
|
+
...(input.DeviceOperatingSystems != null && {
|
|
4153
4496
|
DeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.DeviceOperatingSystems, context),
|
|
4154
4497
|
}),
|
|
4155
|
-
...(input.DeviceTypes
|
|
4156
|
-
|
|
4157
|
-
...(input.DeviceUserAgents !== undefined &&
|
|
4158
|
-
input.DeviceUserAgents !== null && {
|
|
4498
|
+
...(input.DeviceTypes != null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) }),
|
|
4499
|
+
...(input.DeviceUserAgents != null && {
|
|
4159
4500
|
DeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.DeviceUserAgents, context),
|
|
4160
4501
|
}),
|
|
4161
|
-
...(input.Effect
|
|
4162
|
-
...(input.Name
|
|
4163
|
-
...(input.NotDeviceModels
|
|
4164
|
-
input.NotDeviceModels !== null && {
|
|
4502
|
+
...(input.Effect != null && { Effect: input.Effect }),
|
|
4503
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4504
|
+
...(input.NotDeviceModels != null && {
|
|
4165
4505
|
NotDeviceModels: serializeAws_json1_1DeviceModelList(input.NotDeviceModels, context),
|
|
4166
4506
|
}),
|
|
4167
|
-
...(input.NotDeviceOperatingSystems
|
|
4168
|
-
input.NotDeviceOperatingSystems !== null && {
|
|
4507
|
+
...(input.NotDeviceOperatingSystems != null && {
|
|
4169
4508
|
NotDeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.NotDeviceOperatingSystems, context),
|
|
4170
4509
|
}),
|
|
4171
|
-
...(input.NotDeviceTypes
|
|
4172
|
-
input.NotDeviceTypes !== null && {
|
|
4510
|
+
...(input.NotDeviceTypes != null && {
|
|
4173
4511
|
NotDeviceTypes: serializeAws_json1_1DeviceTypeList(input.NotDeviceTypes, context),
|
|
4174
4512
|
}),
|
|
4175
|
-
...(input.NotDeviceUserAgents
|
|
4176
|
-
input.NotDeviceUserAgents !== null && {
|
|
4513
|
+
...(input.NotDeviceUserAgents != null && {
|
|
4177
4514
|
NotDeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.NotDeviceUserAgents, context),
|
|
4178
4515
|
}),
|
|
4179
|
-
...(input.OrganizationId
|
|
4180
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4516
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4181
4517
|
};
|
|
4182
4518
|
};
|
|
4183
4519
|
const serializeAws_json1_1CreateOrganizationRequest = (input, context) => {
|
|
4184
4520
|
var _a;
|
|
4185
4521
|
return {
|
|
4186
|
-
...(input.Alias
|
|
4522
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
4187
4523
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4188
|
-
...(input.DirectoryId
|
|
4189
|
-
...(input.Domains
|
|
4190
|
-
|
|
4191
|
-
...(input.
|
|
4192
|
-
input.EnableInteroperability !== null && { EnableInteroperability: input.EnableInteroperability }),
|
|
4193
|
-
...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
|
|
4524
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4525
|
+
...(input.Domains != null && { Domains: serializeAws_json1_1Domains(input.Domains, context) }),
|
|
4526
|
+
...(input.EnableInteroperability != null && { EnableInteroperability: input.EnableInteroperability }),
|
|
4527
|
+
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
4194
4528
|
};
|
|
4195
4529
|
};
|
|
4196
4530
|
const serializeAws_json1_1CreateResourceRequest = (input, context) => {
|
|
4197
4531
|
return {
|
|
4198
|
-
...(input.Name
|
|
4199
|
-
...(input.OrganizationId
|
|
4200
|
-
|
|
4201
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
4532
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4533
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4534
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4202
4535
|
};
|
|
4203
4536
|
};
|
|
4204
4537
|
const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
4205
4538
|
return {
|
|
4206
|
-
...(input.DisplayName
|
|
4207
|
-
...(input.Name
|
|
4208
|
-
...(input.OrganizationId
|
|
4209
|
-
|
|
4210
|
-
...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
|
|
4539
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
4540
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4541
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4542
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4211
4543
|
};
|
|
4212
4544
|
};
|
|
4213
4545
|
const serializeAws_json1_1DeleteAccessControlRuleRequest = (input, context) => {
|
|
4214
4546
|
return {
|
|
4215
|
-
...(input.Name
|
|
4216
|
-
...(input.OrganizationId
|
|
4217
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4547
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4548
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4218
4549
|
};
|
|
4219
4550
|
};
|
|
4220
4551
|
const serializeAws_json1_1DeleteAliasRequest = (input, context) => {
|
|
4221
4552
|
return {
|
|
4222
|
-
...(input.Alias
|
|
4223
|
-
...(input.EntityId
|
|
4224
|
-
...(input.OrganizationId
|
|
4225
|
-
|
|
4553
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
4554
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4555
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4556
|
+
};
|
|
4557
|
+
};
|
|
4558
|
+
const serializeAws_json1_1DeleteAvailabilityConfigurationRequest = (input, context) => {
|
|
4559
|
+
return {
|
|
4560
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4561
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4226
4562
|
};
|
|
4227
4563
|
};
|
|
4228
4564
|
const serializeAws_json1_1DeleteEmailMonitoringConfigurationRequest = (input, context) => {
|
|
4229
4565
|
return {
|
|
4230
|
-
...(input.OrganizationId
|
|
4231
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4566
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4232
4567
|
};
|
|
4233
4568
|
};
|
|
4234
4569
|
const serializeAws_json1_1DeleteGroupRequest = (input, context) => {
|
|
4235
4570
|
return {
|
|
4236
|
-
...(input.GroupId
|
|
4237
|
-
...(input.OrganizationId
|
|
4238
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4571
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4572
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4239
4573
|
};
|
|
4240
4574
|
};
|
|
4241
4575
|
const serializeAws_json1_1DeleteMailboxPermissionsRequest = (input, context) => {
|
|
4242
4576
|
return {
|
|
4243
|
-
...(input.EntityId
|
|
4244
|
-
...(input.GranteeId
|
|
4245
|
-
...(input.OrganizationId
|
|
4246
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4577
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4578
|
+
...(input.GranteeId != null && { GranteeId: input.GranteeId }),
|
|
4579
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4247
4580
|
};
|
|
4248
4581
|
};
|
|
4249
4582
|
const serializeAws_json1_1DeleteMobileDeviceAccessOverrideRequest = (input, context) => {
|
|
4250
4583
|
return {
|
|
4251
|
-
...(input.DeviceId
|
|
4252
|
-
...(input.OrganizationId
|
|
4253
|
-
|
|
4254
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4584
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
4585
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4586
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4255
4587
|
};
|
|
4256
4588
|
};
|
|
4257
4589
|
const serializeAws_json1_1DeleteMobileDeviceAccessRuleRequest = (input, context) => {
|
|
4258
4590
|
return {
|
|
4259
|
-
...(input.MobileDeviceAccessRuleId
|
|
4260
|
-
|
|
4261
|
-
...(input.OrganizationId !== undefined &&
|
|
4262
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4591
|
+
...(input.MobileDeviceAccessRuleId != null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId }),
|
|
4592
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4263
4593
|
};
|
|
4264
4594
|
};
|
|
4265
4595
|
const serializeAws_json1_1DeleteOrganizationRequest = (input, context) => {
|
|
4266
4596
|
var _a;
|
|
4267
4597
|
return {
|
|
4268
4598
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4269
|
-
...(input.DeleteDirectory
|
|
4270
|
-
|
|
4271
|
-
...(input.OrganizationId !== undefined &&
|
|
4272
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4599
|
+
...(input.DeleteDirectory != null && { DeleteDirectory: input.DeleteDirectory }),
|
|
4600
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4273
4601
|
};
|
|
4274
4602
|
};
|
|
4275
4603
|
const serializeAws_json1_1DeleteResourceRequest = (input, context) => {
|
|
4276
4604
|
return {
|
|
4277
|
-
...(input.OrganizationId
|
|
4278
|
-
|
|
4279
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4605
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4606
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4280
4607
|
};
|
|
4281
4608
|
};
|
|
4282
4609
|
const serializeAws_json1_1DeleteRetentionPolicyRequest = (input, context) => {
|
|
4283
4610
|
return {
|
|
4284
|
-
...(input.Id
|
|
4285
|
-
...(input.OrganizationId
|
|
4286
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4611
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4612
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4287
4613
|
};
|
|
4288
4614
|
};
|
|
4289
4615
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
4290
4616
|
return {
|
|
4291
|
-
...(input.OrganizationId
|
|
4292
|
-
|
|
4293
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4617
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4618
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4294
4619
|
};
|
|
4295
4620
|
};
|
|
4296
4621
|
const serializeAws_json1_1DeregisterFromWorkMailRequest = (input, context) => {
|
|
4297
4622
|
return {
|
|
4298
|
-
...(input.EntityId
|
|
4299
|
-
...(input.OrganizationId
|
|
4300
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4623
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4624
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4301
4625
|
};
|
|
4302
4626
|
};
|
|
4303
4627
|
const serializeAws_json1_1DeregisterMailDomainRequest = (input, context) => {
|
|
4304
4628
|
return {
|
|
4305
|
-
...(input.DomainName
|
|
4306
|
-
...(input.OrganizationId
|
|
4307
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4629
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4630
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4308
4631
|
};
|
|
4309
4632
|
};
|
|
4310
4633
|
const serializeAws_json1_1DescribeEmailMonitoringConfigurationRequest = (input, context) => {
|
|
4311
4634
|
return {
|
|
4312
|
-
...(input.OrganizationId
|
|
4313
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4635
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4314
4636
|
};
|
|
4315
4637
|
};
|
|
4316
4638
|
const serializeAws_json1_1DescribeGroupRequest = (input, context) => {
|
|
4317
4639
|
return {
|
|
4318
|
-
...(input.GroupId
|
|
4319
|
-
...(input.OrganizationId
|
|
4320
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4640
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4641
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4321
4642
|
};
|
|
4322
4643
|
};
|
|
4323
4644
|
const serializeAws_json1_1DescribeInboundDmarcSettingsRequest = (input, context) => {
|
|
4324
4645
|
return {
|
|
4325
|
-
...(input.OrganizationId
|
|
4326
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4646
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4327
4647
|
};
|
|
4328
4648
|
};
|
|
4329
4649
|
const serializeAws_json1_1DescribeMailboxExportJobRequest = (input, context) => {
|
|
4330
4650
|
return {
|
|
4331
|
-
...(input.JobId
|
|
4332
|
-
...(input.OrganizationId
|
|
4333
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4651
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4652
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4334
4653
|
};
|
|
4335
4654
|
};
|
|
4336
4655
|
const serializeAws_json1_1DescribeOrganizationRequest = (input, context) => {
|
|
4337
4656
|
return {
|
|
4338
|
-
...(input.OrganizationId
|
|
4339
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4657
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4340
4658
|
};
|
|
4341
4659
|
};
|
|
4342
4660
|
const serializeAws_json1_1DescribeResourceRequest = (input, context) => {
|
|
4343
4661
|
return {
|
|
4344
|
-
...(input.OrganizationId
|
|
4345
|
-
|
|
4346
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4662
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4663
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4347
4664
|
};
|
|
4348
4665
|
};
|
|
4349
4666
|
const serializeAws_json1_1DescribeUserRequest = (input, context) => {
|
|
4350
4667
|
return {
|
|
4351
|
-
...(input.OrganizationId
|
|
4352
|
-
|
|
4353
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4668
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4669
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4354
4670
|
};
|
|
4355
4671
|
};
|
|
4356
4672
|
const serializeAws_json1_1DeviceModelList = (input, context) => {
|
|
@@ -4395,24 +4711,22 @@ const serializeAws_json1_1DeviceUserAgentList = (input, context) => {
|
|
|
4395
4711
|
};
|
|
4396
4712
|
const serializeAws_json1_1DisassociateDelegateFromResourceRequest = (input, context) => {
|
|
4397
4713
|
return {
|
|
4398
|
-
...(input.EntityId
|
|
4399
|
-
...(input.OrganizationId
|
|
4400
|
-
|
|
4401
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4714
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4715
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4716
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4402
4717
|
};
|
|
4403
4718
|
};
|
|
4404
4719
|
const serializeAws_json1_1DisassociateMemberFromGroupRequest = (input, context) => {
|
|
4405
4720
|
return {
|
|
4406
|
-
...(input.GroupId
|
|
4407
|
-
...(input.MemberId
|
|
4408
|
-
...(input.OrganizationId
|
|
4409
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4721
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4722
|
+
...(input.MemberId != null && { MemberId: input.MemberId }),
|
|
4723
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4410
4724
|
};
|
|
4411
4725
|
};
|
|
4412
4726
|
const serializeAws_json1_1Domain = (input, context) => {
|
|
4413
4727
|
return {
|
|
4414
|
-
...(input.DomainName
|
|
4415
|
-
...(input.HostedZoneId
|
|
4728
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4729
|
+
...(input.HostedZoneId != null && { HostedZoneId: input.HostedZoneId }),
|
|
4416
4730
|
};
|
|
4417
4731
|
};
|
|
4418
4732
|
const serializeAws_json1_1Domains = (input, context) => {
|
|
@@ -4425,11 +4739,18 @@ const serializeAws_json1_1Domains = (input, context) => {
|
|
|
4425
4739
|
return serializeAws_json1_1Domain(entry, context);
|
|
4426
4740
|
});
|
|
4427
4741
|
};
|
|
4742
|
+
const serializeAws_json1_1EwsAvailabilityProvider = (input, context) => {
|
|
4743
|
+
return {
|
|
4744
|
+
...(input.EwsEndpoint != null && { EwsEndpoint: input.EwsEndpoint }),
|
|
4745
|
+
...(input.EwsPassword != null && { EwsPassword: input.EwsPassword }),
|
|
4746
|
+
...(input.EwsUsername != null && { EwsUsername: input.EwsUsername }),
|
|
4747
|
+
};
|
|
4748
|
+
};
|
|
4428
4749
|
const serializeAws_json1_1FolderConfiguration = (input, context) => {
|
|
4429
4750
|
return {
|
|
4430
|
-
...(input.Action
|
|
4431
|
-
...(input.Name
|
|
4432
|
-
...(input.Period
|
|
4751
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4752
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4753
|
+
...(input.Period != null && { Period: input.Period }),
|
|
4433
4754
|
};
|
|
4434
4755
|
};
|
|
4435
4756
|
const serializeAws_json1_1FolderConfigurations = (input, context) => {
|
|
@@ -4444,51 +4765,43 @@ const serializeAws_json1_1FolderConfigurations = (input, context) => {
|
|
|
4444
4765
|
};
|
|
4445
4766
|
const serializeAws_json1_1GetAccessControlEffectRequest = (input, context) => {
|
|
4446
4767
|
return {
|
|
4447
|
-
...(input.Action
|
|
4448
|
-
...(input.IpAddress
|
|
4449
|
-
...(input.OrganizationId
|
|
4450
|
-
|
|
4451
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4768
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4769
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
4770
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4771
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4452
4772
|
};
|
|
4453
4773
|
};
|
|
4454
4774
|
const serializeAws_json1_1GetDefaultRetentionPolicyRequest = (input, context) => {
|
|
4455
4775
|
return {
|
|
4456
|
-
...(input.OrganizationId
|
|
4457
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4776
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4458
4777
|
};
|
|
4459
4778
|
};
|
|
4460
4779
|
const serializeAws_json1_1GetMailboxDetailsRequest = (input, context) => {
|
|
4461
4780
|
return {
|
|
4462
|
-
...(input.OrganizationId
|
|
4463
|
-
|
|
4464
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4781
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4782
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4465
4783
|
};
|
|
4466
4784
|
};
|
|
4467
4785
|
const serializeAws_json1_1GetMailDomainRequest = (input, context) => {
|
|
4468
4786
|
return {
|
|
4469
|
-
...(input.DomainName
|
|
4470
|
-
...(input.OrganizationId
|
|
4471
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4787
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4788
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4472
4789
|
};
|
|
4473
4790
|
};
|
|
4474
4791
|
const serializeAws_json1_1GetMobileDeviceAccessEffectRequest = (input, context) => {
|
|
4475
4792
|
return {
|
|
4476
|
-
...(input.DeviceModel
|
|
4477
|
-
...(input.DeviceOperatingSystem
|
|
4478
|
-
|
|
4479
|
-
...(input.
|
|
4480
|
-
...(input.
|
|
4481
|
-
input.DeviceUserAgent !== null && { DeviceUserAgent: input.DeviceUserAgent }),
|
|
4482
|
-
...(input.OrganizationId !== undefined &&
|
|
4483
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4793
|
+
...(input.DeviceModel != null && { DeviceModel: input.DeviceModel }),
|
|
4794
|
+
...(input.DeviceOperatingSystem != null && { DeviceOperatingSystem: input.DeviceOperatingSystem }),
|
|
4795
|
+
...(input.DeviceType != null && { DeviceType: input.DeviceType }),
|
|
4796
|
+
...(input.DeviceUserAgent != null && { DeviceUserAgent: input.DeviceUserAgent }),
|
|
4797
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4484
4798
|
};
|
|
4485
4799
|
};
|
|
4486
4800
|
const serializeAws_json1_1GetMobileDeviceAccessOverrideRequest = (input, context) => {
|
|
4487
4801
|
return {
|
|
4488
|
-
...(input.DeviceId
|
|
4489
|
-
...(input.OrganizationId
|
|
4490
|
-
|
|
4491
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4802
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
4803
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4804
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4492
4805
|
};
|
|
4493
4806
|
};
|
|
4494
4807
|
const serializeAws_json1_1IpRangeList = (input, context) => {
|
|
@@ -4501,113 +4814,113 @@ const serializeAws_json1_1IpRangeList = (input, context) => {
|
|
|
4501
4814
|
return entry;
|
|
4502
4815
|
});
|
|
4503
4816
|
};
|
|
4817
|
+
const serializeAws_json1_1LambdaAvailabilityProvider = (input, context) => {
|
|
4818
|
+
return {
|
|
4819
|
+
...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
|
|
4820
|
+
};
|
|
4821
|
+
};
|
|
4504
4822
|
const serializeAws_json1_1ListAccessControlRulesRequest = (input, context) => {
|
|
4505
4823
|
return {
|
|
4506
|
-
...(input.OrganizationId
|
|
4507
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4824
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4508
4825
|
};
|
|
4509
4826
|
};
|
|
4510
4827
|
const serializeAws_json1_1ListAliasesRequest = (input, context) => {
|
|
4511
4828
|
return {
|
|
4512
|
-
...(input.EntityId
|
|
4513
|
-
...(input.MaxResults
|
|
4514
|
-
...(input.NextToken
|
|
4515
|
-
...(input.OrganizationId
|
|
4516
|
-
|
|
4829
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4830
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4831
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4832
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4833
|
+
};
|
|
4834
|
+
};
|
|
4835
|
+
const serializeAws_json1_1ListAvailabilityConfigurationsRequest = (input, context) => {
|
|
4836
|
+
return {
|
|
4837
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4838
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4839
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4517
4840
|
};
|
|
4518
4841
|
};
|
|
4519
4842
|
const serializeAws_json1_1ListGroupMembersRequest = (input, context) => {
|
|
4520
4843
|
return {
|
|
4521
|
-
...(input.GroupId
|
|
4522
|
-
...(input.MaxResults
|
|
4523
|
-
...(input.NextToken
|
|
4524
|
-
...(input.OrganizationId
|
|
4525
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4844
|
+
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
4845
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4846
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4847
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4526
4848
|
};
|
|
4527
4849
|
};
|
|
4528
4850
|
const serializeAws_json1_1ListGroupsRequest = (input, context) => {
|
|
4529
4851
|
return {
|
|
4530
|
-
...(input.MaxResults
|
|
4531
|
-
...(input.NextToken
|
|
4532
|
-
...(input.OrganizationId
|
|
4533
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4852
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4853
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4854
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4534
4855
|
};
|
|
4535
4856
|
};
|
|
4536
4857
|
const serializeAws_json1_1ListMailboxExportJobsRequest = (input, context) => {
|
|
4537
4858
|
return {
|
|
4538
|
-
...(input.MaxResults
|
|
4539
|
-
...(input.NextToken
|
|
4540
|
-
...(input.OrganizationId
|
|
4541
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4859
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4860
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4861
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4542
4862
|
};
|
|
4543
4863
|
};
|
|
4544
4864
|
const serializeAws_json1_1ListMailboxPermissionsRequest = (input, context) => {
|
|
4545
4865
|
return {
|
|
4546
|
-
...(input.EntityId
|
|
4547
|
-
...(input.MaxResults
|
|
4548
|
-
...(input.NextToken
|
|
4549
|
-
...(input.OrganizationId
|
|
4550
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4866
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4867
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4868
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4869
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4551
4870
|
};
|
|
4552
4871
|
};
|
|
4553
4872
|
const serializeAws_json1_1ListMailDomainsRequest = (input, context) => {
|
|
4554
4873
|
return {
|
|
4555
|
-
...(input.MaxResults
|
|
4556
|
-
...(input.NextToken
|
|
4557
|
-
...(input.OrganizationId
|
|
4558
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4874
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4875
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4876
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4559
4877
|
};
|
|
4560
4878
|
};
|
|
4561
4879
|
const serializeAws_json1_1ListMobileDeviceAccessOverridesRequest = (input, context) => {
|
|
4562
4880
|
return {
|
|
4563
|
-
...(input.DeviceId
|
|
4564
|
-
...(input.MaxResults
|
|
4565
|
-
...(input.NextToken
|
|
4566
|
-
...(input.OrganizationId
|
|
4567
|
-
|
|
4568
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4881
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
4882
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4883
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4884
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4885
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4569
4886
|
};
|
|
4570
4887
|
};
|
|
4571
4888
|
const serializeAws_json1_1ListMobileDeviceAccessRulesRequest = (input, context) => {
|
|
4572
4889
|
return {
|
|
4573
|
-
...(input.OrganizationId
|
|
4574
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4890
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4575
4891
|
};
|
|
4576
4892
|
};
|
|
4577
4893
|
const serializeAws_json1_1ListOrganizationsRequest = (input, context) => {
|
|
4578
4894
|
return {
|
|
4579
|
-
...(input.MaxResults
|
|
4580
|
-
...(input.NextToken
|
|
4895
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4896
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4581
4897
|
};
|
|
4582
4898
|
};
|
|
4583
4899
|
const serializeAws_json1_1ListResourceDelegatesRequest = (input, context) => {
|
|
4584
4900
|
return {
|
|
4585
|
-
...(input.MaxResults
|
|
4586
|
-
...(input.NextToken
|
|
4587
|
-
...(input.OrganizationId
|
|
4588
|
-
|
|
4589
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4901
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4902
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4903
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4904
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4590
4905
|
};
|
|
4591
4906
|
};
|
|
4592
4907
|
const serializeAws_json1_1ListResourcesRequest = (input, context) => {
|
|
4593
4908
|
return {
|
|
4594
|
-
...(input.MaxResults
|
|
4595
|
-
...(input.NextToken
|
|
4596
|
-
...(input.OrganizationId
|
|
4597
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4909
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4910
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4911
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4598
4912
|
};
|
|
4599
4913
|
};
|
|
4600
4914
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4601
4915
|
return {
|
|
4602
|
-
...(input.ResourceARN
|
|
4916
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
4603
4917
|
};
|
|
4604
4918
|
};
|
|
4605
4919
|
const serializeAws_json1_1ListUsersRequest = (input, context) => {
|
|
4606
4920
|
return {
|
|
4607
|
-
...(input.MaxResults
|
|
4608
|
-
...(input.NextToken
|
|
4609
|
-
...(input.OrganizationId
|
|
4610
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4921
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4922
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4923
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4611
4924
|
};
|
|
4612
4925
|
};
|
|
4613
4926
|
const serializeAws_json1_1PermissionValues = (input, context) => {
|
|
@@ -4622,118 +4935,100 @@ const serializeAws_json1_1PermissionValues = (input, context) => {
|
|
|
4622
4935
|
};
|
|
4623
4936
|
const serializeAws_json1_1PutAccessControlRuleRequest = (input, context) => {
|
|
4624
4937
|
return {
|
|
4625
|
-
...(input.Actions
|
|
4626
|
-
|
|
4627
|
-
...(input.
|
|
4628
|
-
...(input.
|
|
4629
|
-
...(input.
|
|
4630
|
-
|
|
4631
|
-
...(input.
|
|
4632
|
-
...(input.
|
|
4633
|
-
|
|
4634
|
-
...(input.
|
|
4635
|
-
input.NotIpRanges !== null && { NotIpRanges: serializeAws_json1_1IpRangeList(input.NotIpRanges, context) }),
|
|
4636
|
-
...(input.NotUserIds !== undefined &&
|
|
4637
|
-
input.NotUserIds !== null && { NotUserIds: serializeAws_json1_1UserIdList(input.NotUserIds, context) }),
|
|
4638
|
-
...(input.OrganizationId !== undefined &&
|
|
4639
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4640
|
-
...(input.UserIds !== undefined &&
|
|
4641
|
-
input.UserIds !== null && { UserIds: serializeAws_json1_1UserIdList(input.UserIds, context) }),
|
|
4938
|
+
...(input.Actions != null && { Actions: serializeAws_json1_1ActionsList(input.Actions, context) }),
|
|
4939
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4940
|
+
...(input.Effect != null && { Effect: input.Effect }),
|
|
4941
|
+
...(input.IpRanges != null && { IpRanges: serializeAws_json1_1IpRangeList(input.IpRanges, context) }),
|
|
4942
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4943
|
+
...(input.NotActions != null && { NotActions: serializeAws_json1_1ActionsList(input.NotActions, context) }),
|
|
4944
|
+
...(input.NotIpRanges != null && { NotIpRanges: serializeAws_json1_1IpRangeList(input.NotIpRanges, context) }),
|
|
4945
|
+
...(input.NotUserIds != null && { NotUserIds: serializeAws_json1_1UserIdList(input.NotUserIds, context) }),
|
|
4946
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4947
|
+
...(input.UserIds != null && { UserIds: serializeAws_json1_1UserIdList(input.UserIds, context) }),
|
|
4642
4948
|
};
|
|
4643
4949
|
};
|
|
4644
4950
|
const serializeAws_json1_1PutEmailMonitoringConfigurationRequest = (input, context) => {
|
|
4645
4951
|
return {
|
|
4646
|
-
...(input.LogGroupArn
|
|
4647
|
-
...(input.OrganizationId
|
|
4648
|
-
|
|
4649
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
4952
|
+
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
4953
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4954
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
4650
4955
|
};
|
|
4651
4956
|
};
|
|
4652
4957
|
const serializeAws_json1_1PutInboundDmarcSettingsRequest = (input, context) => {
|
|
4653
4958
|
return {
|
|
4654
|
-
...(input.Enforced
|
|
4655
|
-
...(input.OrganizationId
|
|
4656
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4959
|
+
...(input.Enforced != null && { Enforced: input.Enforced }),
|
|
4960
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4657
4961
|
};
|
|
4658
4962
|
};
|
|
4659
4963
|
const serializeAws_json1_1PutMailboxPermissionsRequest = (input, context) => {
|
|
4660
4964
|
return {
|
|
4661
|
-
...(input.EntityId
|
|
4662
|
-
...(input.GranteeId
|
|
4663
|
-
...(input.OrganizationId
|
|
4664
|
-
|
|
4665
|
-
...(input.PermissionValues !== undefined &&
|
|
4666
|
-
input.PermissionValues !== null && {
|
|
4965
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
4966
|
+
...(input.GranteeId != null && { GranteeId: input.GranteeId }),
|
|
4967
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4968
|
+
...(input.PermissionValues != null && {
|
|
4667
4969
|
PermissionValues: serializeAws_json1_1PermissionValues(input.PermissionValues, context),
|
|
4668
4970
|
}),
|
|
4669
4971
|
};
|
|
4670
4972
|
};
|
|
4671
4973
|
const serializeAws_json1_1PutMobileDeviceAccessOverrideRequest = (input, context) => {
|
|
4672
4974
|
return {
|
|
4673
|
-
...(input.Description
|
|
4674
|
-
...(input.DeviceId
|
|
4675
|
-
...(input.Effect
|
|
4676
|
-
...(input.OrganizationId
|
|
4677
|
-
|
|
4678
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
4975
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4976
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
4977
|
+
...(input.Effect != null && { Effect: input.Effect }),
|
|
4978
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4979
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4679
4980
|
};
|
|
4680
4981
|
};
|
|
4681
4982
|
const serializeAws_json1_1PutRetentionPolicyRequest = (input, context) => {
|
|
4682
4983
|
return {
|
|
4683
|
-
...(input.Description
|
|
4684
|
-
...(input.FolderConfigurations
|
|
4685
|
-
input.FolderConfigurations !== null && {
|
|
4984
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4985
|
+
...(input.FolderConfigurations != null && {
|
|
4686
4986
|
FolderConfigurations: serializeAws_json1_1FolderConfigurations(input.FolderConfigurations, context),
|
|
4687
4987
|
}),
|
|
4688
|
-
...(input.Id
|
|
4689
|
-
...(input.Name
|
|
4690
|
-
...(input.OrganizationId
|
|
4691
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4988
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4989
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4990
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4692
4991
|
};
|
|
4693
4992
|
};
|
|
4694
4993
|
const serializeAws_json1_1RegisterMailDomainRequest = (input, context) => {
|
|
4695
4994
|
var _a;
|
|
4696
4995
|
return {
|
|
4697
4996
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4698
|
-
...(input.DomainName
|
|
4699
|
-
...(input.OrganizationId
|
|
4700
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
4997
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
4998
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4701
4999
|
};
|
|
4702
5000
|
};
|
|
4703
5001
|
const serializeAws_json1_1RegisterToWorkMailRequest = (input, context) => {
|
|
4704
5002
|
return {
|
|
4705
|
-
...(input.Email
|
|
4706
|
-
...(input.EntityId
|
|
4707
|
-
...(input.OrganizationId
|
|
4708
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
5003
|
+
...(input.Email != null && { Email: input.Email }),
|
|
5004
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
5005
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4709
5006
|
};
|
|
4710
5007
|
};
|
|
4711
5008
|
const serializeAws_json1_1ResetPasswordRequest = (input, context) => {
|
|
4712
5009
|
return {
|
|
4713
|
-
...(input.OrganizationId
|
|
4714
|
-
|
|
4715
|
-
...(input.
|
|
4716
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
5010
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
5011
|
+
...(input.Password != null && { Password: input.Password }),
|
|
5012
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4717
5013
|
};
|
|
4718
5014
|
};
|
|
4719
5015
|
const serializeAws_json1_1StartMailboxExportJobRequest = (input, context) => {
|
|
4720
5016
|
var _a;
|
|
4721
5017
|
return {
|
|
4722
5018
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4723
|
-
...(input.Description
|
|
4724
|
-
...(input.EntityId
|
|
4725
|
-
...(input.KmsKeyArn
|
|
4726
|
-
...(input.OrganizationId
|
|
4727
|
-
|
|
4728
|
-
...(input.
|
|
4729
|
-
...(input.
|
|
4730
|
-
...(input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }),
|
|
5019
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5020
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
5021
|
+
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
5022
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
5023
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
5024
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
5025
|
+
...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
|
|
4731
5026
|
};
|
|
4732
5027
|
};
|
|
4733
5028
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
4734
5029
|
return {
|
|
4735
|
-
...(input.Key
|
|
4736
|
-
...(input.Value
|
|
5030
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5031
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4737
5032
|
};
|
|
4738
5033
|
};
|
|
4739
5034
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -4758,91 +5053,99 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4758
5053
|
};
|
|
4759
5054
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
4760
5055
|
return {
|
|
4761
|
-
...(input.ResourceARN
|
|
4762
|
-
...(input.Tags
|
|
5056
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5057
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
5058
|
+
};
|
|
5059
|
+
};
|
|
5060
|
+
const serializeAws_json1_1TestAvailabilityConfigurationRequest = (input, context) => {
|
|
5061
|
+
return {
|
|
5062
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
5063
|
+
...(input.EwsProvider != null && {
|
|
5064
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
5065
|
+
}),
|
|
5066
|
+
...(input.LambdaProvider != null && {
|
|
5067
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
5068
|
+
}),
|
|
5069
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4763
5070
|
};
|
|
4764
5071
|
};
|
|
4765
5072
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
4766
5073
|
return {
|
|
4767
|
-
...(input.ResourceARN
|
|
4768
|
-
...(input.TagKeys
|
|
4769
|
-
|
|
5074
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5075
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5076
|
+
};
|
|
5077
|
+
};
|
|
5078
|
+
const serializeAws_json1_1UpdateAvailabilityConfigurationRequest = (input, context) => {
|
|
5079
|
+
return {
|
|
5080
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
5081
|
+
...(input.EwsProvider != null && {
|
|
5082
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
5083
|
+
}),
|
|
5084
|
+
...(input.LambdaProvider != null && {
|
|
5085
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
5086
|
+
}),
|
|
5087
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4770
5088
|
};
|
|
4771
5089
|
};
|
|
4772
5090
|
const serializeAws_json1_1UpdateDefaultMailDomainRequest = (input, context) => {
|
|
4773
5091
|
return {
|
|
4774
|
-
...(input.DomainName
|
|
4775
|
-
...(input.OrganizationId
|
|
4776
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
5092
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
5093
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4777
5094
|
};
|
|
4778
5095
|
};
|
|
4779
5096
|
const serializeAws_json1_1UpdateMailboxQuotaRequest = (input, context) => {
|
|
4780
5097
|
return {
|
|
4781
|
-
...(input.MailboxQuota
|
|
4782
|
-
...(input.OrganizationId
|
|
4783
|
-
|
|
4784
|
-
...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
|
|
5098
|
+
...(input.MailboxQuota != null && { MailboxQuota: input.MailboxQuota }),
|
|
5099
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
5100
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
4785
5101
|
};
|
|
4786
5102
|
};
|
|
4787
5103
|
const serializeAws_json1_1UpdateMobileDeviceAccessRuleRequest = (input, context) => {
|
|
4788
5104
|
return {
|
|
4789
|
-
...(input.Description
|
|
4790
|
-
...(input.DeviceModels
|
|
4791
|
-
input.DeviceModels !== null && {
|
|
5105
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5106
|
+
...(input.DeviceModels != null && {
|
|
4792
5107
|
DeviceModels: serializeAws_json1_1DeviceModelList(input.DeviceModels, context),
|
|
4793
5108
|
}),
|
|
4794
|
-
...(input.DeviceOperatingSystems
|
|
4795
|
-
input.DeviceOperatingSystems !== null && {
|
|
5109
|
+
...(input.DeviceOperatingSystems != null && {
|
|
4796
5110
|
DeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.DeviceOperatingSystems, context),
|
|
4797
5111
|
}),
|
|
4798
|
-
...(input.DeviceTypes
|
|
4799
|
-
|
|
4800
|
-
...(input.DeviceUserAgents !== undefined &&
|
|
4801
|
-
input.DeviceUserAgents !== null && {
|
|
5112
|
+
...(input.DeviceTypes != null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) }),
|
|
5113
|
+
...(input.DeviceUserAgents != null && {
|
|
4802
5114
|
DeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.DeviceUserAgents, context),
|
|
4803
5115
|
}),
|
|
4804
|
-
...(input.Effect
|
|
4805
|
-
...(input.MobileDeviceAccessRuleId
|
|
4806
|
-
|
|
4807
|
-
...(input.
|
|
4808
|
-
...(input.NotDeviceModels !== undefined &&
|
|
4809
|
-
input.NotDeviceModels !== null && {
|
|
5116
|
+
...(input.Effect != null && { Effect: input.Effect }),
|
|
5117
|
+
...(input.MobileDeviceAccessRuleId != null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId }),
|
|
5118
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5119
|
+
...(input.NotDeviceModels != null && {
|
|
4810
5120
|
NotDeviceModels: serializeAws_json1_1DeviceModelList(input.NotDeviceModels, context),
|
|
4811
5121
|
}),
|
|
4812
|
-
...(input.NotDeviceOperatingSystems
|
|
4813
|
-
input.NotDeviceOperatingSystems !== null && {
|
|
5122
|
+
...(input.NotDeviceOperatingSystems != null && {
|
|
4814
5123
|
NotDeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.NotDeviceOperatingSystems, context),
|
|
4815
5124
|
}),
|
|
4816
|
-
...(input.NotDeviceTypes
|
|
4817
|
-
input.NotDeviceTypes !== null && {
|
|
5125
|
+
...(input.NotDeviceTypes != null && {
|
|
4818
5126
|
NotDeviceTypes: serializeAws_json1_1DeviceTypeList(input.NotDeviceTypes, context),
|
|
4819
5127
|
}),
|
|
4820
|
-
...(input.NotDeviceUserAgents
|
|
4821
|
-
input.NotDeviceUserAgents !== null && {
|
|
5128
|
+
...(input.NotDeviceUserAgents != null && {
|
|
4822
5129
|
NotDeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.NotDeviceUserAgents, context),
|
|
4823
5130
|
}),
|
|
4824
|
-
...(input.OrganizationId
|
|
4825
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
5131
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4826
5132
|
};
|
|
4827
5133
|
};
|
|
4828
5134
|
const serializeAws_json1_1UpdatePrimaryEmailAddressRequest = (input, context) => {
|
|
4829
5135
|
return {
|
|
4830
|
-
...(input.Email
|
|
4831
|
-
...(input.EntityId
|
|
4832
|
-
...(input.OrganizationId
|
|
4833
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }),
|
|
5136
|
+
...(input.Email != null && { Email: input.Email }),
|
|
5137
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
5138
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
4834
5139
|
};
|
|
4835
5140
|
};
|
|
4836
5141
|
const serializeAws_json1_1UpdateResourceRequest = (input, context) => {
|
|
4837
5142
|
return {
|
|
4838
|
-
...(input.BookingOptions
|
|
4839
|
-
input.BookingOptions !== null && {
|
|
5143
|
+
...(input.BookingOptions != null && {
|
|
4840
5144
|
BookingOptions: serializeAws_json1_1BookingOptions(input.BookingOptions, context),
|
|
4841
5145
|
}),
|
|
4842
|
-
...(input.Name
|
|
4843
|
-
...(input.OrganizationId
|
|
4844
|
-
|
|
4845
|
-
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
5146
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5147
|
+
...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
|
|
5148
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4846
5149
|
};
|
|
4847
5150
|
};
|
|
4848
5151
|
const serializeAws_json1_1UserIdList = (input, context) => {
|
|
@@ -4857,33 +5160,21 @@ const serializeAws_json1_1UserIdList = (input, context) => {
|
|
|
4857
5160
|
};
|
|
4858
5161
|
const deserializeAws_json1_1AccessControlRule = (output, context) => {
|
|
4859
5162
|
return {
|
|
4860
|
-
Actions: output.Actions
|
|
4861
|
-
|
|
4862
|
-
: undefined,
|
|
4863
|
-
DateCreated: output.DateCreated !== undefined && output.DateCreated !== null
|
|
5163
|
+
Actions: output.Actions != null ? deserializeAws_json1_1ActionsList(output.Actions, context) : undefined,
|
|
5164
|
+
DateCreated: output.DateCreated != null
|
|
4864
5165
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
4865
5166
|
: undefined,
|
|
4866
|
-
DateModified: output.DateModified
|
|
5167
|
+
DateModified: output.DateModified != null
|
|
4867
5168
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
4868
5169
|
: undefined,
|
|
4869
5170
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4870
5171
|
Effect: (0, smithy_client_1.expectString)(output.Effect),
|
|
4871
|
-
IpRanges: output.IpRanges
|
|
4872
|
-
? deserializeAws_json1_1IpRangeList(output.IpRanges, context)
|
|
4873
|
-
: undefined,
|
|
5172
|
+
IpRanges: output.IpRanges != null ? deserializeAws_json1_1IpRangeList(output.IpRanges, context) : undefined,
|
|
4874
5173
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4875
|
-
NotActions: output.NotActions
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
? deserializeAws_json1_1IpRangeList(output.NotIpRanges, context)
|
|
4880
|
-
: undefined,
|
|
4881
|
-
NotUserIds: output.NotUserIds !== undefined && output.NotUserIds !== null
|
|
4882
|
-
? deserializeAws_json1_1UserIdList(output.NotUserIds, context)
|
|
4883
|
-
: undefined,
|
|
4884
|
-
UserIds: output.UserIds !== undefined && output.UserIds !== null
|
|
4885
|
-
? deserializeAws_json1_1UserIdList(output.UserIds, context)
|
|
4886
|
-
: undefined,
|
|
5174
|
+
NotActions: output.NotActions != null ? deserializeAws_json1_1ActionsList(output.NotActions, context) : undefined,
|
|
5175
|
+
NotIpRanges: output.NotIpRanges != null ? deserializeAws_json1_1IpRangeList(output.NotIpRanges, context) : undefined,
|
|
5176
|
+
NotUserIds: output.NotUserIds != null ? deserializeAws_json1_1UserIdList(output.NotUserIds, context) : undefined,
|
|
5177
|
+
UserIds: output.UserIds != null ? deserializeAws_json1_1UserIdList(output.UserIds, context) : undefined,
|
|
4887
5178
|
};
|
|
4888
5179
|
};
|
|
4889
5180
|
const deserializeAws_json1_1AccessControlRuleNameList = (output, context) => {
|
|
@@ -4936,6 +5227,35 @@ const deserializeAws_json1_1AssociateDelegateToResourceResponse = (output, conte
|
|
|
4936
5227
|
const deserializeAws_json1_1AssociateMemberToGroupResponse = (output, context) => {
|
|
4937
5228
|
return {};
|
|
4938
5229
|
};
|
|
5230
|
+
const deserializeAws_json1_1AvailabilityConfiguration = (output, context) => {
|
|
5231
|
+
return {
|
|
5232
|
+
DateCreated: output.DateCreated != null
|
|
5233
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
5234
|
+
: undefined,
|
|
5235
|
+
DateModified: output.DateModified != null
|
|
5236
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
5237
|
+
: undefined,
|
|
5238
|
+
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
5239
|
+
EwsProvider: output.EwsProvider != null
|
|
5240
|
+
? deserializeAws_json1_1RedactedEwsAvailabilityProvider(output.EwsProvider, context)
|
|
5241
|
+
: undefined,
|
|
5242
|
+
LambdaProvider: output.LambdaProvider != null
|
|
5243
|
+
? deserializeAws_json1_1LambdaAvailabilityProvider(output.LambdaProvider, context)
|
|
5244
|
+
: undefined,
|
|
5245
|
+
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
5246
|
+
};
|
|
5247
|
+
};
|
|
5248
|
+
const deserializeAws_json1_1AvailabilityConfigurationList = (output, context) => {
|
|
5249
|
+
const retVal = (output || [])
|
|
5250
|
+
.filter((e) => e != null)
|
|
5251
|
+
.map((entry) => {
|
|
5252
|
+
if (entry === null) {
|
|
5253
|
+
return null;
|
|
5254
|
+
}
|
|
5255
|
+
return deserializeAws_json1_1AvailabilityConfiguration(entry, context);
|
|
5256
|
+
});
|
|
5257
|
+
return retVal;
|
|
5258
|
+
};
|
|
4939
5259
|
const deserializeAws_json1_1BookingOptions = (output, context) => {
|
|
4940
5260
|
return {
|
|
4941
5261
|
AutoAcceptRequests: (0, smithy_client_1.expectBoolean)(output.AutoAcceptRequests),
|
|
@@ -4949,6 +5269,9 @@ const deserializeAws_json1_1CancelMailboxExportJobResponse = (output, context) =
|
|
|
4949
5269
|
const deserializeAws_json1_1CreateAliasResponse = (output, context) => {
|
|
4950
5270
|
return {};
|
|
4951
5271
|
};
|
|
5272
|
+
const deserializeAws_json1_1CreateAvailabilityConfigurationResponse = (output, context) => {
|
|
5273
|
+
return {};
|
|
5274
|
+
};
|
|
4952
5275
|
const deserializeAws_json1_1CreateGroupResponse = (output, context) => {
|
|
4953
5276
|
return {
|
|
4954
5277
|
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
@@ -4986,6 +5309,9 @@ const deserializeAws_json1_1DeleteAccessControlRuleResponse = (output, context)
|
|
|
4986
5309
|
const deserializeAws_json1_1DeleteAliasResponse = (output, context) => {
|
|
4987
5310
|
return {};
|
|
4988
5311
|
};
|
|
5312
|
+
const deserializeAws_json1_1DeleteAvailabilityConfigurationResponse = (output, context) => {
|
|
5313
|
+
return {};
|
|
5314
|
+
};
|
|
4989
5315
|
const deserializeAws_json1_1DeleteEmailMonitoringConfigurationResponse = (output, context) => {
|
|
4990
5316
|
return {};
|
|
4991
5317
|
};
|
|
@@ -5030,11 +5356,11 @@ const deserializeAws_json1_1DescribeEmailMonitoringConfigurationResponse = (outp
|
|
|
5030
5356
|
};
|
|
5031
5357
|
const deserializeAws_json1_1DescribeGroupResponse = (output, context) => {
|
|
5032
5358
|
return {
|
|
5033
|
-
DisabledDate: output.DisabledDate
|
|
5359
|
+
DisabledDate: output.DisabledDate != null
|
|
5034
5360
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5035
5361
|
: undefined,
|
|
5036
5362
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5037
|
-
EnabledDate: output.EnabledDate
|
|
5363
|
+
EnabledDate: output.EnabledDate != null
|
|
5038
5364
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5039
5365
|
: undefined,
|
|
5040
5366
|
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
@@ -5050,9 +5376,7 @@ const deserializeAws_json1_1DescribeInboundDmarcSettingsResponse = (output, cont
|
|
|
5050
5376
|
const deserializeAws_json1_1DescribeMailboxExportJobResponse = (output, context) => {
|
|
5051
5377
|
return {
|
|
5052
5378
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5053
|
-
EndTime: output.EndTime
|
|
5054
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
5055
|
-
: undefined,
|
|
5379
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5056
5380
|
EntityId: (0, smithy_client_1.expectString)(output.EntityId),
|
|
5057
5381
|
ErrorInfo: (0, smithy_client_1.expectString)(output.ErrorInfo),
|
|
5058
5382
|
EstimatedProgress: (0, smithy_client_1.expectInt32)(output.EstimatedProgress),
|
|
@@ -5061,9 +5385,7 @@ const deserializeAws_json1_1DescribeMailboxExportJobResponse = (output, context)
|
|
|
5061
5385
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
5062
5386
|
S3Path: (0, smithy_client_1.expectString)(output.S3Path),
|
|
5063
5387
|
S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix),
|
|
5064
|
-
StartTime: output.StartTime
|
|
5065
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
5066
|
-
: undefined,
|
|
5388
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
5067
5389
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5068
5390
|
};
|
|
5069
5391
|
};
|
|
@@ -5071,7 +5393,7 @@ const deserializeAws_json1_1DescribeOrganizationResponse = (output, context) =>
|
|
|
5071
5393
|
return {
|
|
5072
5394
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
5073
5395
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
5074
|
-
CompletedDate: output.CompletedDate
|
|
5396
|
+
CompletedDate: output.CompletedDate != null
|
|
5075
5397
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletedDate)))
|
|
5076
5398
|
: undefined,
|
|
5077
5399
|
DefaultMailDomain: (0, smithy_client_1.expectString)(output.DefaultMailDomain),
|
|
@@ -5084,14 +5406,12 @@ const deserializeAws_json1_1DescribeOrganizationResponse = (output, context) =>
|
|
|
5084
5406
|
};
|
|
5085
5407
|
const deserializeAws_json1_1DescribeResourceResponse = (output, context) => {
|
|
5086
5408
|
return {
|
|
5087
|
-
BookingOptions: output.BookingOptions
|
|
5088
|
-
|
|
5089
|
-
: undefined,
|
|
5090
|
-
DisabledDate: output.DisabledDate !== undefined && output.DisabledDate !== null
|
|
5409
|
+
BookingOptions: output.BookingOptions != null ? deserializeAws_json1_1BookingOptions(output.BookingOptions, context) : undefined,
|
|
5410
|
+
DisabledDate: output.DisabledDate != null
|
|
5091
5411
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5092
5412
|
: undefined,
|
|
5093
5413
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5094
|
-
EnabledDate: output.EnabledDate
|
|
5414
|
+
EnabledDate: output.EnabledDate != null
|
|
5095
5415
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5096
5416
|
: undefined,
|
|
5097
5417
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -5102,12 +5422,12 @@ const deserializeAws_json1_1DescribeResourceResponse = (output, context) => {
|
|
|
5102
5422
|
};
|
|
5103
5423
|
const deserializeAws_json1_1DescribeUserResponse = (output, context) => {
|
|
5104
5424
|
return {
|
|
5105
|
-
DisabledDate: output.DisabledDate
|
|
5425
|
+
DisabledDate: output.DisabledDate != null
|
|
5106
5426
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5107
5427
|
: undefined,
|
|
5108
5428
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5109
5429
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5110
|
-
EnabledDate: output.EnabledDate
|
|
5430
|
+
EnabledDate: output.EnabledDate != null
|
|
5111
5431
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5112
5432
|
: undefined,
|
|
5113
5433
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -5240,7 +5560,7 @@ const deserializeAws_json1_1FolderConfigurations = (output, context) => {
|
|
|
5240
5560
|
const deserializeAws_json1_1GetAccessControlEffectResponse = (output, context) => {
|
|
5241
5561
|
return {
|
|
5242
5562
|
Effect: (0, smithy_client_1.expectString)(output.Effect),
|
|
5243
|
-
MatchedRules: output.MatchedRules
|
|
5563
|
+
MatchedRules: output.MatchedRules != null
|
|
5244
5564
|
? deserializeAws_json1_1AccessControlRuleNameList(output.MatchedRules, context)
|
|
5245
5565
|
: undefined,
|
|
5246
5566
|
};
|
|
@@ -5248,7 +5568,7 @@ const deserializeAws_json1_1GetAccessControlEffectResponse = (output, context) =
|
|
|
5248
5568
|
const deserializeAws_json1_1GetDefaultRetentionPolicyResponse = (output, context) => {
|
|
5249
5569
|
return {
|
|
5250
5570
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5251
|
-
FolderConfigurations: output.FolderConfigurations
|
|
5571
|
+
FolderConfigurations: output.FolderConfigurations != null
|
|
5252
5572
|
? deserializeAws_json1_1FolderConfigurations(output.FolderConfigurations, context)
|
|
5253
5573
|
: undefined,
|
|
5254
5574
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -5267,25 +5587,23 @@ const deserializeAws_json1_1GetMailDomainResponse = (output, context) => {
|
|
|
5267
5587
|
IsDefault: (0, smithy_client_1.expectBoolean)(output.IsDefault),
|
|
5268
5588
|
IsTestDomain: (0, smithy_client_1.expectBoolean)(output.IsTestDomain),
|
|
5269
5589
|
OwnershipVerificationStatus: (0, smithy_client_1.expectString)(output.OwnershipVerificationStatus),
|
|
5270
|
-
Records: output.Records
|
|
5271
|
-
? deserializeAws_json1_1DnsRecords(output.Records, context)
|
|
5272
|
-
: undefined,
|
|
5590
|
+
Records: output.Records != null ? deserializeAws_json1_1DnsRecords(output.Records, context) : undefined,
|
|
5273
5591
|
};
|
|
5274
5592
|
};
|
|
5275
5593
|
const deserializeAws_json1_1GetMobileDeviceAccessEffectResponse = (output, context) => {
|
|
5276
5594
|
return {
|
|
5277
5595
|
Effect: (0, smithy_client_1.expectString)(output.Effect),
|
|
5278
|
-
MatchedRules: output.MatchedRules
|
|
5596
|
+
MatchedRules: output.MatchedRules != null
|
|
5279
5597
|
? deserializeAws_json1_1MobileDeviceAccessMatchedRuleList(output.MatchedRules, context)
|
|
5280
5598
|
: undefined,
|
|
5281
5599
|
};
|
|
5282
5600
|
};
|
|
5283
5601
|
const deserializeAws_json1_1GetMobileDeviceAccessOverrideResponse = (output, context) => {
|
|
5284
5602
|
return {
|
|
5285
|
-
DateCreated: output.DateCreated
|
|
5603
|
+
DateCreated: output.DateCreated != null
|
|
5286
5604
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
5287
5605
|
: undefined,
|
|
5288
|
-
DateModified: output.DateModified
|
|
5606
|
+
DateModified: output.DateModified != null
|
|
5289
5607
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
5290
5608
|
: undefined,
|
|
5291
5609
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -5296,11 +5614,11 @@ const deserializeAws_json1_1GetMobileDeviceAccessOverrideResponse = (output, con
|
|
|
5296
5614
|
};
|
|
5297
5615
|
const deserializeAws_json1_1Group = (output, context) => {
|
|
5298
5616
|
return {
|
|
5299
|
-
DisabledDate: output.DisabledDate
|
|
5617
|
+
DisabledDate: output.DisabledDate != null
|
|
5300
5618
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5301
5619
|
: undefined,
|
|
5302
5620
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5303
|
-
EnabledDate: output.EnabledDate
|
|
5621
|
+
EnabledDate: output.EnabledDate != null
|
|
5304
5622
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5305
5623
|
: undefined,
|
|
5306
5624
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -5361,6 +5679,11 @@ const deserializeAws_json1_1Jobs = (output, context) => {
|
|
|
5361
5679
|
});
|
|
5362
5680
|
return retVal;
|
|
5363
5681
|
};
|
|
5682
|
+
const deserializeAws_json1_1LambdaAvailabilityProvider = (output, context) => {
|
|
5683
|
+
return {
|
|
5684
|
+
LambdaArn: (0, smithy_client_1.expectString)(output.LambdaArn),
|
|
5685
|
+
};
|
|
5686
|
+
};
|
|
5364
5687
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
5365
5688
|
return {
|
|
5366
5689
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -5368,125 +5691,107 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
5368
5691
|
};
|
|
5369
5692
|
const deserializeAws_json1_1ListAccessControlRulesResponse = (output, context) => {
|
|
5370
5693
|
return {
|
|
5371
|
-
Rules: output.Rules
|
|
5372
|
-
? deserializeAws_json1_1AccessControlRulesList(output.Rules, context)
|
|
5373
|
-
: undefined,
|
|
5694
|
+
Rules: output.Rules != null ? deserializeAws_json1_1AccessControlRulesList(output.Rules, context) : undefined,
|
|
5374
5695
|
};
|
|
5375
5696
|
};
|
|
5376
5697
|
const deserializeAws_json1_1ListAliasesResponse = (output, context) => {
|
|
5377
5698
|
return {
|
|
5378
|
-
Aliases: output.Aliases
|
|
5379
|
-
|
|
5699
|
+
Aliases: output.Aliases != null ? deserializeAws_json1_1Aliases(output.Aliases, context) : undefined,
|
|
5700
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5701
|
+
};
|
|
5702
|
+
};
|
|
5703
|
+
const deserializeAws_json1_1ListAvailabilityConfigurationsResponse = (output, context) => {
|
|
5704
|
+
return {
|
|
5705
|
+
AvailabilityConfigurations: output.AvailabilityConfigurations != null
|
|
5706
|
+
? deserializeAws_json1_1AvailabilityConfigurationList(output.AvailabilityConfigurations, context)
|
|
5380
5707
|
: undefined,
|
|
5381
5708
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5382
5709
|
};
|
|
5383
5710
|
};
|
|
5384
5711
|
const deserializeAws_json1_1ListGroupMembersResponse = (output, context) => {
|
|
5385
5712
|
return {
|
|
5386
|
-
Members: output.Members
|
|
5387
|
-
? deserializeAws_json1_1Members(output.Members, context)
|
|
5388
|
-
: undefined,
|
|
5713
|
+
Members: output.Members != null ? deserializeAws_json1_1Members(output.Members, context) : undefined,
|
|
5389
5714
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5390
5715
|
};
|
|
5391
5716
|
};
|
|
5392
5717
|
const deserializeAws_json1_1ListGroupsResponse = (output, context) => {
|
|
5393
5718
|
return {
|
|
5394
|
-
Groups: output.Groups
|
|
5395
|
-
? deserializeAws_json1_1Groups(output.Groups, context)
|
|
5396
|
-
: undefined,
|
|
5719
|
+
Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
|
|
5397
5720
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5398
5721
|
};
|
|
5399
5722
|
};
|
|
5400
5723
|
const deserializeAws_json1_1ListMailboxExportJobsResponse = (output, context) => {
|
|
5401
5724
|
return {
|
|
5402
|
-
Jobs: output.Jobs
|
|
5725
|
+
Jobs: output.Jobs != null ? deserializeAws_json1_1Jobs(output.Jobs, context) : undefined,
|
|
5403
5726
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5404
5727
|
};
|
|
5405
5728
|
};
|
|
5406
5729
|
const deserializeAws_json1_1ListMailboxPermissionsResponse = (output, context) => {
|
|
5407
5730
|
return {
|
|
5408
5731
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5409
|
-
Permissions: output.Permissions
|
|
5410
|
-
? deserializeAws_json1_1Permissions(output.Permissions, context)
|
|
5411
|
-
: undefined,
|
|
5732
|
+
Permissions: output.Permissions != null ? deserializeAws_json1_1Permissions(output.Permissions, context) : undefined,
|
|
5412
5733
|
};
|
|
5413
5734
|
};
|
|
5414
5735
|
const deserializeAws_json1_1ListMailDomainsResponse = (output, context) => {
|
|
5415
5736
|
return {
|
|
5416
|
-
MailDomains: output.MailDomains
|
|
5417
|
-
? deserializeAws_json1_1MailDomains(output.MailDomains, context)
|
|
5418
|
-
: undefined,
|
|
5737
|
+
MailDomains: output.MailDomains != null ? deserializeAws_json1_1MailDomains(output.MailDomains, context) : undefined,
|
|
5419
5738
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5420
5739
|
};
|
|
5421
5740
|
};
|
|
5422
5741
|
const deserializeAws_json1_1ListMobileDeviceAccessOverridesResponse = (output, context) => {
|
|
5423
5742
|
return {
|
|
5424
5743
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5425
|
-
Overrides: output.Overrides
|
|
5744
|
+
Overrides: output.Overrides != null
|
|
5426
5745
|
? deserializeAws_json1_1MobileDeviceAccessOverridesList(output.Overrides, context)
|
|
5427
5746
|
: undefined,
|
|
5428
5747
|
};
|
|
5429
5748
|
};
|
|
5430
5749
|
const deserializeAws_json1_1ListMobileDeviceAccessRulesResponse = (output, context) => {
|
|
5431
5750
|
return {
|
|
5432
|
-
Rules: output.Rules
|
|
5433
|
-
? deserializeAws_json1_1MobileDeviceAccessRulesList(output.Rules, context)
|
|
5434
|
-
: undefined,
|
|
5751
|
+
Rules: output.Rules != null ? deserializeAws_json1_1MobileDeviceAccessRulesList(output.Rules, context) : undefined,
|
|
5435
5752
|
};
|
|
5436
5753
|
};
|
|
5437
5754
|
const deserializeAws_json1_1ListOrganizationsResponse = (output, context) => {
|
|
5438
5755
|
return {
|
|
5439
5756
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5440
|
-
OrganizationSummaries: output.OrganizationSummaries
|
|
5757
|
+
OrganizationSummaries: output.OrganizationSummaries != null
|
|
5441
5758
|
? deserializeAws_json1_1OrganizationSummaries(output.OrganizationSummaries, context)
|
|
5442
5759
|
: undefined,
|
|
5443
5760
|
};
|
|
5444
5761
|
};
|
|
5445
5762
|
const deserializeAws_json1_1ListResourceDelegatesResponse = (output, context) => {
|
|
5446
5763
|
return {
|
|
5447
|
-
Delegates: output.Delegates
|
|
5448
|
-
? deserializeAws_json1_1ResourceDelegates(output.Delegates, context)
|
|
5449
|
-
: undefined,
|
|
5764
|
+
Delegates: output.Delegates != null ? deserializeAws_json1_1ResourceDelegates(output.Delegates, context) : undefined,
|
|
5450
5765
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5451
5766
|
};
|
|
5452
5767
|
};
|
|
5453
5768
|
const deserializeAws_json1_1ListResourcesResponse = (output, context) => {
|
|
5454
5769
|
return {
|
|
5455
5770
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5456
|
-
Resources: output.Resources
|
|
5457
|
-
? deserializeAws_json1_1Resources(output.Resources, context)
|
|
5458
|
-
: undefined,
|
|
5771
|
+
Resources: output.Resources != null ? deserializeAws_json1_1Resources(output.Resources, context) : undefined,
|
|
5459
5772
|
};
|
|
5460
5773
|
};
|
|
5461
5774
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
5462
5775
|
return {
|
|
5463
|
-
Tags: output.Tags
|
|
5464
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
5465
|
-
: undefined,
|
|
5776
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
5466
5777
|
};
|
|
5467
5778
|
};
|
|
5468
5779
|
const deserializeAws_json1_1ListUsersResponse = (output, context) => {
|
|
5469
5780
|
return {
|
|
5470
5781
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5471
|
-
Users: output.Users
|
|
5472
|
-
? deserializeAws_json1_1Users(output.Users, context)
|
|
5473
|
-
: undefined,
|
|
5782
|
+
Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
|
|
5474
5783
|
};
|
|
5475
5784
|
};
|
|
5476
5785
|
const deserializeAws_json1_1MailboxExportJob = (output, context) => {
|
|
5477
5786
|
return {
|
|
5478
5787
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5479
|
-
EndTime: output.EndTime
|
|
5480
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
5481
|
-
: undefined,
|
|
5788
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5482
5789
|
EntityId: (0, smithy_client_1.expectString)(output.EntityId),
|
|
5483
5790
|
EstimatedProgress: (0, smithy_client_1.expectInt32)(output.EstimatedProgress),
|
|
5484
5791
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
5485
5792
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
5486
5793
|
S3Path: (0, smithy_client_1.expectString)(output.S3Path),
|
|
5487
|
-
StartTime: output.StartTime
|
|
5488
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
5489
|
-
: undefined,
|
|
5794
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
5490
5795
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
5491
5796
|
};
|
|
5492
5797
|
};
|
|
@@ -5524,10 +5829,10 @@ const deserializeAws_json1_1MailDomainSummary = (output, context) => {
|
|
|
5524
5829
|
};
|
|
5525
5830
|
const deserializeAws_json1_1Member = (output, context) => {
|
|
5526
5831
|
return {
|
|
5527
|
-
DisabledDate: output.DisabledDate
|
|
5832
|
+
DisabledDate: output.DisabledDate != null
|
|
5528
5833
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5529
5834
|
: undefined,
|
|
5530
|
-
EnabledDate: output.EnabledDate
|
|
5835
|
+
EnabledDate: output.EnabledDate != null
|
|
5531
5836
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5532
5837
|
: undefined,
|
|
5533
5838
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -5566,10 +5871,10 @@ const deserializeAws_json1_1MobileDeviceAccessMatchedRuleList = (output, context
|
|
|
5566
5871
|
};
|
|
5567
5872
|
const deserializeAws_json1_1MobileDeviceAccessOverride = (output, context) => {
|
|
5568
5873
|
return {
|
|
5569
|
-
DateCreated: output.DateCreated
|
|
5874
|
+
DateCreated: output.DateCreated != null
|
|
5570
5875
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
5571
5876
|
: undefined,
|
|
5572
|
-
DateModified: output.DateModified
|
|
5877
|
+
DateModified: output.DateModified != null
|
|
5573
5878
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
5574
5879
|
: undefined,
|
|
5575
5880
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -5591,38 +5896,32 @@ const deserializeAws_json1_1MobileDeviceAccessOverridesList = (output, context)
|
|
|
5591
5896
|
};
|
|
5592
5897
|
const deserializeAws_json1_1MobileDeviceAccessRule = (output, context) => {
|
|
5593
5898
|
return {
|
|
5594
|
-
DateCreated: output.DateCreated
|
|
5899
|
+
DateCreated: output.DateCreated != null
|
|
5595
5900
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
5596
5901
|
: undefined,
|
|
5597
|
-
DateModified: output.DateModified
|
|
5902
|
+
DateModified: output.DateModified != null
|
|
5598
5903
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
5599
5904
|
: undefined,
|
|
5600
5905
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5601
|
-
DeviceModels: output.DeviceModels
|
|
5602
|
-
|
|
5603
|
-
: undefined,
|
|
5604
|
-
DeviceOperatingSystems: output.DeviceOperatingSystems !== undefined && output.DeviceOperatingSystems !== null
|
|
5906
|
+
DeviceModels: output.DeviceModels != null ? deserializeAws_json1_1DeviceModelList(output.DeviceModels, context) : undefined,
|
|
5907
|
+
DeviceOperatingSystems: output.DeviceOperatingSystems != null
|
|
5605
5908
|
? deserializeAws_json1_1DeviceOperatingSystemList(output.DeviceOperatingSystems, context)
|
|
5606
5909
|
: undefined,
|
|
5607
|
-
DeviceTypes: output.DeviceTypes
|
|
5608
|
-
|
|
5609
|
-
: undefined,
|
|
5610
|
-
DeviceUserAgents: output.DeviceUserAgents !== undefined && output.DeviceUserAgents !== null
|
|
5910
|
+
DeviceTypes: output.DeviceTypes != null ? deserializeAws_json1_1DeviceTypeList(output.DeviceTypes, context) : undefined,
|
|
5911
|
+
DeviceUserAgents: output.DeviceUserAgents != null
|
|
5611
5912
|
? deserializeAws_json1_1DeviceUserAgentList(output.DeviceUserAgents, context)
|
|
5612
5913
|
: undefined,
|
|
5613
5914
|
Effect: (0, smithy_client_1.expectString)(output.Effect),
|
|
5614
5915
|
MobileDeviceAccessRuleId: (0, smithy_client_1.expectString)(output.MobileDeviceAccessRuleId),
|
|
5615
5916
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5616
|
-
NotDeviceModels: output.NotDeviceModels
|
|
5917
|
+
NotDeviceModels: output.NotDeviceModels != null
|
|
5617
5918
|
? deserializeAws_json1_1DeviceModelList(output.NotDeviceModels, context)
|
|
5618
5919
|
: undefined,
|
|
5619
|
-
NotDeviceOperatingSystems: output.NotDeviceOperatingSystems
|
|
5920
|
+
NotDeviceOperatingSystems: output.NotDeviceOperatingSystems != null
|
|
5620
5921
|
? deserializeAws_json1_1DeviceOperatingSystemList(output.NotDeviceOperatingSystems, context)
|
|
5621
5922
|
: undefined,
|
|
5622
|
-
NotDeviceTypes: output.NotDeviceTypes
|
|
5623
|
-
|
|
5624
|
-
: undefined,
|
|
5625
|
-
NotDeviceUserAgents: output.NotDeviceUserAgents !== undefined && output.NotDeviceUserAgents !== null
|
|
5923
|
+
NotDeviceTypes: output.NotDeviceTypes != null ? deserializeAws_json1_1DeviceTypeList(output.NotDeviceTypes, context) : undefined,
|
|
5924
|
+
NotDeviceUserAgents: output.NotDeviceUserAgents != null
|
|
5626
5925
|
? deserializeAws_json1_1DeviceUserAgentList(output.NotDeviceUserAgents, context)
|
|
5627
5926
|
: undefined,
|
|
5628
5927
|
};
|
|
@@ -5677,7 +5976,7 @@ const deserializeAws_json1_1Permission = (output, context) => {
|
|
|
5677
5976
|
return {
|
|
5678
5977
|
GranteeId: (0, smithy_client_1.expectString)(output.GranteeId),
|
|
5679
5978
|
GranteeType: (0, smithy_client_1.expectString)(output.GranteeType),
|
|
5680
|
-
PermissionValues: output.PermissionValues
|
|
5979
|
+
PermissionValues: output.PermissionValues != null
|
|
5681
5980
|
? deserializeAws_json1_1PermissionValues(output.PermissionValues, context)
|
|
5682
5981
|
: undefined,
|
|
5683
5982
|
};
|
|
@@ -5722,6 +6021,12 @@ const deserializeAws_json1_1PutMobileDeviceAccessOverrideResponse = (output, con
|
|
|
5722
6021
|
const deserializeAws_json1_1PutRetentionPolicyResponse = (output, context) => {
|
|
5723
6022
|
return {};
|
|
5724
6023
|
};
|
|
6024
|
+
const deserializeAws_json1_1RedactedEwsAvailabilityProvider = (output, context) => {
|
|
6025
|
+
return {
|
|
6026
|
+
EwsEndpoint: (0, smithy_client_1.expectString)(output.EwsEndpoint),
|
|
6027
|
+
EwsUsername: (0, smithy_client_1.expectString)(output.EwsUsername),
|
|
6028
|
+
};
|
|
6029
|
+
};
|
|
5725
6030
|
const deserializeAws_json1_1RegisterMailDomainResponse = (output, context) => {
|
|
5726
6031
|
return {};
|
|
5727
6032
|
};
|
|
@@ -5738,11 +6043,11 @@ const deserializeAws_json1_1ResetPasswordResponse = (output, context) => {
|
|
|
5738
6043
|
};
|
|
5739
6044
|
const deserializeAws_json1_1Resource = (output, context) => {
|
|
5740
6045
|
return {
|
|
5741
|
-
DisabledDate: output.DisabledDate
|
|
6046
|
+
DisabledDate: output.DisabledDate != null
|
|
5742
6047
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5743
6048
|
: undefined,
|
|
5744
6049
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5745
|
-
EnabledDate: output.EnabledDate
|
|
6050
|
+
EnabledDate: output.EnabledDate != null
|
|
5746
6051
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5747
6052
|
: undefined,
|
|
5748
6053
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -5803,6 +6108,12 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
5803
6108
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
5804
6109
|
return {};
|
|
5805
6110
|
};
|
|
6111
|
+
const deserializeAws_json1_1TestAvailabilityConfigurationResponse = (output, context) => {
|
|
6112
|
+
return {
|
|
6113
|
+
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
6114
|
+
TestPassed: (0, smithy_client_1.expectBoolean)(output.TestPassed),
|
|
6115
|
+
};
|
|
6116
|
+
};
|
|
5806
6117
|
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
5807
6118
|
return {
|
|
5808
6119
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -5816,6 +6127,9 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
5816
6127
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
5817
6128
|
return {};
|
|
5818
6129
|
};
|
|
6130
|
+
const deserializeAws_json1_1UpdateAvailabilityConfigurationResponse = (output, context) => {
|
|
6131
|
+
return {};
|
|
6132
|
+
};
|
|
5819
6133
|
const deserializeAws_json1_1UpdateDefaultMailDomainResponse = (output, context) => {
|
|
5820
6134
|
return {};
|
|
5821
6135
|
};
|
|
@@ -5833,12 +6147,12 @@ const deserializeAws_json1_1UpdateResourceResponse = (output, context) => {
|
|
|
5833
6147
|
};
|
|
5834
6148
|
const deserializeAws_json1_1User = (output, context) => {
|
|
5835
6149
|
return {
|
|
5836
|
-
DisabledDate: output.DisabledDate
|
|
6150
|
+
DisabledDate: output.DisabledDate != null
|
|
5837
6151
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DisabledDate)))
|
|
5838
6152
|
: undefined,
|
|
5839
6153
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
5840
6154
|
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
5841
|
-
EnabledDate: output.EnabledDate
|
|
6155
|
+
EnabledDate: output.EnabledDate != null
|
|
5842
6156
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EnabledDate)))
|
|
5843
6157
|
: undefined,
|
|
5844
6158
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -5931,5 +6245,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5931
6245
|
if (data["__type"] !== undefined) {
|
|
5932
6246
|
return sanitizeErrorCode(data["__type"]);
|
|
5933
6247
|
}
|
|
5934
|
-
return "";
|
|
5935
6248
|
};
|