@aws-sdk/client-connect 3.223.0 → 3.225.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.
Files changed (86) hide show
  1. package/dist-cjs/Connect.js +75 -0
  2. package/dist-cjs/commands/CreateRuleCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteRuleCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeRuleCommand.js +46 -0
  5. package/dist-cjs/commands/ListContactReferencesCommand.js +2 -1
  6. package/dist-cjs/commands/ListDefaultVocabulariesCommand.js +3 -3
  7. package/dist-cjs/commands/ListHoursOfOperationsCommand.js +3 -3
  8. package/dist-cjs/commands/ListInstanceAttributesCommand.js +3 -3
  9. package/dist-cjs/commands/ListInstanceStorageConfigsCommand.js +3 -3
  10. package/dist-cjs/commands/ListInstancesCommand.js +3 -3
  11. package/dist-cjs/commands/ListIntegrationAssociationsCommand.js +3 -3
  12. package/dist-cjs/commands/ListRulesCommand.js +46 -0
  13. package/dist-cjs/commands/UpdateRuleCommand.js +46 -0
  14. package/dist-cjs/commands/index.js +5 -0
  15. package/dist-cjs/endpoint/ruleset.js +1 -10
  16. package/dist-cjs/models/models_0.js +104 -134
  17. package/dist-cjs/models/models_1.js +139 -8
  18. package/dist-cjs/pagination/ListRulesPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +606 -7
  21. package/dist-es/Connect.js +75 -0
  22. package/dist-es/commands/CreateRuleCommand.js +42 -0
  23. package/dist-es/commands/DeleteRuleCommand.js +42 -0
  24. package/dist-es/commands/DescribeRuleCommand.js +42 -0
  25. package/dist-es/commands/ListContactReferencesCommand.js +2 -1
  26. package/dist-es/commands/ListDefaultVocabulariesCommand.js +1 -1
  27. package/dist-es/commands/ListHoursOfOperationsCommand.js +1 -1
  28. package/dist-es/commands/ListInstanceAttributesCommand.js +1 -1
  29. package/dist-es/commands/ListInstanceStorageConfigsCommand.js +1 -1
  30. package/dist-es/commands/ListInstancesCommand.js +1 -1
  31. package/dist-es/commands/ListIntegrationAssociationsCommand.js +1 -1
  32. package/dist-es/commands/ListRulesCommand.js +42 -0
  33. package/dist-es/commands/UpdateRuleCommand.js +42 -0
  34. package/dist-es/commands/index.js +5 -0
  35. package/dist-es/endpoint/ruleset.js +1 -10
  36. package/dist-es/models/models_0.js +83 -107
  37. package/dist-es/models/models_1.js +111 -3
  38. package/dist-es/pagination/ListRulesPaginator.js +32 -0
  39. package/dist-es/pagination/index.js +1 -0
  40. package/dist-es/protocols/Aws_restJson1.js +589 -0
  41. package/dist-types/Connect.d.ts +44 -4
  42. package/dist-types/ConnectClient.d.ts +7 -2
  43. package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +5 -1
  44. package/dist-types/commands/CreateRuleCommand.d.ts +37 -0
  45. package/dist-types/commands/DeleteRuleCommand.d.ts +37 -0
  46. package/dist-types/commands/DescribeRuleCommand.d.ts +37 -0
  47. package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
  48. package/dist-types/commands/ListContactReferencesCommand.d.ts +2 -1
  49. package/dist-types/commands/ListDefaultVocabulariesCommand.d.ts +1 -1
  50. package/dist-types/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  51. package/dist-types/commands/ListInstanceAttributesCommand.d.ts +1 -1
  52. package/dist-types/commands/ListInstanceStorageConfigsCommand.d.ts +1 -1
  53. package/dist-types/commands/ListInstancesCommand.d.ts +1 -1
  54. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListRulesCommand.d.ts +37 -0
  56. package/dist-types/commands/MonitorContactCommand.d.ts +3 -2
  57. package/dist-types/commands/UpdateRuleCommand.d.ts +37 -0
  58. package/dist-types/commands/index.d.ts +5 -0
  59. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  60. package/dist-types/models/models_0.d.ts +373 -516
  61. package/dist-types/models/models_1.d.ts +628 -29
  62. package/dist-types/pagination/ListRulesPaginator.d.ts +4 -0
  63. package/dist-types/pagination/index.d.ts +1 -0
  64. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  65. package/dist-types/ts3.4/Connect.d.ts +85 -0
  66. package/dist-types/ts3.4/ConnectClient.d.ts +30 -0
  67. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +34 -0
  68. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +32 -0
  69. package/dist-types/ts3.4/commands/DescribeRuleCommand.d.ts +34 -0
  70. package/dist-types/ts3.4/commands/ListContactReferencesCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/ListDefaultVocabulariesCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ListInstanceAttributesCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListInstanceStorageConfigsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +34 -0
  78. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +32 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  80. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  81. package/dist-types/ts3.4/models/models_0.d.ts +147 -249
  82. package/dist-types/ts3.4/models/models_1.d.ts +294 -6
  83. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  85. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  86. package/package.json +28 -28
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateTrafficDistributionGroupCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
- exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetTrafficDistributionCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DismissUserContactCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = void 0;
5
- exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReplicateInstanceCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1MonitorContactCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = void 0;
6
- exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTrafficDistributionGroupCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTrafficDistributionCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = void 0;
7
- exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTrafficDistributionCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DismissUserContactCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = void 0;
8
- exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TransferContactCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReplicateInstanceCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1MonitorContactCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = void 0;
9
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = void 0;
3
+ exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteRuleCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateTrafficDistributionGroupCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRuleCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
+ exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetTrafficDistributionCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DismissUserContactCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRuleCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = void 0;
5
+ exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferContactCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReplicateInstanceCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1MonitorContactCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRulesCommand = void 0;
6
+ exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateTrafficDistributionGroupCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRuleCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTrafficDistributionCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRuleCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = void 0;
7
+ exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTrafficDistributionCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DismissUserContactCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRuleCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteRuleCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = void 0;
8
+ exports.deserializeAws_restJson1TransferContactCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReplicateInstanceCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1MonitorContactCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRulesCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = void 0;
9
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRuleCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = void 0;
10
10
  const protocol_http_1 = require("@aws-sdk/protocol-http");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const uuid_1 = require("uuid");
@@ -522,6 +522,35 @@ const serializeAws_restJson1CreateRoutingProfileCommand = async (input, context)
522
522
  });
523
523
  };
524
524
  exports.serializeAws_restJson1CreateRoutingProfileCommand = serializeAws_restJson1CreateRoutingProfileCommand;
525
+ const serializeAws_restJson1CreateRuleCommand = async (input, context) => {
526
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
+ const headers = {
528
+ "content-type": "application/json",
529
+ };
530
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}";
531
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
532
+ let body;
533
+ body = JSON.stringify({
534
+ ...(input.Actions != null && { Actions: serializeAws_restJson1RuleActions(input.Actions, context) }),
535
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
536
+ ...(input.Function != null && { Function: input.Function }),
537
+ ...(input.Name != null && { Name: input.Name }),
538
+ ...(input.PublishStatus != null && { PublishStatus: input.PublishStatus }),
539
+ ...(input.TriggerEventSource != null && {
540
+ TriggerEventSource: serializeAws_restJson1RuleTriggerEventSource(input.TriggerEventSource, context),
541
+ }),
542
+ });
543
+ return new protocol_http_1.HttpRequest({
544
+ protocol,
545
+ hostname,
546
+ port,
547
+ method: "POST",
548
+ headers,
549
+ path: resolvedPath,
550
+ body,
551
+ });
552
+ };
553
+ exports.serializeAws_restJson1CreateRuleCommand = serializeAws_restJson1CreateRuleCommand;
525
554
  const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context) => {
526
555
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
556
  const headers = {
@@ -834,6 +863,24 @@ const serializeAws_restJson1DeleteQuickConnectCommand = async (input, context) =
834
863
  });
835
864
  };
836
865
  exports.serializeAws_restJson1DeleteQuickConnectCommand = serializeAws_restJson1DeleteQuickConnectCommand;
866
+ const serializeAws_restJson1DeleteRuleCommand = async (input, context) => {
867
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
+ const headers = {};
869
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}";
870
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
871
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RuleId", () => input.RuleId, "{RuleId}", false);
872
+ let body;
873
+ return new protocol_http_1.HttpRequest({
874
+ protocol,
875
+ hostname,
876
+ port,
877
+ method: "DELETE",
878
+ headers,
879
+ path: resolvedPath,
880
+ body,
881
+ });
882
+ };
883
+ exports.serializeAws_restJson1DeleteRuleCommand = serializeAws_restJson1DeleteRuleCommand;
837
884
  const serializeAws_restJson1DeleteSecurityProfileCommand = async (input, context) => {
838
885
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
886
  const headers = {};
@@ -1192,6 +1239,24 @@ const serializeAws_restJson1DescribeRoutingProfileCommand = async (input, contex
1192
1239
  });
1193
1240
  };
1194
1241
  exports.serializeAws_restJson1DescribeRoutingProfileCommand = serializeAws_restJson1DescribeRoutingProfileCommand;
1242
+ const serializeAws_restJson1DescribeRuleCommand = async (input, context) => {
1243
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1244
+ const headers = {};
1245
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}";
1246
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1247
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RuleId", () => input.RuleId, "{RuleId}", false);
1248
+ let body;
1249
+ return new protocol_http_1.HttpRequest({
1250
+ protocol,
1251
+ hostname,
1252
+ port,
1253
+ method: "GET",
1254
+ headers,
1255
+ path: resolvedPath,
1256
+ body,
1257
+ });
1258
+ };
1259
+ exports.serializeAws_restJson1DescribeRuleCommand = serializeAws_restJson1DescribeRuleCommand;
1195
1260
  const serializeAws_restJson1DescribeSecurityProfileCommand = async (input, context) => {
1196
1261
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1197
1262
  const headers = {};
@@ -2214,6 +2279,30 @@ const serializeAws_restJson1ListRoutingProfilesCommand = async (input, context)
2214
2279
  });
2215
2280
  };
2216
2281
  exports.serializeAws_restJson1ListRoutingProfilesCommand = serializeAws_restJson1ListRoutingProfilesCommand;
2282
+ const serializeAws_restJson1ListRulesCommand = async (input, context) => {
2283
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2284
+ const headers = {};
2285
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}";
2286
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2287
+ const query = map({
2288
+ publishStatus: [, input.PublishStatus],
2289
+ eventSourceName: [, input.EventSourceName],
2290
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2291
+ nextToken: [, input.NextToken],
2292
+ });
2293
+ let body;
2294
+ return new protocol_http_1.HttpRequest({
2295
+ protocol,
2296
+ hostname,
2297
+ port,
2298
+ method: "GET",
2299
+ headers,
2300
+ path: resolvedPath,
2301
+ query,
2302
+ body,
2303
+ });
2304
+ };
2305
+ exports.serializeAws_restJson1ListRulesCommand = serializeAws_restJson1ListRulesCommand;
2217
2306
  const serializeAws_restJson1ListSecurityKeysCommand = async (input, context) => {
2218
2307
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2219
2308
  const headers = {};
@@ -3613,6 +3702,32 @@ const serializeAws_restJson1UpdateRoutingProfileQueuesCommand = async (input, co
3613
3702
  });
3614
3703
  };
3615
3704
  exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = serializeAws_restJson1UpdateRoutingProfileQueuesCommand;
3705
+ const serializeAws_restJson1UpdateRuleCommand = async (input, context) => {
3706
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3707
+ const headers = {
3708
+ "content-type": "application/json",
3709
+ };
3710
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}";
3711
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RuleId", () => input.RuleId, "{RuleId}", false);
3712
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3713
+ let body;
3714
+ body = JSON.stringify({
3715
+ ...(input.Actions != null && { Actions: serializeAws_restJson1RuleActions(input.Actions, context) }),
3716
+ ...(input.Function != null && { Function: input.Function }),
3717
+ ...(input.Name != null && { Name: input.Name }),
3718
+ ...(input.PublishStatus != null && { PublishStatus: input.PublishStatus }),
3719
+ });
3720
+ return new protocol_http_1.HttpRequest({
3721
+ protocol,
3722
+ hostname,
3723
+ port,
3724
+ method: "PUT",
3725
+ headers,
3726
+ path: resolvedPath,
3727
+ body,
3728
+ });
3729
+ };
3730
+ exports.serializeAws_restJson1UpdateRuleCommand = serializeAws_restJson1UpdateRuleCommand;
3616
3731
  const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context) => {
3617
3732
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3618
3733
  const headers = {
@@ -4893,6 +5008,61 @@ const deserializeAws_restJson1CreateRoutingProfileCommandError = async (output,
4893
5008
  });
4894
5009
  }
4895
5010
  };
5011
+ const deserializeAws_restJson1CreateRuleCommand = async (output, context) => {
5012
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5013
+ return deserializeAws_restJson1CreateRuleCommandError(output, context);
5014
+ }
5015
+ const contents = map({
5016
+ $metadata: deserializeMetadata(output),
5017
+ });
5018
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5019
+ if (data.RuleArn != null) {
5020
+ contents.RuleArn = (0, smithy_client_1.expectString)(data.RuleArn);
5021
+ }
5022
+ if (data.RuleId != null) {
5023
+ contents.RuleId = (0, smithy_client_1.expectString)(data.RuleId);
5024
+ }
5025
+ return contents;
5026
+ };
5027
+ exports.deserializeAws_restJson1CreateRuleCommand = deserializeAws_restJson1CreateRuleCommand;
5028
+ const deserializeAws_restJson1CreateRuleCommandError = async (output, context) => {
5029
+ const parsedOutput = {
5030
+ ...output,
5031
+ body: await parseErrorBody(output.body, context),
5032
+ };
5033
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5034
+ switch (errorCode) {
5035
+ case "AccessDeniedException":
5036
+ case "com.amazonaws.connect#AccessDeniedException":
5037
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5038
+ case "InternalServiceException":
5039
+ case "com.amazonaws.connect#InternalServiceException":
5040
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
5041
+ case "InvalidRequestException":
5042
+ case "com.amazonaws.connect#InvalidRequestException":
5043
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
5044
+ case "ResourceConflictException":
5045
+ case "com.amazonaws.connect#ResourceConflictException":
5046
+ throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
5047
+ case "ResourceNotFoundException":
5048
+ case "com.amazonaws.connect#ResourceNotFoundException":
5049
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5050
+ case "ServiceQuotaExceededException":
5051
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
5052
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
5053
+ case "ThrottlingException":
5054
+ case "com.amazonaws.connect#ThrottlingException":
5055
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5056
+ default:
5057
+ const parsedBody = parsedOutput.body;
5058
+ (0, smithy_client_1.throwDefaultError)({
5059
+ output,
5060
+ parsedBody,
5061
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
5062
+ errorCode,
5063
+ });
5064
+ }
5065
+ };
4896
5066
  const deserializeAws_restJson1CreateSecurityProfileCommand = async (output, context) => {
4897
5067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4898
5068
  return deserializeAws_restJson1CreateSecurityProfileCommandError(output, context);
@@ -5530,6 +5700,49 @@ const deserializeAws_restJson1DeleteQuickConnectCommandError = async (output, co
5530
5700
  });
5531
5701
  }
5532
5702
  };
5703
+ const deserializeAws_restJson1DeleteRuleCommand = async (output, context) => {
5704
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5705
+ return deserializeAws_restJson1DeleteRuleCommandError(output, context);
5706
+ }
5707
+ const contents = map({
5708
+ $metadata: deserializeMetadata(output),
5709
+ });
5710
+ await collectBody(output.body, context);
5711
+ return contents;
5712
+ };
5713
+ exports.deserializeAws_restJson1DeleteRuleCommand = deserializeAws_restJson1DeleteRuleCommand;
5714
+ const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) => {
5715
+ const parsedOutput = {
5716
+ ...output,
5717
+ body: await parseErrorBody(output.body, context),
5718
+ };
5719
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5720
+ switch (errorCode) {
5721
+ case "AccessDeniedException":
5722
+ case "com.amazonaws.connect#AccessDeniedException":
5723
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5724
+ case "InternalServiceException":
5725
+ case "com.amazonaws.connect#InternalServiceException":
5726
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
5727
+ case "InvalidRequestException":
5728
+ case "com.amazonaws.connect#InvalidRequestException":
5729
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
5730
+ case "ResourceNotFoundException":
5731
+ case "com.amazonaws.connect#ResourceNotFoundException":
5732
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5733
+ case "ThrottlingException":
5734
+ case "com.amazonaws.connect#ThrottlingException":
5735
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5736
+ default:
5737
+ const parsedBody = parsedOutput.body;
5738
+ (0, smithy_client_1.throwDefaultError)({
5739
+ output,
5740
+ parsedBody,
5741
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
5742
+ errorCode,
5743
+ });
5744
+ }
5745
+ };
5533
5746
  const deserializeAws_restJson1DeleteSecurityProfileCommand = async (output, context) => {
5534
5747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5535
5748
  return deserializeAws_restJson1DeleteSecurityProfileCommandError(output, context);
@@ -6401,6 +6614,52 @@ const deserializeAws_restJson1DescribeRoutingProfileCommandError = async (output
6401
6614
  });
6402
6615
  }
6403
6616
  };
6617
+ const deserializeAws_restJson1DescribeRuleCommand = async (output, context) => {
6618
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6619
+ return deserializeAws_restJson1DescribeRuleCommandError(output, context);
6620
+ }
6621
+ const contents = map({
6622
+ $metadata: deserializeMetadata(output),
6623
+ });
6624
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6625
+ if (data.Rule != null) {
6626
+ contents.Rule = deserializeAws_restJson1Rule(data.Rule, context);
6627
+ }
6628
+ return contents;
6629
+ };
6630
+ exports.deserializeAws_restJson1DescribeRuleCommand = deserializeAws_restJson1DescribeRuleCommand;
6631
+ const deserializeAws_restJson1DescribeRuleCommandError = async (output, context) => {
6632
+ const parsedOutput = {
6633
+ ...output,
6634
+ body: await parseErrorBody(output.body, context),
6635
+ };
6636
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6637
+ switch (errorCode) {
6638
+ case "AccessDeniedException":
6639
+ case "com.amazonaws.connect#AccessDeniedException":
6640
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6641
+ case "InternalServiceException":
6642
+ case "com.amazonaws.connect#InternalServiceException":
6643
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
6644
+ case "InvalidRequestException":
6645
+ case "com.amazonaws.connect#InvalidRequestException":
6646
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
6647
+ case "ResourceNotFoundException":
6648
+ case "com.amazonaws.connect#ResourceNotFoundException":
6649
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6650
+ case "ThrottlingException":
6651
+ case "com.amazonaws.connect#ThrottlingException":
6652
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6653
+ default:
6654
+ const parsedBody = parsedOutput.body;
6655
+ (0, smithy_client_1.throwDefaultError)({
6656
+ output,
6657
+ parsedBody,
6658
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
6659
+ errorCode,
6660
+ });
6661
+ }
6662
+ };
6404
6663
  const deserializeAws_restJson1DescribeSecurityProfileCommand = async (output, context) => {
6405
6664
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6406
6665
  return deserializeAws_restJson1DescribeSecurityProfileCommandError(output, context);
@@ -8552,6 +8811,55 @@ const deserializeAws_restJson1ListRoutingProfilesCommandError = async (output, c
8552
8811
  });
8553
8812
  }
8554
8813
  };
8814
+ const deserializeAws_restJson1ListRulesCommand = async (output, context) => {
8815
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8816
+ return deserializeAws_restJson1ListRulesCommandError(output, context);
8817
+ }
8818
+ const contents = map({
8819
+ $metadata: deserializeMetadata(output),
8820
+ });
8821
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8822
+ if (data.NextToken != null) {
8823
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
8824
+ }
8825
+ if (data.RuleSummaryList != null) {
8826
+ contents.RuleSummaryList = deserializeAws_restJson1RuleSummaryList(data.RuleSummaryList, context);
8827
+ }
8828
+ return contents;
8829
+ };
8830
+ exports.deserializeAws_restJson1ListRulesCommand = deserializeAws_restJson1ListRulesCommand;
8831
+ const deserializeAws_restJson1ListRulesCommandError = async (output, context) => {
8832
+ const parsedOutput = {
8833
+ ...output,
8834
+ body: await parseErrorBody(output.body, context),
8835
+ };
8836
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8837
+ switch (errorCode) {
8838
+ case "AccessDeniedException":
8839
+ case "com.amazonaws.connect#AccessDeniedException":
8840
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
8841
+ case "InternalServiceException":
8842
+ case "com.amazonaws.connect#InternalServiceException":
8843
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
8844
+ case "InvalidRequestException":
8845
+ case "com.amazonaws.connect#InvalidRequestException":
8846
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
8847
+ case "ResourceNotFoundException":
8848
+ case "com.amazonaws.connect#ResourceNotFoundException":
8849
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
8850
+ case "ThrottlingException":
8851
+ case "com.amazonaws.connect#ThrottlingException":
8852
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
8853
+ default:
8854
+ const parsedBody = parsedOutput.body;
8855
+ (0, smithy_client_1.throwDefaultError)({
8856
+ output,
8857
+ parsedBody,
8858
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
8859
+ errorCode,
8860
+ });
8861
+ }
8862
+ };
8555
8863
  const deserializeAws_restJson1ListSecurityKeysCommand = async (output, context) => {
8556
8864
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8557
8865
  return deserializeAws_restJson1ListSecurityKeysCommandError(output, context);
@@ -11143,6 +11451,52 @@ const deserializeAws_restJson1UpdateRoutingProfileQueuesCommandError = async (ou
11143
11451
  });
11144
11452
  }
11145
11453
  };
11454
+ const deserializeAws_restJson1UpdateRuleCommand = async (output, context) => {
11455
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
11456
+ return deserializeAws_restJson1UpdateRuleCommandError(output, context);
11457
+ }
11458
+ const contents = map({
11459
+ $metadata: deserializeMetadata(output),
11460
+ });
11461
+ await collectBody(output.body, context);
11462
+ return contents;
11463
+ };
11464
+ exports.deserializeAws_restJson1UpdateRuleCommand = deserializeAws_restJson1UpdateRuleCommand;
11465
+ const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) => {
11466
+ const parsedOutput = {
11467
+ ...output,
11468
+ body: await parseErrorBody(output.body, context),
11469
+ };
11470
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11471
+ switch (errorCode) {
11472
+ case "AccessDeniedException":
11473
+ case "com.amazonaws.connect#AccessDeniedException":
11474
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
11475
+ case "InternalServiceException":
11476
+ case "com.amazonaws.connect#InternalServiceException":
11477
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
11478
+ case "InvalidRequestException":
11479
+ case "com.amazonaws.connect#InvalidRequestException":
11480
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
11481
+ case "ResourceConflictException":
11482
+ case "com.amazonaws.connect#ResourceConflictException":
11483
+ throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
11484
+ case "ResourceNotFoundException":
11485
+ case "com.amazonaws.connect#ResourceNotFoundException":
11486
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
11487
+ case "ThrottlingException":
11488
+ case "com.amazonaws.connect#ThrottlingException":
11489
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
11490
+ default:
11491
+ const parsedBody = parsedOutput.body;
11492
+ (0, smithy_client_1.throwDefaultError)({
11493
+ output,
11494
+ parsedBody,
11495
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
11496
+ errorCode,
11497
+ });
11498
+ }
11499
+ };
11146
11500
  const deserializeAws_restJson1UpdateSecurityProfileCommand = async (output, context) => {
11147
11501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11148
11502
  return deserializeAws_restJson1UpdateSecurityProfileCommandError(output, context);
@@ -11907,6 +12261,9 @@ const serializeAws_restJson1AnswerMachineDetectionConfig = (input, context) => {
11907
12261
  }),
11908
12262
  };
11909
12263
  };
12264
+ const serializeAws_restJson1AssignContactCategoryActionDefinition = (input, context) => {
12265
+ return {};
12266
+ };
11910
12267
  const serializeAws_restJson1Attributes = (input, context) => {
11911
12268
  return Object.entries(input).reduce((acc, [key, value]) => {
11912
12269
  if (value === null) {
@@ -12002,6 +12359,11 @@ const serializeAws_restJson1EncryptionConfig = (input, context) => {
12002
12359
  ...(input.KeyId != null && { KeyId: input.KeyId }),
12003
12360
  };
12004
12361
  };
12362
+ const serializeAws_restJson1EventBridgeActionDefinition = (input, context) => {
12363
+ return {
12364
+ ...(input.Name != null && { Name: input.Name }),
12365
+ };
12366
+ };
12005
12367
  const serializeAws_restJson1Filters = (input, context) => {
12006
12368
  return {
12007
12369
  ...(input.Channels != null && { Channels: serializeAws_restJson1Channels(input.Channels, context) }),
@@ -12145,6 +12507,12 @@ const serializeAws_restJson1MediaConcurrency = (input, context) => {
12145
12507
  ...(input.Concurrency != null && { Concurrency: input.Concurrency }),
12146
12508
  };
12147
12509
  };
12510
+ const serializeAws_restJson1NotificationRecipientType = (input, context) => {
12511
+ return {
12512
+ ...(input.UserIds != null && { UserIds: serializeAws_restJson1UserIdList(input.UserIds, context) }),
12513
+ ...(input.UserTags != null && { UserTags: serializeAws_restJson1UserTagMap(input.UserTags, context) }),
12514
+ };
12515
+ };
12148
12516
  const serializeAws_restJson1OutboundCallerConfig = (input, context) => {
12149
12517
  return {
12150
12518
  ...(input.OutboundCallerIdName != null && { OutboundCallerIdName: input.OutboundCallerIdName }),
@@ -12331,6 +12699,36 @@ const serializeAws_restJson1RoutingProfileSearchFilter = (input, context) => {
12331
12699
  }),
12332
12700
  };
12333
12701
  };
12702
+ const serializeAws_restJson1RuleAction = (input, context) => {
12703
+ return {
12704
+ ...(input.ActionType != null && { ActionType: input.ActionType }),
12705
+ ...(input.AssignContactCategoryAction != null && {
12706
+ AssignContactCategoryAction: serializeAws_restJson1AssignContactCategoryActionDefinition(input.AssignContactCategoryAction, context),
12707
+ }),
12708
+ ...(input.EventBridgeAction != null && {
12709
+ EventBridgeAction: serializeAws_restJson1EventBridgeActionDefinition(input.EventBridgeAction, context),
12710
+ }),
12711
+ ...(input.SendNotificationAction != null && {
12712
+ SendNotificationAction: serializeAws_restJson1SendNotificationActionDefinition(input.SendNotificationAction, context),
12713
+ }),
12714
+ ...(input.TaskAction != null && {
12715
+ TaskAction: serializeAws_restJson1TaskActionDefinition(input.TaskAction, context),
12716
+ }),
12717
+ };
12718
+ };
12719
+ const serializeAws_restJson1RuleActions = (input, context) => {
12720
+ return input
12721
+ .filter((e) => e != null)
12722
+ .map((entry) => {
12723
+ return serializeAws_restJson1RuleAction(entry, context);
12724
+ });
12725
+ };
12726
+ const serializeAws_restJson1RuleTriggerEventSource = (input, context) => {
12727
+ return {
12728
+ ...(input.EventSourceName != null && { EventSourceName: input.EventSourceName }),
12729
+ ...(input.IntegrationAssociationId != null && { IntegrationAssociationId: input.IntegrationAssociationId }),
12730
+ };
12731
+ };
12334
12732
  const serializeAws_restJson1S3Config = (input, context) => {
12335
12733
  return {
12336
12734
  ...(input.BucketName != null && { BucketName: input.BucketName }),
@@ -12374,6 +12772,17 @@ const serializeAws_restJson1SecurityProfilesSearchFilter = (input, context) => {
12374
12772
  }),
12375
12773
  };
12376
12774
  };
12775
+ const serializeAws_restJson1SendNotificationActionDefinition = (input, context) => {
12776
+ return {
12777
+ ...(input.Content != null && { Content: input.Content }),
12778
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
12779
+ ...(input.DeliveryMethod != null && { DeliveryMethod: input.DeliveryMethod }),
12780
+ ...(input.Recipient != null && {
12781
+ Recipient: serializeAws_restJson1NotificationRecipientType(input.Recipient, context),
12782
+ }),
12783
+ ...(input.Subject != null && { Subject: input.Subject }),
12784
+ };
12785
+ };
12377
12786
  const serializeAws_restJson1SingleSelectOptions = (input, context) => {
12378
12787
  return input
12379
12788
  .filter((e) => e != null)
@@ -12431,6 +12840,14 @@ const serializeAws_restJson1TagRestrictedResourceList = (input, context) => {
12431
12840
  return entry;
12432
12841
  });
12433
12842
  };
12843
+ const serializeAws_restJson1TaskActionDefinition = (input, context) => {
12844
+ return {
12845
+ ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
12846
+ ...(input.Description != null && { Description: input.Description }),
12847
+ ...(input.Name != null && { Name: input.Name }),
12848
+ ...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
12849
+ };
12850
+ };
12434
12851
  const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
12435
12852
  return {
12436
12853
  ...(input.InvisibleFields != null && {
@@ -12516,6 +12933,13 @@ const serializeAws_restJson1UserIdentityInfo = (input, context) => {
12516
12933
  ...(input.SecondaryEmail != null && { SecondaryEmail: input.SecondaryEmail }),
12517
12934
  };
12518
12935
  };
12936
+ const serializeAws_restJson1UserIdList = (input, context) => {
12937
+ return input
12938
+ .filter((e) => e != null)
12939
+ .map((entry) => {
12940
+ return entry;
12941
+ });
12942
+ };
12519
12943
  const serializeAws_restJson1UserPhoneConfig = (input, context) => {
12520
12944
  return {
12521
12945
  ...(input.AfterContactWorkTimeLimit != null && { AfterContactWorkTimeLimit: input.AfterContactWorkTimeLimit }),
@@ -12560,11 +12984,36 @@ const serializeAws_restJson1UserSearchFilter = (input, context) => {
12560
12984
  }),
12561
12985
  };
12562
12986
  };
12987
+ const serializeAws_restJson1UserTagMap = (input, context) => {
12988
+ return Object.entries(input).reduce((acc, [key, value]) => {
12989
+ if (value === null) {
12990
+ return acc;
12991
+ }
12992
+ acc[key] = value;
12993
+ return acc;
12994
+ }, {});
12995
+ };
12563
12996
  const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
12564
12997
  return {
12565
12998
  ...(input.VoiceRecordingTrack != null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
12566
12999
  };
12567
13000
  };
13001
+ const deserializeAws_restJson1ActionSummaries = (output, context) => {
13002
+ const retVal = (output || [])
13003
+ .filter((e) => e != null)
13004
+ .map((entry) => {
13005
+ if (entry === null) {
13006
+ return null;
13007
+ }
13008
+ return deserializeAws_restJson1ActionSummary(entry, context);
13009
+ });
13010
+ return retVal;
13011
+ };
13012
+ const deserializeAws_restJson1ActionSummary = (output, context) => {
13013
+ return {
13014
+ ActionType: (0, smithy_client_1.expectString)(output.ActionType),
13015
+ };
13016
+ };
12568
13017
  const deserializeAws_restJson1AgentContactReference = (output, context) => {
12569
13018
  return {
12570
13019
  AgentContactState: (0, smithy_client_1.expectString)(output.AgentContactState),
@@ -12647,6 +13096,9 @@ const deserializeAws_restJson1AllowedAccessControlTags = (output, context) => {
12647
13096
  return acc;
12648
13097
  }, {});
12649
13098
  };
13099
+ const deserializeAws_restJson1AssignContactCategoryActionDefinition = (output, context) => {
13100
+ return {};
13101
+ };
12650
13102
  const deserializeAws_restJson1AttachmentReference = (output, context) => {
12651
13103
  return {
12652
13104
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -12811,6 +13263,15 @@ const deserializeAws_restJson1ContactFlowSummaryList = (output, context) => {
12811
13263
  });
12812
13264
  return retVal;
12813
13265
  };
13266
+ const deserializeAws_restJson1ContactReferences = (output, context) => {
13267
+ return Object.entries(output).reduce((acc, [key, value]) => {
13268
+ if (value === null) {
13269
+ return acc;
13270
+ }
13271
+ acc[key] = deserializeAws_restJson1Reference(value, context);
13272
+ return acc;
13273
+ }, {});
13274
+ };
12814
13275
  const deserializeAws_restJson1Credentials = (output, context) => {
12815
13276
  return {
12816
13277
  AccessToken: (0, smithy_client_1.expectString)(output.AccessToken),
@@ -12925,6 +13386,11 @@ const deserializeAws_restJson1EncryptionConfig = (output, context) => {
12925
13386
  KeyId: (0, smithy_client_1.expectString)(output.KeyId),
12926
13387
  };
12927
13388
  };
13389
+ const deserializeAws_restJson1EventBridgeActionDefinition = (output, context) => {
13390
+ return {
13391
+ Name: (0, smithy_client_1.expectString)(output.Name),
13392
+ };
13393
+ };
12928
13394
  const deserializeAws_restJson1FunctionArnsList = (output, context) => {
12929
13395
  const retVal = (output || [])
12930
13396
  .filter((e) => e != null)
@@ -13324,6 +13790,12 @@ const deserializeAws_restJson1MediaConcurrency = (output, context) => {
13324
13790
  Concurrency: (0, smithy_client_1.expectInt32)(output.Concurrency),
13325
13791
  };
13326
13792
  };
13793
+ const deserializeAws_restJson1NotificationRecipientType = (output, context) => {
13794
+ return {
13795
+ UserIds: output.UserIds != null ? deserializeAws_restJson1UserIdList(output.UserIds, context) : undefined,
13796
+ UserTags: output.UserTags != null ? deserializeAws_restJson1UserTagMap(output.UserTags, context) : undefined,
13797
+ };
13798
+ };
13327
13799
  const deserializeAws_restJson1NumberReference = (output, context) => {
13328
13800
  return {
13329
13801
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -13568,6 +14040,12 @@ const deserializeAws_restJson1ReadOnlyTaskTemplateFields = (output, context) =>
13568
14040
  });
13569
14041
  return retVal;
13570
14042
  };
14043
+ const deserializeAws_restJson1Reference = (output, context) => {
14044
+ return {
14045
+ Type: (0, smithy_client_1.expectString)(output.Type),
14046
+ Value: (0, smithy_client_1.expectString)(output.Value),
14047
+ };
14048
+ };
13571
14049
  const deserializeAws_restJson1ReferenceSummary = (output, context) => {
13572
14050
  if (output.Attachment != null) {
13573
14051
  return {
@@ -13700,6 +14178,88 @@ const deserializeAws_restJson1RoutingProfileSummaryList = (output, context) => {
13700
14178
  });
13701
14179
  return retVal;
13702
14180
  };
14181
+ const deserializeAws_restJson1Rule = (output, context) => {
14182
+ return {
14183
+ Actions: output.Actions != null ? deserializeAws_restJson1RuleActions(output.Actions, context) : undefined,
14184
+ CreatedTime: output.CreatedTime != null
14185
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
14186
+ : undefined,
14187
+ Function: (0, smithy_client_1.expectString)(output.Function),
14188
+ LastUpdatedBy: (0, smithy_client_1.expectString)(output.LastUpdatedBy),
14189
+ LastUpdatedTime: output.LastUpdatedTime != null
14190
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
14191
+ : undefined,
14192
+ Name: (0, smithy_client_1.expectString)(output.Name),
14193
+ PublishStatus: (0, smithy_client_1.expectString)(output.PublishStatus),
14194
+ RuleArn: (0, smithy_client_1.expectString)(output.RuleArn),
14195
+ RuleId: (0, smithy_client_1.expectString)(output.RuleId),
14196
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
14197
+ TriggerEventSource: output.TriggerEventSource != null
14198
+ ? deserializeAws_restJson1RuleTriggerEventSource(output.TriggerEventSource, context)
14199
+ : undefined,
14200
+ };
14201
+ };
14202
+ const deserializeAws_restJson1RuleAction = (output, context) => {
14203
+ return {
14204
+ ActionType: (0, smithy_client_1.expectString)(output.ActionType),
14205
+ AssignContactCategoryAction: output.AssignContactCategoryAction != null
14206
+ ? deserializeAws_restJson1AssignContactCategoryActionDefinition(output.AssignContactCategoryAction, context)
14207
+ : undefined,
14208
+ EventBridgeAction: output.EventBridgeAction != null
14209
+ ? deserializeAws_restJson1EventBridgeActionDefinition(output.EventBridgeAction, context)
14210
+ : undefined,
14211
+ SendNotificationAction: output.SendNotificationAction != null
14212
+ ? deserializeAws_restJson1SendNotificationActionDefinition(output.SendNotificationAction, context)
14213
+ : undefined,
14214
+ TaskAction: output.TaskAction != null ? deserializeAws_restJson1TaskActionDefinition(output.TaskAction, context) : undefined,
14215
+ };
14216
+ };
14217
+ const deserializeAws_restJson1RuleActions = (output, context) => {
14218
+ const retVal = (output || [])
14219
+ .filter((e) => e != null)
14220
+ .map((entry) => {
14221
+ if (entry === null) {
14222
+ return null;
14223
+ }
14224
+ return deserializeAws_restJson1RuleAction(entry, context);
14225
+ });
14226
+ return retVal;
14227
+ };
14228
+ const deserializeAws_restJson1RuleSummary = (output, context) => {
14229
+ return {
14230
+ ActionSummaries: output.ActionSummaries != null
14231
+ ? deserializeAws_restJson1ActionSummaries(output.ActionSummaries, context)
14232
+ : undefined,
14233
+ CreatedTime: output.CreatedTime != null
14234
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
14235
+ : undefined,
14236
+ EventSourceName: (0, smithy_client_1.expectString)(output.EventSourceName),
14237
+ LastUpdatedTime: output.LastUpdatedTime != null
14238
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
14239
+ : undefined,
14240
+ Name: (0, smithy_client_1.expectString)(output.Name),
14241
+ PublishStatus: (0, smithy_client_1.expectString)(output.PublishStatus),
14242
+ RuleArn: (0, smithy_client_1.expectString)(output.RuleArn),
14243
+ RuleId: (0, smithy_client_1.expectString)(output.RuleId),
14244
+ };
14245
+ };
14246
+ const deserializeAws_restJson1RuleSummaryList = (output, context) => {
14247
+ const retVal = (output || [])
14248
+ .filter((e) => e != null)
14249
+ .map((entry) => {
14250
+ if (entry === null) {
14251
+ return null;
14252
+ }
14253
+ return deserializeAws_restJson1RuleSummary(entry, context);
14254
+ });
14255
+ return retVal;
14256
+ };
14257
+ const deserializeAws_restJson1RuleTriggerEventSource = (output, context) => {
14258
+ return {
14259
+ EventSourceName: (0, smithy_client_1.expectString)(output.EventSourceName),
14260
+ IntegrationAssociationId: (0, smithy_client_1.expectString)(output.IntegrationAssociationId),
14261
+ };
14262
+ };
13703
14263
  const deserializeAws_restJson1S3Config = (output, context) => {
13704
14264
  return {
13705
14265
  BucketName: (0, smithy_client_1.expectString)(output.BucketName),
@@ -13795,6 +14355,17 @@ const deserializeAws_restJson1SecurityProfileSummaryList = (output, context) =>
13795
14355
  });
13796
14356
  return retVal;
13797
14357
  };
14358
+ const deserializeAws_restJson1SendNotificationActionDefinition = (output, context) => {
14359
+ return {
14360
+ Content: (0, smithy_client_1.expectString)(output.Content),
14361
+ ContentType: (0, smithy_client_1.expectString)(output.ContentType),
14362
+ DeliveryMethod: (0, smithy_client_1.expectString)(output.DeliveryMethod),
14363
+ Recipient: output.Recipient != null
14364
+ ? deserializeAws_restJson1NotificationRecipientType(output.Recipient, context)
14365
+ : undefined,
14366
+ Subject: (0, smithy_client_1.expectString)(output.Subject),
14367
+ };
14368
+ };
13798
14369
  const deserializeAws_restJson1SingleSelectOptions = (output, context) => {
13799
14370
  const retVal = (output || [])
13800
14371
  .filter((e) => e != null)
@@ -13832,6 +14403,14 @@ const deserializeAws_restJson1TagRestrictedResourceList = (output, context) => {
13832
14403
  });
13833
14404
  return retVal;
13834
14405
  };
14406
+ const deserializeAws_restJson1TaskActionDefinition = (output, context) => {
14407
+ return {
14408
+ ContactFlowId: (0, smithy_client_1.expectString)(output.ContactFlowId),
14409
+ Description: (0, smithy_client_1.expectString)(output.Description),
14410
+ Name: (0, smithy_client_1.expectString)(output.Name),
14411
+ References: output.References != null ? deserializeAws_restJson1ContactReferences(output.References, context) : undefined,
14412
+ };
14413
+ };
13835
14414
  const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
13836
14415
  return {
13837
14416
  InvisibleFields: output.InvisibleFields != null
@@ -14053,6 +14632,17 @@ const deserializeAws_restJson1UserIdentityInfoLite = (output, context) => {
14053
14632
  LastName: (0, smithy_client_1.expectString)(output.LastName),
14054
14633
  };
14055
14634
  };
14635
+ const deserializeAws_restJson1UserIdList = (output, context) => {
14636
+ const retVal = (output || [])
14637
+ .filter((e) => e != null)
14638
+ .map((entry) => {
14639
+ if (entry === null) {
14640
+ return null;
14641
+ }
14642
+ return (0, smithy_client_1.expectString)(entry);
14643
+ });
14644
+ return retVal;
14645
+ };
14056
14646
  const deserializeAws_restJson1UserPhoneConfig = (output, context) => {
14057
14647
  return {
14058
14648
  AfterContactWorkTimeLimit: (0, smithy_client_1.expectInt32)(output.AfterContactWorkTimeLimit),
@@ -14120,6 +14710,15 @@ const deserializeAws_restJson1UserSummaryList = (output, context) => {
14120
14710
  });
14121
14711
  return retVal;
14122
14712
  };
14713
+ const deserializeAws_restJson1UserTagMap = (output, context) => {
14714
+ return Object.entries(output).reduce((acc, [key, value]) => {
14715
+ if (value === null) {
14716
+ return acc;
14717
+ }
14718
+ acc[key] = (0, smithy_client_1.expectString)(value);
14719
+ return acc;
14720
+ }, {});
14721
+ };
14123
14722
  const deserializeAws_restJson1Vocabulary = (output, context) => {
14124
14723
  return {
14125
14724
  Arn: (0, smithy_client_1.expectString)(output.Arn),