From a878acd8fcd06ca59191e4476afab267ae6d1adf Mon Sep 17 00:00:00 2001 From: Tianyi Wang Date: Mon, 29 Apr 2024 14:43:36 -0400 Subject: [PATCH 1/3] remove alexaforbusiness from go v2 --- .../aws-models/alexa-for-business.json | 10761 --------- service/alexaforbusiness/CHANGELOG.md | 373 - service/alexaforbusiness/LICENSE.txt | 202 - service/alexaforbusiness/api_client.go | 553 - service/alexaforbusiness/api_client_test.go | 127 - .../alexaforbusiness/api_op_ApproveSkill.go | 135 - .../api_op_AssociateContactWithAddressBook.go | 138 - ...pi_op_AssociateDeviceWithNetworkProfile.go | 138 - .../api_op_AssociateDeviceWithRoom.go | 134 - .../api_op_AssociateSkillGroupWithRoom.go | 132 - .../api_op_AssociateSkillWithSkillGroup.go | 136 - .../api_op_AssociateSkillWithUsers.go | 133 - .../api_op_CreateAddressBook.go | 183 - .../api_op_CreateBusinessReportSchedule.go | 201 - .../api_op_CreateConferenceProvider.go | 196 - .../alexaforbusiness/api_op_CreateContact.go | 197 - .../api_op_CreateGatewayGroup.go | 185 - .../api_op_CreateNetworkProfile.go | 216 - .../alexaforbusiness/api_op_CreateProfile.go | 224 - service/alexaforbusiness/api_op_CreateRoom.go | 189 - .../api_op_CreateSkillGroup.go | 183 - service/alexaforbusiness/api_op_CreateUser.go | 189 - .../api_op_DeleteAddressBook.go | 133 - .../api_op_DeleteBusinessReportSchedule.go | 133 - .../api_op_DeleteConferenceProvider.go | 133 - .../alexaforbusiness/api_op_DeleteContact.go | 133 - .../alexaforbusiness/api_op_DeleteDevice.go | 133 - .../api_op_DeleteDeviceUsageData.go | 142 - .../api_op_DeleteGatewayGroup.go | 133 - .../api_op_DeleteNetworkProfile.go | 133 - .../alexaforbusiness/api_op_DeleteProfile.go | 128 - service/alexaforbusiness/api_op_DeleteRoom.go | 128 - .../api_op_DeleteRoomSkillParameter.go | 141 - .../api_op_DeleteSkillAuthorization.go | 136 - .../api_op_DeleteSkillGroup.go | 128 - service/alexaforbusiness/api_op_DeleteUser.go | 136 - ...i_op_DisassociateContactFromAddressBook.go | 138 - .../api_op_DisassociateDeviceFromRoom.go | 130 - .../api_op_DisassociateSkillFromSkillGroup.go | 136 - .../api_op_DisassociateSkillFromUsers.go | 134 - .../api_op_DisassociateSkillGroupFromRoom.go | 132 - .../api_op_ForgetSmartHomeAppliances.go | 133 - .../alexaforbusiness/api_op_GetAddressBook.go | 138 - .../api_op_GetConferencePreference.go | 129 - .../api_op_GetConferenceProvider.go | 138 - service/alexaforbusiness/api_op_GetContact.go | 138 - service/alexaforbusiness/api_op_GetDevice.go | 133 - service/alexaforbusiness/api_op_GetGateway.go | 138 - .../api_op_GetGatewayGroup.go | 138 - .../api_op_GetInvitationConfiguration.go | 137 - .../api_op_GetNetworkProfile.go | 138 - service/alexaforbusiness/api_op_GetProfile.go | 133 - service/alexaforbusiness/api_op_GetRoom.go | 133 - .../api_op_GetRoomSkillParameter.go | 147 - .../alexaforbusiness/api_op_GetSkillGroup.go | 133 - .../api_op_ListBusinessReportSchedules.go | 234 - .../api_op_ListConferenceProviders.go | 231 - .../api_op_ListDeviceEvents.go | 251 - .../api_op_ListGatewayGroups.go | 230 - .../alexaforbusiness/api_op_ListGateways.go | 233 - service/alexaforbusiness/api_op_ListSkills.go | 243 - .../api_op_ListSkillsStoreCategories.go | 231 - .../api_op_ListSkillsStoreSkillsByCategory.go | 240 - .../api_op_ListSmartHomeAppliances.go | 239 - service/alexaforbusiness/api_op_ListTags.go | 242 - .../api_op_PutConferencePreference.go | 135 - .../api_op_PutInvitationConfiguration.go | 142 - .../api_op_PutRoomSkillParameter.go | 143 - .../api_op_PutSkillAuthorization.go | 145 - .../api_op_RegisterAVSDevice.go | 169 - .../alexaforbusiness/api_op_RejectSkill.go | 136 - .../alexaforbusiness/api_op_ResolveRoom.go | 156 - .../api_op_RevokeInvitation.go | 131 - .../api_op_SearchAddressBooks.go | 251 - .../alexaforbusiness/api_op_SearchContacts.go | 250 - .../alexaforbusiness/api_op_SearchDevices.go | 252 - .../api_op_SearchNetworkProfiles.go | 254 - .../alexaforbusiness/api_op_SearchProfiles.go | 249 - .../alexaforbusiness/api_op_SearchRooms.go | 248 - .../api_op_SearchSkillGroups.go | 251 - .../alexaforbusiness/api_op_SearchUsers.go | 249 - .../api_op_SendAnnouncement.go | 190 - .../alexaforbusiness/api_op_SendInvitation.go | 129 - .../api_op_StartDeviceSync.go | 149 - ...api_op_StartSmartHomeApplianceDiscovery.go | 133 - .../alexaforbusiness/api_op_TagResource.go | 140 - .../alexaforbusiness/api_op_UntagResource.go | 139 - .../api_op_UpdateAddressBook.go | 139 - .../api_op_UpdateBusinessReportSchedule.go | 151 - .../api_op_UpdateConferenceProvider.go | 150 - .../alexaforbusiness/api_op_UpdateContact.go | 155 - .../alexaforbusiness/api_op_UpdateDevice.go | 131 - .../alexaforbusiness/api_op_UpdateGateway.go | 144 - .../api_op_UpdateGatewayGroup.go | 140 - .../api_op_UpdateNetworkProfile.go | 156 - .../alexaforbusiness/api_op_UpdateProfile.go | 173 - service/alexaforbusiness/api_op_UpdateRoom.go | 140 - .../api_op_UpdateSkillGroup.go | 134 - service/alexaforbusiness/auth.go | 284 - service/alexaforbusiness/deserializers.go | 19191 ---------------- service/alexaforbusiness/doc.go | 7 - service/alexaforbusiness/endpoints.go | 516 - .../alexaforbusiness/endpoints_config_test.go | 139 - service/alexaforbusiness/endpoints_test.go | 820 - service/alexaforbusiness/generated.json | 125 - service/alexaforbusiness/go.mod | 16 - service/alexaforbusiness/go.sum | 2 - .../alexaforbusiness/go_module_metadata.go | 6 - .../internal/endpoints/endpoints.go | 301 - .../internal/endpoints/endpoints_test.go | 11 - service/alexaforbusiness/options.go | 221 - service/alexaforbusiness/protocol_test.go | 3 - service/alexaforbusiness/serializers.go | 7963 ------- .../snapshot/api_op_ApproveSkill.go.snap | 34 - ...op_AssociateContactWithAddressBook.go.snap | 34 - ..._AssociateDeviceWithNetworkProfile.go.snap | 34 - .../api_op_AssociateDeviceWithRoom.go.snap | 33 - ...api_op_AssociateSkillGroupWithRoom.go.snap | 33 - ...pi_op_AssociateSkillWithSkillGroup.go.snap | 34 - .../api_op_AssociateSkillWithUsers.go.snap | 34 - .../snapshot/api_op_CreateAddressBook.go.snap | 35 - ...pi_op_CreateBusinessReportSchedule.go.snap | 35 - .../api_op_CreateConferenceProvider.go.snap | 35 - .../snapshot/api_op_CreateContact.go.snap | 35 - .../api_op_CreateGatewayGroup.go.snap | 35 - .../api_op_CreateNetworkProfile.go.snap | 35 - .../snapshot/api_op_CreateProfile.go.snap | 35 - .../snapshot/api_op_CreateRoom.go.snap | 35 - .../snapshot/api_op_CreateSkillGroup.go.snap | 35 - .../snapshot/api_op_CreateUser.go.snap | 35 - .../snapshot/api_op_DeleteAddressBook.go.snap | 34 - ...pi_op_DeleteBusinessReportSchedule.go.snap | 34 - .../api_op_DeleteConferenceProvider.go.snap | 34 - .../snapshot/api_op_DeleteContact.go.snap | 34 - .../snapshot/api_op_DeleteDevice.go.snap | 34 - .../api_op_DeleteDeviceUsageData.go.snap | 34 - .../api_op_DeleteGatewayGroup.go.snap | 34 - .../api_op_DeleteNetworkProfile.go.snap | 34 - .../snapshot/api_op_DeleteProfile.go.snap | 33 - .../snapshot/api_op_DeleteRoom.go.snap | 33 - .../api_op_DeleteRoomSkillParameter.go.snap | 34 - .../api_op_DeleteSkillAuthorization.go.snap | 34 - .../snapshot/api_op_DeleteSkillGroup.go.snap | 33 - .../snapshot/api_op_DeleteUser.go.snap | 34 - ...DisassociateContactFromAddressBook.go.snap | 34 - .../api_op_DisassociateDeviceFromRoom.go.snap | 33 - ...op_DisassociateSkillFromSkillGroup.go.snap | 34 - .../api_op_DisassociateSkillFromUsers.go.snap | 34 - ..._op_DisassociateSkillGroupFromRoom.go.snap | 33 - .../api_op_ForgetSmartHomeAppliances.go.snap | 34 - .../snapshot/api_op_GetAddressBook.go.snap | 34 - .../api_op_GetConferencePreference.go.snap | 33 - .../api_op_GetConferenceProvider.go.snap | 34 - .../snapshot/api_op_GetContact.go.snap | 34 - .../snapshot/api_op_GetDevice.go.snap | 33 - .../snapshot/api_op_GetGateway.go.snap | 34 - .../snapshot/api_op_GetGatewayGroup.go.snap | 34 - .../api_op_GetInvitationConfiguration.go.snap | 33 - .../snapshot/api_op_GetNetworkProfile.go.snap | 34 - .../snapshot/api_op_GetProfile.go.snap | 33 - .../snapshot/api_op_GetRoom.go.snap | 33 - .../api_op_GetRoomSkillParameter.go.snap | 34 - .../snapshot/api_op_GetSkillGroup.go.snap | 33 - ...api_op_ListBusinessReportSchedules.go.snap | 33 - .../api_op_ListConferenceProviders.go.snap | 33 - .../snapshot/api_op_ListDeviceEvents.go.snap | 34 - .../snapshot/api_op_ListGatewayGroups.go.snap | 33 - .../snapshot/api_op_ListGateways.go.snap | 33 - .../snapshot/api_op_ListSkills.go.snap | 33 - .../api_op_ListSkillsStoreCategories.go.snap | 33 - ...op_ListSkillsStoreSkillsByCategory.go.snap | 34 - .../api_op_ListSmartHomeAppliances.go.snap | 34 - .../snapshot/api_op_ListTags.go.snap | 34 - .../api_op_PutConferencePreference.go.snap | 34 - .../api_op_PutInvitationConfiguration.go.snap | 34 - .../api_op_PutRoomSkillParameter.go.snap | 34 - .../api_op_PutSkillAuthorization.go.snap | 34 - .../snapshot/api_op_RegisterAVSDevice.go.snap | 34 - .../snapshot/api_op_RejectSkill.go.snap | 34 - .../snapshot/api_op_ResolveRoom.go.snap | 34 - .../snapshot/api_op_RevokeInvitation.go.snap | 33 - .../api_op_SearchAddressBooks.go.snap | 34 - .../snapshot/api_op_SearchContacts.go.snap | 34 - .../snapshot/api_op_SearchDevices.go.snap | 34 - .../api_op_SearchNetworkProfiles.go.snap | 34 - .../snapshot/api_op_SearchProfiles.go.snap | 34 - .../snapshot/api_op_SearchRooms.go.snap | 34 - .../snapshot/api_op_SearchSkillGroups.go.snap | 34 - .../snapshot/api_op_SearchUsers.go.snap | 34 - .../snapshot/api_op_SendAnnouncement.go.snap | 35 - .../snapshot/api_op_SendInvitation.go.snap | 33 - .../snapshot/api_op_StartDeviceSync.go.snap | 34 - ...p_StartSmartHomeApplianceDiscovery.go.snap | 34 - .../snapshot/api_op_TagResource.go.snap | 34 - .../snapshot/api_op_UntagResource.go.snap | 34 - .../snapshot/api_op_UpdateAddressBook.go.snap | 34 - ...pi_op_UpdateBusinessReportSchedule.go.snap | 34 - .../api_op_UpdateConferenceProvider.go.snap | 34 - .../snapshot/api_op_UpdateContact.go.snap | 34 - .../snapshot/api_op_UpdateDevice.go.snap | 33 - .../snapshot/api_op_UpdateGateway.go.snap | 34 - .../api_op_UpdateGatewayGroup.go.snap | 34 - .../api_op_UpdateNetworkProfile.go.snap | 34 - .../snapshot/api_op_UpdateProfile.go.snap | 34 - .../snapshot/api_op_UpdateRoom.go.snap | 33 - .../snapshot/api_op_UpdateSkillGroup.go.snap | 33 - service/alexaforbusiness/snapshot_test.go | 2294 -- service/alexaforbusiness/types/enums.go | 597 - service/alexaforbusiness/types/errors.go | 408 - service/alexaforbusiness/types/types.go | 1315 -- service/alexaforbusiness/validators.go | 3511 --- 211 files changed, 68278 deletions(-) delete mode 100644 codegen/sdk-codegen/aws-models/alexa-for-business.json delete mode 100644 service/alexaforbusiness/CHANGELOG.md delete mode 100644 service/alexaforbusiness/LICENSE.txt delete mode 100644 service/alexaforbusiness/api_client.go delete mode 100644 service/alexaforbusiness/api_client_test.go delete mode 100644 service/alexaforbusiness/api_op_ApproveSkill.go delete mode 100644 service/alexaforbusiness/api_op_AssociateContactWithAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_AssociateDeviceWithNetworkProfile.go delete mode 100644 service/alexaforbusiness/api_op_AssociateDeviceWithRoom.go delete mode 100644 service/alexaforbusiness/api_op_AssociateSkillGroupWithRoom.go delete mode 100644 service/alexaforbusiness/api_op_AssociateSkillWithSkillGroup.go delete mode 100644 service/alexaforbusiness/api_op_AssociateSkillWithUsers.go delete mode 100644 service/alexaforbusiness/api_op_CreateAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go delete mode 100644 service/alexaforbusiness/api_op_CreateConferenceProvider.go delete mode 100644 service/alexaforbusiness/api_op_CreateContact.go delete mode 100644 service/alexaforbusiness/api_op_CreateGatewayGroup.go delete mode 100644 service/alexaforbusiness/api_op_CreateNetworkProfile.go delete mode 100644 service/alexaforbusiness/api_op_CreateProfile.go delete mode 100644 service/alexaforbusiness/api_op_CreateRoom.go delete mode 100644 service/alexaforbusiness/api_op_CreateSkillGroup.go delete mode 100644 service/alexaforbusiness/api_op_CreateUser.go delete mode 100644 service/alexaforbusiness/api_op_DeleteAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_DeleteBusinessReportSchedule.go delete mode 100644 service/alexaforbusiness/api_op_DeleteConferenceProvider.go delete mode 100644 service/alexaforbusiness/api_op_DeleteContact.go delete mode 100644 service/alexaforbusiness/api_op_DeleteDevice.go delete mode 100644 service/alexaforbusiness/api_op_DeleteDeviceUsageData.go delete mode 100644 service/alexaforbusiness/api_op_DeleteGatewayGroup.go delete mode 100644 service/alexaforbusiness/api_op_DeleteNetworkProfile.go delete mode 100644 service/alexaforbusiness/api_op_DeleteProfile.go delete mode 100644 service/alexaforbusiness/api_op_DeleteRoom.go delete mode 100644 service/alexaforbusiness/api_op_DeleteRoomSkillParameter.go delete mode 100644 service/alexaforbusiness/api_op_DeleteSkillAuthorization.go delete mode 100644 service/alexaforbusiness/api_op_DeleteSkillGroup.go delete mode 100644 service/alexaforbusiness/api_op_DeleteUser.go delete mode 100644 service/alexaforbusiness/api_op_DisassociateContactFromAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_DisassociateDeviceFromRoom.go delete mode 100644 service/alexaforbusiness/api_op_DisassociateSkillFromSkillGroup.go delete mode 100644 service/alexaforbusiness/api_op_DisassociateSkillFromUsers.go delete mode 100644 service/alexaforbusiness/api_op_DisassociateSkillGroupFromRoom.go delete mode 100644 service/alexaforbusiness/api_op_ForgetSmartHomeAppliances.go delete mode 100644 service/alexaforbusiness/api_op_GetAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_GetConferencePreference.go delete mode 100644 service/alexaforbusiness/api_op_GetConferenceProvider.go delete mode 100644 service/alexaforbusiness/api_op_GetContact.go delete mode 100644 service/alexaforbusiness/api_op_GetDevice.go delete mode 100644 service/alexaforbusiness/api_op_GetGateway.go delete mode 100644 service/alexaforbusiness/api_op_GetGatewayGroup.go delete mode 100644 service/alexaforbusiness/api_op_GetInvitationConfiguration.go delete mode 100644 service/alexaforbusiness/api_op_GetNetworkProfile.go delete mode 100644 service/alexaforbusiness/api_op_GetProfile.go delete mode 100644 service/alexaforbusiness/api_op_GetRoom.go delete mode 100644 service/alexaforbusiness/api_op_GetRoomSkillParameter.go delete mode 100644 service/alexaforbusiness/api_op_GetSkillGroup.go delete mode 100644 service/alexaforbusiness/api_op_ListBusinessReportSchedules.go delete mode 100644 service/alexaforbusiness/api_op_ListConferenceProviders.go delete mode 100644 service/alexaforbusiness/api_op_ListDeviceEvents.go delete mode 100644 service/alexaforbusiness/api_op_ListGatewayGroups.go delete mode 100644 service/alexaforbusiness/api_op_ListGateways.go delete mode 100644 service/alexaforbusiness/api_op_ListSkills.go delete mode 100644 service/alexaforbusiness/api_op_ListSkillsStoreCategories.go delete mode 100644 service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go delete mode 100644 service/alexaforbusiness/api_op_ListSmartHomeAppliances.go delete mode 100644 service/alexaforbusiness/api_op_ListTags.go delete mode 100644 service/alexaforbusiness/api_op_PutConferencePreference.go delete mode 100644 service/alexaforbusiness/api_op_PutInvitationConfiguration.go delete mode 100644 service/alexaforbusiness/api_op_PutRoomSkillParameter.go delete mode 100644 service/alexaforbusiness/api_op_PutSkillAuthorization.go delete mode 100644 service/alexaforbusiness/api_op_RegisterAVSDevice.go delete mode 100644 service/alexaforbusiness/api_op_RejectSkill.go delete mode 100644 service/alexaforbusiness/api_op_ResolveRoom.go delete mode 100644 service/alexaforbusiness/api_op_RevokeInvitation.go delete mode 100644 service/alexaforbusiness/api_op_SearchAddressBooks.go delete mode 100644 service/alexaforbusiness/api_op_SearchContacts.go delete mode 100644 service/alexaforbusiness/api_op_SearchDevices.go delete mode 100644 service/alexaforbusiness/api_op_SearchNetworkProfiles.go delete mode 100644 service/alexaforbusiness/api_op_SearchProfiles.go delete mode 100644 service/alexaforbusiness/api_op_SearchRooms.go delete mode 100644 service/alexaforbusiness/api_op_SearchSkillGroups.go delete mode 100644 service/alexaforbusiness/api_op_SearchUsers.go delete mode 100644 service/alexaforbusiness/api_op_SendAnnouncement.go delete mode 100644 service/alexaforbusiness/api_op_SendInvitation.go delete mode 100644 service/alexaforbusiness/api_op_StartDeviceSync.go delete mode 100644 service/alexaforbusiness/api_op_StartSmartHomeApplianceDiscovery.go delete mode 100644 service/alexaforbusiness/api_op_TagResource.go delete mode 100644 service/alexaforbusiness/api_op_UntagResource.go delete mode 100644 service/alexaforbusiness/api_op_UpdateAddressBook.go delete mode 100644 service/alexaforbusiness/api_op_UpdateBusinessReportSchedule.go delete mode 100644 service/alexaforbusiness/api_op_UpdateConferenceProvider.go delete mode 100644 service/alexaforbusiness/api_op_UpdateContact.go delete mode 100644 service/alexaforbusiness/api_op_UpdateDevice.go delete mode 100644 service/alexaforbusiness/api_op_UpdateGateway.go delete mode 100644 service/alexaforbusiness/api_op_UpdateGatewayGroup.go delete mode 100644 service/alexaforbusiness/api_op_UpdateNetworkProfile.go delete mode 100644 service/alexaforbusiness/api_op_UpdateProfile.go delete mode 100644 service/alexaforbusiness/api_op_UpdateRoom.go delete mode 100644 service/alexaforbusiness/api_op_UpdateSkillGroup.go delete mode 100644 service/alexaforbusiness/auth.go delete mode 100644 service/alexaforbusiness/deserializers.go delete mode 100644 service/alexaforbusiness/doc.go delete mode 100644 service/alexaforbusiness/endpoints.go delete mode 100644 service/alexaforbusiness/endpoints_config_test.go delete mode 100644 service/alexaforbusiness/endpoints_test.go delete mode 100644 service/alexaforbusiness/generated.json delete mode 100644 service/alexaforbusiness/go.mod delete mode 100644 service/alexaforbusiness/go.sum delete mode 100644 service/alexaforbusiness/go_module_metadata.go delete mode 100644 service/alexaforbusiness/internal/endpoints/endpoints.go delete mode 100644 service/alexaforbusiness/internal/endpoints/endpoints_test.go delete mode 100644 service/alexaforbusiness/options.go delete mode 100644 service/alexaforbusiness/protocol_test.go delete mode 100644 service/alexaforbusiness/serializers.go delete mode 100644 service/alexaforbusiness/snapshot/api_op_ApproveSkill.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateContactWithAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithNetworkProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateSkillGroupWithRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateSkillWithSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_AssociateSkillWithUsers.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateBusinessReportSchedule.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateConferenceProvider.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateContact.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateGatewayGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateNetworkProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_CreateUser.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteBusinessReportSchedule.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteConferenceProvider.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteContact.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteDevice.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteDeviceUsageData.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteGatewayGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteNetworkProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteRoomSkillParameter.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteSkillAuthorization.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DeleteUser.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DisassociateContactFromAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DisassociateDeviceFromRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromUsers.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_DisassociateSkillGroupFromRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ForgetSmartHomeAppliances.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetConferencePreference.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetConferenceProvider.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetContact.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetDevice.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetGateway.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetGatewayGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetInvitationConfiguration.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetNetworkProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetRoomSkillParameter.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_GetSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListBusinessReportSchedules.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListConferenceProviders.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListDeviceEvents.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListGatewayGroups.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListGateways.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListSkills.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListSkillsStoreCategories.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListSkillsStoreSkillsByCategory.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListSmartHomeAppliances.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ListTags.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_PutConferencePreference.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_PutInvitationConfiguration.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_PutRoomSkillParameter.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_PutSkillAuthorization.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_RegisterAVSDevice.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_RejectSkill.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_ResolveRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_RevokeInvitation.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchAddressBooks.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchContacts.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchDevices.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchNetworkProfiles.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchProfiles.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchRooms.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchSkillGroups.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SearchUsers.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SendAnnouncement.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_SendInvitation.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_StartDeviceSync.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_StartSmartHomeApplianceDiscovery.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_TagResource.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UntagResource.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateAddressBook.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateBusinessReportSchedule.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateConferenceProvider.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateContact.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateDevice.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateGateway.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateGatewayGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateNetworkProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateProfile.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateRoom.go.snap delete mode 100644 service/alexaforbusiness/snapshot/api_op_UpdateSkillGroup.go.snap delete mode 100644 service/alexaforbusiness/snapshot_test.go delete mode 100644 service/alexaforbusiness/types/enums.go delete mode 100644 service/alexaforbusiness/types/errors.go delete mode 100644 service/alexaforbusiness/types/types.go delete mode 100644 service/alexaforbusiness/validators.go diff --git a/codegen/sdk-codegen/aws-models/alexa-for-business.json b/codegen/sdk-codegen/aws-models/alexa-for-business.json deleted file mode 100644 index f5a63dd43d1..00000000000 --- a/codegen/sdk-codegen/aws-models/alexa-for-business.json +++ /dev/null @@ -1,10761 +0,0 @@ -{ - "smithy": "2.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, - "shapes": { - "com.amazonaws.alexaforbusiness#Address": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 500 - } - } - }, - "com.amazonaws.alexaforbusiness#AddressBook": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#AddressBookName", - "traits": { - "smithy.api#documentation": "

The name of the address book.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#AddressBookDescription", - "traits": { - "smithy.api#documentation": "

The description of the address book.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An address book with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#AddressBookData": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#AddressBookName", - "traits": { - "smithy.api#documentation": "

The name of the address book.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#AddressBookDescription", - "traits": { - "smithy.api#documentation": "

The description of the address book.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information related to an address book.

" - } - }, - "com.amazonaws.alexaforbusiness#AddressBookDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#AddressBookData" - } - }, - "com.amazonaws.alexaforbusiness#AddressBookDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 200 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#AddressBookName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#AlexaForBusiness": { - "type": "service", - "version": "2017-11-09", - "operations": [ - { - "target": "com.amazonaws.alexaforbusiness#ApproveSkill" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithUsers" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateBusinessReportSchedule" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateConferenceProvider" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateContact" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateGatewayGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateNetworkProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateSkillGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#CreateUser" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteBusinessReportSchedule" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteConferenceProvider" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteContact" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteDevice" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteDeviceUsageData" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteGatewayGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteNetworkProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameter" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillAuthorization" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeleteUser" - }, - { - "target": "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsers" - }, - { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliances" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetConferencePreference" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetConferenceProvider" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetContact" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetDevice" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetGateway" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetGatewayGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetInvitationConfiguration" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetNetworkProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetRoomSkillParameter" - }, - { - "target": "com.amazonaws.alexaforbusiness#GetSkillGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListBusinessReportSchedules" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListConferenceProviders" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListDeviceEvents" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListGatewayGroups" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListGateways" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListSkills" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreCategories" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategory" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListSmartHomeAppliances" - }, - { - "target": "com.amazonaws.alexaforbusiness#ListTags" - }, - { - "target": "com.amazonaws.alexaforbusiness#PutConferencePreference" - }, - { - "target": "com.amazonaws.alexaforbusiness#PutInvitationConfiguration" - }, - { - "target": "com.amazonaws.alexaforbusiness#PutRoomSkillParameter" - }, - { - "target": "com.amazonaws.alexaforbusiness#PutSkillAuthorization" - }, - { - "target": "com.amazonaws.alexaforbusiness#RegisterAVSDevice" - }, - { - "target": "com.amazonaws.alexaforbusiness#RejectSkill" - }, - { - "target": "com.amazonaws.alexaforbusiness#ResolveRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#RevokeInvitation" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchAddressBooks" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchContacts" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchDevices" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchNetworkProfiles" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchProfiles" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchRooms" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchSkillGroups" - }, - { - "target": "com.amazonaws.alexaforbusiness#SearchUsers" - }, - { - "target": "com.amazonaws.alexaforbusiness#SendAnnouncement" - }, - { - "target": "com.amazonaws.alexaforbusiness#SendInvitation" - }, - { - "target": "com.amazonaws.alexaforbusiness#StartDeviceSync" - }, - { - "target": "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscovery" - }, - { - "target": "com.amazonaws.alexaforbusiness#TagResource" - }, - { - "target": "com.amazonaws.alexaforbusiness#UntagResource" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateAddressBook" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateBusinessReportSchedule" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateConferenceProvider" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateContact" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateDevice" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateGateway" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateGatewayGroup" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateNetworkProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateProfile" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateRoom" - }, - { - "target": "com.amazonaws.alexaforbusiness#UpdateSkillGroup" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Alexa For Business", - "arnNamespace": "a4b", - "cloudFormationName": "AlexaForBusiness", - "cloudTrailEventSource": "alexaforbusiness.amazonaws.com", - "docId": "alexaforbusiness-2017-11-09", - "endpointPrefix": "a4b" - }, - "aws.auth#sigv4": { - "name": "a4b" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Alexa for Business has been retired and is no longer supported.

", - "smithy.api#title": "Alexa For Business", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://a4b-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://a4b-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://a4b.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://a4b.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] - }, - "smithy.rules#endpointTests": { - "testCases": [ - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://a4b.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" - } - } - }, - "com.amazonaws.alexaforbusiness#AlreadyExistsException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The resource being created already exists.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#AmazonId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-zA-Z0-9]{1,18}$" - } - }, - "com.amazonaws.alexaforbusiness#ApplianceDescription": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ApplianceFriendlyName": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ApplianceManufacturerName": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ApproveSkill": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ApproveSkillRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ApproveSkillResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a skill with the organization under the customer's AWS account. If a skill\n is private, the user implicitly accepts access to this skill during enablement.

" - } - }, - "com.amazonaws.alexaforbusiness#ApproveSkillRequest": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The unique identifier of the skill.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ApproveSkillResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Arn": { - "type": "string", - "traits": { - "smithy.api#pattern": "^arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}$" - } - }, - "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBookResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a contact with a given address book.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBookRequest": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact to associate with an address book.

", - "smithy.api#required": {} - } - }, - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book with which to associate the contact.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateContactWithAddressBookResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a device with the specified network profile.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfileRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The device ARN.

", - "smithy.api#required": {} - } - }, - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile to associate with a device.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithNetworkProfileResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a device with a given room. This applies all the settings from the room\n profile to the device, and all the skills in any skill groups added to that room. This\n operation requires the device to be online, or else a manual sync is required.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoomRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device to associate to a room. Required.

" - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room with which to associate the device. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateDeviceWithRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a skill group with a given room. This enables all skills in the associated\n skill group on all devices in the room.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoomRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group to associate with a room. Required.

" - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room with which to associate the skill group. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillGroupWithRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - }, - { - "target": "com.amazonaws.alexaforbusiness#SkillNotLinkedException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Associates a skill with a skill group.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group to associate the skill to. Required.

" - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The unique identifier of the skill.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithSkillGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithUsers": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithUsersRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#AssociateSkillWithUsersResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Makes a private skill available for enrolled users to enable on their devices.

" - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithUsersRequest": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The private skill ID you want to make available to enrolled users.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#AssociateSkillWithUsersResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Audio": { - "type": "structure", - "members": { - "Locale": { - "target": "com.amazonaws.alexaforbusiness#Locale", - "traits": { - "smithy.api#documentation": "

The locale of the audio message. Currently, en-US is supported.

", - "smithy.api#required": {} - } - }, - "Location": { - "target": "com.amazonaws.alexaforbusiness#AudioLocation", - "traits": { - "smithy.api#documentation": "

The location of the audio file. Currently, S3 URLs are supported. Only S3 locations\n comprised of safe characters are valid. For more information, see Safe Characters.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The audio message. There is a 1 MB limit on the audio file input and the only supported\n format is MP3. To convert your MP3 audio files to an Alexa-friendly,

\n

required codec version (MPEG version 2) and bit rate (48 kbps), you might use converter\n software. One option for this is a command-line tool, FFmpeg. For more information, see\n FFmpeg. The following command converts the\n provided to an MP3 file that is played in the announcement:

\n

\n ffmpeg -i -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000\n \n

" - } - }, - "com.amazonaws.alexaforbusiness#AudioList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Audio" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#AudioLocation": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1200 - }, - "smithy.api#pattern": "^https://([A-Za-z0-9_.-]+)?(s3-[A-Za-z0-9-]+|s3\\.([A-Za-z0-9-])+|s3|s3.dualstack\\.([A-Za-z0-9-])+)+.amazonaws.com/" - } - }, - "com.amazonaws.alexaforbusiness#AuthorizationResult": { - "type": "map", - "key": { - "target": "com.amazonaws.alexaforbusiness#Key" - }, - "value": { - "target": "com.amazonaws.alexaforbusiness#Value" - }, - "traits": { - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#Boolean": { - "type": "boolean" - }, - "com.amazonaws.alexaforbusiness#Boolean2": { - "type": "boolean", - "traits": { - "smithy.api#default": false - } - }, - "com.amazonaws.alexaforbusiness#BulletPoint": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#BulletPoints": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#BulletPoint" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReport": { - "type": "structure", - "members": { - "Status": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportStatus", - "traits": { - "smithy.api#documentation": "

The status of the report generation execution (RUNNING, SUCCEEDED, or\n FAILED).

" - } - }, - "FailureCode": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportFailureCode", - "traits": { - "smithy.api#documentation": "

The failure code.

" - } - }, - "S3Location": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportS3Location", - "traits": { - "smithy.api#documentation": "

The S3 location of the output reports.

" - } - }, - "DeliveryTime": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportDeliveryTime", - "traits": { - "smithy.api#documentation": "

The time of report delivery.

" - } - }, - "DownloadUrl": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportDownloadUrl", - "traits": { - "smithy.api#documentation": "

The download link where a user can download the report.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Usage report with specified parameters.

" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportContentRange": { - "type": "structure", - "members": { - "Interval": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportInterval", - "traits": { - "smithy.api#documentation": "

The interval of the content range.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The content range of the report.

" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportDeliveryTime": { - "type": "timestamp" - }, - "com.amazonaws.alexaforbusiness#BusinessReportDownloadUrl": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#BusinessReportFailureCode": { - "type": "enum", - "members": { - "ACCESS_DENIED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ACCESS_DENIED" - } - }, - "NO_SUCH_BUCKET": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "NO_SUCH_BUCKET" - } - }, - "INTERNAL_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "INTERNAL_FAILURE" - } - } - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportFormat": { - "type": "enum", - "members": { - "CSV": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CSV" - } - }, - "CSV_ZIP": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CSV_ZIP" - } - } - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportInterval": { - "type": "enum", - "members": { - "ONE_DAY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ONE_DAY" - } - }, - "ONE_WEEK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ONE_WEEK" - } - }, - "THIRTY_DAYS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "THIRTY_DAYS" - } - } - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportRecurrence": { - "type": "structure", - "members": { - "StartDate": { - "target": "com.amazonaws.alexaforbusiness#Date", - "traits": { - "smithy.api#documentation": "

The start date.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The recurrence of the reports.

" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportS3Location": { - "type": "structure", - "members": { - "Path": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportS3Path", - "traits": { - "smithy.api#documentation": "

The path of the business report.

" - } - }, - "BucketName": { - "target": "com.amazonaws.alexaforbusiness#CustomerS3BucketName", - "traits": { - "smithy.api#documentation": "

The S3 bucket name of the output reports.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The S3 location of the output reports.

" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportS3Path": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#BusinessReportSchedule": { - "type": "structure", - "members": { - "ScheduleArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the business report schedule.

" - } - }, - "ScheduleName": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportScheduleName", - "traits": { - "smithy.api#documentation": "

The name identifier of the schedule.

" - } - }, - "S3BucketName": { - "target": "com.amazonaws.alexaforbusiness#CustomerS3BucketName", - "traits": { - "smithy.api#documentation": "

The S3 bucket name of the output reports.

" - } - }, - "S3KeyPrefix": { - "target": "com.amazonaws.alexaforbusiness#S3KeyPrefix", - "traits": { - "smithy.api#documentation": "

The S3 key where the report is delivered.

" - } - }, - "Format": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportFormat", - "traits": { - "smithy.api#documentation": "

The format of the generated report (individual CSV files or zipped files of\n individual files).

" - } - }, - "ContentRange": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportContentRange", - "traits": { - "smithy.api#documentation": "

The content range of the reports.

" - } - }, - "Recurrence": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportRecurrence", - "traits": { - "smithy.api#documentation": "

The recurrence of the reports.

" - } - }, - "LastBusinessReport": { - "target": "com.amazonaws.alexaforbusiness#BusinessReport", - "traits": { - "smithy.api#documentation": "

The details of the last business report delivery for a specified time\n interval.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The schedule of the usage report.

" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportScheduleList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportSchedule" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportScheduleName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 64 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#BusinessReportStatus": { - "type": "enum", - "members": { - "RUNNING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "RUNNING" - } - }, - "SUCCEEDED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SUCCEEDED" - } - }, - "FAILED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "FAILED" - } - } - } - }, - "com.amazonaws.alexaforbusiness#Category": { - "type": "structure", - "members": { - "CategoryId": { - "target": "com.amazonaws.alexaforbusiness#CategoryId", - "traits": { - "smithy.api#documentation": "

The ID of the skill store category.

" - } - }, - "CategoryName": { - "target": "com.amazonaws.alexaforbusiness#CategoryName", - "traits": { - "smithy.api#documentation": "

The name of the skill store category.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The skill store category that is shown. Alexa skills are assigned a specific skill\n category during creation, such as News, Social, and Sports.

" - } - }, - "com.amazonaws.alexaforbusiness#CategoryId": { - "type": "long", - "traits": { - "smithy.api#range": { - "min": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#CategoryList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Category" - } - }, - "com.amazonaws.alexaforbusiness#CategoryName": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#CertificateTime": { - "type": "timestamp" - }, - "com.amazonaws.alexaforbusiness#ClientId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^\\S+{1,256}$" - } - }, - "com.amazonaws.alexaforbusiness#ClientRequestToken": { - "type": "string", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for the request that ensures idempotency.

", - "smithy.api#length": { - "min": 10, - "max": 150 - }, - "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" - } - }, - "com.amazonaws.alexaforbusiness#CommsProtocol": { - "type": "enum", - "members": { - "SIP": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SIP" - } - }, - "SIPS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SIPS" - } - }, - "H323": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "H323" - } - } - } - }, - "com.amazonaws.alexaforbusiness#ConcurrentModificationException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

There is a concurrent modification of resources.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#ConferencePreference": { - "type": "structure", - "members": { - "DefaultConferenceProviderArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the default conference provider.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The default conference provider that is used if no other scheduled meetings are\n detected.

" - } - }, - "com.amazonaws.alexaforbusiness#ConferenceProvider": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created conference provider.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProviderName", - "traits": { - "smithy.api#documentation": "

The name of the conference provider.

" - } - }, - "Type": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProviderType", - "traits": { - "smithy.api#documentation": "

The type of conference providers.

" - } - }, - "IPDialIn": { - "target": "com.amazonaws.alexaforbusiness#IPDialIn", - "traits": { - "smithy.api#documentation": "

The IP endpoint and protocol for calling.

" - } - }, - "PSTNDialIn": { - "target": "com.amazonaws.alexaforbusiness#PSTNDialIn", - "traits": { - "smithy.api#documentation": "

The information for PSTN conferencing.

" - } - }, - "MeetingSetting": { - "target": "com.amazonaws.alexaforbusiness#MeetingSetting", - "traits": { - "smithy.api#documentation": "

The meeting settings for the conference provider.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An entity that provides a conferencing solution. Alexa for Business acts as the voice interface and mediator that connects users to their preferred conference provider. Examples of conference providers include Amazon Chime, Zoom, Cisco, and Polycom.

" - } - }, - "com.amazonaws.alexaforbusiness#ConferenceProviderName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 50 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#ConferenceProviderType": { - "type": "enum", - "members": { - "CHIME": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CHIME" - } - }, - "BLUEJEANS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "BLUEJEANS" - } - }, - "FUZE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "FUZE" - } - }, - "GOOGLE_HANGOUTS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "GOOGLE_HANGOUTS" - } - }, - "POLYCOM": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "POLYCOM" - } - }, - "RINGCENTRAL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "RINGCENTRAL" - } - }, - "SKYPE_FOR_BUSINESS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SKYPE_FOR_BUSINESS" - } - }, - "WEBEX": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WEBEX" - } - }, - "ZOOM": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ZOOM" - } - }, - "CUSTOM": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CUSTOM" - } - } - } - }, - "com.amazonaws.alexaforbusiness#ConferenceProvidersList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProvider" - } - }, - "com.amazonaws.alexaforbusiness#ConnectionStatus": { - "type": "enum", - "members": { - "ONLINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ONLINE" - } - }, - "OFFLINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "OFFLINE" - } - } - } - }, - "com.amazonaws.alexaforbusiness#ConnectionStatusUpdatedTime": { - "type": "timestamp" - }, - "com.amazonaws.alexaforbusiness#Contact": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact.

" - } - }, - "DisplayName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The name of the contact to display on the console.

" - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The first name of the contact, used to call the contact on the device.

" - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The last name of the contact, used to call the contact on the device.

" - } - }, - "PhoneNumber": { - "target": "com.amazonaws.alexaforbusiness#RawPhoneNumber", - "traits": { - "smithy.api#documentation": "

The phone number of the contact. The phone number type defaults to WORK. You can\n either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which\n lets you specify the phone number type and multiple numbers.

" - } - }, - "PhoneNumbers": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumberList", - "traits": { - "smithy.api#documentation": "

The list of phone numbers for the contact.

" - } - }, - "SipAddresses": { - "target": "com.amazonaws.alexaforbusiness#SipAddressList", - "traits": { - "smithy.api#documentation": "

The list of SIP addresses for the contact.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A contact with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#ContactData": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact.

" - } - }, - "DisplayName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The name of the contact to display on the console.

" - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The first name of the contact, used to call the contact on the device.

" - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The last name of the contact, used to call the contact on the device.

" - } - }, - "PhoneNumber": { - "target": "com.amazonaws.alexaforbusiness#RawPhoneNumber", - "traits": { - "smithy.api#documentation": "

The phone number of the contact. The phone number type defaults to WORK. You can\n specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you\n specify the phone number type and multiple numbers.

" - } - }, - "PhoneNumbers": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumberList", - "traits": { - "smithy.api#documentation": "

The list of phone numbers for the contact.

" - } - }, - "SipAddresses": { - "target": "com.amazonaws.alexaforbusiness#SipAddressList", - "traits": { - "smithy.api#documentation": "

The list of SIP addresses for the contact.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information related to a contact.

" - } - }, - "com.amazonaws.alexaforbusiness#ContactDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#ContactData" - } - }, - "com.amazonaws.alexaforbusiness#ContactName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#Content": { - "type": "structure", - "members": { - "TextList": { - "target": "com.amazonaws.alexaforbusiness#TextList", - "traits": { - "smithy.api#documentation": "

The list of text messages.

" - } - }, - "SsmlList": { - "target": "com.amazonaws.alexaforbusiness#SsmlList", - "traits": { - "smithy.api#documentation": "

The list of SSML messages.

" - } - }, - "AudioList": { - "target": "com.amazonaws.alexaforbusiness#AudioList", - "traits": { - "smithy.api#documentation": "

The list of audio messages.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The content definition. This can contain only one text, SSML, or audio list\n object.

" - } - }, - "com.amazonaws.alexaforbusiness#CountryCode": { - "type": "string", - "traits": { - "smithy.api#pattern": "^\\d{1,3}$" - } - }, - "com.amazonaws.alexaforbusiness#CreateAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateAddressBookResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates an address book with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateAddressBookRequest": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.alexaforbusiness#AddressBookName", - "traits": { - "smithy.api#documentation": "

The name of the address book.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#AddressBookDescription", - "traits": { - "smithy.api#documentation": "

The description of the address book.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for the request that ensures\n idempotency.

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateAddressBookResponse": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created address book.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateBusinessReportSchedule": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateBusinessReportScheduleRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateBusinessReportScheduleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a recurring schedule for usage reports to deliver to the specified S3\n location with a specified daily or weekly interval.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateBusinessReportScheduleRequest": { - "type": "structure", - "members": { - "ScheduleName": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportScheduleName", - "traits": { - "smithy.api#documentation": "

The name identifier of the schedule.

" - } - }, - "S3BucketName": { - "target": "com.amazonaws.alexaforbusiness#CustomerS3BucketName", - "traits": { - "smithy.api#documentation": "

The S3 bucket name of the output reports. If this isn't specified, the report can be\n retrieved from a download link by calling ListBusinessReportSchedule.

" - } - }, - "S3KeyPrefix": { - "target": "com.amazonaws.alexaforbusiness#S3KeyPrefix", - "traits": { - "smithy.api#documentation": "

The S3 key where the report is delivered.

" - } - }, - "Format": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportFormat", - "traits": { - "smithy.api#documentation": "

The format of the generated report (individual CSV files or zipped files of\n individual files).

", - "smithy.api#required": {} - } - }, - "ContentRange": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportContentRange", - "traits": { - "smithy.api#documentation": "

The content range of the reports.

", - "smithy.api#required": {} - } - }, - "Recurrence": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportRecurrence", - "traits": { - "smithy.api#documentation": "

The recurrence of the reports. If this isn't specified, the report will only be\n delivered one time when the API is called.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

The client request token.

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags for the business report schedule.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateBusinessReportScheduleResponse": { - "type": "structure", - "members": { - "ScheduleArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the business report schedule.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateConferenceProvider": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateConferenceProviderRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateConferenceProviderResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Adds a new conference provider under the user's AWS account.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateConferenceProviderRequest": { - "type": "structure", - "members": { - "ConferenceProviderName": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProviderName", - "traits": { - "smithy.api#documentation": "

The name of the conference provider.

", - "smithy.api#required": {} - } - }, - "ConferenceProviderType": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProviderType", - "traits": { - "smithy.api#documentation": "

Represents a type within a list of predefined types.

", - "smithy.api#required": {} - } - }, - "IPDialIn": { - "target": "com.amazonaws.alexaforbusiness#IPDialIn", - "traits": { - "smithy.api#documentation": "

The IP endpoint and protocol for calling.

" - } - }, - "PSTNDialIn": { - "target": "com.amazonaws.alexaforbusiness#PSTNDialIn", - "traits": { - "smithy.api#documentation": "

The information for PSTN conferencing.

" - } - }, - "MeetingSetting": { - "target": "com.amazonaws.alexaforbusiness#MeetingSetting", - "traits": { - "smithy.api#documentation": "

The meeting settings for the conference provider.

", - "smithy.api#required": {} - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

The request token of the client.

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateConferenceProviderResponse": { - "type": "structure", - "members": { - "ConferenceProviderArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly-created conference provider.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateContact": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateContactRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateContactResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a contact with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateContactRequest": { - "type": "structure", - "members": { - "DisplayName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The name of the contact to display on the console.

" - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The first name of the contact that is used to call the contact on the\n device.

", - "smithy.api#required": {} - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The last name of the contact that is used to call the contact on the\n device.

" - } - }, - "PhoneNumber": { - "target": "com.amazonaws.alexaforbusiness#RawPhoneNumber", - "traits": { - "smithy.api#documentation": "

The phone number of the contact in E.164 format. The phone number type defaults to\n WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers,\n which lets you specify the phone number type and multiple numbers.

" - } - }, - "PhoneNumbers": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumberList", - "traits": { - "smithy.api#documentation": "

The list of phone numbers for the contact.

" - } - }, - "SipAddresses": { - "target": "com.amazonaws.alexaforbusiness#SipAddressList", - "traits": { - "smithy.api#documentation": "

The list of SIP addresses for the contact.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for this request that ensures\n idempotency.

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateContactResponse": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created address book.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateEndOfMeetingReminder": { - "type": "structure", - "members": { - "ReminderAtMinutes": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderMinutesList", - "traits": { - "smithy.api#documentation": "

A range of 3 to 15 minutes that determines when the reminder begins.

", - "smithy.api#required": {} - } - }, - "ReminderType": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderType", - "traits": { - "smithy.api#documentation": "

The type of sound that users hear during the end of meeting reminder.

", - "smithy.api#required": {} - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether an end of meeting reminder is enabled or not.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Creates settings for the end of meeting reminder feature that are applied to a room\n profile. The end of meeting reminder enables Alexa to remind users when a meeting is\n ending.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateGatewayGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateGatewayGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateGatewayGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a gateway group with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateGatewayGroupRequest": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupName", - "traits": { - "smithy.api#documentation": "

The name of the gateway group.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupDescription", - "traits": { - "smithy.api#documentation": "

The description of the gateway group.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for the request that ensures idempotency.

", - "smithy.api#idempotencyToken": {}, - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateGatewayGroupResponse": { - "type": "structure", - "members": { - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the created gateway group.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateInstantBooking": { - "type": "structure", - "members": { - "DurationInMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 15 and 240 minutes at increments of 15 that determines how long to book\n an available room when a meeting is started with Alexa.

", - "smithy.api#required": {} - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether instant booking is enabled or not.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Creates settings for the instant booking feature that are applied to a room profile.\n When users start their meeting with Alexa, Alexa automatically books the room for the\n configured duration if the room is available.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateMeetingRoomConfiguration": { - "type": "structure", - "members": { - "RoomUtilizationMetricsEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether room utilization metrics are enabled or not.

" - } - }, - "EndOfMeetingReminder": { - "target": "com.amazonaws.alexaforbusiness#CreateEndOfMeetingReminder" - }, - "InstantBooking": { - "target": "com.amazonaws.alexaforbusiness#CreateInstantBooking", - "traits": { - "smithy.api#documentation": "

Settings to automatically book a room for a configured duration if it's free when joining a meeting with Alexa.

" - } - }, - "RequireCheckIn": { - "target": "com.amazonaws.alexaforbusiness#CreateRequireCheckIn", - "traits": { - "smithy.api#documentation": "

Settings for requiring a check in when a room is reserved. Alexa can cancel a room reservation if it's not checked into to make the room available for others. Users can check in by joining the meeting with Alexa or an AVS device, or by saying “Alexa, check in.”

" - } - }, - "ProactiveJoin": { - "target": "com.amazonaws.alexaforbusiness#CreateProactiveJoin" - } - }, - "traits": { - "smithy.api#documentation": "

Creates meeting room settings of a room profile.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateNetworkProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateNetworkProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateNetworkProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidCertificateAuthorityException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidServiceLinkedRoleStateException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a network profile with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateNetworkProfileRequest": { - "type": "structure", - "members": { - "NetworkProfileName": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileName", - "traits": { - "smithy.api#documentation": "

The name of the network profile associated with a device.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileDescription", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - }, - "Ssid": { - "target": "com.amazonaws.alexaforbusiness#NetworkSsid", - "traits": { - "smithy.api#documentation": "

The SSID of the Wi-Fi network.

", - "smithy.api#required": {} - } - }, - "SecurityType": { - "target": "com.amazonaws.alexaforbusiness#NetworkSecurityType", - "traits": { - "smithy.api#documentation": "

The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, WPA_PSK,\n WEP, or OPEN.

", - "smithy.api#required": {} - } - }, - "EapMethod": { - "target": "com.amazonaws.alexaforbusiness#NetworkEapMethod", - "traits": { - "smithy.api#documentation": "

The authentication standard that is used in the EAP framework. Currently, EAP_TLS is\n supported.

" - } - }, - "CurrentPassword": { - "target": "com.amazonaws.alexaforbusiness#CurrentWiFiPassword", - "traits": { - "smithy.api#documentation": "

The current password of the Wi-Fi network.

" - } - }, - "NextPassword": { - "target": "com.amazonaws.alexaforbusiness#NextWiFiPassword", - "traits": { - "smithy.api#documentation": "

The next, or subsequent, password of the Wi-Fi network. This password is asynchronously\n transmitted to the device and is used when the password of the network changes to\n NextPassword.

" - } - }, - "CertificateAuthorityArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the Private Certificate Authority (PCA) created in AWS Certificate Manager\n (ACM). This is used to issue certificates to the devices.

" - } - }, - "TrustAnchors": { - "target": "com.amazonaws.alexaforbusiness#TrustAnchorList", - "traits": { - "smithy.api#documentation": "

The root certificates of your authentication server that is installed on your devices\n and used to trust your authentication server during EAP negotiation.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#idempotencyToken": {}, - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateNetworkProfileResponse": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateProactiveJoin": { - "type": "structure", - "members": { - "EnabledByMotion": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.alexaforbusiness#CreateProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a new room profile with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateProfileRequest": { - "type": "structure", - "members": { - "ProfileName": { - "target": "com.amazonaws.alexaforbusiness#ProfileName", - "traits": { - "smithy.api#documentation": "

The name of a room profile.

", - "smithy.api#required": {} - } - }, - "Timezone": { - "target": "com.amazonaws.alexaforbusiness#Timezone", - "traits": { - "smithy.api#documentation": "

The time zone used by a room profile.

", - "smithy.api#required": {} - } - }, - "Address": { - "target": "com.amazonaws.alexaforbusiness#Address", - "traits": { - "smithy.api#documentation": "

The valid address for the room.

", - "smithy.api#required": {} - } - }, - "DistanceUnit": { - "target": "com.amazonaws.alexaforbusiness#DistanceUnit", - "traits": { - "smithy.api#documentation": "

The distance unit to be used by devices in the profile.

", - "smithy.api#required": {} - } - }, - "TemperatureUnit": { - "target": "com.amazonaws.alexaforbusiness#TemperatureUnit", - "traits": { - "smithy.api#documentation": "

The temperature unit to be used by devices in the profile.

", - "smithy.api#required": {} - } - }, - "WakeWord": { - "target": "com.amazonaws.alexaforbusiness#WakeWord", - "traits": { - "smithy.api#documentation": "

A wake word for Alexa, Echo, Amazon, or a computer.

", - "smithy.api#required": {} - } - }, - "Locale": { - "target": "com.amazonaws.alexaforbusiness#DeviceLocale", - "traits": { - "smithy.api#documentation": "

The locale of the room profile. (This is currently only available to a limited preview audience.)

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

The user-specified token that is used during the creation of a profile.

", - "smithy.api#idempotencyToken": {} - } - }, - "SetupModeDisabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether room profile setup is enabled.

" - } - }, - "MaxVolumeLimit": { - "target": "com.amazonaws.alexaforbusiness#MaxVolumeLimit", - "traits": { - "smithy.api#documentation": "

The maximum volume limit for a room profile.

" - } - }, - "PSTNEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether PSTN calling is enabled.

" - } - }, - "DataRetentionOptIn": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether data retention of the profile is enabled.

" - } - }, - "MeetingRoomConfiguration": { - "target": "com.amazonaws.alexaforbusiness#CreateMeetingRoomConfiguration", - "traits": { - "smithy.api#documentation": "

The meeting room settings of a room profile.

" - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags for the profile.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateProfileResponse": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created room profile in the response.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateRequireCheckIn": { - "type": "structure", - "members": { - "ReleaseAfterMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 5 and 20 minutes to determine when to release the room if it's not checked into.

", - "smithy.api#required": {} - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether require check in is enabled or not.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Creates settings for the require check in feature that are applied to a room profile. Require check in allows a meeting room’s Alexa or AVS device to prompt the user to check in; otherwise, the room will be released.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a room with the specified details.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateRoomRequest": { - "type": "structure", - "members": { - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#RoomName", - "traits": { - "smithy.api#documentation": "

The name for the room.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#RoomDescription", - "traits": { - "smithy.api#documentation": "

The description for the room.

" - } - }, - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The profile ARN for the room. This is required.

" - } - }, - "ProviderCalendarId": { - "target": "com.amazonaws.alexaforbusiness#ProviderCalendarId", - "traits": { - "smithy.api#documentation": "

The calendar ARN for the room.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for this request that ensures idempotency.\n

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags for the room.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateRoomResponse": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created room in the response.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a skill group with a specified name and description.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupName": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupName", - "traits": { - "smithy.api#documentation": "

The name for the skill group.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupDescription", - "traits": { - "smithy.api#documentation": "

The description for the skill group.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for this request that ensures idempotency.\n

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags for the skill group.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateSkillGroupResponse": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created skill group in the response.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateUser": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#CreateUserRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#CreateUserResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - }, - { - "target": "com.amazonaws.alexaforbusiness#ResourceInUseException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Creates a user.

" - } - }, - "com.amazonaws.alexaforbusiness#CreateUserRequest": { - "type": "structure", - "members": { - "UserId": { - "target": "com.amazonaws.alexaforbusiness#user_UserId", - "traits": { - "smithy.api#documentation": "

The ARN for the user.

", - "smithy.api#required": {} - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#user_FirstName", - "traits": { - "smithy.api#documentation": "

The first name for the user.

" - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#user_LastName", - "traits": { - "smithy.api#documentation": "

The last name for the user.

" - } - }, - "Email": { - "target": "com.amazonaws.alexaforbusiness#Email", - "traits": { - "smithy.api#documentation": "

The email address for the user.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user-specified identifier for this request that ensures idempotency.\n

", - "smithy.api#idempotencyToken": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags for the user.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#CreateUserResponse": { - "type": "structure", - "members": { - "UserArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created user in the response.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#CurrentWiFiPassword": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 5, - "max": 128 - }, - "smithy.api#pattern": "^[\\x00-\\x7F]*$", - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#CustomerS3BucketName": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-z0-9-\\.]{3,63}$" - } - }, - "com.amazonaws.alexaforbusiness#Date": { - "type": "string", - "traits": { - "smithy.api#pattern": "^\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])$" - } - }, - "com.amazonaws.alexaforbusiness#DeleteAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteAddressBookResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes an address book by the address book ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteAddressBookRequest": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book to delete.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteAddressBookResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteBusinessReportSchedule": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteBusinessReportScheduleRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteBusinessReportScheduleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes the recurring report delivery schedule with the specified schedule\n ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteBusinessReportScheduleRequest": { - "type": "structure", - "members": { - "ScheduleArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the business report schedule.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteBusinessReportScheduleResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteConferenceProvider": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteConferenceProviderRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteConferenceProviderResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a conference provider.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteConferenceProviderRequest": { - "type": "structure", - "members": { - "ConferenceProviderArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the conference provider.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteConferenceProviderResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteContact": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteContactRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteContactResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a contact by the contact ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteContactRequest": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact to delete.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteContactResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteDeviceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidCertificateAuthorityException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Removes a device from Alexa For Business.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteDeviceRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device for which to request details.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteDeviceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteDeviceUsageData": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteDeviceUsageDataRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteDeviceUsageDataResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

When this action is called for a specified shared device, it allows authorized users to\n delete the device's entire previous history of voice input data and associated response\n data. This action can be called once every 24 hours for a specific shared device.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteDeviceUsageDataRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device.

", - "smithy.api#required": {} - } - }, - "DeviceUsageType": { - "target": "com.amazonaws.alexaforbusiness#DeviceUsageType", - "traits": { - "smithy.api#documentation": "

The type of usage data to delete.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteDeviceUsageDataResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteGatewayGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteGatewayGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteGatewayGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ResourceAssociatedException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a gateway group.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteGatewayGroupRequest": { - "type": "structure", - "members": { - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group to delete.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteGatewayGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteNetworkProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteNetworkProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteNetworkProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - }, - { - "target": "com.amazonaws.alexaforbusiness#ResourceInUseException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a network profile by the network profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteNetworkProfileRequest": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteNetworkProfileResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a room profile by the profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteProfileRequest": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room profile to delete. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteProfileResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a room by the room ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoomRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room to delete. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameter": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameterRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes room skill parameter details by room, skill, and parameter key ID.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameterRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room from which to remove the room skill parameter details.

" - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ID of the skill from which to remove the room skill parameter details.

", - "smithy.api#required": {} - } - }, - "ParameterKey": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameterKey", - "traits": { - "smithy.api#documentation": "

The room skill parameter key for which to remove details.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteRoomSkillParameterResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillAuthorization": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillAuthorizationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillAuthorizationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Unlinks a third-party account from a skill.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillAuthorizationRequest": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The unique identifier of a skill.

", - "smithy.api#required": {} - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room that the skill is authorized for.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillAuthorizationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a skill group by skill group ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group to delete. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteSkillGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteUser": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DeleteUserRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DeleteUserResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Deletes a specified user by user ARN and enrollment ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#DeleteUserRequest": { - "type": "structure", - "members": { - "UserArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the user to delete in the organization. Required.

" - } - }, - "EnrollmentId": { - "target": "com.amazonaws.alexaforbusiness#EnrollmentId", - "traits": { - "smithy.api#documentation": "

The ARN of the user's enrollment in the organization. Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DeleteUserResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DeveloperInfo": { - "type": "structure", - "members": { - "DeveloperName": { - "target": "com.amazonaws.alexaforbusiness#DeveloperName", - "traits": { - "smithy.api#documentation": "

The name of the developer.

" - } - }, - "PrivacyPolicy": { - "target": "com.amazonaws.alexaforbusiness#PrivacyPolicy", - "traits": { - "smithy.api#documentation": "

The URL of the privacy policy.

" - } - }, - "Email": { - "target": "com.amazonaws.alexaforbusiness#Email", - "traits": { - "smithy.api#documentation": "

The email of the developer.

" - } - }, - "Url": { - "target": "com.amazonaws.alexaforbusiness#Url", - "traits": { - "smithy.api#documentation": "

The website of the developer.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The details about the developer that published the skill.

" - } - }, - "com.amazonaws.alexaforbusiness#DeveloperName": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Device": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a device.

" - } - }, - "DeviceSerialNumber": { - "target": "com.amazonaws.alexaforbusiness#DeviceSerialNumber", - "traits": { - "smithy.api#documentation": "

The serial number of a device.

" - } - }, - "DeviceType": { - "target": "com.amazonaws.alexaforbusiness#DeviceType", - "traits": { - "smithy.api#documentation": "

The type of a device.

" - } - }, - "DeviceName": { - "target": "com.amazonaws.alexaforbusiness#DeviceName", - "traits": { - "smithy.api#documentation": "

The name of a device.

" - } - }, - "SoftwareVersion": { - "target": "com.amazonaws.alexaforbusiness#SoftwareVersion", - "traits": { - "smithy.api#documentation": "

The software version of a device.

" - } - }, - "MacAddress": { - "target": "com.amazonaws.alexaforbusiness#MacAddress", - "traits": { - "smithy.api#documentation": "

The MAC address of a device.

" - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room ARN of a device.

" - } - }, - "DeviceStatus": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatus", - "traits": { - "smithy.api#documentation": "

The status of a device. If the status is not READY, check the DeviceStatusInfo value\n for details.

" - } - }, - "DeviceStatusInfo": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatusInfo", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's status.

" - } - }, - "NetworkProfileInfo": { - "target": "com.amazonaws.alexaforbusiness#DeviceNetworkProfileInfo", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A device with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceData": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a device.

" - } - }, - "DeviceSerialNumber": { - "target": "com.amazonaws.alexaforbusiness#DeviceSerialNumber", - "traits": { - "smithy.api#documentation": "

The serial number of a device.

" - } - }, - "DeviceType": { - "target": "com.amazonaws.alexaforbusiness#DeviceType", - "traits": { - "smithy.api#documentation": "

The type of a device.

" - } - }, - "DeviceName": { - "target": "com.amazonaws.alexaforbusiness#DeviceName", - "traits": { - "smithy.api#documentation": "

The name of a device.

" - } - }, - "SoftwareVersion": { - "target": "com.amazonaws.alexaforbusiness#SoftwareVersion", - "traits": { - "smithy.api#documentation": "

The software version of a device.

" - } - }, - "MacAddress": { - "target": "com.amazonaws.alexaforbusiness#MacAddress", - "traits": { - "smithy.api#documentation": "

The MAC address of a device.

" - } - }, - "DeviceStatus": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatus", - "traits": { - "smithy.api#documentation": "

The status of a device.

" - } - }, - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

" - } - }, - "NetworkProfileName": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileName", - "traits": { - "smithy.api#documentation": "

The name of the network profile associated with a device.

" - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room ARN associated with a device.

" - } - }, - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#DeviceRoomName", - "traits": { - "smithy.api#documentation": "

The name of the room associated with a device.

" - } - }, - "DeviceStatusInfo": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatusInfo", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's status.

" - } - }, - "CreatedTime": { - "target": "com.amazonaws.alexaforbusiness#DeviceDataCreatedTime", - "traits": { - "smithy.api#documentation": "

The time (in epoch) when the device data was created.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Device attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceDataCreatedTime": { - "type": "timestamp" - }, - "com.amazonaws.alexaforbusiness#DeviceDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#DeviceData" - } - }, - "com.amazonaws.alexaforbusiness#DeviceEvent": { - "type": "structure", - "members": { - "Type": { - "target": "com.amazonaws.alexaforbusiness#DeviceEventType", - "traits": { - "smithy.api#documentation": "

The type of device event.

" - } - }, - "Value": { - "target": "com.amazonaws.alexaforbusiness#DeviceEventValue", - "traits": { - "smithy.api#documentation": "

The value of the event.

" - } - }, - "Timestamp": { - "target": "com.amazonaws.alexaforbusiness#DeviceEventTime", - "traits": { - "smithy.api#documentation": "

The time (in epoch) when the event occurred.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The list of device events.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceEventList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#DeviceEvent" - } - }, - "com.amazonaws.alexaforbusiness#DeviceEventTime": { - "type": "timestamp" - }, - "com.amazonaws.alexaforbusiness#DeviceEventType": { - "type": "enum", - "members": { - "CONNECTION_STATUS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CONNECTION_STATUS" - } - }, - "DEVICE_STATUS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DEVICE_STATUS" - } - } - } - }, - "com.amazonaws.alexaforbusiness#DeviceEventValue": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#DeviceLocale": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - } - } - }, - "com.amazonaws.alexaforbusiness#DeviceName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 2, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#DeviceNetworkProfileInfo": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

" - } - }, - "CertificateArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the certificate associated with a device.

" - } - }, - "CertificateExpirationTime": { - "target": "com.amazonaws.alexaforbusiness#CertificateTime", - "traits": { - "smithy.api#documentation": "

The time (in epoch) when the certificate expires.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The request failed because this device is no longer registered and therefore no longer managed by this account.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#DeviceRoomName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#DeviceSerialNumber": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-zA-Z0-9]{1,200}$" - } - }, - "com.amazonaws.alexaforbusiness#DeviceSerialNumberForAVS": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-zA-Z0-9]{1,50}$" - } - }, - "com.amazonaws.alexaforbusiness#DeviceStatus": { - "type": "enum", - "members": { - "READY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "READY" - } - }, - "PENDING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PENDING" - } - }, - "WAS_OFFLINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WAS_OFFLINE" - } - }, - "DEREGISTERED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DEREGISTERED" - } - }, - "FAILED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "FAILED" - } - } - } - }, - "com.amazonaws.alexaforbusiness#DeviceStatusDetail": { - "type": "structure", - "members": { - "Feature": { - "target": "com.amazonaws.alexaforbusiness#Feature", - "traits": { - "smithy.api#documentation": "

The list of available features on the device.

" - } - }, - "Code": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatusDetailCode", - "traits": { - "smithy.api#documentation": "

The device status detail code.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Details of a device’s status.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceStatusDetailCode": { - "type": "enum", - "members": { - "DEVICE_SOFTWARE_UPDATE_NEEDED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DEVICE_SOFTWARE_UPDATE_NEEDED" - } - }, - "DEVICE_WAS_OFFLINE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DEVICE_WAS_OFFLINE" - } - }, - "CREDENTIALS_ACCESS_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CREDENTIALS_ACCESS_FAILURE" - } - }, - "TLS_VERSION_MISMATCH": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "TLS_VERSION_MISMATCH" - } - }, - "ASSOCIATION_REJECTION": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ASSOCIATION_REJECTION" - } - }, - "AUTHENTICATION_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "AUTHENTICATION_FAILURE" - } - }, - "DHCP_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DHCP_FAILURE" - } - }, - "INTERNET_UNAVAILABLE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "INTERNET_UNAVAILABLE" - } - }, - "DNS_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DNS_FAILURE" - } - }, - "UNKNOWN_FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "UNKNOWN_FAILURE" - } - }, - "CERTIFICATE_ISSUING_LIMIT_EXCEEDED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CERTIFICATE_ISSUING_LIMIT_EXCEEDED" - } - }, - "INVALID_CERTIFICATE_AUTHORITY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "INVALID_CERTIFICATE_AUTHORITY" - } - }, - "NETWORK_PROFILE_NOT_FOUND": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "NETWORK_PROFILE_NOT_FOUND" - } - }, - "INVALID_PASSWORD_STATE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "INVALID_PASSWORD_STATE" - } - }, - "PASSWORD_NOT_FOUND": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PASSWORD_NOT_FOUND" - } - }, - "PASSWORD_MANAGER_ACCESS_DENIED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PASSWORD_MANAGER_ACCESS_DENIED" - } - }, - "CERTIFICATE_AUTHORITY_ACCESS_DENIED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CERTIFICATE_AUTHORITY_ACCESS_DENIED" - } - } - } - }, - "com.amazonaws.alexaforbusiness#DeviceStatusDetails": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatusDetail" - } - }, - "com.amazonaws.alexaforbusiness#DeviceStatusInfo": { - "type": "structure", - "members": { - "DeviceStatusDetails": { - "target": "com.amazonaws.alexaforbusiness#DeviceStatusDetails", - "traits": { - "smithy.api#documentation": "

One or more device status detail descriptions.

" - } - }, - "ConnectionStatus": { - "target": "com.amazonaws.alexaforbusiness#ConnectionStatus", - "traits": { - "smithy.api#documentation": "

The latest available information about the connection status of a device.

" - } - }, - "ConnectionStatusUpdatedTime": { - "target": "com.amazonaws.alexaforbusiness#ConnectionStatusUpdatedTime", - "traits": { - "smithy.api#documentation": "

The time (in epoch) when the device connection status changed.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Detailed information about a device's status.

" - } - }, - "com.amazonaws.alexaforbusiness#DeviceType": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-zA-Z0-9]{1,200}$" - } - }, - "com.amazonaws.alexaforbusiness#DeviceUsageType": { - "type": "enum", - "members": { - "VOICE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "VOICE" - } - } - } - }, - "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBookResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Disassociates a contact from a given address book.

" - } - }, - "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBookRequest": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact to disassociate from an address book.

", - "smithy.api#required": {} - } - }, - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address from which to disassociate the contact.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateContactFromAddressBookResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Disassociates a device from its current room. The device continues to be connected to\n the Wi-Fi network and is still registered to the account. The device settings and skills\n are removed from the room.

" - } - }, - "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoomRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device to disassociate from a room. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateDeviceFromRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Disassociates a skill from a skill group.

" - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The unique identifier of a skill. Required.

" - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of a skill group to associate to a skill.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromSkillGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsers": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsersRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsersResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Makes a private skill unavailable for enrolled users and prevents them from enabling it\n on their devices.

" - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsersRequest": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The private skill ID you want to make unavailable for enrolled users.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillFromUsersResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Disassociates a skill group from a specified room. This disables all skills in the\n skill group on all devices in the room.

" - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoomRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group to disassociate from a room. Required.

" - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room from which the skill group is to be disassociated.\n Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#DisassociateSkillGroupFromRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#DistanceUnit": { - "type": "enum", - "members": { - "METRIC": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "METRIC" - } - }, - "IMPERIAL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "IMPERIAL" - } - } - } - }, - "com.amazonaws.alexaforbusiness#Email": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - }, - "smithy.api#pattern": "^\\w[+-.\\w]*@\\w[\\w\\.\\-]+\\.[0-9a-zA-Z]{2,24}$" - } - }, - "com.amazonaws.alexaforbusiness#EnablementType": { - "type": "enum", - "members": { - "ENABLED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ENABLED" - } - }, - "PENDING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PENDING" - } - } - } - }, - "com.amazonaws.alexaforbusiness#EnablementTypeFilter": { - "type": "enum", - "members": { - "ENABLED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ENABLED" - } - }, - "PENDING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PENDING" - } - } - } - }, - "com.amazonaws.alexaforbusiness#EndOfMeetingReminder": { - "type": "structure", - "members": { - "ReminderAtMinutes": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderMinutesList", - "traits": { - "smithy.api#documentation": "

A range of 3 to 15 minutes that determines when the reminder begins.

" - } - }, - "ReminderType": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderType", - "traits": { - "smithy.api#documentation": "

The type of sound that users hear during the end of meeting reminder.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether an end of meeting reminder is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings for the end of meeting reminder feature that are applied to a room profile. The\n end of meeting reminder enables Alexa to remind users when a meeting is ending.

" - } - }, - "com.amazonaws.alexaforbusiness#EndOfMeetingReminderMinutesList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Minutes" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#EndOfMeetingReminderType": { - "type": "enum", - "members": { - "ANNOUNCEMENT_TIME_CHECK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ANNOUNCEMENT_TIME_CHECK" - } - }, - "ANNOUNCEMENT_VARIABLE_TIME_LEFT": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ANNOUNCEMENT_VARIABLE_TIME_LEFT" - } - }, - "CHIME": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CHIME" - } - }, - "KNOCK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "KNOCK" - } - } - } - }, - "com.amazonaws.alexaforbusiness#EndUserLicenseAgreement": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Endpoint": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - } - } - }, - "com.amazonaws.alexaforbusiness#EnrollmentId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 128 - } - } - }, - "com.amazonaws.alexaforbusiness#EnrollmentStatus": { - "type": "enum", - "members": { - "INITIALIZED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "INITIALIZED" - } - }, - "PENDING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PENDING" - } - }, - "REGISTERED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "REGISTERED" - } - }, - "DISASSOCIATING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DISASSOCIATING" - } - }, - "DEREGISTERING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DEREGISTERING" - } - } - } - }, - "com.amazonaws.alexaforbusiness#ErrorMessage": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Feature": { - "type": "enum", - "members": { - "BLUETOOTH": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "BLUETOOTH" - } - }, - "VOLUME": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "VOLUME" - } - }, - "NOTIFICATIONS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "NOTIFICATIONS" - } - }, - "LISTS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "LISTS" - } - }, - "SKILLS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SKILLS" - } - }, - "NETWORK_PROFILE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "NETWORK_PROFILE" - } - }, - "SETTINGS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SETTINGS" - } - }, - "ALL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ALL" - } - } - } - }, - "com.amazonaws.alexaforbusiness#Features": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Feature" - } - }, - "com.amazonaws.alexaforbusiness#Filter": { - "type": "structure", - "members": { - "Key": { - "target": "com.amazonaws.alexaforbusiness#FilterKey", - "traits": { - "smithy.api#documentation": "

The key of a filter.

", - "smithy.api#required": {} - } - }, - "Values": { - "target": "com.amazonaws.alexaforbusiness#FilterValueList", - "traits": { - "smithy.api#documentation": "

The values of a filter.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A filter name and value pair that is used to return a more specific list of results.\n Filters can be used to match a set of resources by various criteria.

" - } - }, - "com.amazonaws.alexaforbusiness#FilterKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 500 - } - } - }, - "com.amazonaws.alexaforbusiness#FilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Filter" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 25 - } - } - }, - "com.amazonaws.alexaforbusiness#FilterValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 500 - } - } - }, - "com.amazonaws.alexaforbusiness#FilterValueList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#FilterValue" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 50 - } - } - }, - "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliances": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliancesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliancesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Forgets smart home appliances associated to a room.

" - } - }, - "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliancesRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room that the appliances are associated with.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ForgetSmartHomeAppliancesResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Gateway": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayName", - "traits": { - "smithy.api#documentation": "

The name of the gateway.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayDescription", - "traits": { - "smithy.api#documentation": "

The description of the gateway.

" - } - }, - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group that the gateway is associated to.

" - } - }, - "SoftwareVersion": { - "target": "com.amazonaws.alexaforbusiness#GatewayVersion", - "traits": { - "smithy.api#documentation": "

The software version of the gateway. The gateway automatically updates its software\n version during normal operation.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the gateway.

" - } - }, - "com.amazonaws.alexaforbusiness#GatewayDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 200 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#GatewayGroup": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupName", - "traits": { - "smithy.api#documentation": "

The name of the gateway group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupDescription", - "traits": { - "smithy.api#documentation": "

The description of the gateway group.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the gateway group.

" - } - }, - "com.amazonaws.alexaforbusiness#GatewayGroupDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 200 - } - } - }, - "com.amazonaws.alexaforbusiness#GatewayGroupName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#GatewayGroupSummaries": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupSummary" - } - }, - "com.amazonaws.alexaforbusiness#GatewayGroupSummary": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupName", - "traits": { - "smithy.api#documentation": "

The name of the gateway group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupDescription", - "traits": { - "smithy.api#documentation": "

The description of the gateway group.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The summary of a gateway group.

" - } - }, - "com.amazonaws.alexaforbusiness#GatewayName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 253 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#GatewaySummaries": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#GatewaySummary" - } - }, - "com.amazonaws.alexaforbusiness#GatewaySummary": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway.

" - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayName", - "traits": { - "smithy.api#documentation": "

The name of the gateway.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayDescription", - "traits": { - "smithy.api#documentation": "

The description of the gateway.

" - } - }, - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group that the gateway is associated to.

" - } - }, - "SoftwareVersion": { - "target": "com.amazonaws.alexaforbusiness#GatewayVersion", - "traits": { - "smithy.api#documentation": "

The software version of the gateway. The gateway automatically updates its software\n version during normal operation.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The summary of a gateway.

" - } - }, - "com.amazonaws.alexaforbusiness#GatewayVersion": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 50 - } - } - }, - "com.amazonaws.alexaforbusiness#GenericKeyword": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#GenericKeywords": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#GenericKeyword" - } - }, - "com.amazonaws.alexaforbusiness#GetAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetAddressBookResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets address the book details by the address book ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetAddressBookRequest": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book for which to request details.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetAddressBookResponse": { - "type": "structure", - "members": { - "AddressBook": { - "target": "com.amazonaws.alexaforbusiness#AddressBook", - "traits": { - "smithy.api#documentation": "

The details of the requested address book.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetConferencePreference": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetConferencePreferenceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetConferencePreferenceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves the existing conference preferences.

" - } - }, - "com.amazonaws.alexaforbusiness#GetConferencePreferenceRequest": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetConferencePreferenceResponse": { - "type": "structure", - "members": { - "Preference": { - "target": "com.amazonaws.alexaforbusiness#ConferencePreference", - "traits": { - "smithy.api#documentation": "

The conference preference.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetConferenceProvider": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetConferenceProviderRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetConferenceProviderResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets details about a specific conference provider.

" - } - }, - "com.amazonaws.alexaforbusiness#GetConferenceProviderRequest": { - "type": "structure", - "members": { - "ConferenceProviderArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the newly created conference provider.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetConferenceProviderResponse": { - "type": "structure", - "members": { - "ConferenceProvider": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProvider", - "traits": { - "smithy.api#documentation": "

The conference provider.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetContact": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetContactRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetContactResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets the contact details by the contact ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetContactRequest": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact for which to request details.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetContactResponse": { - "type": "structure", - "members": { - "Contact": { - "target": "com.amazonaws.alexaforbusiness#Contact", - "traits": { - "smithy.api#documentation": "

The details of the requested contact.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetDeviceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets the details of a device by device ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetDeviceRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device for which to request details. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetDeviceResponse": { - "type": "structure", - "members": { - "Device": { - "target": "com.amazonaws.alexaforbusiness#Device", - "traits": { - "smithy.api#documentation": "

The details of the device requested. Required.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetGateway": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetGatewayRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetGatewayResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves the details of a gateway.

" - } - }, - "com.amazonaws.alexaforbusiness#GetGatewayGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetGatewayGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetGatewayGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves the details of a gateway group.

" - } - }, - "com.amazonaws.alexaforbusiness#GetGatewayGroupRequest": { - "type": "structure", - "members": { - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group to get.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetGatewayGroupResponse": { - "type": "structure", - "members": { - "GatewayGroup": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroup" - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetGatewayRequest": { - "type": "structure", - "members": { - "GatewayArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway to get.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetGatewayResponse": { - "type": "structure", - "members": { - "Gateway": { - "target": "com.amazonaws.alexaforbusiness#Gateway", - "traits": { - "smithy.api#documentation": "

The details of the gateway.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetInvitationConfiguration": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetInvitationConfigurationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetInvitationConfigurationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves the configured values for the user enrollment invitation email\n template.

" - } - }, - "com.amazonaws.alexaforbusiness#GetInvitationConfigurationRequest": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetInvitationConfigurationResponse": { - "type": "structure", - "members": { - "OrganizationName": { - "target": "com.amazonaws.alexaforbusiness#OrganizationName", - "traits": { - "smithy.api#documentation": "

The name of the organization sending the enrollment invite to a user.

" - } - }, - "ContactEmail": { - "target": "com.amazonaws.alexaforbusiness#Email", - "traits": { - "smithy.api#documentation": "

The email ID of the organization or individual contact that the enrolled user can use.\n

" - } - }, - "PrivateSkillIds": { - "target": "com.amazonaws.alexaforbusiness#ShortSkillIdList", - "traits": { - "smithy.api#documentation": "

The list of private skill IDs that you want to recommend to the user to enable in the\n invitation.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetNetworkProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetNetworkProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetNetworkProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#InvalidSecretsManagerResourceException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets the network profile details by the network profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetNetworkProfileRequest": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetNetworkProfileResponse": { - "type": "structure", - "members": { - "NetworkProfile": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfile", - "traits": { - "smithy.api#documentation": "

The network profile associated with a device.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets the details of a room profile by profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetProfileRequest": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room profile for which to request details. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetProfileResponse": { - "type": "structure", - "members": { - "Profile": { - "target": "com.amazonaws.alexaforbusiness#Profile", - "traits": { - "smithy.api#documentation": "

The details of the room profile requested. Required.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets room details by room ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetRoomRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room for which to request details. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetRoomResponse": { - "type": "structure", - "members": { - "Room": { - "target": "com.amazonaws.alexaforbusiness#Room", - "traits": { - "smithy.api#documentation": "

The details of the room requested.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetRoomSkillParameter": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetRoomSkillParameterRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetRoomSkillParameterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets room skill parameter details by room, skill, and parameter key ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetRoomSkillParameterRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room from which to get the room skill parameter details.

" - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of the skill from which to get the room skill parameter details.\n Required.

", - "smithy.api#required": {} - } - }, - "ParameterKey": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameterKey", - "traits": { - "smithy.api#documentation": "

The room skill parameter key for which to get details. Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetRoomSkillParameterResponse": { - "type": "structure", - "members": { - "RoomSkillParameter": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameter", - "traits": { - "smithy.api#documentation": "

The details of the room skill parameter requested. Required.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#GetSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#GetSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#GetSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Gets skill group details by skill group ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#GetSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group for which to get details. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#GetSkillGroupResponse": { - "type": "structure", - "members": { - "SkillGroup": { - "target": "com.amazonaws.alexaforbusiness#SkillGroup", - "traits": { - "smithy.api#documentation": "

The details of the skill group requested. Required.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#IPDialIn": { - "type": "structure", - "members": { - "Endpoint": { - "target": "com.amazonaws.alexaforbusiness#Endpoint", - "traits": { - "smithy.api#documentation": "

The IP address.

", - "smithy.api#required": {} - } - }, - "CommsProtocol": { - "target": "com.amazonaws.alexaforbusiness#CommsProtocol", - "traits": { - "smithy.api#documentation": "

The protocol, including SIP, SIPS, and H323.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The IP endpoint and protocol for calling.

" - } - }, - "com.amazonaws.alexaforbusiness#IconUrl": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#InstantBooking": { - "type": "structure", - "members": { - "DurationInMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 15 and 240 minutes at increments of 15 that determines how long to book\n an available room when a meeting is started with Alexa.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether instant booking is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings for the instant booking feature that are applied to a room profile. When users\n start their meeting with Alexa, Alexa automatically books the room for the configured\n duration if the room is available.

" - } - }, - "com.amazonaws.alexaforbusiness#InvalidCertificateAuthorityException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The Certificate Authority can't issue or revoke a certificate.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#InvalidDeviceException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The device is in an invalid state.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#InvalidSecretsManagerResourceException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

A password in SecretsManager is in an invalid state.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#InvalidServiceLinkedRoleStateException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The service linked role is locked for deletion.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#InvalidUserStatusException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The attempt to update a user is invalid due to the user's current status.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#InvocationPhrase": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Key": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#LimitExceededException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

You are performing an action that would put you beyond your account's limits.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#ListBusinessReportSchedules": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListBusinessReportSchedulesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListBusinessReportSchedulesResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists the details of the schedules that a user configured. A download URL of the report associated with each schedule is returned every time this action is called. A new download URL is returned each time, and is valid for 24 hours.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListBusinessReportSchedulesRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to list the remaining schedules from the previous API call.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of schedules listed in the call.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListBusinessReportSchedulesResponse": { - "type": "structure", - "members": { - "BusinessReportSchedules": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportScheduleList", - "traits": { - "smithy.api#documentation": "

The schedule of the reports.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to list the remaining schedules from the previous API call.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListConferenceProviders": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListConferenceProvidersRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListConferenceProvidersResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists conference providers under a specific AWS account.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListConferenceProvidersRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of conference providers to be returned, per paginated\n calls.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListConferenceProvidersResponse": { - "type": "structure", - "members": { - "ConferenceProviders": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProvidersList", - "traits": { - "smithy.api#documentation": "

The conference providers.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListDeviceEvents": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListDeviceEventsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListDeviceEventsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists the device event history, including device connection status, for up to 30\n days.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListDeviceEventsRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a device.

", - "smithy.api#required": {} - } - }, - "EventType": { - "target": "com.amazonaws.alexaforbusiness#DeviceEventType", - "traits": { - "smithy.api#documentation": "

The event type to filter device events. If EventType isn't specified, this returns a\n list of all device events in reverse chronological order. If EventType is specified, this\n returns a list of device events for that EventType in reverse chronological order.\n

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response only includes\n results beyond the token, up to the value specified by MaxResults. When the end of results\n is reached, the response has a value of null.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. The default value is 50. If\n more results exist than the specified MaxResults value, a token is included in the response\n so that the remaining results can be retrieved.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListDeviceEventsResponse": { - "type": "structure", - "members": { - "DeviceEvents": { - "target": "com.amazonaws.alexaforbusiness#DeviceEventList", - "traits": { - "smithy.api#documentation": "

The device events requested for the device ARN.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListGatewayGroups": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListGatewayGroupsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListGatewayGroupsResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves a list of gateway group summaries. Use GetGatewayGroup to retrieve details of\n a specific gateway group.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListGatewayGroupsRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to paginate though multiple pages of gateway group summaries.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of gateway group summaries to return. The default is 50.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListGatewayGroupsResponse": { - "type": "structure", - "members": { - "GatewayGroups": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupSummaries", - "traits": { - "smithy.api#documentation": "

The gateway groups in the list.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to paginate though multiple pages of gateway group summaries.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListGateways": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListGatewaysRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListGatewaysResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Retrieves a list of gateway summaries. Use GetGateway to retrieve details of a specific\n gateway. An optional gateway group ARN can be provided to only retrieve gateway summaries\n of gateways that are associated with that gateway group ARN.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListGatewaysRequest": { - "type": "structure", - "members": { - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The gateway group ARN for which to list gateways.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to paginate though multiple pages of gateway summaries.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of gateway summaries to return. The default is 50.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListGatewaysResponse": { - "type": "structure", - "members": { - "Gateways": { - "target": "com.amazonaws.alexaforbusiness#GatewaySummaries", - "traits": { - "smithy.api#documentation": "

The gateways in the list.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token used to paginate though multiple pages of gateway summaries.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkills": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists all enabled skills in a specific skill group.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group for which to list enabled skills.

" - } - }, - "EnablementType": { - "target": "com.amazonaws.alexaforbusiness#EnablementTypeFilter", - "traits": { - "smithy.api#documentation": "

Whether the skill is enabled under the user's account.

" - } - }, - "SkillType": { - "target": "com.amazonaws.alexaforbusiness#SkillTypeFilter", - "traits": { - "smithy.api#documentation": "

Whether the skill is publicly available or is a private skill.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#SkillListMaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsResponse": { - "type": "structure", - "members": { - "SkillSummaries": { - "target": "com.amazonaws.alexaforbusiness#SkillSummaryList", - "traits": { - "smithy.api#documentation": "

The list of enabled skills requested. Required.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreCategories": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreCategoriesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreCategoriesResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists all categories in the Alexa skill store.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreCategoriesRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of categories returned, per paginated calls.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreCategoriesResponse": { - "type": "structure", - "members": { - "CategoryList": { - "target": "com.amazonaws.alexaforbusiness#CategoryList", - "traits": { - "smithy.api#documentation": "

The list of categories.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategory": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategoryRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategoryResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists all skills in the Alexa skill store by category.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategoryRequest": { - "type": "structure", - "members": { - "CategoryId": { - "target": "com.amazonaws.alexaforbusiness#CategoryId", - "traits": { - "smithy.api#documentation": "

The category ID for which the skills are being retrieved from the skill\n store.

", - "smithy.api#required": {} - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#SkillListMaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of skills returned per paginated calls.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSkillsStoreSkillsByCategoryResponse": { - "type": "structure", - "members": { - "SkillsStoreSkills": { - "target": "com.amazonaws.alexaforbusiness#SkillsStoreSkillList", - "traits": { - "smithy.api#documentation": "

The skill store skills.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSmartHomeAppliances": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListSmartHomeAppliancesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListSmartHomeAppliancesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists all of the smart home appliances associated with a room.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListSmartHomeAppliancesRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room that the appliances are associated with.

", - "smithy.api#required": {} - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of appliances to be returned, per paginated calls.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListSmartHomeAppliancesResponse": { - "type": "structure", - "members": { - "SmartHomeAppliances": { - "target": "com.amazonaws.alexaforbusiness#SmartHomeApplianceList", - "traits": { - "smithy.api#documentation": "

The smart home appliances.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The tokens used for pagination.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ListTags": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ListTagsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ListTagsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Lists all tags for the specified resource.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#ListTagsRequest": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the specified resource for which to list tags.

", - "smithy.api#required": {} - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ListTagsResponse": { - "type": "structure", - "members": { - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags requested for the specified resource.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Locale": { - "type": "enum", - "members": { - "en_US": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "en-US" - } - } - } - }, - "com.amazonaws.alexaforbusiness#MacAddress": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 50 - } - } - }, - "com.amazonaws.alexaforbusiness#MaxVolumeLimit": { - "type": "integer" - }, - "com.amazonaws.alexaforbusiness#MeetingRoomConfiguration": { - "type": "structure", - "members": { - "RoomUtilizationMetricsEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether room utilization metrics are enabled or not.

" - } - }, - "EndOfMeetingReminder": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminder", - "traits": { - "smithy.api#documentation": "

Settings for the end of meeting reminder feature that are applied to a room profile. The\n end of meeting reminder enables Alexa to remind users when a meeting is ending.

" - } - }, - "InstantBooking": { - "target": "com.amazonaws.alexaforbusiness#InstantBooking", - "traits": { - "smithy.api#documentation": "

Settings to automatically book the room if available for a configured duration when\n joining a meeting with Alexa.

" - } - }, - "RequireCheckIn": { - "target": "com.amazonaws.alexaforbusiness#RequireCheckIn", - "traits": { - "smithy.api#documentation": "

Settings for requiring a check in when a room is reserved. Alexa can cancel a room\n reservation if it's not checked into. This makes the room available for others. Users can\n check in by joining the meeting with Alexa or an AVS device, or by saying “Alexa, check\n in.”

" - } - }, - "ProactiveJoin": { - "target": "com.amazonaws.alexaforbusiness#ProactiveJoin" - } - }, - "traits": { - "smithy.api#documentation": "

Meeting room settings of a room profile.

" - } - }, - "com.amazonaws.alexaforbusiness#MeetingSetting": { - "type": "structure", - "members": { - "RequirePin": { - "target": "com.amazonaws.alexaforbusiness#RequirePin", - "traits": { - "smithy.api#documentation": "

The values that indicate whether the pin is always required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The values that indicate whether a pin is always required (YES), never required (NO),\n or OPTIONAL.

\n " - } - }, - "com.amazonaws.alexaforbusiness#Minutes": { - "type": "integer" - }, - "com.amazonaws.alexaforbusiness#NameInUseException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The name sent in the request is already in use.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#NetworkEapMethod": { - "type": "enum", - "members": { - "EAP_TLS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "EAP_TLS" - } - } - } - }, - "com.amazonaws.alexaforbusiness#NetworkProfile": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

" - } - }, - "NetworkProfileName": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileName", - "traits": { - "smithy.api#documentation": "

The name of the network profile associated with a device.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileDescription", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - }, - "Ssid": { - "target": "com.amazonaws.alexaforbusiness#NetworkSsid", - "traits": { - "smithy.api#documentation": "

The SSID of the Wi-Fi network.

" - } - }, - "SecurityType": { - "target": "com.amazonaws.alexaforbusiness#NetworkSecurityType", - "traits": { - "smithy.api#documentation": "

The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, WPA_PSK,\n WEP, or OPEN.

" - } - }, - "EapMethod": { - "target": "com.amazonaws.alexaforbusiness#NetworkEapMethod", - "traits": { - "smithy.api#documentation": "

The authentication standard that is used in the EAP framework. Currently, EAP_TLS is\n supported.

" - } - }, - "CurrentPassword": { - "target": "com.amazonaws.alexaforbusiness#CurrentWiFiPassword", - "traits": { - "smithy.api#documentation": "

The current password of the Wi-Fi network.

" - } - }, - "NextPassword": { - "target": "com.amazonaws.alexaforbusiness#NextWiFiPassword", - "traits": { - "smithy.api#documentation": "

The next, or subsequent, password of the Wi-Fi network. This password is asynchronously\n transmitted to the device and is used when the password of the network changes to\n NextPassword.

" - } - }, - "CertificateAuthorityArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the Private Certificate Authority (PCA) created in AWS Certificate Manager\n (ACM). This is used to issue certificates to the devices.

" - } - }, - "TrustAnchors": { - "target": "com.amazonaws.alexaforbusiness#TrustAnchorList", - "traits": { - "smithy.api#documentation": "

The root certificates of your authentication server, which is installed on your devices\n and used to trust your authentication server during EAP negotiation.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The network profile associated with a device.

" - } - }, - "com.amazonaws.alexaforbusiness#NetworkProfileData": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

" - } - }, - "NetworkProfileName": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileName", - "traits": { - "smithy.api#documentation": "

The name of the network profile associated with a device.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileDescription", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - }, - "Ssid": { - "target": "com.amazonaws.alexaforbusiness#NetworkSsid", - "traits": { - "smithy.api#documentation": "

The SSID of the Wi-Fi network.

" - } - }, - "SecurityType": { - "target": "com.amazonaws.alexaforbusiness#NetworkSecurityType", - "traits": { - "smithy.api#documentation": "

The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, WPA_PSK,\n WEP, or OPEN.

" - } - }, - "EapMethod": { - "target": "com.amazonaws.alexaforbusiness#NetworkEapMethod", - "traits": { - "smithy.api#documentation": "

The authentication standard that is used in the EAP framework. Currently, EAP_TLS is\n supported.

" - } - }, - "CertificateAuthorityArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the Private Certificate Authority (PCA) created in AWS Certificate Manager\n (ACM). This is used to issue certificates to the devices.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The data associated with a network profile.

" - } - }, - "com.amazonaws.alexaforbusiness#NetworkProfileDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileData" - } - }, - "com.amazonaws.alexaforbusiness#NetworkProfileDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 200 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#NetworkProfileName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#NetworkSecurityType": { - "type": "enum", - "members": { - "OPEN": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "OPEN" - } - }, - "WEP": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WEP" - } - }, - "WPA_PSK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WPA_PSK" - } - }, - "WPA2_PSK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WPA2_PSK" - } - }, - "WPA2_ENTERPRISE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WPA2_ENTERPRISE" - } - } - } - }, - "com.amazonaws.alexaforbusiness#NetworkSsid": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 32 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#NewInThisVersionBulletPoints": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#BulletPoint" - } - }, - "com.amazonaws.alexaforbusiness#NextToken": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1100 - } - } - }, - "com.amazonaws.alexaforbusiness#NextWiFiPassword": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 128 - }, - "smithy.api#pattern": "^(^$)|([\\x00-\\x7F]{5,})$", - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#NotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The resource is not found.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#OneClickIdDelay": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2 - } - } - }, - "com.amazonaws.alexaforbusiness#OneClickPinDelay": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2 - } - } - }, - "com.amazonaws.alexaforbusiness#OrganizationName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#OutboundPhoneNumber": { - "type": "string", - "traits": { - "smithy.api#pattern": "^\\d{10}$" - } - }, - "com.amazonaws.alexaforbusiness#PSTNDialIn": { - "type": "structure", - "members": { - "CountryCode": { - "target": "com.amazonaws.alexaforbusiness#CountryCode", - "traits": { - "smithy.api#documentation": "

The zip code.

", - "smithy.api#required": {} - } - }, - "PhoneNumber": { - "target": "com.amazonaws.alexaforbusiness#OutboundPhoneNumber", - "traits": { - "smithy.api#documentation": "

The phone number to call to join the conference.

", - "smithy.api#required": {} - } - }, - "OneClickIdDelay": { - "target": "com.amazonaws.alexaforbusiness#OneClickIdDelay", - "traits": { - "smithy.api#documentation": "

The delay duration before Alexa enters the conference ID with dual-tone multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is how we send data over the telephone network.

", - "smithy.api#required": {} - } - }, - "OneClickPinDelay": { - "target": "com.amazonaws.alexaforbusiness#OneClickPinDelay", - "traits": { - "smithy.api#documentation": "

The delay duration before Alexa enters the conference pin with dual-tone multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is how we send data over the telephone network.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The information for public switched telephone network (PSTN) conferencing.

" - } - }, - "com.amazonaws.alexaforbusiness#PhoneNumber": { - "type": "structure", - "members": { - "Number": { - "target": "com.amazonaws.alexaforbusiness#RawPhoneNumber", - "traits": { - "smithy.api#documentation": "

The raw value of the phone number.

", - "smithy.api#required": {} - } - }, - "Type": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumberType", - "traits": { - "smithy.api#documentation": "

The type of the phone number.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The phone number for the contact containing the raw number and phone number type.

" - } - }, - "com.amazonaws.alexaforbusiness#PhoneNumberList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumber" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 3 - } - } - }, - "com.amazonaws.alexaforbusiness#PhoneNumberType": { - "type": "enum", - "members": { - "MOBILE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "MOBILE" - } - }, - "WORK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WORK" - } - }, - "HOME": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "HOME" - } - } - }, - "traits": { - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#PrivacyPolicy": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ProactiveJoin": { - "type": "structure", - "members": { - "EnabledByMotion": { - "target": "com.amazonaws.alexaforbusiness#Boolean" - } - } - }, - "com.amazonaws.alexaforbusiness#ProductDescription": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ProductId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-zA-Z0-9_]{1,256}$" - } - }, - "com.amazonaws.alexaforbusiness#Profile": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a room profile.

" - } - }, - "ProfileName": { - "target": "com.amazonaws.alexaforbusiness#ProfileName", - "traits": { - "smithy.api#documentation": "

The name of a room profile.

" - } - }, - "IsDefault": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Retrieves if the profile is default or not.

" - } - }, - "Address": { - "target": "com.amazonaws.alexaforbusiness#Address", - "traits": { - "smithy.api#documentation": "

The address of a room profile.

" - } - }, - "Timezone": { - "target": "com.amazonaws.alexaforbusiness#Timezone", - "traits": { - "smithy.api#documentation": "

The time zone of a room profile.

" - } - }, - "DistanceUnit": { - "target": "com.amazonaws.alexaforbusiness#DistanceUnit", - "traits": { - "smithy.api#documentation": "

The distance unit of a room profile.

" - } - }, - "TemperatureUnit": { - "target": "com.amazonaws.alexaforbusiness#TemperatureUnit", - "traits": { - "smithy.api#documentation": "

The temperature unit of a room profile.

" - } - }, - "WakeWord": { - "target": "com.amazonaws.alexaforbusiness#WakeWord", - "traits": { - "smithy.api#documentation": "

The wake word of a room profile.

" - } - }, - "Locale": { - "target": "com.amazonaws.alexaforbusiness#DeviceLocale", - "traits": { - "smithy.api#documentation": "

The locale of a room profile. (This is currently available only to a limited preview\n audience.)

" - } - }, - "SetupModeDisabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

The setup mode of a room profile.

" - } - }, - "MaxVolumeLimit": { - "target": "com.amazonaws.alexaforbusiness#MaxVolumeLimit", - "traits": { - "smithy.api#documentation": "

The max volume limit of a room profile.

" - } - }, - "PSTNEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

The PSTN setting of a room profile.

" - } - }, - "DataRetentionOptIn": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether data retention of the profile is enabled.

" - } - }, - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the address book.

" - } - }, - "MeetingRoomConfiguration": { - "target": "com.amazonaws.alexaforbusiness#MeetingRoomConfiguration", - "traits": { - "smithy.api#documentation": "

Meeting room settings of a room profile.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A room profile with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#ProfileData": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a room profile.

" - } - }, - "ProfileName": { - "target": "com.amazonaws.alexaforbusiness#ProfileName", - "traits": { - "smithy.api#documentation": "

The name of a room profile.

" - } - }, - "IsDefault": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Retrieves if the profile data is default or not.

" - } - }, - "Address": { - "target": "com.amazonaws.alexaforbusiness#Address", - "traits": { - "smithy.api#documentation": "

The address of a room profile.

" - } - }, - "Timezone": { - "target": "com.amazonaws.alexaforbusiness#Timezone", - "traits": { - "smithy.api#documentation": "

The time zone of a room profile.

" - } - }, - "DistanceUnit": { - "target": "com.amazonaws.alexaforbusiness#DistanceUnit", - "traits": { - "smithy.api#documentation": "

The distance unit of a room profile.

" - } - }, - "TemperatureUnit": { - "target": "com.amazonaws.alexaforbusiness#TemperatureUnit", - "traits": { - "smithy.api#documentation": "

The temperature unit of a room profile.

" - } - }, - "WakeWord": { - "target": "com.amazonaws.alexaforbusiness#WakeWord", - "traits": { - "smithy.api#documentation": "

The wake word of a room profile.

" - } - }, - "Locale": { - "target": "com.amazonaws.alexaforbusiness#DeviceLocale", - "traits": { - "smithy.api#documentation": "

The locale of a room profile. (This is currently available only to a limited preview\n audience.)

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The data of a room profile.

" - } - }, - "com.amazonaws.alexaforbusiness#ProfileDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#ProfileData" - } - }, - "com.amazonaws.alexaforbusiness#ProfileName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#ProviderCalendarId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 100 - } - } - }, - "com.amazonaws.alexaforbusiness#PutConferencePreference": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#PutConferencePreferenceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#PutConferencePreferenceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Sets the conference preferences on a specific conference provider at the account\n level.

" - } - }, - "com.amazonaws.alexaforbusiness#PutConferencePreferenceRequest": { - "type": "structure", - "members": { - "ConferencePreference": { - "target": "com.amazonaws.alexaforbusiness#ConferencePreference", - "traits": { - "smithy.api#documentation": "

The conference preference of a specific conference provider.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#PutConferencePreferenceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#PutInvitationConfiguration": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#PutInvitationConfigurationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#PutInvitationConfigurationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Configures the email template for the user enrollment invitation with the specified\n attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#PutInvitationConfigurationRequest": { - "type": "structure", - "members": { - "OrganizationName": { - "target": "com.amazonaws.alexaforbusiness#OrganizationName", - "traits": { - "smithy.api#documentation": "

The name of the organization sending the enrollment invite to a user.

", - "smithy.api#required": {} - } - }, - "ContactEmail": { - "target": "com.amazonaws.alexaforbusiness#Email", - "traits": { - "smithy.api#documentation": "

The email ID of the organization or individual contact that the enrolled user can use.\n

" - } - }, - "PrivateSkillIds": { - "target": "com.amazonaws.alexaforbusiness#ShortSkillIdList", - "traits": { - "smithy.api#documentation": "

The list of private skill IDs that you want to recommend to the user to enable in the\n invitation.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#PutInvitationConfigurationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#PutRoomSkillParameter": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#PutRoomSkillParameterRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#PutRoomSkillParameterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates room skill parameter details by room, skill, and parameter key ID. Not all\n skills have a room skill parameter.

" - } - }, - "com.amazonaws.alexaforbusiness#PutRoomSkillParameterRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room associated with the room skill parameter. Required.

" - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of the skill associated with the room skill parameter. Required.

", - "smithy.api#required": {} - } - }, - "RoomSkillParameter": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameter", - "traits": { - "smithy.api#documentation": "

The updated room skill parameter. Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#PutRoomSkillParameterResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#PutSkillAuthorization": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#PutSkillAuthorizationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#PutSkillAuthorizationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#UnauthorizedException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Links a user's account to a third-party skill provider. If this API operation is\n called by an assumed IAM role, the skill being linked must be a private skill. Also, the\n skill must be owned by the AWS account that assumed the IAM role.

" - } - }, - "com.amazonaws.alexaforbusiness#PutSkillAuthorizationRequest": { - "type": "structure", - "members": { - "AuthorizationResult": { - "target": "com.amazonaws.alexaforbusiness#AuthorizationResult", - "traits": { - "smithy.api#documentation": "

The authorization result specific to OAUTH code grant output. \"Code” must be\n populated in the AuthorizationResult map to establish the authorization.

", - "smithy.api#required": {} - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The unique identifier of a skill.

", - "smithy.api#required": {} - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room that the skill is authorized for.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#PutSkillAuthorizationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#RawPhoneNumber": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 50 - }, - "smithy.api#pattern": "^[\\+0-9\\#\\,\\(][\\+0-9\\-\\.\\/\\(\\)\\,\\#\\s]+$", - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#RegisterAVSDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#RegisterAVSDeviceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#RegisterAVSDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidDeviceException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Registers an Alexa-enabled device built by an Original Equipment Manufacturer (OEM)\n using Alexa Voice Service (AVS).

" - } - }, - "com.amazonaws.alexaforbusiness#RegisterAVSDeviceRequest": { - "type": "structure", - "members": { - "ClientId": { - "target": "com.amazonaws.alexaforbusiness#ClientId", - "traits": { - "smithy.api#documentation": "

The client ID of the OEM used for code-based linking authorization on an AVS\n device.

", - "smithy.api#required": {} - } - }, - "UserCode": { - "target": "com.amazonaws.alexaforbusiness#UserCode", - "traits": { - "smithy.api#documentation": "

The code that is obtained after your AVS device has made a POST request to LWA as a\n part of the Device Authorization Request component of the OAuth code-based linking\n specification.

", - "smithy.api#required": {} - } - }, - "ProductId": { - "target": "com.amazonaws.alexaforbusiness#ProductId", - "traits": { - "smithy.api#documentation": "

The product ID used to identify your AVS device during authorization.

", - "smithy.api#required": {} - } - }, - "DeviceSerialNumber": { - "target": "com.amazonaws.alexaforbusiness#DeviceSerialNumberForAVS", - "traits": { - "smithy.api#documentation": "

The key generated by the OEM that uniquely identifies a specified instance of your\n AVS device.

" - } - }, - "AmazonId": { - "target": "com.amazonaws.alexaforbusiness#AmazonId", - "traits": { - "smithy.api#documentation": "

The device type ID for your AVS device generated by Amazon when the OEM creates a new\n product on Amazon's Developer Console.

", - "smithy.api#required": {} - } - }, - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the room with which to associate your AVS device.

" - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#RegisterAVSDeviceResponse": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#RejectSkill": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#RejectSkillRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#RejectSkillResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Disassociates a skill from the organization under a user's AWS account. If the skill\n is a private skill, it moves to an AcceptStatus of PENDING. Any private or public skill\n that is rejected can be added later by calling the ApproveSkill API.

" - } - }, - "com.amazonaws.alexaforbusiness#RejectSkillRequest": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The unique identifier of the skill.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#RejectSkillResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ReleaseDate": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#RequireCheckIn": { - "type": "structure", - "members": { - "ReleaseAfterMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 5 and 20 minutes to determine when to release the room if it's not checked into.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether require check in is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings for the require check in feature that are applied to a room profile. Require check in allows a meeting room’s Alexa or AVS device to prompt the user to check in; otherwise, the room will be released.

" - } - }, - "com.amazonaws.alexaforbusiness#RequirePin": { - "type": "enum", - "members": { - "YES": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "YES" - } - }, - "NO": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "NO" - } - }, - "OPTIONAL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "OPTIONAL" - } - } - } - }, - "com.amazonaws.alexaforbusiness#ResolveRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#ResolveRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#ResolveRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Determines the details for the room from which a skill request was invoked. This\n operation is used by skill developers.

\n

To query ResolveRoom from an Alexa skill, the skill ID needs to be authorized. When\n the skill is using an AWS Lambda function, the skill is automatically authorized when you\n publish your skill as a private skill to your AWS account. Skills that are hosted using a\n custom web service must be manually authorized. To get your skill authorized, contact AWS\n Support with your AWS account ID that queries the ResolveRoom API and skill ID.

" - } - }, - "com.amazonaws.alexaforbusiness#ResolveRoomRequest": { - "type": "structure", - "members": { - "UserId": { - "target": "com.amazonaws.alexaforbusiness#UserId", - "traits": { - "smithy.api#documentation": "

The ARN of the user. Required.

", - "smithy.api#required": {} - } - }, - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of the skill that was requested. Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#ResolveRoomResponse": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room from which the skill request was invoked.

" - } - }, - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#RoomName", - "traits": { - "smithy.api#documentation": "

The name of the room from which the skill request was invoked.

" - } - }, - "RoomSkillParameters": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameters", - "traits": { - "smithy.api#documentation": "

Response to get the room profile request. Required.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ResourceAssociatedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

Another resource is associated with the resource in the request.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#ResourceInUseException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken" - } - }, - "traits": { - "smithy.api#documentation": "

The resource in the request is already in use.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#ReviewKey": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ReviewValue": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Reviews": { - "type": "map", - "key": { - "target": "com.amazonaws.alexaforbusiness#ReviewKey" - }, - "value": { - "target": "com.amazonaws.alexaforbusiness#ReviewValue" - } - }, - "com.amazonaws.alexaforbusiness#RevokeInvitation": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#RevokeInvitationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#RevokeInvitationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Revokes an invitation and invalidates the enrollment URL.

" - } - }, - "com.amazonaws.alexaforbusiness#RevokeInvitationRequest": { - "type": "structure", - "members": { - "UserArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the user for whom to revoke an enrollment invitation. Required.

" - } - }, - "EnrollmentId": { - "target": "com.amazonaws.alexaforbusiness#EnrollmentId", - "traits": { - "smithy.api#documentation": "

The ARN of the enrollment invitation to revoke. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#RevokeInvitationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Room": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a room.

" - } - }, - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#RoomName", - "traits": { - "smithy.api#documentation": "

The name of a room.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#RoomDescription", - "traits": { - "smithy.api#documentation": "

The description of a room.

" - } - }, - "ProviderCalendarId": { - "target": "com.amazonaws.alexaforbusiness#ProviderCalendarId", - "traits": { - "smithy.api#documentation": "

The provider calendar ARN of a room.

" - } - }, - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The profile ARN of a room.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A room with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#RoomData": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a room.

" - } - }, - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#RoomName", - "traits": { - "smithy.api#documentation": "

The name of a room.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#RoomDescription", - "traits": { - "smithy.api#documentation": "

The description of a room.

" - } - }, - "ProviderCalendarId": { - "target": "com.amazonaws.alexaforbusiness#ProviderCalendarId", - "traits": { - "smithy.api#documentation": "

The provider calendar ARN of a room.

" - } - }, - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The profile ARN of a room.

" - } - }, - "ProfileName": { - "target": "com.amazonaws.alexaforbusiness#ProfileName", - "traits": { - "smithy.api#documentation": "

The profile name of a room.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The data of a room.

" - } - }, - "com.amazonaws.alexaforbusiness#RoomDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#RoomData" - } - }, - "com.amazonaws.alexaforbusiness#RoomDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 200 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#RoomName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#RoomSkillParameter": { - "type": "structure", - "members": { - "ParameterKey": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameterKey", - "traits": { - "smithy.api#documentation": "

The parameter key of a room skill parameter. ParameterKey is an enumerated type that\n only takes “DEFAULT” or “SCOPE” as valid values.

", - "smithy.api#required": {} - } - }, - "ParameterValue": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameterValue", - "traits": { - "smithy.api#documentation": "

The parameter value of a room skill parameter.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A skill parameter associated with a room.

" - } - }, - "com.amazonaws.alexaforbusiness#RoomSkillParameterKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - } - } - }, - "com.amazonaws.alexaforbusiness#RoomSkillParameterValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 512 - } - } - }, - "com.amazonaws.alexaforbusiness#RoomSkillParameters": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#RoomSkillParameter" - } - }, - "com.amazonaws.alexaforbusiness#S3KeyPrefix": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 100 - }, - "smithy.api#pattern": "^[A-Za-z0-9!_\\-\\.\\*'()/]*$" - } - }, - "com.amazonaws.alexaforbusiness#SampleUtterances": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Utterance" - } - }, - "com.amazonaws.alexaforbusiness#SearchAddressBooks": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchAddressBooksRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchAddressBooksResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches address books and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchAddressBooksRequest": { - "type": "structure", - "members": { - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of address books. The supported filter key\n is AddressBookName.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of address books. The supported\n sort key is AddressBookName.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response only includes\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that the remaining\n results can be retrieved.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchAddressBooksResponse": { - "type": "structure", - "members": { - "AddressBooks": { - "target": "com.amazonaws.alexaforbusiness#AddressBookDataList", - "traits": { - "smithy.api#documentation": "

The address books that meet the specified set of filter criteria, in sort\n order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of address books returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchContacts": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchContactsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchContactsResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches contacts and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchContactsRequest": { - "type": "structure", - "members": { - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of address books. The supported filter\n keys are DisplayName, FirstName, LastName, and AddressBookArns.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of contacts. The supported sort\n keys are DisplayName, FirstName, and LastName.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response only includes\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that the remaining\n results can be retrieved.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchContactsResponse": { - "type": "structure", - "members": { - "Contacts": { - "target": "com.amazonaws.alexaforbusiness#ContactDataList", - "traits": { - "smithy.api#documentation": "

The contacts that meet the specified set of filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of contacts returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchDevices": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchDevicesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchDevicesResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches devices and lists the ones that meet a set of filter criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchDevicesRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of devices. Supported filter keys are\n DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, DeviceSerialNumber,\n UnassociatedOnly, ConnectionStatus (ONLINE and OFFLINE), NetworkProfileName,\n NetworkProfileArn, Feature, and FailureCode.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of devices. Supported sort keys\n are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, ConnectionStatus,\n NetworkProfileName, NetworkProfileArn, Feature, and FailureCode.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchDevicesResponse": { - "type": "structure", - "members": { - "Devices": { - "target": "com.amazonaws.alexaforbusiness#DeviceDataList", - "traits": { - "smithy.api#documentation": "

The devices that meet the specified set of filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of devices returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchNetworkProfiles": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchNetworkProfilesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchNetworkProfilesResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches network profiles and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchNetworkProfilesRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than the\n specified MaxResults value, a token is included in the response so that the remaining\n results can be retrieved.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of network profiles. Valid filters are\n NetworkProfileName, Ssid, and SecurityType.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use to list the specified set of network profiles. Valid sort criteria\n includes NetworkProfileName, Ssid, and SecurityType.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchNetworkProfilesResponse": { - "type": "structure", - "members": { - "NetworkProfiles": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileDataList", - "traits": { - "smithy.api#documentation": "

The network profiles that meet the specified set of filter criteria, in sort order. It\n is a list of NetworkProfileData objects.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of network profiles returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchProfiles": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchProfilesRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchProfilesResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches room profiles and lists the ones that meet a set of filter\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchProfilesRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of room profiles. Supported filter keys\n are ProfileName and Address. Required.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of room profiles. Supported sort\n keys are ProfileName and Address.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchProfilesResponse": { - "type": "structure", - "members": { - "Profiles": { - "target": "com.amazonaws.alexaforbusiness#ProfileDataList", - "traits": { - "smithy.api#documentation": "

The profiles that meet the specified set of filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of room profiles returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchRooms": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchRoomsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchRoomsResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches rooms and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchRoomsRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of rooms. The supported filter keys are\n RoomName and ProfileName.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of rooms. The supported sort keys\n are RoomName and ProfileName.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchRoomsResponse": { - "type": "structure", - "members": { - "Rooms": { - "target": "com.amazonaws.alexaforbusiness#RoomDataList", - "traits": { - "smithy.api#documentation": "

The rooms that meet the specified set of filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of rooms returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchSkillGroups": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchSkillGroupsRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchSkillGroupsResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches skill groups and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchSkillGroupsRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.\n Required.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to list a specified set of skill groups. The supported filter key\n is SkillGroupName.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the specified set of skill groups. The supported\n sort key is SkillGroupName.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchSkillGroupsResponse": { - "type": "structure", - "members": { - "SkillGroups": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupDataList", - "traits": { - "smithy.api#documentation": "

The skill groups that meet the filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of skill groups returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchUsers": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SearchUsersRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SearchUsersResponse" - }, - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Searches users and lists the ones that meet a set of filter and sort\n criteria.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.alexaforbusiness#SearchUsersRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

An optional token returned from a prior request. Use this token for pagination of\n results from this action. If this parameter is specified, the response includes only\n results beyond the token, up to the value specified by MaxResults.\n Required.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.alexaforbusiness#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to include in the response. If more results exist than\n the specified MaxResults value, a token is included in the response so that\n the remaining results can be retrieved. Required.

" - } - }, - "Filters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use for listing a specific set of users. Required. Supported filter\n keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

" - } - }, - "SortCriteria": { - "target": "com.amazonaws.alexaforbusiness#SortList", - "traits": { - "smithy.api#documentation": "

The sort order to use in listing the filtered set of users. Required. Supported sort\n keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SearchUsersResponse": { - "type": "structure", - "members": { - "Users": { - "target": "com.amazonaws.alexaforbusiness#UserDataList", - "traits": { - "smithy.api#documentation": "

The users that meet the specified set of filter criteria, in sort order.

" - } - }, - "NextToken": { - "target": "com.amazonaws.alexaforbusiness#NextToken", - "traits": { - "smithy.api#documentation": "

The token returned to indicate that there is more data available.

" - } - }, - "TotalCount": { - "target": "com.amazonaws.alexaforbusiness#TotalCount", - "traits": { - "smithy.api#documentation": "

The total number of users returned.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SendAnnouncement": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SendAnnouncementRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SendAnnouncementResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#AlreadyExistsException" - }, - { - "target": "com.amazonaws.alexaforbusiness#LimitExceededException" - } - ], - "traits": { - "smithy.api#documentation": "

Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that\n are identified by a search or filter.

" - } - }, - "com.amazonaws.alexaforbusiness#SendAnnouncementRequest": { - "type": "structure", - "members": { - "RoomFilters": { - "target": "com.amazonaws.alexaforbusiness#FilterList", - "traits": { - "smithy.api#documentation": "

The filters to use to send an announcement to a specified list of rooms. The supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To send to all rooms, specify an empty RoomFilters list.

", - "smithy.api#required": {} - } - }, - "Content": { - "target": "com.amazonaws.alexaforbusiness#Content", - "traits": { - "smithy.api#documentation": "

The announcement content. This can contain only one of the three possible announcement types (text, SSML or audio).

", - "smithy.api#required": {} - } - }, - "TimeToLiveInSeconds": { - "target": "com.amazonaws.alexaforbusiness#TimeToLiveInSeconds", - "traits": { - "smithy.api#documentation": "

The time to live for an announcement. Default is 300. If delivery doesn't occur within this time, the\n announcement is not delivered.

" - } - }, - "ClientRequestToken": { - "target": "com.amazonaws.alexaforbusiness#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

The unique, user-specified identifier for the request that ensures idempotency.

", - "smithy.api#idempotencyToken": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SendAnnouncementResponse": { - "type": "structure", - "members": { - "AnnouncementArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The identifier of the announcement.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#SendInvitation": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#SendInvitationRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#SendInvitationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidUserStatusException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Sends an enrollment invitation email with a URL to a user. The URL is valid for 30\n days or until you call this operation again, whichever comes first.

" - } - }, - "com.amazonaws.alexaforbusiness#SendInvitationRequest": { - "type": "structure", - "members": { - "UserArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the user to whom to send an invitation. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#SendInvitationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#ShortDescription": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#ShortSkillIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SkillId" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 3 - } - } - }, - "com.amazonaws.alexaforbusiness#SipAddress": { - "type": "structure", - "members": { - "Uri": { - "target": "com.amazonaws.alexaforbusiness#SipUri", - "traits": { - "smithy.api#documentation": "

The URI for the SIP address.

", - "smithy.api#required": {} - } - }, - "Type": { - "target": "com.amazonaws.alexaforbusiness#SipType", - "traits": { - "smithy.api#documentation": "

The type of the SIP address.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The SIP address for the contact containing the URI and SIP address type.

" - } - }, - "com.amazonaws.alexaforbusiness#SipAddressList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SipAddress" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#SipType": { - "type": "enum", - "members": { - "WORK": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "WORK" - } - } - }, - "traits": { - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#SipUri": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#pattern": "^sip[s]?:([^@:]+)\\@([^@]+)$", - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.alexaforbusiness#SkillDetails": { - "type": "structure", - "members": { - "ProductDescription": { - "target": "com.amazonaws.alexaforbusiness#ProductDescription", - "traits": { - "smithy.api#documentation": "

The description of the product.

" - } - }, - "InvocationPhrase": { - "target": "com.amazonaws.alexaforbusiness#InvocationPhrase", - "traits": { - "smithy.api#documentation": "

The phrase used to trigger the skill.

" - } - }, - "ReleaseDate": { - "target": "com.amazonaws.alexaforbusiness#ReleaseDate", - "traits": { - "smithy.api#documentation": "

The date when the skill was released.

" - } - }, - "EndUserLicenseAgreement": { - "target": "com.amazonaws.alexaforbusiness#EndUserLicenseAgreement", - "traits": { - "smithy.api#documentation": "

The URL of the end user license agreement.

" - } - }, - "GenericKeywords": { - "target": "com.amazonaws.alexaforbusiness#GenericKeywords", - "traits": { - "smithy.api#documentation": "

The generic keywords associated with the skill that can be used to find a\n skill.

" - } - }, - "BulletPoints": { - "target": "com.amazonaws.alexaforbusiness#BulletPoints", - "traits": { - "smithy.api#documentation": "

The details about what the skill supports organized as bullet points.

" - } - }, - "NewInThisVersionBulletPoints": { - "target": "com.amazonaws.alexaforbusiness#NewInThisVersionBulletPoints", - "traits": { - "smithy.api#documentation": "

The updates added in bullet points.

" - } - }, - "SkillTypes": { - "target": "com.amazonaws.alexaforbusiness#SkillTypes", - "traits": { - "smithy.api#documentation": "

The types of skills.

" - } - }, - "Reviews": { - "target": "com.amazonaws.alexaforbusiness#Reviews", - "traits": { - "smithy.api#documentation": "

\n This member has been deprecated.\n

\n

The list of reviews for the skill, including Key and Value pair.

" - } - }, - "DeveloperInfo": { - "target": "com.amazonaws.alexaforbusiness#DeveloperInfo", - "traits": { - "smithy.api#documentation": "

The details about the developer that published the skill.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Granular information about the skill.

" - } - }, - "com.amazonaws.alexaforbusiness#SkillGroup": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a skill group.

" - } - }, - "SkillGroupName": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupName", - "traits": { - "smithy.api#documentation": "

The name of a skill group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupDescription", - "traits": { - "smithy.api#documentation": "

The description of a skill group.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A skill group with attributes.

" - } - }, - "com.amazonaws.alexaforbusiness#SkillGroupData": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The skill group ARN of a skill group.

" - } - }, - "SkillGroupName": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupName", - "traits": { - "smithy.api#documentation": "

The skill group name of a skill group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupDescription", - "traits": { - "smithy.api#documentation": "

The description of a skill group.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The attributes of a skill group.

" - } - }, - "com.amazonaws.alexaforbusiness#SkillGroupDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupData" - } - }, - "com.amazonaws.alexaforbusiness#SkillGroupDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 200 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#SkillGroupName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#SkillId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^(^amzn1\\.ask\\.skill\\.[0-9a-f\\-]{1,200})|(^amzn1\\.echo-sdk-ams\\.app\\.[0-9a-f\\-]{1,200})$" - } - }, - "com.amazonaws.alexaforbusiness#SkillListMaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 10 - } - } - }, - "com.amazonaws.alexaforbusiness#SkillName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#SkillNotLinkedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The skill must be linked to a third-party account.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#SkillStoreType": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#SkillSummary": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of the skill summary.

" - } - }, - "SkillName": { - "target": "com.amazonaws.alexaforbusiness#SkillName", - "traits": { - "smithy.api#documentation": "

The name of the skill.

" - } - }, - "SupportsLinking": { - "target": "com.amazonaws.alexaforbusiness#Boolean2", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

Linking support for a skill.

" - } - }, - "EnablementType": { - "target": "com.amazonaws.alexaforbusiness#EnablementType", - "traits": { - "smithy.api#documentation": "

Whether the skill is enabled under the user's account, or if it requires linking to be\n used.

" - } - }, - "SkillType": { - "target": "com.amazonaws.alexaforbusiness#SkillType", - "traits": { - "smithy.api#documentation": "

Whether the skill is publicly available or is a private skill.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The summary of skills.

" - } - }, - "com.amazonaws.alexaforbusiness#SkillSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SkillSummary" - } - }, - "com.amazonaws.alexaforbusiness#SkillType": { - "type": "enum", - "members": { - "PUBLIC": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PUBLIC" - } - }, - "PRIVATE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PRIVATE" - } - } - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" - } - }, - "com.amazonaws.alexaforbusiness#SkillTypeFilter": { - "type": "enum", - "members": { - "PUBLIC": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PUBLIC" - } - }, - "PRIVATE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "PRIVATE" - } - }, - "ALL": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ALL" - } - } - } - }, - "com.amazonaws.alexaforbusiness#SkillTypes": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SkillStoreType" - } - }, - "com.amazonaws.alexaforbusiness#SkillsStoreSkill": { - "type": "structure", - "members": { - "SkillId": { - "target": "com.amazonaws.alexaforbusiness#SkillId", - "traits": { - "smithy.api#documentation": "

The ARN of the skill.

" - } - }, - "SkillName": { - "target": "com.amazonaws.alexaforbusiness#SkillName", - "traits": { - "smithy.api#documentation": "

The name of the skill.

" - } - }, - "ShortDescription": { - "target": "com.amazonaws.alexaforbusiness#ShortDescription", - "traits": { - "smithy.api#documentation": "

Short description about the skill.

" - } - }, - "IconUrl": { - "target": "com.amazonaws.alexaforbusiness#IconUrl", - "traits": { - "smithy.api#documentation": "

The URL where the skill icon resides.

" - } - }, - "SampleUtterances": { - "target": "com.amazonaws.alexaforbusiness#SampleUtterances", - "traits": { - "smithy.api#documentation": "

Sample utterances that interact with the skill.

" - } - }, - "SkillDetails": { - "target": "com.amazonaws.alexaforbusiness#SkillDetails", - "traits": { - "smithy.api#documentation": "

Information about the skill.

" - } - }, - "SupportsLinking": { - "target": "com.amazonaws.alexaforbusiness#Boolean2", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

Linking support for a skill.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The detailed information about an Alexa skill.

" - } - }, - "com.amazonaws.alexaforbusiness#SkillsStoreSkillList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SkillsStoreSkill" - } - }, - "com.amazonaws.alexaforbusiness#SmartHomeAppliance": { - "type": "structure", - "members": { - "FriendlyName": { - "target": "com.amazonaws.alexaforbusiness#ApplianceFriendlyName", - "traits": { - "smithy.api#documentation": "

The friendly name of the smart home appliance.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#ApplianceDescription", - "traits": { - "smithy.api#documentation": "

The description of the smart home appliance.

" - } - }, - "ManufacturerName": { - "target": "com.amazonaws.alexaforbusiness#ApplianceManufacturerName", - "traits": { - "smithy.api#documentation": "

The name of the manufacturer of the smart home appliance.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A smart home appliance that can connect to a central system. Any domestic device can be\n a smart appliance.

" - } - }, - "com.amazonaws.alexaforbusiness#SmartHomeApplianceList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#SmartHomeAppliance" - } - }, - "com.amazonaws.alexaforbusiness#SoftwareVersion": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Sort": { - "type": "structure", - "members": { - "Key": { - "target": "com.amazonaws.alexaforbusiness#SortKey", - "traits": { - "smithy.api#documentation": "

The sort key of a sort object.

", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.alexaforbusiness#SortValue", - "traits": { - "smithy.api#documentation": "

The sort value of a sort object.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

An object representing a sort criteria.

" - } - }, - "com.amazonaws.alexaforbusiness#SortKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 500 - } - } - }, - "com.amazonaws.alexaforbusiness#SortList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Sort" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 25 - } - } - }, - "com.amazonaws.alexaforbusiness#SortValue": { - "type": "enum", - "members": { - "ASC": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ASC" - } - }, - "DESC": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "DESC" - } - } - } - }, - "com.amazonaws.alexaforbusiness#Ssml": { - "type": "structure", - "members": { - "Locale": { - "target": "com.amazonaws.alexaforbusiness#Locale", - "traits": { - "smithy.api#documentation": "

The locale of the SSML message. Currently, en-US is supported.

", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.alexaforbusiness#SsmlValue", - "traits": { - "smithy.api#documentation": "

The value of the SSML message in the correct SSML format. The audio tag is not supported.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The SSML message. For more information, see SSML Reference.

" - } - }, - "com.amazonaws.alexaforbusiness#SsmlList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Ssml" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#SsmlValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 4096 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#StartDeviceSync": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#StartDeviceSyncRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#StartDeviceSyncResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Resets a device and its account to the known default settings. This clears all\n information and settings set by previous users in the following ways:

\n " - } - }, - "com.amazonaws.alexaforbusiness#StartDeviceSyncRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room with which the device to sync is associated. Required.

" - } - }, - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device to sync. Required.

" - } - }, - "Features": { - "target": "com.amazonaws.alexaforbusiness#Features", - "traits": { - "smithy.api#documentation": "

Request structure to start the device sync. Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#StartDeviceSyncResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscovery": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscoveryRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscoveryResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Initiates the discovery of any smart home appliances associated with the\n room.

" - } - }, - "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscoveryRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The room where smart home appliance discovery was initiated.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#StartSmartHomeApplianceDiscoveryResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Tag": { - "type": "structure", - "members": { - "Key": { - "target": "com.amazonaws.alexaforbusiness#TagKey", - "traits": { - "smithy.api#documentation": "

The key of a tag. Tag keys are case-sensitive.

", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.alexaforbusiness#TagValue", - "traits": { - "smithy.api#documentation": "

The value of a tag. Tag values are case sensitive and can be null.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A key-value pair that can be associated with a resource.

" - } - }, - "com.amazonaws.alexaforbusiness#TagKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" - } - }, - "com.amazonaws.alexaforbusiness#TagKeyList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#TagKey" - } - }, - "com.amazonaws.alexaforbusiness#TagList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Tag" - } - }, - "com.amazonaws.alexaforbusiness#TagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#TagResourceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#TagResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Adds metadata tags to a specified resource.

" - } - }, - "com.amazonaws.alexaforbusiness#TagResourceRequest": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the resource to which to add metadata tags. Required.

", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.alexaforbusiness#TagList", - "traits": { - "smithy.api#documentation": "

The tags to be added to the specified resource. Do not provide system tags. Required.\n

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#TagResourceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#TagValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 - }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" - } - }, - "com.amazonaws.alexaforbusiness#TemperatureUnit": { - "type": "enum", - "members": { - "FAHRENHEIT": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "FAHRENHEIT" - } - }, - "CELSIUS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "CELSIUS" - } - } - } - }, - "com.amazonaws.alexaforbusiness#Text": { - "type": "structure", - "members": { - "Locale": { - "target": "com.amazonaws.alexaforbusiness#Locale", - "traits": { - "smithy.api#documentation": "

The locale of the text message. Currently, en-US is supported.

", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.alexaforbusiness#TextValue", - "traits": { - "smithy.api#documentation": "

The value of the text message.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The text message.

" - } - }, - "com.amazonaws.alexaforbusiness#TextList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#Text" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#TextValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 4096 - }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$" - } - }, - "com.amazonaws.alexaforbusiness#TimeToLiveInSeconds": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 3600 - } - } - }, - "com.amazonaws.alexaforbusiness#Timezone": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - } - } - }, - "com.amazonaws.alexaforbusiness#TotalCount": { - "type": "integer" - }, - "com.amazonaws.alexaforbusiness#TrustAnchor": { - "type": "string", - "traits": { - "smithy.api#pattern": "^-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}(\\u000D?\\u000A)?$" - } - }, - "com.amazonaws.alexaforbusiness#TrustAnchorList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#TrustAnchor" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 5 - } - } - }, - "com.amazonaws.alexaforbusiness#UnauthorizedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.alexaforbusiness#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "

The caller has no permissions to operate on the resource involved in the API call.

", - "smithy.api#error": "client" - } - }, - "com.amazonaws.alexaforbusiness#UntagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UntagResourceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UntagResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Removes metadata tags from a specified resource.

" - } - }, - "com.amazonaws.alexaforbusiness#UntagResourceRequest": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the resource from which to remove metadata tags. Required.

", - "smithy.api#required": {} - } - }, - "TagKeys": { - "target": "com.amazonaws.alexaforbusiness#TagKeyList", - "traits": { - "smithy.api#documentation": "

The tags to be removed from the specified resource. Do not provide system tags.\n Required.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UntagResourceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateAddressBook": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateAddressBookRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateAddressBookResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates address book details by the address book ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateAddressBookRequest": { - "type": "structure", - "members": { - "AddressBookArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room to update.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#AddressBookName", - "traits": { - "smithy.api#documentation": "

The updated name of the room.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#AddressBookDescription", - "traits": { - "smithy.api#documentation": "

The updated description of the room.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateAddressBookResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateBusinessReportSchedule": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateBusinessReportScheduleRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateBusinessReportScheduleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates the configuration of the report delivery schedule with the specified schedule\n ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateBusinessReportScheduleRequest": { - "type": "structure", - "members": { - "ScheduleArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the business report schedule.

", - "smithy.api#required": {} - } - }, - "S3BucketName": { - "target": "com.amazonaws.alexaforbusiness#CustomerS3BucketName", - "traits": { - "smithy.api#documentation": "

The S3 location of the output reports.

" - } - }, - "S3KeyPrefix": { - "target": "com.amazonaws.alexaforbusiness#S3KeyPrefix", - "traits": { - "smithy.api#documentation": "

The S3 key where the report is delivered.

" - } - }, - "Format": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportFormat", - "traits": { - "smithy.api#documentation": "

The format of the generated report (individual CSV files or zipped files of\n individual files).

" - } - }, - "ScheduleName": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportScheduleName", - "traits": { - "smithy.api#documentation": "

The name identifier of the schedule.

" - } - }, - "Recurrence": { - "target": "com.amazonaws.alexaforbusiness#BusinessReportRecurrence", - "traits": { - "smithy.api#documentation": "

The recurrence of the reports.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateBusinessReportScheduleResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateConferenceProvider": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateConferenceProviderRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateConferenceProviderResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates an existing conference provider's settings.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateConferenceProviderRequest": { - "type": "structure", - "members": { - "ConferenceProviderArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the conference provider.

", - "smithy.api#required": {} - } - }, - "ConferenceProviderType": { - "target": "com.amazonaws.alexaforbusiness#ConferenceProviderType", - "traits": { - "smithy.api#documentation": "

The type of the conference provider.

", - "smithy.api#required": {} - } - }, - "IPDialIn": { - "target": "com.amazonaws.alexaforbusiness#IPDialIn", - "traits": { - "smithy.api#documentation": "

The IP endpoint and protocol for calling.

" - } - }, - "PSTNDialIn": { - "target": "com.amazonaws.alexaforbusiness#PSTNDialIn", - "traits": { - "smithy.api#documentation": "

The information for PSTN conferencing.

" - } - }, - "MeetingSetting": { - "target": "com.amazonaws.alexaforbusiness#MeetingSetting", - "traits": { - "smithy.api#documentation": "

The meeting settings for the conference provider.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateConferenceProviderResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateContact": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateContactRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateContactResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates the contact details by the contact ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateContactRequest": { - "type": "structure", - "members": { - "ContactArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the contact to update.

", - "smithy.api#required": {} - } - }, - "DisplayName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The updated display name of the contact.

" - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The updated first name of the contact.

" - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#ContactName", - "traits": { - "smithy.api#documentation": "

The updated last name of the contact.

" - } - }, - "PhoneNumber": { - "target": "com.amazonaws.alexaforbusiness#RawPhoneNumber", - "traits": { - "smithy.api#documentation": "

The updated phone number of the contact. The phone number type defaults to WORK. You\n can either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers,\n which lets you specify the phone number type and multiple numbers.

" - } - }, - "PhoneNumbers": { - "target": "com.amazonaws.alexaforbusiness#PhoneNumberList", - "traits": { - "smithy.api#documentation": "

The list of phone numbers for the contact.

" - } - }, - "SipAddresses": { - "target": "com.amazonaws.alexaforbusiness#SipAddressList", - "traits": { - "smithy.api#documentation": "

The list of SIP addresses for the contact.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateContactResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateDeviceRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#DeviceNotRegisteredException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates the device name by device ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateDeviceRequest": { - "type": "structure", - "members": { - "DeviceArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the device to update. Required.

" - } - }, - "DeviceName": { - "target": "com.amazonaws.alexaforbusiness#DeviceName", - "traits": { - "smithy.api#documentation": "

The updated device name. Required.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateDeviceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateEndOfMeetingReminder": { - "type": "structure", - "members": { - "ReminderAtMinutes": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderMinutesList", - "traits": { - "smithy.api#documentation": "

Updates settings for the end of meeting reminder feature that are applied to a room\n profile. The end of meeting reminder enables Alexa to remind users when a meeting is\n ending.

" - } - }, - "ReminderType": { - "target": "com.amazonaws.alexaforbusiness#EndOfMeetingReminderType", - "traits": { - "smithy.api#documentation": "

The type of sound that users hear during the end of meeting reminder.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether an end of meeting reminder is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings for the end of meeting reminder feature that are applied to a room profile. The\n end of meeting reminder enables Alexa to remind users when a meeting is ending.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateGateway": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateGatewayRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateGatewayResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates the details of a gateway. If any optional field is not provided, the existing\n corresponding value is left unmodified.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateGatewayGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateGatewayGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateGatewayGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates the details of a gateway group. If any optional field is not provided, the\n existing corresponding value is left unmodified.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateGatewayGroupRequest": { - "type": "structure", - "members": { - "GatewayGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway group to update.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupName", - "traits": { - "smithy.api#documentation": "

The updated name of the gateway group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayGroupDescription", - "traits": { - "smithy.api#documentation": "

The updated description of the gateway group.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateGatewayGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateGatewayRequest": { - "type": "structure", - "members": { - "GatewayArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the gateway to update.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.alexaforbusiness#GatewayName", - "traits": { - "smithy.api#documentation": "

The updated name of the gateway.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#GatewayDescription", - "traits": { - "smithy.api#documentation": "

The updated description of the gateway.

" - } - }, - "SoftwareVersion": { - "target": "com.amazonaws.alexaforbusiness#GatewayVersion", - "traits": { - "smithy.api#documentation": "

The updated software version of the gateway. The gateway automatically updates its\n software version during normal operation.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateGatewayResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateInstantBooking": { - "type": "structure", - "members": { - "DurationInMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 15 and 240 minutes at increments of 15 that determines how long to book\n an available room when a meeting is started with Alexa.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether instant booking is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Updates settings for the instant booking feature that are applied to a room profile. If\n instant booking is enabled, Alexa automatically reserves a room if it is free when a user\n joins a meeting with Alexa.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateMeetingRoomConfiguration": { - "type": "structure", - "members": { - "RoomUtilizationMetricsEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether room utilization metrics are enabled or not.

" - } - }, - "EndOfMeetingReminder": { - "target": "com.amazonaws.alexaforbusiness#UpdateEndOfMeetingReminder", - "traits": { - "smithy.api#documentation": "

Settings for the end of meeting reminder feature that are applied to a room profile. The\n end of meeting reminder enables Alexa to remind users when a meeting is ending.

" - } - }, - "InstantBooking": { - "target": "com.amazonaws.alexaforbusiness#UpdateInstantBooking", - "traits": { - "smithy.api#documentation": "

Settings to automatically book an available room available for a configured duration\n when joining a meeting with Alexa.

" - } - }, - "RequireCheckIn": { - "target": "com.amazonaws.alexaforbusiness#UpdateRequireCheckIn", - "traits": { - "smithy.api#documentation": "

Settings for requiring a check in when a room is reserved. Alexa can cancel a room reservation if it's not checked into to make the room available for others. Users can check in by joining the meeting with Alexa or an AVS device, or by saying “Alexa, check in.”

" - } - }, - "ProactiveJoin": { - "target": "com.amazonaws.alexaforbusiness#UpdateProactiveJoin" - } - }, - "traits": { - "smithy.api#documentation": "

Updates meeting room settings of a room profile.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateNetworkProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateNetworkProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateNetworkProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidCertificateAuthorityException" - }, - { - "target": "com.amazonaws.alexaforbusiness#InvalidSecretsManagerResourceException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates a network profile by the network profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateNetworkProfileRequest": { - "type": "structure", - "members": { - "NetworkProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the network profile associated with a device.

", - "smithy.api#required": {} - } - }, - "NetworkProfileName": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileName", - "traits": { - "smithy.api#documentation": "

The name of the network profile associated with a device.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#NetworkProfileDescription", - "traits": { - "smithy.api#documentation": "

Detailed information about a device's network profile.

" - } - }, - "CurrentPassword": { - "target": "com.amazonaws.alexaforbusiness#CurrentWiFiPassword", - "traits": { - "smithy.api#documentation": "

The current password of the Wi-Fi network.

" - } - }, - "NextPassword": { - "target": "com.amazonaws.alexaforbusiness#NextWiFiPassword", - "traits": { - "smithy.api#documentation": "

The next, or subsequent, password of the Wi-Fi network. This password is asynchronously\n transmitted to the device and is used when the password of the network changes to\n NextPassword.

" - } - }, - "CertificateAuthorityArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the Private Certificate Authority (PCA) created in AWS Certificate Manager\n (ACM). This is used to issue certificates to the devices.

" - } - }, - "TrustAnchors": { - "target": "com.amazonaws.alexaforbusiness#TrustAnchorList", - "traits": { - "smithy.api#documentation": "

The root certificate(s) of your authentication server that will be installed on your\n devices and used to trust your authentication server during EAP negotiation.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateNetworkProfileResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateProactiveJoin": { - "type": "structure", - "members": { - "EnabledByMotion": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.alexaforbusiness#UpdateProfile": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateProfileRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateProfileResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates an existing room profile by room profile ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateProfileRequest": { - "type": "structure", - "members": { - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room profile to update. Required.

" - } - }, - "ProfileName": { - "target": "com.amazonaws.alexaforbusiness#ProfileName", - "traits": { - "smithy.api#documentation": "

The updated name for the room profile.

" - } - }, - "IsDefault": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Sets the profile as default if selected. If this is missing, no update is done to the\n default status.

" - } - }, - "Timezone": { - "target": "com.amazonaws.alexaforbusiness#Timezone", - "traits": { - "smithy.api#documentation": "

The updated timezone for the room profile.

" - } - }, - "Address": { - "target": "com.amazonaws.alexaforbusiness#Address", - "traits": { - "smithy.api#documentation": "

The updated address for the room profile.

" - } - }, - "DistanceUnit": { - "target": "com.amazonaws.alexaforbusiness#DistanceUnit", - "traits": { - "smithy.api#documentation": "

The updated distance unit for the room profile.

" - } - }, - "TemperatureUnit": { - "target": "com.amazonaws.alexaforbusiness#TemperatureUnit", - "traits": { - "smithy.api#documentation": "

The updated temperature unit for the room profile.

" - } - }, - "WakeWord": { - "target": "com.amazonaws.alexaforbusiness#WakeWord", - "traits": { - "smithy.api#documentation": "

The updated wake word for the room profile.

" - } - }, - "Locale": { - "target": "com.amazonaws.alexaforbusiness#DeviceLocale", - "traits": { - "smithy.api#documentation": "

The updated locale for the room profile. (This is currently only available to a limited preview audience.)

" - } - }, - "SetupModeDisabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether the setup mode of the profile is enabled.

" - } - }, - "MaxVolumeLimit": { - "target": "com.amazonaws.alexaforbusiness#MaxVolumeLimit", - "traits": { - "smithy.api#documentation": "

The updated maximum volume limit for the room profile.

" - } - }, - "PSTNEnabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether the PSTN setting of the room profile is enabled.

" - } - }, - "DataRetentionOptIn": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether data retention of the profile is enabled.

" - } - }, - "MeetingRoomConfiguration": { - "target": "com.amazonaws.alexaforbusiness#UpdateMeetingRoomConfiguration", - "traits": { - "smithy.api#documentation": "

The updated meeting room settings of a room profile.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateProfileResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateRequireCheckIn": { - "type": "structure", - "members": { - "ReleaseAfterMinutes": { - "target": "com.amazonaws.alexaforbusiness#Minutes", - "traits": { - "smithy.api#documentation": "

Duration between 5 and 20 minutes to determine when to release the room if it's not checked into.

" - } - }, - "Enabled": { - "target": "com.amazonaws.alexaforbusiness#Boolean", - "traits": { - "smithy.api#documentation": "

Whether require check in is enabled or not.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Updates settings for the require check in feature that are applied to a room profile. Require check in allows a meeting room’s Alexa or AVS device to prompt the user to check in; otherwise, the room will be released.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateRoom": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateRoomRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateRoomResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates room details by room ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateRoomRequest": { - "type": "structure", - "members": { - "RoomArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the room to update.

" - } - }, - "RoomName": { - "target": "com.amazonaws.alexaforbusiness#RoomName", - "traits": { - "smithy.api#documentation": "

The updated name for the room.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#RoomDescription", - "traits": { - "smithy.api#documentation": "

The updated description for the room.

" - } - }, - "ProviderCalendarId": { - "target": "com.amazonaws.alexaforbusiness#ProviderCalendarId", - "traits": { - "smithy.api#documentation": "

The updated provider calendar ARN for the room.

" - } - }, - "ProfileArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The updated profile ARN for the room.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateRoomResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateSkillGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.alexaforbusiness#UpdateSkillGroupRequest" - }, - "output": { - "target": "com.amazonaws.alexaforbusiness#UpdateSkillGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.alexaforbusiness#ConcurrentModificationException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NameInUseException" - }, - { - "target": "com.amazonaws.alexaforbusiness#NotFoundException" - } - ], - "traits": { - "smithy.api#deprecated": { - "message": "Alexa For Business is no longer supported" - }, - "smithy.api#documentation": "

Updates skill group details by skill group ARN.

" - } - }, - "com.amazonaws.alexaforbusiness#UpdateSkillGroupRequest": { - "type": "structure", - "members": { - "SkillGroupArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the skill group to update.

" - } - }, - "SkillGroupName": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupName", - "traits": { - "smithy.api#documentation": "

The updated name for the skill group.

" - } - }, - "Description": { - "target": "com.amazonaws.alexaforbusiness#SkillGroupDescription", - "traits": { - "smithy.api#documentation": "

The updated description for the skill group.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.alexaforbusiness#UpdateSkillGroupResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.alexaforbusiness#Url": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#UserCode": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - } - } - }, - "com.amazonaws.alexaforbusiness#UserData": { - "type": "structure", - "members": { - "UserArn": { - "target": "com.amazonaws.alexaforbusiness#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of a user.

" - } - }, - "FirstName": { - "target": "com.amazonaws.alexaforbusiness#user_FirstName", - "traits": { - "smithy.api#documentation": "

The first name of a user.

" - } - }, - "LastName": { - "target": "com.amazonaws.alexaforbusiness#user_LastName", - "traits": { - "smithy.api#documentation": "

The last name of a user.

" - } - }, - "Email": { - "target": "com.amazonaws.alexaforbusiness#Email", - "traits": { - "smithy.api#documentation": "

The email of a user.

" - } - }, - "EnrollmentStatus": { - "target": "com.amazonaws.alexaforbusiness#EnrollmentStatus", - "traits": { - "smithy.api#documentation": "

The enrollment status of a user.

" - } - }, - "EnrollmentId": { - "target": "com.amazonaws.alexaforbusiness#EnrollmentId", - "traits": { - "smithy.api#documentation": "

The enrollment ARN of a user.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information related to a user.

" - } - }, - "com.amazonaws.alexaforbusiness#UserDataList": { - "type": "list", - "member": { - "target": "com.amazonaws.alexaforbusiness#UserData" - } - }, - "com.amazonaws.alexaforbusiness#UserId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^amzn1\\.[A-Za-z0-9+-\\/=.]{1,300}$" - } - }, - "com.amazonaws.alexaforbusiness#Utterance": { - "type": "string" - }, - "com.amazonaws.alexaforbusiness#Value": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.alexaforbusiness#WakeWord": { - "type": "enum", - "members": { - "ALEXA": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ALEXA" - } - }, - "AMAZON": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "AMAZON" - } - }, - "ECHO": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ECHO" - } - }, - "COMPUTER": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "COMPUTER" - } - } - } - }, - "com.amazonaws.alexaforbusiness#user_FirstName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 30 - }, - "smithy.api#pattern": "^([A-Za-z\\-' 0-9._]|\\p{IsLetter})*$" - } - }, - "com.amazonaws.alexaforbusiness#user_LastName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 30 - }, - "smithy.api#pattern": "^([A-Za-z\\-' 0-9._]|\\p{IsLetter})*$" - } - }, - "com.amazonaws.alexaforbusiness#user_UserId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - }, - "smithy.api#pattern": "^[a-zA-Z0-9@_+.-]*$" - } - } - } -} diff --git a/service/alexaforbusiness/CHANGELOG.md b/service/alexaforbusiness/CHANGELOG.md deleted file mode 100644 index 1e9885ceeea..00000000000 --- a/service/alexaforbusiness/CHANGELOG.md +++ /dev/null @@ -1,373 +0,0 @@ -# v1.21.4 (2024-03-29) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.21.3 (2024-03-18) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.21.2 (2024-03-07) - -* **Bug Fix**: Remove dependency on go-cmp. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.21.1 (2024-02-23) - -* **Bug Fix**: Move all common, SDK-side middleware stack ops into the service client module to prevent cross-module compatibility issues in the future. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.21.0 (2024-02-22) - -* **Feature**: Add middleware stack snapshot tests. - -# v1.20.3 (2024-02-21) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.20.2 (2024-02-20) - -* **Bug Fix**: When sourcing values for a service's `EndpointParameters`, the lack of a configured region (i.e. `options.Region == ""`) will now translate to a `nil` value for `EndpointParameters.Region` instead of a pointer to the empty string `""`. This will result in a much more explicit error when calling an operation instead of an obscure hostname lookup failure. - -# v1.20.1 (2024-02-15) - -* **Bug Fix**: Correct failure to determine the error type in awsJson services that could occur when errors were modeled with a non-string `code` field. - -# v1.20.0 (2024-02-13) - -* **Feature**: Bump minimum Go version to 1.20 per our language support policy. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.19.6 (2024-01-04) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.19.5 (2023-12-08) - -* **Bug Fix**: Reinstate presence of default Retryer in functional options, but still respect max attempts set therein. - -# v1.19.4 (2023-12-07) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.19.3 (2023-12-06) - -* **Bug Fix**: Restore pre-refactor auth behavior where all operations could technically be performed anonymously. - -# v1.19.2 (2023-12-01) - -* **Bug Fix**: Correct wrapping of errors in authentication workflow. -* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.19.1 (2023-11-30) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.19.0 (2023-11-29) - -* **Feature**: Expose Options() accessor on service clients. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.18.5 (2023-11-28.2) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.18.4 (2023-11-28) - -* **Bug Fix**: Respect setting RetryMaxAttempts in functional options at client construction. - -# v1.18.3 (2023-11-20) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.18.2 (2023-11-15) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.18.1 (2023-11-09) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.18.0 (2023-11-01) - -* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.17.0 (2023-10-31) - -* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/). -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.7 (2023-10-12) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.6 (2023-10-06) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.5 (2023-08-21) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.4 (2023-08-18) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.3 (2023-08-17) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.2 (2023-08-07) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.16.1 (2023-08-01) - -* No change notes available for this release. - -# v1.16.0 (2023-07-31) - -* **Feature**: Adds support for smithy-modeled endpoint resolution. A new rules-based endpoint resolution will be added to the SDK which will supercede and deprecate existing endpoint resolution. Specifically, EndpointResolver will be deprecated while BaseEndpoint and EndpointResolverV2 will take its place. For more information, please see the Endpoints section in our Developer Guide. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.15 (2023-07-28) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.14 (2023-07-13) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.13 (2023-06-15) - -* No change notes available for this release. - -# v1.15.12 (2023-06-13) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.11 (2023-06-01) - -* **Documentation**: Alexa for Business has been deprecated and is no longer supported. - -# v1.15.10 (2023-05-04) - -* No change notes available for this release. - -# v1.15.9 (2023-04-24) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.8 (2023-04-10) - -* No change notes available for this release. - -# v1.15.7 (2023-04-07) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.6 (2023-03-21) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.5 (2023-03-10) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.4 (2023-02-22) - -* **Bug Fix**: Prevent nil pointer dereference when retrieving error codes. - -# v1.15.3 (2023-02-20) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.2 (2023-02-15) - -* **Announcement**: When receiving an error response in restJson-based services, an incorrect error type may have been returned based on the content of the response. This has been fixed via PR #2012 tracked in issue #1910. -* **Bug Fix**: Correct error type parsing for restJson services. - -# v1.15.1 (2023-02-03) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.15.0 (2023-01-05) - -* **Feature**: Add `ErrorCodeOverride` field to all error structs (aws/smithy-go#401). - -# v1.14.21 (2022-12-15) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.20 (2022-12-02) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.19 (2022-10-24) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.18 (2022-10-21) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.17 (2022-09-20) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.16 (2022-09-14) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.15 (2022-09-02) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.14 (2022-08-31) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.13 (2022-08-29) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.12 (2022-08-11) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.11 (2022-08-09) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.10 (2022-08-08) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.9 (2022-08-01) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.8 (2022-07-05) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.7 (2022-06-29) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.6 (2022-06-07) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.5 (2022-05-17) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.4 (2022-04-25) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.3 (2022-03-30) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.2 (2022-03-24) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.1 (2022-03-23) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.14.0 (2022-03-08) - -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.13.0 (2022-02-24) - -* **Feature**: API client updated -* **Feature**: Adds RetryMaxAttempts and RetryMod to API client Options. This allows the API clients' default Retryer to be configured from the shared configuration files or environment variables. Adding a new Retry mode of `Adaptive`. `Adaptive` retry mode is an experimental mode, adding client rate limiting when throttles reponses are received from an API. See [retry.AdaptiveMode](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#AdaptiveMode) for more details, and configuration options. -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.12.0 (2022-01-14) - -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.11.0 (2022-01-07) - -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.10.0 (2021-12-21) - -* **Feature**: API Paginators now support specifying the initial starting token, and support stopping on empty string tokens. - -# v1.9.2 (2021-12-02) - -* **Bug Fix**: Fixes a bug that prevented aws.EndpointResolverWithOptions from being used by the service client. ([#1514](https://github.com/aws/aws-sdk-go-v2/pull/1514)) -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.9.1 (2021-11-19) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.9.0 (2021-11-12) - -* **Feature**: Service clients now support custom endpoints that have an initial URI path defined. - -# v1.8.0 (2021-11-06) - -* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically. -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.7.0 (2021-10-21) - -* **Feature**: Updated to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.6.2 (2021-10-11) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.6.1 (2021-09-17) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.6.0 (2021-08-27) - -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.5.3 (2021-08-19) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.5.2 (2021-08-04) - -* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version. -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.5.1 (2021-07-15) - -* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.5.0 (2021-06-25) - -* **Feature**: Updated `github.com/aws/smithy-go` to latest version -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.4.1 (2021-05-20) - -* **Dependency Update**: Updated to the latest SDK module versions - -# v1.4.0 (2021-05-14) - -* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting. -* **Dependency Update**: Updated to the latest SDK module versions - diff --git a/service/alexaforbusiness/LICENSE.txt b/service/alexaforbusiness/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/service/alexaforbusiness/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/service/alexaforbusiness/api_client.go b/service/alexaforbusiness/api_client.go deleted file mode 100644 index da21ac1d1f2..00000000000 --- a/service/alexaforbusiness/api_client.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - cryptorand "crypto/rand" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/aws/defaults" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/retry" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" - internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" - internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" - internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" - smithy "github.com/aws/smithy-go" - smithydocument "github.com/aws/smithy-go/document" - "github.com/aws/smithy-go/logging" - "github.com/aws/smithy-go/middleware" - smithyrand "github.com/aws/smithy-go/rand" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net" - "net/http" - "time" -) - -const ServiceID = "Alexa For Business" -const ServiceAPIVersion = "2017-11-09" - -// Client provides the API client to make operations call for Alexa For Business. -type Client struct { - options Options -} - -// New returns an initialized Client based on the functional options. Provide -// additional functional options to further configure the behavior of the client, -// such as changing the client's endpoint or adding custom middleware behavior. -func New(options Options, optFns ...func(*Options)) *Client { - options = options.Copy() - - resolveDefaultLogger(&options) - - setResolvedDefaultsMode(&options) - - resolveRetryer(&options) - - resolveHTTPClient(&options) - - resolveHTTPSignerV4(&options) - - resolveIdempotencyTokenProvider(&options) - - resolveEndpointResolverV2(&options) - - resolveAuthSchemeResolver(&options) - - for _, fn := range optFns { - fn(&options) - } - - finalizeRetryMaxAttempts(&options) - - ignoreAnonymousAuth(&options) - - wrapWithAnonymousAuth(&options) - - resolveAuthSchemes(&options) - - client := &Client{ - options: options, - } - - return client -} - -// Options returns a copy of the client configuration. -// -// Callers SHOULD NOT perform mutations on any inner structures within client -// config. Config overrides should instead be made on a per-operation basis through -// functional options. -func (c *Client) Options() Options { - return c.options.Copy() -} - -func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { - ctx = middleware.ClearStackValues(ctx) - stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) - options := c.options.Copy() - - for _, fn := range optFns { - fn(&options) - } - - finalizeOperationRetryMaxAttempts(&options, *c) - - finalizeClientEndpointResolverOptions(&options) - - for _, fn := range stackFns { - if err := fn(stack, options); err != nil { - return nil, metadata, err - } - } - - for _, fn := range options.APIOptions { - if err := fn(stack); err != nil { - return nil, metadata, err - } - } - - handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) - result, metadata, err = handler.Handle(ctx, params) - if err != nil { - err = &smithy.OperationError{ - ServiceID: ServiceID, - OperationName: opID, - Err: err, - } - } - return result, metadata, err -} - -type operationInputKey struct{} - -func setOperationInput(ctx context.Context, input interface{}) context.Context { - return middleware.WithStackValue(ctx, operationInputKey{}, input) -} - -func getOperationInput(ctx context.Context) interface{} { - return middleware.GetStackValue(ctx, operationInputKey{}) -} - -type setOperationInputMiddleware struct { -} - -func (*setOperationInputMiddleware) ID() string { - return "setOperationInput" -} - -func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - ctx = setOperationInput(ctx, in.Parameters) - return next.HandleSerialize(ctx, in) -} - -func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { - if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %w", err) - } - if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { - return fmt.Errorf("add GetIdentity: %v", err) - } - if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil { - return fmt.Errorf("add ResolveEndpointV2: %v", err) - } - if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %w", err) - } - return nil -} -func resolveAuthSchemeResolver(options *Options) { - if options.AuthSchemeResolver == nil { - options.AuthSchemeResolver = &defaultAuthSchemeResolver{} - } -} - -func resolveAuthSchemes(options *Options) { - if options.AuthSchemes == nil { - options.AuthSchemes = []smithyhttp.AuthScheme{ - internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{ - Signer: options.HTTPSignerV4, - Logger: options.Logger, - LogSigning: options.ClientLogMode.IsSigning(), - }), - } - } -} - -type noSmithyDocumentSerde = smithydocument.NoSerde - -type legacyEndpointContextSetter struct { - LegacyResolver EndpointResolver -} - -func (*legacyEndpointContextSetter) ID() string { - return "legacyEndpointContextSetter" -} - -func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.LegacyResolver != nil { - ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true) - } - - return next.HandleInitialize(ctx, in) - -} -func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error { - return stack.Initialize.Add(&legacyEndpointContextSetter{ - LegacyResolver: o.EndpointResolver, - }, middleware.Before) -} - -func resolveDefaultLogger(o *Options) { - if o.Logger != nil { - return - } - o.Logger = logging.Nop{} -} - -func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { - return middleware.AddSetLoggerMiddleware(stack, o.Logger) -} - -func setResolvedDefaultsMode(o *Options) { - if len(o.resolvedDefaultsMode) > 0 { - return - } - - var mode aws.DefaultsMode - mode.SetFromString(string(o.DefaultsMode)) - - if mode == aws.DefaultsModeAuto { - mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment) - } - - o.resolvedDefaultsMode = mode -} - -// NewFromConfig returns a new client from the provided config. -func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { - opts := Options{ - Region: cfg.Region, - DefaultsMode: cfg.DefaultsMode, - RuntimeEnvironment: cfg.RuntimeEnvironment, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - AppID: cfg.AppID, - } - resolveAWSRetryerProvider(cfg, &opts) - resolveAWSRetryMaxAttempts(cfg, &opts) - resolveAWSRetryMode(cfg, &opts) - resolveAWSEndpointResolver(cfg, &opts) - resolveUseDualStackEndpoint(cfg, &opts) - resolveUseFIPSEndpoint(cfg, &opts) - resolveBaseEndpoint(cfg, &opts) - return New(opts, optFns...) -} - -func resolveHTTPClient(o *Options) { - var buildable *awshttp.BuildableClient - - if o.HTTPClient != nil { - var ok bool - buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) - if !ok { - return - } - } else { - buildable = awshttp.NewBuildableClient() - } - - modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) - if err == nil { - buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) { - if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok { - dialer.Timeout = dialerTimeout - } - }) - - buildable = buildable.WithTransportOptions(func(transport *http.Transport) { - if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok { - transport.TLSHandshakeTimeout = tlsHandshakeTimeout - } - }) - } - - o.HTTPClient = buildable -} - -func resolveRetryer(o *Options) { - if o.Retryer != nil { - return - } - - if len(o.RetryMode) == 0 { - modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) - if err == nil { - o.RetryMode = modeConfig.RetryMode - } - } - if len(o.RetryMode) == 0 { - o.RetryMode = aws.RetryModeStandard - } - - var standardOptions []func(*retry.StandardOptions) - if v := o.RetryMaxAttempts; v != 0 { - standardOptions = append(standardOptions, func(so *retry.StandardOptions) { - so.MaxAttempts = v - }) - } - - switch o.RetryMode { - case aws.RetryModeAdaptive: - var adaptiveOptions []func(*retry.AdaptiveModeOptions) - if len(standardOptions) != 0 { - adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) { - ao.StandardOptions = append(ao.StandardOptions, standardOptions...) - }) - } - o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...) - - default: - o.Retryer = retry.NewStandard(standardOptions...) - } -} - -func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { - if cfg.Retryer == nil { - return - } - o.Retryer = cfg.Retryer() -} - -func resolveAWSRetryMode(cfg aws.Config, o *Options) { - if len(cfg.RetryMode) == 0 { - return - } - o.RetryMode = cfg.RetryMode -} -func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) { - if cfg.RetryMaxAttempts == 0 { - return - } - o.RetryMaxAttempts = cfg.RetryMaxAttempts -} - -func finalizeRetryMaxAttempts(o *Options) { - if o.RetryMaxAttempts == 0 { - return - } - - o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) -} - -func finalizeOperationRetryMaxAttempts(o *Options, client Client) { - if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts { - return - } - - o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) -} - -func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { - if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { - return - } - o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions) -} - -func addClientUserAgent(stack *middleware.Stack, options Options) error { - ua, err := getOrAddRequestUserAgent(stack) - if err != nil { - return err - } - - ua.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "alexaforbusiness", goModuleVersion) - if len(options.AppID) > 0 { - ua.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID) - } - - return nil -} - -func getOrAddRequestUserAgent(stack *middleware.Stack) (*awsmiddleware.RequestUserAgent, error) { - id := (*awsmiddleware.RequestUserAgent)(nil).ID() - mw, ok := stack.Build.Get(id) - if !ok { - mw = awsmiddleware.NewRequestUserAgent() - if err := stack.Build.Add(mw, middleware.After); err != nil { - return nil, err - } - } - - ua, ok := mw.(*awsmiddleware.RequestUserAgent) - if !ok { - return nil, fmt.Errorf("%T for %s middleware did not match expected type", mw, id) - } - - return ua, nil -} - -type HTTPSignerV4 interface { - SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error -} - -func resolveHTTPSignerV4(o *Options) { - if o.HTTPSignerV4 != nil { - return - } - o.HTTPSignerV4 = newDefaultV4Signer(*o) -} - -func newDefaultV4Signer(o Options) *v4.Signer { - return v4.NewSigner(func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }) -} - -func addClientRequestID(stack *middleware.Stack) error { - return stack.Build.Add(&awsmiddleware.ClientRequestID{}, middleware.After) -} - -func addComputeContentLength(stack *middleware.Stack) error { - return stack.Build.Add(&smithyhttp.ComputeContentLength{}, middleware.After) -} - -func addRawResponseToMetadata(stack *middleware.Stack) error { - return stack.Deserialize.Add(&awsmiddleware.AddRawResponse{}, middleware.Before) -} - -func addRecordResponseTiming(stack *middleware.Stack) error { - return stack.Deserialize.Add(&awsmiddleware.RecordResponseTiming{}, middleware.After) -} -func addStreamingEventsPayload(stack *middleware.Stack) error { - return stack.Finalize.Add(&v4.StreamingEventsPayload{}, middleware.Before) -} - -func addUnsignedPayload(stack *middleware.Stack) error { - return stack.Finalize.Insert(&v4.UnsignedPayload{}, "ResolveEndpointV2", middleware.After) -} - -func addComputePayloadSHA256(stack *middleware.Stack) error { - return stack.Finalize.Insert(&v4.ComputePayloadSHA256{}, "ResolveEndpointV2", middleware.After) -} - -func addContentSHA256Header(stack *middleware.Stack) error { - return stack.Finalize.Insert(&v4.ContentSHA256Header{}, (*v4.ComputePayloadSHA256)(nil).ID(), middleware.After) -} - -func resolveIdempotencyTokenProvider(o *Options) { - if o.IdempotencyTokenProvider != nil { - return - } - o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) -} - -func addRetry(stack *middleware.Stack, o Options) error { - attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) { - m.LogAttempts = o.ClientLogMode.IsRetries() - }) - if err := stack.Finalize.Insert(attempt, "Signing", middleware.Before); err != nil { - return err - } - if err := stack.Finalize.Insert(&retry.MetricsHeader{}, attempt.ID(), middleware.After); err != nil { - return err - } - return nil -} - -// resolves dual-stack endpoint configuration -func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { - if len(cfg.ConfigSources) == 0 { - return nil - } - value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) - if err != nil { - return err - } - if found { - o.EndpointOptions.UseDualStackEndpoint = value - } - return nil -} - -// resolves FIPS endpoint configuration -func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { - if len(cfg.ConfigSources) == 0 { - return nil - } - value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) - if err != nil { - return err - } - if found { - o.EndpointOptions.UseFIPSEndpoint = value - } - return nil -} - -// IdempotencyTokenProvider interface for providing idempotency token -type IdempotencyTokenProvider interface { - GetIdempotencyToken() (string, error) -} - -func addRecursionDetection(stack *middleware.Stack) error { - return stack.Build.Add(&awsmiddleware.RecursionDetection{}, middleware.After) -} - -func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { - return stack.Deserialize.Insert(&awsmiddleware.RequestIDRetriever{}, "OperationDeserializer", middleware.Before) - -} - -func addResponseErrorMiddleware(stack *middleware.Stack) error { - return stack.Deserialize.Insert(&awshttp.ResponseErrorWrapper{}, "RequestIDRetriever", middleware.Before) - -} - -func addRequestResponseLogging(stack *middleware.Stack, o Options) error { - return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ - LogRequest: o.ClientLogMode.IsRequest(), - LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), - LogResponse: o.ClientLogMode.IsResponse(), - LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), - }, middleware.After) -} - -type disableHTTPSMiddleware struct { - DisableHTTPS bool -} - -func (*disableHTTPSMiddleware) ID() string { - return "disableHTTPS" -} - -func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) { - req.URL.Scheme = "http" - } - - return next.HandleFinalize(ctx, in) -} - -func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error { - return stack.Finalize.Insert(&disableHTTPSMiddleware{ - DisableHTTPS: o.EndpointOptions.DisableHTTPS, - }, "ResolveEndpointV2", middleware.After) -} diff --git a/service/alexaforbusiness/api_client_test.go b/service/alexaforbusiness/api_client_test.go deleted file mode 100644 index b098bb3ef92..00000000000 --- a/service/alexaforbusiness/api_client_test.go +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io/ioutil" - "net/http" - "strings" - "testing" -) - -func TestClient_resolveRetryOptions(t *testing.T) { - nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { - return &http.Response{ - StatusCode: 200, - Header: http.Header{}, - Body: ioutil.NopCloser(strings.NewReader("")), - }, nil - }) - - cases := map[string]struct { - defaultsMode aws.DefaultsMode - retryer aws.Retryer - retryMaxAttempts int - opRetryMaxAttempts *int - retryMode aws.RetryMode - expectClientRetryMode aws.RetryMode - expectClientMaxAttempts int - expectOpMaxAttempts int - }{ - "defaults": { - defaultsMode: aws.DefaultsModeStandard, - expectClientRetryMode: aws.RetryModeStandard, - expectClientMaxAttempts: 3, - expectOpMaxAttempts: 3, - }, - "custom default retry": { - retryMode: aws.RetryModeAdaptive, - retryMaxAttempts: 10, - expectClientRetryMode: aws.RetryModeAdaptive, - expectClientMaxAttempts: 10, - expectOpMaxAttempts: 10, - }, - "custom op max attempts": { - retryMode: aws.RetryModeAdaptive, - retryMaxAttempts: 10, - opRetryMaxAttempts: aws.Int(2), - expectClientRetryMode: aws.RetryModeAdaptive, - expectClientMaxAttempts: 10, - expectOpMaxAttempts: 2, - }, - "custom op no change max attempts": { - retryMode: aws.RetryModeAdaptive, - retryMaxAttempts: 10, - opRetryMaxAttempts: aws.Int(10), - expectClientRetryMode: aws.RetryModeAdaptive, - expectClientMaxAttempts: 10, - expectOpMaxAttempts: 10, - }, - "custom op 0 max attempts": { - retryMode: aws.RetryModeAdaptive, - retryMaxAttempts: 10, - opRetryMaxAttempts: aws.Int(0), - expectClientRetryMode: aws.RetryModeAdaptive, - expectClientMaxAttempts: 10, - expectOpMaxAttempts: 10, - }, - } - - for name, c := range cases { - t.Run(name, func(t *testing.T) { - client := NewFromConfig(aws.Config{ - DefaultsMode: c.defaultsMode, - Retryer: func() func() aws.Retryer { - if c.retryer == nil { - return nil - } - - return func() aws.Retryer { return c.retryer } - }(), - HTTPClient: nopClient, - RetryMaxAttempts: c.retryMaxAttempts, - RetryMode: c.retryMode, - }, func(o *Options) { - if o.Retryer == nil { - t.Errorf("retryer must not be nil in functional options") - } - }) - - if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { - t.Errorf("expect %v retry mode, got %v", e, a) - } - if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { - t.Errorf("expect %v max attempts, got %v", e, a) - } - - _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, - []func(*Options){ - func(o *Options) { - if c.opRetryMaxAttempts == nil { - return - } - o.RetryMaxAttempts = *c.opRetryMaxAttempts - }, - }, - func(s *middleware.Stack, o Options) error { - s.Initialize.Clear() - s.Serialize.Clear() - s.Build.Clear() - s.Finalize.Clear() - s.Deserialize.Clear() - - if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { - t.Errorf("expect %v op max attempts, got %v", e, a) - } - return nil - }) - if err != nil { - t.Fatalf("expect no operation error, got %v", err) - } - }) - } -} diff --git a/service/alexaforbusiness/api_op_ApproveSkill.go b/service/alexaforbusiness/api_op_ApproveSkill.go deleted file mode 100644 index 465e0b353dd..00000000000 --- a/service/alexaforbusiness/api_op_ApproveSkill.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a skill with the organization under the customer's AWS account. If a -// skill is private, the user implicitly accepts access to this skill during -// enablement. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ApproveSkill(ctx context.Context, params *ApproveSkillInput, optFns ...func(*Options)) (*ApproveSkillOutput, error) { - if params == nil { - params = &ApproveSkillInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ApproveSkill", params, optFns, c.addOperationApproveSkillMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ApproveSkillOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ApproveSkillInput struct { - - // The unique identifier of the skill. - // - // This member is required. - SkillId *string - - noSmithyDocumentSerde -} - -type ApproveSkillOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationApproveSkillMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpApproveSkill{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpApproveSkill{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ApproveSkill"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpApproveSkillValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opApproveSkill(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opApproveSkill(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ApproveSkill", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateContactWithAddressBook.go b/service/alexaforbusiness/api_op_AssociateContactWithAddressBook.go deleted file mode 100644 index d807e810215..00000000000 --- a/service/alexaforbusiness/api_op_AssociateContactWithAddressBook.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a contact with a given address book. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateContactWithAddressBook(ctx context.Context, params *AssociateContactWithAddressBookInput, optFns ...func(*Options)) (*AssociateContactWithAddressBookOutput, error) { - if params == nil { - params = &AssociateContactWithAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateContactWithAddressBook", params, optFns, c.addOperationAssociateContactWithAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateContactWithAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateContactWithAddressBookInput struct { - - // The ARN of the address book with which to associate the contact. - // - // This member is required. - AddressBookArn *string - - // The ARN of the contact to associate with an address book. - // - // This member is required. - ContactArn *string - - noSmithyDocumentSerde -} - -type AssociateContactWithAddressBookOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateContactWithAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateContactWithAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateContactWithAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateContactWithAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpAssociateContactWithAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateContactWithAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateContactWithAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateContactWithAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateDeviceWithNetworkProfile.go b/service/alexaforbusiness/api_op_AssociateDeviceWithNetworkProfile.go deleted file mode 100644 index cd8242072bc..00000000000 --- a/service/alexaforbusiness/api_op_AssociateDeviceWithNetworkProfile.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a device with the specified network profile. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateDeviceWithNetworkProfile(ctx context.Context, params *AssociateDeviceWithNetworkProfileInput, optFns ...func(*Options)) (*AssociateDeviceWithNetworkProfileOutput, error) { - if params == nil { - params = &AssociateDeviceWithNetworkProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateDeviceWithNetworkProfile", params, optFns, c.addOperationAssociateDeviceWithNetworkProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateDeviceWithNetworkProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateDeviceWithNetworkProfileInput struct { - - // The device ARN. - // - // This member is required. - DeviceArn *string - - // The ARN of the network profile to associate with a device. - // - // This member is required. - NetworkProfileArn *string - - noSmithyDocumentSerde -} - -type AssociateDeviceWithNetworkProfileOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateDeviceWithNetworkProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateDeviceWithNetworkProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateDeviceWithNetworkProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateDeviceWithNetworkProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpAssociateDeviceWithNetworkProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateDeviceWithNetworkProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateDeviceWithNetworkProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateDeviceWithNetworkProfile", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateDeviceWithRoom.go b/service/alexaforbusiness/api_op_AssociateDeviceWithRoom.go deleted file mode 100644 index 7055a5f65a5..00000000000 --- a/service/alexaforbusiness/api_op_AssociateDeviceWithRoom.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a device with a given room. This applies all the settings from the -// room profile to the device, and all the skills in any skill groups added to that -// room. This operation requires the device to be online, or else a manual sync is -// required. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateDeviceWithRoom(ctx context.Context, params *AssociateDeviceWithRoomInput, optFns ...func(*Options)) (*AssociateDeviceWithRoomOutput, error) { - if params == nil { - params = &AssociateDeviceWithRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateDeviceWithRoom", params, optFns, c.addOperationAssociateDeviceWithRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateDeviceWithRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateDeviceWithRoomInput struct { - - // The ARN of the device to associate to a room. Required. - DeviceArn *string - - // The ARN of the room with which to associate the device. Required. - RoomArn *string - - noSmithyDocumentSerde -} - -type AssociateDeviceWithRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateDeviceWithRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateDeviceWithRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateDeviceWithRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateDeviceWithRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateDeviceWithRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateDeviceWithRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateDeviceWithRoom", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateSkillGroupWithRoom.go b/service/alexaforbusiness/api_op_AssociateSkillGroupWithRoom.go deleted file mode 100644 index 446691f6982..00000000000 --- a/service/alexaforbusiness/api_op_AssociateSkillGroupWithRoom.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a skill group with a given room. This enables all skills in the -// associated skill group on all devices in the room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateSkillGroupWithRoom(ctx context.Context, params *AssociateSkillGroupWithRoomInput, optFns ...func(*Options)) (*AssociateSkillGroupWithRoomOutput, error) { - if params == nil { - params = &AssociateSkillGroupWithRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateSkillGroupWithRoom", params, optFns, c.addOperationAssociateSkillGroupWithRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateSkillGroupWithRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateSkillGroupWithRoomInput struct { - - // The ARN of the room with which to associate the skill group. Required. - RoomArn *string - - // The ARN of the skill group to associate with a room. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type AssociateSkillGroupWithRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateSkillGroupWithRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateSkillGroupWithRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateSkillGroupWithRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateSkillGroupWithRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateSkillGroupWithRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateSkillGroupWithRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateSkillGroupWithRoom", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateSkillWithSkillGroup.go b/service/alexaforbusiness/api_op_AssociateSkillWithSkillGroup.go deleted file mode 100644 index 36ab53123a6..00000000000 --- a/service/alexaforbusiness/api_op_AssociateSkillWithSkillGroup.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates a skill with a skill group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateSkillWithSkillGroup(ctx context.Context, params *AssociateSkillWithSkillGroupInput, optFns ...func(*Options)) (*AssociateSkillWithSkillGroupOutput, error) { - if params == nil { - params = &AssociateSkillWithSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateSkillWithSkillGroup", params, optFns, c.addOperationAssociateSkillWithSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateSkillWithSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateSkillWithSkillGroupInput struct { - - // The unique identifier of the skill. - // - // This member is required. - SkillId *string - - // The ARN of the skill group to associate the skill to. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type AssociateSkillWithSkillGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateSkillWithSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateSkillWithSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateSkillWithSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateSkillWithSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpAssociateSkillWithSkillGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateSkillWithSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateSkillWithSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateSkillWithSkillGroup", - } -} diff --git a/service/alexaforbusiness/api_op_AssociateSkillWithUsers.go b/service/alexaforbusiness/api_op_AssociateSkillWithUsers.go deleted file mode 100644 index 5908857a7da..00000000000 --- a/service/alexaforbusiness/api_op_AssociateSkillWithUsers.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Makes a private skill available for enrolled users to enable on their devices. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) AssociateSkillWithUsers(ctx context.Context, params *AssociateSkillWithUsersInput, optFns ...func(*Options)) (*AssociateSkillWithUsersOutput, error) { - if params == nil { - params = &AssociateSkillWithUsersInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateSkillWithUsers", params, optFns, c.addOperationAssociateSkillWithUsersMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateSkillWithUsersOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateSkillWithUsersInput struct { - - // The private skill ID you want to make available to enrolled users. - // - // This member is required. - SkillId *string - - noSmithyDocumentSerde -} - -type AssociateSkillWithUsersOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateSkillWithUsersMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateSkillWithUsers{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateSkillWithUsers{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateSkillWithUsers"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpAssociateSkillWithUsersValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateSkillWithUsers(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateSkillWithUsers(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "AssociateSkillWithUsers", - } -} diff --git a/service/alexaforbusiness/api_op_CreateAddressBook.go b/service/alexaforbusiness/api_op_CreateAddressBook.go deleted file mode 100644 index 6c4e1222282..00000000000 --- a/service/alexaforbusiness/api_op_CreateAddressBook.go +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates an address book with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateAddressBook(ctx context.Context, params *CreateAddressBookInput, optFns ...func(*Options)) (*CreateAddressBookOutput, error) { - if params == nil { - params = &CreateAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateAddressBook", params, optFns, c.addOperationCreateAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateAddressBookInput struct { - - // The name of the address book. - // - // This member is required. - Name *string - - // A unique, user-specified identifier for the request that ensures idempotency. - ClientRequestToken *string - - // The description of the address book. - Description *string - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateAddressBookOutput struct { - - // The ARN of the newly created address book. - AddressBookArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateAddressBookMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateAddressBook struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateAddressBook) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateAddressBookInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateAddressBookMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateAddressBook{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go b/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go deleted file mode 100644 index 977f0921206..00000000000 --- a/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a recurring schedule for usage reports to deliver to the specified S3 -// location with a specified daily or weekly interval. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateBusinessReportSchedule(ctx context.Context, params *CreateBusinessReportScheduleInput, optFns ...func(*Options)) (*CreateBusinessReportScheduleOutput, error) { - if params == nil { - params = &CreateBusinessReportScheduleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateBusinessReportSchedule", params, optFns, c.addOperationCreateBusinessReportScheduleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateBusinessReportScheduleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateBusinessReportScheduleInput struct { - - // The content range of the reports. - // - // This member is required. - ContentRange *types.BusinessReportContentRange - - // The format of the generated report (individual CSV files or zipped files of - // individual files). - // - // This member is required. - Format types.BusinessReportFormat - - // The client request token. - ClientRequestToken *string - - // The recurrence of the reports. If this isn't specified, the report will only be - // delivered one time when the API is called. - Recurrence *types.BusinessReportRecurrence - - // The S3 bucket name of the output reports. If this isn't specified, the report - // can be retrieved from a download link by calling ListBusinessReportSchedule. - S3BucketName *string - - // The S3 key where the report is delivered. - S3KeyPrefix *string - - // The name identifier of the schedule. - ScheduleName *string - - // The tags for the business report schedule. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateBusinessReportScheduleOutput struct { - - // The ARN of the business report schedule. - ScheduleArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateBusinessReportScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateBusinessReportSchedule"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateBusinessReportScheduleMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateBusinessReportScheduleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateBusinessReportSchedule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateBusinessReportSchedule struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateBusinessReportSchedule) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateBusinessReportSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateBusinessReportScheduleInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateBusinessReportScheduleInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateBusinessReportScheduleMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateBusinessReportSchedule{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateBusinessReportSchedule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateBusinessReportSchedule", - } -} diff --git a/service/alexaforbusiness/api_op_CreateConferenceProvider.go b/service/alexaforbusiness/api_op_CreateConferenceProvider.go deleted file mode 100644 index 7d2fad9813e..00000000000 --- a/service/alexaforbusiness/api_op_CreateConferenceProvider.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Adds a new conference provider under the user's AWS account. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateConferenceProvider(ctx context.Context, params *CreateConferenceProviderInput, optFns ...func(*Options)) (*CreateConferenceProviderOutput, error) { - if params == nil { - params = &CreateConferenceProviderInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateConferenceProvider", params, optFns, c.addOperationCreateConferenceProviderMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateConferenceProviderOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateConferenceProviderInput struct { - - // The name of the conference provider. - // - // This member is required. - ConferenceProviderName *string - - // Represents a type within a list of predefined types. - // - // This member is required. - ConferenceProviderType types.ConferenceProviderType - - // The meeting settings for the conference provider. - // - // This member is required. - MeetingSetting *types.MeetingSetting - - // The request token of the client. - ClientRequestToken *string - - // The IP endpoint and protocol for calling. - IPDialIn *types.IPDialIn - - // The information for PSTN conferencing. - PSTNDialIn *types.PSTNDialIn - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateConferenceProviderOutput struct { - - // The ARN of the newly-created conference provider. - ConferenceProviderArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateConferenceProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateConferenceProvider{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateConferenceProvider{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateConferenceProvider"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateConferenceProviderMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateConferenceProviderValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateConferenceProvider(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateConferenceProvider struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateConferenceProvider) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateConferenceProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateConferenceProviderInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateConferenceProviderInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateConferenceProviderMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateConferenceProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateConferenceProvider(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateConferenceProvider", - } -} diff --git a/service/alexaforbusiness/api_op_CreateContact.go b/service/alexaforbusiness/api_op_CreateContact.go deleted file mode 100644 index 9d96aab5d5d..00000000000 --- a/service/alexaforbusiness/api_op_CreateContact.go +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a contact with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateContact(ctx context.Context, params *CreateContactInput, optFns ...func(*Options)) (*CreateContactOutput, error) { - if params == nil { - params = &CreateContactInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateContact", params, optFns, c.addOperationCreateContactMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateContactOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateContactInput struct { - - // The first name of the contact that is used to call the contact on the device. - // - // This member is required. - FirstName *string - - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string - - // The name of the contact to display on the console. - DisplayName *string - - // The last name of the contact that is used to call the contact on the device. - LastName *string - - // The phone number of the contact in E.164 format. The phone number type defaults - // to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use - // PhoneNumbers, which lets you specify the phone number type and multiple numbers. - PhoneNumber *string - - // The list of phone numbers for the contact. - PhoneNumbers []types.PhoneNumber - - // The list of SIP addresses for the contact. - SipAddresses []types.SipAddress - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateContactOutput struct { - - // The ARN of the newly created address book. - ContactArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateContactMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateContact{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateContact{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateContact"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateContactMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateContactValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateContact(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateContact struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateContact) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateContactInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateContactInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateContactMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateContact{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateContact(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateContact", - } -} diff --git a/service/alexaforbusiness/api_op_CreateGatewayGroup.go b/service/alexaforbusiness/api_op_CreateGatewayGroup.go deleted file mode 100644 index 185c5c518df..00000000000 --- a/service/alexaforbusiness/api_op_CreateGatewayGroup.go +++ /dev/null @@ -1,185 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a gateway group with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateGatewayGroup(ctx context.Context, params *CreateGatewayGroupInput, optFns ...func(*Options)) (*CreateGatewayGroupOutput, error) { - if params == nil { - params = &CreateGatewayGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateGatewayGroup", params, optFns, c.addOperationCreateGatewayGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateGatewayGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateGatewayGroupInput struct { - - // A unique, user-specified identifier for the request that ensures idempotency. - // - // This member is required. - ClientRequestToken *string - - // The name of the gateway group. - // - // This member is required. - Name *string - - // The description of the gateway group. - Description *string - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateGatewayGroupOutput struct { - - // The ARN of the created gateway group. - GatewayGroupArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateGatewayGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateGatewayGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateGatewayGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateGatewayGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateGatewayGroupMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateGatewayGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateGatewayGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateGatewayGroup struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateGatewayGroup) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateGatewayGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateGatewayGroupInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateGatewayGroupInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateGatewayGroupMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateGatewayGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateGatewayGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateGatewayGroup", - } -} diff --git a/service/alexaforbusiness/api_op_CreateNetworkProfile.go b/service/alexaforbusiness/api_op_CreateNetworkProfile.go deleted file mode 100644 index 8d69bde9e6d..00000000000 --- a/service/alexaforbusiness/api_op_CreateNetworkProfile.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a network profile with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateNetworkProfile(ctx context.Context, params *CreateNetworkProfileInput, optFns ...func(*Options)) (*CreateNetworkProfileOutput, error) { - if params == nil { - params = &CreateNetworkProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkProfile", params, optFns, c.addOperationCreateNetworkProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateNetworkProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateNetworkProfileInput struct { - - // A unique, user-specified identifier for the request that ensures idempotency. - // - // This member is required. - ClientRequestToken *string - - // The name of the network profile associated with a device. - // - // This member is required. - NetworkProfileName *string - - // The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, - // WPA_PSK, WEP, or OPEN. - // - // This member is required. - SecurityType types.NetworkSecurityType - - // The SSID of the Wi-Fi network. - // - // This member is required. - Ssid *string - - // The ARN of the Private Certificate Authority (PCA) created in AWS Certificate - // Manager (ACM). This is used to issue certificates to the devices. - CertificateAuthorityArn *string - - // The current password of the Wi-Fi network. - CurrentPassword *string - - // Detailed information about a device's network profile. - Description *string - - // The authentication standard that is used in the EAP framework. Currently, - // EAP_TLS is supported. - EapMethod types.NetworkEapMethod - - // The next, or subsequent, password of the Wi-Fi network. This password is - // asynchronously transmitted to the device and is used when the password of the - // network changes to NextPassword. - NextPassword *string - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - // The root certificates of your authentication server that is installed on your - // devices and used to trust your authentication server during EAP negotiation. - TrustAnchors []string - - noSmithyDocumentSerde -} - -type CreateNetworkProfileOutput struct { - - // The ARN of the network profile associated with a device. - NetworkProfileArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateNetworkProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateNetworkProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateNetworkProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateNetworkProfileMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateNetworkProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateNetworkProfile struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateNetworkProfile) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkProfileInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateNetworkProfileMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkProfile{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateNetworkProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateNetworkProfile", - } -} diff --git a/service/alexaforbusiness/api_op_CreateProfile.go b/service/alexaforbusiness/api_op_CreateProfile.go deleted file mode 100644 index 5670192e6f5..00000000000 --- a/service/alexaforbusiness/api_op_CreateProfile.go +++ /dev/null @@ -1,224 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new room profile with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateProfile(ctx context.Context, params *CreateProfileInput, optFns ...func(*Options)) (*CreateProfileOutput, error) { - if params == nil { - params = &CreateProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateProfile", params, optFns, c.addOperationCreateProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateProfileInput struct { - - // The valid address for the room. - // - // This member is required. - Address *string - - // The distance unit to be used by devices in the profile. - // - // This member is required. - DistanceUnit types.DistanceUnit - - // The name of a room profile. - // - // This member is required. - ProfileName *string - - // The temperature unit to be used by devices in the profile. - // - // This member is required. - TemperatureUnit types.TemperatureUnit - - // The time zone used by a room profile. - // - // This member is required. - Timezone *string - - // A wake word for Alexa, Echo, Amazon, or a computer. - // - // This member is required. - WakeWord types.WakeWord - - // The user-specified token that is used during the creation of a profile. - ClientRequestToken *string - - // Whether data retention of the profile is enabled. - DataRetentionOptIn *bool - - // The locale of the room profile. (This is currently only available to a limited - // preview audience.) - Locale *string - - // The maximum volume limit for a room profile. - MaxVolumeLimit *int32 - - // The meeting room settings of a room profile. - MeetingRoomConfiguration *types.CreateMeetingRoomConfiguration - - // Whether PSTN calling is enabled. - PSTNEnabled *bool - - // Whether room profile setup is enabled. - SetupModeDisabled *bool - - // The tags for the profile. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateProfileOutput struct { - - // The ARN of the newly created room profile in the response. - ProfileArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateProfileMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateProfile struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateProfile) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateProfileInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateProfileInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateProfileMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateProfile{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateProfile", - } -} diff --git a/service/alexaforbusiness/api_op_CreateRoom.go b/service/alexaforbusiness/api_op_CreateRoom.go deleted file mode 100644 index cea6de72587..00000000000 --- a/service/alexaforbusiness/api_op_CreateRoom.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a room with the specified details. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateRoom(ctx context.Context, params *CreateRoomInput, optFns ...func(*Options)) (*CreateRoomOutput, error) { - if params == nil { - params = &CreateRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateRoom", params, optFns, c.addOperationCreateRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateRoomInput struct { - - // The name for the room. - // - // This member is required. - RoomName *string - - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string - - // The description for the room. - Description *string - - // The profile ARN for the room. This is required. - ProfileArn *string - - // The calendar ARN for the room. - ProviderCalendarId *string - - // The tags for the room. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateRoomOutput struct { - - // The ARN of the newly created room in the response. - RoomArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateRoomMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateRoomValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateRoom struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateRoom) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateRoom) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateRoomInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRoomInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateRoomMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRoom{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateRoom", - } -} diff --git a/service/alexaforbusiness/api_op_CreateSkillGroup.go b/service/alexaforbusiness/api_op_CreateSkillGroup.go deleted file mode 100644 index c40189d12d9..00000000000 --- a/service/alexaforbusiness/api_op_CreateSkillGroup.go +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a skill group with a specified name and description. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateSkillGroup(ctx context.Context, params *CreateSkillGroupInput, optFns ...func(*Options)) (*CreateSkillGroupOutput, error) { - if params == nil { - params = &CreateSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateSkillGroup", params, optFns, c.addOperationCreateSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateSkillGroupInput struct { - - // The name for the skill group. - // - // This member is required. - SkillGroupName *string - - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string - - // The description for the skill group. - Description *string - - // The tags for the skill group. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateSkillGroupOutput struct { - - // The ARN of the newly created skill group in the response. - SkillGroupArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateSkillGroupMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateSkillGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateSkillGroup struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateSkillGroup) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateSkillGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateSkillGroupInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateSkillGroupInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateSkillGroupMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateSkillGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateSkillGroup", - } -} diff --git a/service/alexaforbusiness/api_op_CreateUser.go b/service/alexaforbusiness/api_op_CreateUser.go deleted file mode 100644 index 3bf7c5d5eca..00000000000 --- a/service/alexaforbusiness/api_op_CreateUser.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a user. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) CreateUser(ctx context.Context, params *CreateUserInput, optFns ...func(*Options)) (*CreateUserOutput, error) { - if params == nil { - params = &CreateUserInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateUser", params, optFns, c.addOperationCreateUserMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateUserOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateUserInput struct { - - // The ARN for the user. - // - // This member is required. - UserId *string - - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string - - // The email address for the user. - Email *string - - // The first name for the user. - FirstName *string - - // The last name for the user. - LastName *string - - // The tags for the user. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateUserOutput struct { - - // The ARN of the newly created user in the response. - UserArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateUserMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateUser{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateUser{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateUser"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateUserMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateUserValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateUser(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateUser struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateUser) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateUserInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateUserInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateUserMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateUser{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateUser(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateUser", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteAddressBook.go b/service/alexaforbusiness/api_op_DeleteAddressBook.go deleted file mode 100644 index a5c3b9c4f0f..00000000000 --- a/service/alexaforbusiness/api_op_DeleteAddressBook.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes an address book by the address book ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteAddressBook(ctx context.Context, params *DeleteAddressBookInput, optFns ...func(*Options)) (*DeleteAddressBookOutput, error) { - if params == nil { - params = &DeleteAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteAddressBook", params, optFns, c.addOperationDeleteAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteAddressBookInput struct { - - // The ARN of the address book to delete. - // - // This member is required. - AddressBookArn *string - - noSmithyDocumentSerde -} - -type DeleteAddressBookOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteBusinessReportSchedule.go b/service/alexaforbusiness/api_op_DeleteBusinessReportSchedule.go deleted file mode 100644 index c4257ce8e91..00000000000 --- a/service/alexaforbusiness/api_op_DeleteBusinessReportSchedule.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes the recurring report delivery schedule with the specified schedule ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteBusinessReportSchedule(ctx context.Context, params *DeleteBusinessReportScheduleInput, optFns ...func(*Options)) (*DeleteBusinessReportScheduleOutput, error) { - if params == nil { - params = &DeleteBusinessReportScheduleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteBusinessReportSchedule", params, optFns, c.addOperationDeleteBusinessReportScheduleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteBusinessReportScheduleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteBusinessReportScheduleInput struct { - - // The ARN of the business report schedule. - // - // This member is required. - ScheduleArn *string - - noSmithyDocumentSerde -} - -type DeleteBusinessReportScheduleOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteBusinessReportScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteBusinessReportSchedule"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteBusinessReportScheduleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteBusinessReportSchedule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteBusinessReportSchedule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteBusinessReportSchedule", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteConferenceProvider.go b/service/alexaforbusiness/api_op_DeleteConferenceProvider.go deleted file mode 100644 index 459e88953c8..00000000000 --- a/service/alexaforbusiness/api_op_DeleteConferenceProvider.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a conference provider. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteConferenceProvider(ctx context.Context, params *DeleteConferenceProviderInput, optFns ...func(*Options)) (*DeleteConferenceProviderOutput, error) { - if params == nil { - params = &DeleteConferenceProviderInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteConferenceProvider", params, optFns, c.addOperationDeleteConferenceProviderMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteConferenceProviderOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteConferenceProviderInput struct { - - // The ARN of the conference provider. - // - // This member is required. - ConferenceProviderArn *string - - noSmithyDocumentSerde -} - -type DeleteConferenceProviderOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteConferenceProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteConferenceProvider{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteConferenceProvider{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteConferenceProvider"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteConferenceProviderValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteConferenceProvider(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteConferenceProvider(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteConferenceProvider", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteContact.go b/service/alexaforbusiness/api_op_DeleteContact.go deleted file mode 100644 index 7d4ef96c228..00000000000 --- a/service/alexaforbusiness/api_op_DeleteContact.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a contact by the contact ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteContact(ctx context.Context, params *DeleteContactInput, optFns ...func(*Options)) (*DeleteContactOutput, error) { - if params == nil { - params = &DeleteContactInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteContact", params, optFns, c.addOperationDeleteContactMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteContactOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteContactInput struct { - - // The ARN of the contact to delete. - // - // This member is required. - ContactArn *string - - noSmithyDocumentSerde -} - -type DeleteContactOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteContactMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteContact{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteContact{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteContact"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteContactValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteContact(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteContact(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteContact", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteDevice.go b/service/alexaforbusiness/api_op_DeleteDevice.go deleted file mode 100644 index 8a8ce9e77e0..00000000000 --- a/service/alexaforbusiness/api_op_DeleteDevice.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Removes a device from Alexa For Business. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteDevice(ctx context.Context, params *DeleteDeviceInput, optFns ...func(*Options)) (*DeleteDeviceOutput, error) { - if params == nil { - params = &DeleteDeviceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteDevice", params, optFns, c.addOperationDeleteDeviceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteDeviceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteDeviceInput struct { - - // The ARN of the device for which to request details. - // - // This member is required. - DeviceArn *string - - noSmithyDocumentSerde -} - -type DeleteDeviceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteDevice{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteDevice{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDevice"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteDeviceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDevice(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteDevice(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteDevice", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteDeviceUsageData.go b/service/alexaforbusiness/api_op_DeleteDeviceUsageData.go deleted file mode 100644 index 669e1b9b34d..00000000000 --- a/service/alexaforbusiness/api_op_DeleteDeviceUsageData.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// When this action is called for a specified shared device, it allows authorized -// users to delete the device's entire previous history of voice input data and -// associated response data. This action can be called once every 24 hours for a -// specific shared device. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteDeviceUsageData(ctx context.Context, params *DeleteDeviceUsageDataInput, optFns ...func(*Options)) (*DeleteDeviceUsageDataOutput, error) { - if params == nil { - params = &DeleteDeviceUsageDataInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteDeviceUsageData", params, optFns, c.addOperationDeleteDeviceUsageDataMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteDeviceUsageDataOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteDeviceUsageDataInput struct { - - // The ARN of the device. - // - // This member is required. - DeviceArn *string - - // The type of usage data to delete. - // - // This member is required. - DeviceUsageType types.DeviceUsageType - - noSmithyDocumentSerde -} - -type DeleteDeviceUsageDataOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteDeviceUsageDataMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteDeviceUsageData{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteDeviceUsageData{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDeviceUsageData"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteDeviceUsageDataValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDeviceUsageData(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteDeviceUsageData(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteDeviceUsageData", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteGatewayGroup.go b/service/alexaforbusiness/api_op_DeleteGatewayGroup.go deleted file mode 100644 index ea1dd1a9b70..00000000000 --- a/service/alexaforbusiness/api_op_DeleteGatewayGroup.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a gateway group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteGatewayGroup(ctx context.Context, params *DeleteGatewayGroupInput, optFns ...func(*Options)) (*DeleteGatewayGroupOutput, error) { - if params == nil { - params = &DeleteGatewayGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteGatewayGroup", params, optFns, c.addOperationDeleteGatewayGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteGatewayGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteGatewayGroupInput struct { - - // The ARN of the gateway group to delete. - // - // This member is required. - GatewayGroupArn *string - - noSmithyDocumentSerde -} - -type DeleteGatewayGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteGatewayGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteGatewayGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteGatewayGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteGatewayGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteGatewayGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteGatewayGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteGatewayGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteGatewayGroup", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteNetworkProfile.go b/service/alexaforbusiness/api_op_DeleteNetworkProfile.go deleted file mode 100644 index 5be29f75213..00000000000 --- a/service/alexaforbusiness/api_op_DeleteNetworkProfile.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a network profile by the network profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteNetworkProfile(ctx context.Context, params *DeleteNetworkProfileInput, optFns ...func(*Options)) (*DeleteNetworkProfileOutput, error) { - if params == nil { - params = &DeleteNetworkProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkProfile", params, optFns, c.addOperationDeleteNetworkProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteNetworkProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteNetworkProfileInput struct { - - // The ARN of the network profile associated with a device. - // - // This member is required. - NetworkProfileArn *string - - noSmithyDocumentSerde -} - -type DeleteNetworkProfileOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteNetworkProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteNetworkProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteNetworkProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteNetworkProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteNetworkProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteNetworkProfile", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteProfile.go b/service/alexaforbusiness/api_op_DeleteProfile.go deleted file mode 100644 index 09d732de79f..00000000000 --- a/service/alexaforbusiness/api_op_DeleteProfile.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a room profile by the profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteProfile(ctx context.Context, params *DeleteProfileInput, optFns ...func(*Options)) (*DeleteProfileOutput, error) { - if params == nil { - params = &DeleteProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteProfile", params, optFns, c.addOperationDeleteProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteProfileInput struct { - - // The ARN of the room profile to delete. Required. - ProfileArn *string - - noSmithyDocumentSerde -} - -type DeleteProfileOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteProfile", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteRoom.go b/service/alexaforbusiness/api_op_DeleteRoom.go deleted file mode 100644 index 2c39c465e66..00000000000 --- a/service/alexaforbusiness/api_op_DeleteRoom.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a room by the room ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteRoom(ctx context.Context, params *DeleteRoomInput, optFns ...func(*Options)) (*DeleteRoomOutput, error) { - if params == nil { - params = &DeleteRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteRoom", params, optFns, c.addOperationDeleteRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteRoomInput struct { - - // The ARN of the room to delete. Required. - RoomArn *string - - noSmithyDocumentSerde -} - -type DeleteRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteRoom", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteRoomSkillParameter.go b/service/alexaforbusiness/api_op_DeleteRoomSkillParameter.go deleted file mode 100644 index 2b7a652e591..00000000000 --- a/service/alexaforbusiness/api_op_DeleteRoomSkillParameter.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes room skill parameter details by room, skill, and parameter key ID. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteRoomSkillParameter(ctx context.Context, params *DeleteRoomSkillParameterInput, optFns ...func(*Options)) (*DeleteRoomSkillParameterOutput, error) { - if params == nil { - params = &DeleteRoomSkillParameterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteRoomSkillParameter", params, optFns, c.addOperationDeleteRoomSkillParameterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteRoomSkillParameterOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteRoomSkillParameterInput struct { - - // The room skill parameter key for which to remove details. - // - // This member is required. - ParameterKey *string - - // The ID of the skill from which to remove the room skill parameter details. - // - // This member is required. - SkillId *string - - // The ARN of the room from which to remove the room skill parameter details. - RoomArn *string - - noSmithyDocumentSerde -} - -type DeleteRoomSkillParameterOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteRoomSkillParameterMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRoomSkillParameter"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteRoomSkillParameterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRoomSkillParameter(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteRoomSkillParameter(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteRoomSkillParameter", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteSkillAuthorization.go b/service/alexaforbusiness/api_op_DeleteSkillAuthorization.go deleted file mode 100644 index d287c88e32e..00000000000 --- a/service/alexaforbusiness/api_op_DeleteSkillAuthorization.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Unlinks a third-party account from a skill. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteSkillAuthorization(ctx context.Context, params *DeleteSkillAuthorizationInput, optFns ...func(*Options)) (*DeleteSkillAuthorizationOutput, error) { - if params == nil { - params = &DeleteSkillAuthorizationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteSkillAuthorization", params, optFns, c.addOperationDeleteSkillAuthorizationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteSkillAuthorizationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteSkillAuthorizationInput struct { - - // The unique identifier of a skill. - // - // This member is required. - SkillId *string - - // The room that the skill is authorized for. - RoomArn *string - - noSmithyDocumentSerde -} - -type DeleteSkillAuthorizationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteSkillAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteSkillAuthorization{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteSkillAuthorization{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSkillAuthorization"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteSkillAuthorizationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSkillAuthorization(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteSkillAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteSkillAuthorization", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteSkillGroup.go b/service/alexaforbusiness/api_op_DeleteSkillGroup.go deleted file mode 100644 index b7b257a30a3..00000000000 --- a/service/alexaforbusiness/api_op_DeleteSkillGroup.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a skill group by skill group ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteSkillGroup(ctx context.Context, params *DeleteSkillGroupInput, optFns ...func(*Options)) (*DeleteSkillGroupOutput, error) { - if params == nil { - params = &DeleteSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteSkillGroup", params, optFns, c.addOperationDeleteSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteSkillGroupInput struct { - - // The ARN of the skill group to delete. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type DeleteSkillGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteSkillGroup", - } -} diff --git a/service/alexaforbusiness/api_op_DeleteUser.go b/service/alexaforbusiness/api_op_DeleteUser.go deleted file mode 100644 index 539904aae6a..00000000000 --- a/service/alexaforbusiness/api_op_DeleteUser.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a specified user by user ARN and enrollment ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns ...func(*Options)) (*DeleteUserOutput, error) { - if params == nil { - params = &DeleteUserInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteUser", params, optFns, c.addOperationDeleteUserMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteUserOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteUserInput struct { - - // The ARN of the user's enrollment in the organization. Required. - // - // This member is required. - EnrollmentId *string - - // The ARN of the user to delete in the organization. Required. - UserArn *string - - noSmithyDocumentSerde -} - -type DeleteUserOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteUserMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteUser{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteUser{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteUser"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteUserValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteUser(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteUser(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteUser", - } -} diff --git a/service/alexaforbusiness/api_op_DisassociateContactFromAddressBook.go b/service/alexaforbusiness/api_op_DisassociateContactFromAddressBook.go deleted file mode 100644 index 23c20fd30b7..00000000000 --- a/service/alexaforbusiness/api_op_DisassociateContactFromAddressBook.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates a contact from a given address book. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DisassociateContactFromAddressBook(ctx context.Context, params *DisassociateContactFromAddressBookInput, optFns ...func(*Options)) (*DisassociateContactFromAddressBookOutput, error) { - if params == nil { - params = &DisassociateContactFromAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateContactFromAddressBook", params, optFns, c.addOperationDisassociateContactFromAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateContactFromAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateContactFromAddressBookInput struct { - - // The ARN of the address from which to disassociate the contact. - // - // This member is required. - AddressBookArn *string - - // The ARN of the contact to disassociate from an address book. - // - // This member is required. - ContactArn *string - - noSmithyDocumentSerde -} - -type DisassociateContactFromAddressBookOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateContactFromAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateContactFromAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateContactFromAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateContactFromAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDisassociateContactFromAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateContactFromAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateContactFromAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DisassociateContactFromAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_DisassociateDeviceFromRoom.go b/service/alexaforbusiness/api_op_DisassociateDeviceFromRoom.go deleted file mode 100644 index 157e2e907d0..00000000000 --- a/service/alexaforbusiness/api_op_DisassociateDeviceFromRoom.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates a device from its current room. The device continues to be -// connected to the Wi-Fi network and is still registered to the account. The -// device settings and skills are removed from the room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DisassociateDeviceFromRoom(ctx context.Context, params *DisassociateDeviceFromRoomInput, optFns ...func(*Options)) (*DisassociateDeviceFromRoomOutput, error) { - if params == nil { - params = &DisassociateDeviceFromRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateDeviceFromRoom", params, optFns, c.addOperationDisassociateDeviceFromRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateDeviceFromRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateDeviceFromRoomInput struct { - - // The ARN of the device to disassociate from a room. Required. - DeviceArn *string - - noSmithyDocumentSerde -} - -type DisassociateDeviceFromRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateDeviceFromRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateDeviceFromRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateDeviceFromRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateDeviceFromRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateDeviceFromRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateDeviceFromRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DisassociateDeviceFromRoom", - } -} diff --git a/service/alexaforbusiness/api_op_DisassociateSkillFromSkillGroup.go b/service/alexaforbusiness/api_op_DisassociateSkillFromSkillGroup.go deleted file mode 100644 index 53315ed22a4..00000000000 --- a/service/alexaforbusiness/api_op_DisassociateSkillFromSkillGroup.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates a skill from a skill group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DisassociateSkillFromSkillGroup(ctx context.Context, params *DisassociateSkillFromSkillGroupInput, optFns ...func(*Options)) (*DisassociateSkillFromSkillGroupOutput, error) { - if params == nil { - params = &DisassociateSkillFromSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateSkillFromSkillGroup", params, optFns, c.addOperationDisassociateSkillFromSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateSkillFromSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateSkillFromSkillGroupInput struct { - - // The ARN of a skill group to associate to a skill. - // - // This member is required. - SkillId *string - - // The unique identifier of a skill. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type DisassociateSkillFromSkillGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateSkillFromSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateSkillFromSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateSkillFromSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateSkillFromSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDisassociateSkillFromSkillGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateSkillFromSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateSkillFromSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DisassociateSkillFromSkillGroup", - } -} diff --git a/service/alexaforbusiness/api_op_DisassociateSkillFromUsers.go b/service/alexaforbusiness/api_op_DisassociateSkillFromUsers.go deleted file mode 100644 index e4e1fafd1f1..00000000000 --- a/service/alexaforbusiness/api_op_DisassociateSkillFromUsers.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Makes a private skill unavailable for enrolled users and prevents them from -// enabling it on their devices. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DisassociateSkillFromUsers(ctx context.Context, params *DisassociateSkillFromUsersInput, optFns ...func(*Options)) (*DisassociateSkillFromUsersOutput, error) { - if params == nil { - params = &DisassociateSkillFromUsersInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateSkillFromUsers", params, optFns, c.addOperationDisassociateSkillFromUsersMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateSkillFromUsersOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateSkillFromUsersInput struct { - - // The private skill ID you want to make unavailable for enrolled users. - // - // This member is required. - SkillId *string - - noSmithyDocumentSerde -} - -type DisassociateSkillFromUsersOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateSkillFromUsersMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateSkillFromUsers{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateSkillFromUsers{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateSkillFromUsers"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDisassociateSkillFromUsersValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateSkillFromUsers(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateSkillFromUsers(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DisassociateSkillFromUsers", - } -} diff --git a/service/alexaforbusiness/api_op_DisassociateSkillGroupFromRoom.go b/service/alexaforbusiness/api_op_DisassociateSkillGroupFromRoom.go deleted file mode 100644 index d9b4c2e46e0..00000000000 --- a/service/alexaforbusiness/api_op_DisassociateSkillGroupFromRoom.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates a skill group from a specified room. This disables all skills in -// the skill group on all devices in the room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) DisassociateSkillGroupFromRoom(ctx context.Context, params *DisassociateSkillGroupFromRoomInput, optFns ...func(*Options)) (*DisassociateSkillGroupFromRoomOutput, error) { - if params == nil { - params = &DisassociateSkillGroupFromRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateSkillGroupFromRoom", params, optFns, c.addOperationDisassociateSkillGroupFromRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateSkillGroupFromRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateSkillGroupFromRoomInput struct { - - // The ARN of the room from which the skill group is to be disassociated. Required. - RoomArn *string - - // The ARN of the skill group to disassociate from a room. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type DisassociateSkillGroupFromRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateSkillGroupFromRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateSkillGroupFromRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateSkillGroupFromRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateSkillGroupFromRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateSkillGroupFromRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateSkillGroupFromRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DisassociateSkillGroupFromRoom", - } -} diff --git a/service/alexaforbusiness/api_op_ForgetSmartHomeAppliances.go b/service/alexaforbusiness/api_op_ForgetSmartHomeAppliances.go deleted file mode 100644 index 04267d6ecc9..00000000000 --- a/service/alexaforbusiness/api_op_ForgetSmartHomeAppliances.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Forgets smart home appliances associated to a room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ForgetSmartHomeAppliances(ctx context.Context, params *ForgetSmartHomeAppliancesInput, optFns ...func(*Options)) (*ForgetSmartHomeAppliancesOutput, error) { - if params == nil { - params = &ForgetSmartHomeAppliancesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ForgetSmartHomeAppliances", params, optFns, c.addOperationForgetSmartHomeAppliancesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ForgetSmartHomeAppliancesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ForgetSmartHomeAppliancesInput struct { - - // The room that the appliances are associated with. - // - // This member is required. - RoomArn *string - - noSmithyDocumentSerde -} - -type ForgetSmartHomeAppliancesOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationForgetSmartHomeAppliancesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpForgetSmartHomeAppliances{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpForgetSmartHomeAppliances{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ForgetSmartHomeAppliances"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpForgetSmartHomeAppliancesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opForgetSmartHomeAppliances(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opForgetSmartHomeAppliances(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ForgetSmartHomeAppliances", - } -} diff --git a/service/alexaforbusiness/api_op_GetAddressBook.go b/service/alexaforbusiness/api_op_GetAddressBook.go deleted file mode 100644 index 5f82723f7c2..00000000000 --- a/service/alexaforbusiness/api_op_GetAddressBook.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets address the book details by the address book ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetAddressBook(ctx context.Context, params *GetAddressBookInput, optFns ...func(*Options)) (*GetAddressBookOutput, error) { - if params == nil { - params = &GetAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetAddressBook", params, optFns, c.addOperationGetAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetAddressBookInput struct { - - // The ARN of the address book for which to request details. - // - // This member is required. - AddressBookArn *string - - noSmithyDocumentSerde -} - -type GetAddressBookOutput struct { - - // The details of the requested address book. - AddressBook *types.AddressBook - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_GetConferencePreference.go b/service/alexaforbusiness/api_op_GetConferencePreference.go deleted file mode 100644 index 5d21a04812a..00000000000 --- a/service/alexaforbusiness/api_op_GetConferencePreference.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves the existing conference preferences. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetConferencePreference(ctx context.Context, params *GetConferencePreferenceInput, optFns ...func(*Options)) (*GetConferencePreferenceOutput, error) { - if params == nil { - params = &GetConferencePreferenceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetConferencePreference", params, optFns, c.addOperationGetConferencePreferenceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetConferencePreferenceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetConferencePreferenceInput struct { - noSmithyDocumentSerde -} - -type GetConferencePreferenceOutput struct { - - // The conference preference. - Preference *types.ConferencePreference - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetConferencePreferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetConferencePreference{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetConferencePreference{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetConferencePreference"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConferencePreference(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetConferencePreference(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetConferencePreference", - } -} diff --git a/service/alexaforbusiness/api_op_GetConferenceProvider.go b/service/alexaforbusiness/api_op_GetConferenceProvider.go deleted file mode 100644 index 99a4078004b..00000000000 --- a/service/alexaforbusiness/api_op_GetConferenceProvider.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets details about a specific conference provider. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetConferenceProvider(ctx context.Context, params *GetConferenceProviderInput, optFns ...func(*Options)) (*GetConferenceProviderOutput, error) { - if params == nil { - params = &GetConferenceProviderInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetConferenceProvider", params, optFns, c.addOperationGetConferenceProviderMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetConferenceProviderOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetConferenceProviderInput struct { - - // The ARN of the newly created conference provider. - // - // This member is required. - ConferenceProviderArn *string - - noSmithyDocumentSerde -} - -type GetConferenceProviderOutput struct { - - // The conference provider. - ConferenceProvider *types.ConferenceProvider - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetConferenceProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetConferenceProvider{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetConferenceProvider{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetConferenceProvider"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetConferenceProviderValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConferenceProvider(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetConferenceProvider(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetConferenceProvider", - } -} diff --git a/service/alexaforbusiness/api_op_GetContact.go b/service/alexaforbusiness/api_op_GetContact.go deleted file mode 100644 index 9bc38e1b7dd..00000000000 --- a/service/alexaforbusiness/api_op_GetContact.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets the contact details by the contact ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetContact(ctx context.Context, params *GetContactInput, optFns ...func(*Options)) (*GetContactOutput, error) { - if params == nil { - params = &GetContactInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetContact", params, optFns, c.addOperationGetContactMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetContactOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetContactInput struct { - - // The ARN of the contact for which to request details. - // - // This member is required. - ContactArn *string - - noSmithyDocumentSerde -} - -type GetContactOutput struct { - - // The details of the requested contact. - Contact *types.Contact - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetContactMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetContact{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetContact{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetContact"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetContactValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetContact(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetContact(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetContact", - } -} diff --git a/service/alexaforbusiness/api_op_GetDevice.go b/service/alexaforbusiness/api_op_GetDevice.go deleted file mode 100644 index 43aecefa1af..00000000000 --- a/service/alexaforbusiness/api_op_GetDevice.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets the details of a device by device ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetDevice(ctx context.Context, params *GetDeviceInput, optFns ...func(*Options)) (*GetDeviceOutput, error) { - if params == nil { - params = &GetDeviceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetDevice", params, optFns, c.addOperationGetDeviceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetDeviceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetDeviceInput struct { - - // The ARN of the device for which to request details. Required. - DeviceArn *string - - noSmithyDocumentSerde -} - -type GetDeviceOutput struct { - - // The details of the device requested. Required. - Device *types.Device - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetDevice{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetDevice{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetDevice"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDevice(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetDevice(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetDevice", - } -} diff --git a/service/alexaforbusiness/api_op_GetGateway.go b/service/alexaforbusiness/api_op_GetGateway.go deleted file mode 100644 index 3113eb00d30..00000000000 --- a/service/alexaforbusiness/api_op_GetGateway.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves the details of a gateway. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetGateway(ctx context.Context, params *GetGatewayInput, optFns ...func(*Options)) (*GetGatewayOutput, error) { - if params == nil { - params = &GetGatewayInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetGateway", params, optFns, c.addOperationGetGatewayMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetGatewayOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetGatewayInput struct { - - // The ARN of the gateway to get. - // - // This member is required. - GatewayArn *string - - noSmithyDocumentSerde -} - -type GetGatewayOutput struct { - - // The details of the gateway. - Gateway *types.Gateway - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetGateway{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetGateway{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetGateway"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetGatewayValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetGateway(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetGateway(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetGateway", - } -} diff --git a/service/alexaforbusiness/api_op_GetGatewayGroup.go b/service/alexaforbusiness/api_op_GetGatewayGroup.go deleted file mode 100644 index 7e1b2f77792..00000000000 --- a/service/alexaforbusiness/api_op_GetGatewayGroup.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves the details of a gateway group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetGatewayGroup(ctx context.Context, params *GetGatewayGroupInput, optFns ...func(*Options)) (*GetGatewayGroupOutput, error) { - if params == nil { - params = &GetGatewayGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetGatewayGroup", params, optFns, c.addOperationGetGatewayGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetGatewayGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetGatewayGroupInput struct { - - // The ARN of the gateway group to get. - // - // This member is required. - GatewayGroupArn *string - - noSmithyDocumentSerde -} - -type GetGatewayGroupOutput struct { - - // The details of the gateway group. - GatewayGroup *types.GatewayGroup - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetGatewayGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetGatewayGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetGatewayGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetGatewayGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetGatewayGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetGatewayGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetGatewayGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetGatewayGroup", - } -} diff --git a/service/alexaforbusiness/api_op_GetInvitationConfiguration.go b/service/alexaforbusiness/api_op_GetInvitationConfiguration.go deleted file mode 100644 index b5aa8bd6f2e..00000000000 --- a/service/alexaforbusiness/api_op_GetInvitationConfiguration.go +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves the configured values for the user enrollment invitation email -// template. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetInvitationConfiguration(ctx context.Context, params *GetInvitationConfigurationInput, optFns ...func(*Options)) (*GetInvitationConfigurationOutput, error) { - if params == nil { - params = &GetInvitationConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetInvitationConfiguration", params, optFns, c.addOperationGetInvitationConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetInvitationConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetInvitationConfigurationInput struct { - noSmithyDocumentSerde -} - -type GetInvitationConfigurationOutput struct { - - // The email ID of the organization or individual contact that the enrolled user - // can use. - ContactEmail *string - - // The name of the organization sending the enrollment invite to a user. - OrganizationName *string - - // The list of private skill IDs that you want to recommend to the user to enable - // in the invitation. - PrivateSkillIds []string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetInvitationConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetInvitationConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetInvitationConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetInvitationConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInvitationConfiguration(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetInvitationConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetInvitationConfiguration", - } -} diff --git a/service/alexaforbusiness/api_op_GetNetworkProfile.go b/service/alexaforbusiness/api_op_GetNetworkProfile.go deleted file mode 100644 index 1ad69f7c903..00000000000 --- a/service/alexaforbusiness/api_op_GetNetworkProfile.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets the network profile details by the network profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetNetworkProfile(ctx context.Context, params *GetNetworkProfileInput, optFns ...func(*Options)) (*GetNetworkProfileOutput, error) { - if params == nil { - params = &GetNetworkProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetNetworkProfile", params, optFns, c.addOperationGetNetworkProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetNetworkProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetNetworkProfileInput struct { - - // The ARN of the network profile associated with a device. - // - // This member is required. - NetworkProfileArn *string - - noSmithyDocumentSerde -} - -type GetNetworkProfileOutput struct { - - // The network profile associated with a device. - NetworkProfile *types.NetworkProfile - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetNetworkProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetNetworkProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetNetworkProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetNetworkProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetNetworkProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetNetworkProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetNetworkProfile", - } -} diff --git a/service/alexaforbusiness/api_op_GetProfile.go b/service/alexaforbusiness/api_op_GetProfile.go deleted file mode 100644 index e93f65644fd..00000000000 --- a/service/alexaforbusiness/api_op_GetProfile.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets the details of a room profile by profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetProfile(ctx context.Context, params *GetProfileInput, optFns ...func(*Options)) (*GetProfileOutput, error) { - if params == nil { - params = &GetProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetProfile", params, optFns, c.addOperationGetProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetProfileInput struct { - - // The ARN of the room profile for which to request details. Required. - ProfileArn *string - - noSmithyDocumentSerde -} - -type GetProfileOutput struct { - - // The details of the room profile requested. Required. - Profile *types.Profile - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetProfile", - } -} diff --git a/service/alexaforbusiness/api_op_GetRoom.go b/service/alexaforbusiness/api_op_GetRoom.go deleted file mode 100644 index 32b32fcc568..00000000000 --- a/service/alexaforbusiness/api_op_GetRoom.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets room details by room ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetRoom(ctx context.Context, params *GetRoomInput, optFns ...func(*Options)) (*GetRoomOutput, error) { - if params == nil { - params = &GetRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRoom", params, optFns, c.addOperationGetRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRoomInput struct { - - // The ARN of the room for which to request details. Required. - RoomArn *string - - noSmithyDocumentSerde -} - -type GetRoomOutput struct { - - // The details of the room requested. - Room *types.Room - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetRoom", - } -} diff --git a/service/alexaforbusiness/api_op_GetRoomSkillParameter.go b/service/alexaforbusiness/api_op_GetRoomSkillParameter.go deleted file mode 100644 index 84dd71e8760..00000000000 --- a/service/alexaforbusiness/api_op_GetRoomSkillParameter.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets room skill parameter details by room, skill, and parameter key ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetRoomSkillParameter(ctx context.Context, params *GetRoomSkillParameterInput, optFns ...func(*Options)) (*GetRoomSkillParameterOutput, error) { - if params == nil { - params = &GetRoomSkillParameterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRoomSkillParameter", params, optFns, c.addOperationGetRoomSkillParameterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRoomSkillParameterOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRoomSkillParameterInput struct { - - // The room skill parameter key for which to get details. Required. - // - // This member is required. - ParameterKey *string - - // The ARN of the skill from which to get the room skill parameter details. - // Required. - // - // This member is required. - SkillId *string - - // The ARN of the room from which to get the room skill parameter details. - RoomArn *string - - noSmithyDocumentSerde -} - -type GetRoomSkillParameterOutput struct { - - // The details of the room skill parameter requested. Required. - RoomSkillParameter *types.RoomSkillParameter - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRoomSkillParameterMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetRoomSkillParameter"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetRoomSkillParameterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRoomSkillParameter(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRoomSkillParameter(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetRoomSkillParameter", - } -} diff --git a/service/alexaforbusiness/api_op_GetSkillGroup.go b/service/alexaforbusiness/api_op_GetSkillGroup.go deleted file mode 100644 index af41369e940..00000000000 --- a/service/alexaforbusiness/api_op_GetSkillGroup.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets skill group details by skill group ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) GetSkillGroup(ctx context.Context, params *GetSkillGroupInput, optFns ...func(*Options)) (*GetSkillGroupOutput, error) { - if params == nil { - params = &GetSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetSkillGroup", params, optFns, c.addOperationGetSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetSkillGroupInput struct { - - // The ARN of the skill group for which to get details. Required. - SkillGroupArn *string - - noSmithyDocumentSerde -} - -type GetSkillGroupOutput struct { - - // The details of the skill group requested. Required. - SkillGroup *types.SkillGroup - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetSkillGroup", - } -} diff --git a/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go b/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go deleted file mode 100644 index f3b0d7f34f6..00000000000 --- a/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go +++ /dev/null @@ -1,234 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists the details of the schedules that a user configured. A download URL of -// the report associated with each schedule is returned every time this action is -// called. A new download URL is returned each time, and is valid for 24 hours. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListBusinessReportSchedules(ctx context.Context, params *ListBusinessReportSchedulesInput, optFns ...func(*Options)) (*ListBusinessReportSchedulesOutput, error) { - if params == nil { - params = &ListBusinessReportSchedulesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListBusinessReportSchedules", params, optFns, c.addOperationListBusinessReportSchedulesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListBusinessReportSchedulesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListBusinessReportSchedulesInput struct { - - // The maximum number of schedules listed in the call. - MaxResults *int32 - - // The token used to list the remaining schedules from the previous API call. - NextToken *string - - noSmithyDocumentSerde -} - -type ListBusinessReportSchedulesOutput struct { - - // The schedule of the reports. - BusinessReportSchedules []types.BusinessReportSchedule - - // The token used to list the remaining schedules from the previous API call. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListBusinessReportSchedulesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListBusinessReportSchedules{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListBusinessReportSchedules{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListBusinessReportSchedules"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListBusinessReportSchedules(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListBusinessReportSchedulesAPIClient is a client that implements the -// ListBusinessReportSchedules operation. -type ListBusinessReportSchedulesAPIClient interface { - ListBusinessReportSchedules(context.Context, *ListBusinessReportSchedulesInput, ...func(*Options)) (*ListBusinessReportSchedulesOutput, error) -} - -var _ ListBusinessReportSchedulesAPIClient = (*Client)(nil) - -// ListBusinessReportSchedulesPaginatorOptions is the paginator options for -// ListBusinessReportSchedules -type ListBusinessReportSchedulesPaginatorOptions struct { - // The maximum number of schedules listed in the call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListBusinessReportSchedulesPaginator is a paginator for -// ListBusinessReportSchedules -type ListBusinessReportSchedulesPaginator struct { - options ListBusinessReportSchedulesPaginatorOptions - client ListBusinessReportSchedulesAPIClient - params *ListBusinessReportSchedulesInput - nextToken *string - firstPage bool -} - -// NewListBusinessReportSchedulesPaginator returns a new -// ListBusinessReportSchedulesPaginator -func NewListBusinessReportSchedulesPaginator(client ListBusinessReportSchedulesAPIClient, params *ListBusinessReportSchedulesInput, optFns ...func(*ListBusinessReportSchedulesPaginatorOptions)) *ListBusinessReportSchedulesPaginator { - if params == nil { - params = &ListBusinessReportSchedulesInput{} - } - - options := ListBusinessReportSchedulesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListBusinessReportSchedulesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListBusinessReportSchedulesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListBusinessReportSchedules page. -func (p *ListBusinessReportSchedulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBusinessReportSchedulesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListBusinessReportSchedules(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListBusinessReportSchedules(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListBusinessReportSchedules", - } -} diff --git a/service/alexaforbusiness/api_op_ListConferenceProviders.go b/service/alexaforbusiness/api_op_ListConferenceProviders.go deleted file mode 100644 index 88b29c2044d..00000000000 --- a/service/alexaforbusiness/api_op_ListConferenceProviders.go +++ /dev/null @@ -1,231 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists conference providers under a specific AWS account. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListConferenceProviders(ctx context.Context, params *ListConferenceProvidersInput, optFns ...func(*Options)) (*ListConferenceProvidersOutput, error) { - if params == nil { - params = &ListConferenceProvidersInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListConferenceProviders", params, optFns, c.addOperationListConferenceProvidersMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListConferenceProvidersOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListConferenceProvidersInput struct { - - // The maximum number of conference providers to be returned, per paginated calls. - MaxResults *int32 - - // The tokens used for pagination. - NextToken *string - - noSmithyDocumentSerde -} - -type ListConferenceProvidersOutput struct { - - // The conference providers. - ConferenceProviders []types.ConferenceProvider - - // The tokens used for pagination. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListConferenceProvidersMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListConferenceProviders{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListConferenceProviders{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListConferenceProviders"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListConferenceProviders(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListConferenceProvidersAPIClient is a client that implements the -// ListConferenceProviders operation. -type ListConferenceProvidersAPIClient interface { - ListConferenceProviders(context.Context, *ListConferenceProvidersInput, ...func(*Options)) (*ListConferenceProvidersOutput, error) -} - -var _ ListConferenceProvidersAPIClient = (*Client)(nil) - -// ListConferenceProvidersPaginatorOptions is the paginator options for -// ListConferenceProviders -type ListConferenceProvidersPaginatorOptions struct { - // The maximum number of conference providers to be returned, per paginated calls. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListConferenceProvidersPaginator is a paginator for ListConferenceProviders -type ListConferenceProvidersPaginator struct { - options ListConferenceProvidersPaginatorOptions - client ListConferenceProvidersAPIClient - params *ListConferenceProvidersInput - nextToken *string - firstPage bool -} - -// NewListConferenceProvidersPaginator returns a new -// ListConferenceProvidersPaginator -func NewListConferenceProvidersPaginator(client ListConferenceProvidersAPIClient, params *ListConferenceProvidersInput, optFns ...func(*ListConferenceProvidersPaginatorOptions)) *ListConferenceProvidersPaginator { - if params == nil { - params = &ListConferenceProvidersInput{} - } - - options := ListConferenceProvidersPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListConferenceProvidersPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListConferenceProvidersPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListConferenceProviders page. -func (p *ListConferenceProvidersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListConferenceProvidersOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListConferenceProviders(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListConferenceProviders(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListConferenceProviders", - } -} diff --git a/service/alexaforbusiness/api_op_ListDeviceEvents.go b/service/alexaforbusiness/api_op_ListDeviceEvents.go deleted file mode 100644 index b010412dabc..00000000000 --- a/service/alexaforbusiness/api_op_ListDeviceEvents.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists the device event history, including device connection status, for up to -// 30 days. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListDeviceEvents(ctx context.Context, params *ListDeviceEventsInput, optFns ...func(*Options)) (*ListDeviceEventsOutput, error) { - if params == nil { - params = &ListDeviceEventsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListDeviceEvents", params, optFns, c.addOperationListDeviceEventsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListDeviceEventsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListDeviceEventsInput struct { - - // The ARN of a device. - // - // This member is required. - DeviceArn *string - - // The event type to filter device events. If EventType isn't specified, this - // returns a list of all device events in reverse chronological order. If EventType - // is specified, this returns a list of device events for that EventType in reverse - // chronological order. - EventType types.DeviceEventType - - // The maximum number of results to include in the response. The default value is - // 50. If more results exist than the specified MaxResults value, a token is - // included in the response so that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response only - // includes results beyond the token, up to the value specified by MaxResults. When - // the end of results is reached, the response has a value of null. - NextToken *string - - noSmithyDocumentSerde -} - -type ListDeviceEventsOutput struct { - - // The device events requested for the device ARN. - DeviceEvents []types.DeviceEvent - - // The token returned to indicate that there is more data available. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListDeviceEventsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDeviceEvents{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDeviceEvents{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListDeviceEvents"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListDeviceEventsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDeviceEvents(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListDeviceEventsAPIClient is a client that implements the ListDeviceEvents -// operation. -type ListDeviceEventsAPIClient interface { - ListDeviceEvents(context.Context, *ListDeviceEventsInput, ...func(*Options)) (*ListDeviceEventsOutput, error) -} - -var _ ListDeviceEventsAPIClient = (*Client)(nil) - -// ListDeviceEventsPaginatorOptions is the paginator options for ListDeviceEvents -type ListDeviceEventsPaginatorOptions struct { - // The maximum number of results to include in the response. The default value is - // 50. If more results exist than the specified MaxResults value, a token is - // included in the response so that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListDeviceEventsPaginator is a paginator for ListDeviceEvents -type ListDeviceEventsPaginator struct { - options ListDeviceEventsPaginatorOptions - client ListDeviceEventsAPIClient - params *ListDeviceEventsInput - nextToken *string - firstPage bool -} - -// NewListDeviceEventsPaginator returns a new ListDeviceEventsPaginator -func NewListDeviceEventsPaginator(client ListDeviceEventsAPIClient, params *ListDeviceEventsInput, optFns ...func(*ListDeviceEventsPaginatorOptions)) *ListDeviceEventsPaginator { - if params == nil { - params = &ListDeviceEventsInput{} - } - - options := ListDeviceEventsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListDeviceEventsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListDeviceEventsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListDeviceEvents page. -func (p *ListDeviceEventsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDeviceEventsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListDeviceEvents(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListDeviceEvents(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListDeviceEvents", - } -} diff --git a/service/alexaforbusiness/api_op_ListGatewayGroups.go b/service/alexaforbusiness/api_op_ListGatewayGroups.go deleted file mode 100644 index 4c6b6eab848..00000000000 --- a/service/alexaforbusiness/api_op_ListGatewayGroups.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves a list of gateway group summaries. Use GetGatewayGroup to retrieve -// details of a specific gateway group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListGatewayGroups(ctx context.Context, params *ListGatewayGroupsInput, optFns ...func(*Options)) (*ListGatewayGroupsOutput, error) { - if params == nil { - params = &ListGatewayGroupsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListGatewayGroups", params, optFns, c.addOperationListGatewayGroupsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListGatewayGroupsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListGatewayGroupsInput struct { - - // The maximum number of gateway group summaries to return. The default is 50. - MaxResults *int32 - - // The token used to paginate though multiple pages of gateway group summaries. - NextToken *string - - noSmithyDocumentSerde -} - -type ListGatewayGroupsOutput struct { - - // The gateway groups in the list. - GatewayGroups []types.GatewayGroupSummary - - // The token used to paginate though multiple pages of gateway group summaries. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListGatewayGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListGatewayGroups{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListGatewayGroups{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListGatewayGroups"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListGatewayGroups(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListGatewayGroupsAPIClient is a client that implements the ListGatewayGroups -// operation. -type ListGatewayGroupsAPIClient interface { - ListGatewayGroups(context.Context, *ListGatewayGroupsInput, ...func(*Options)) (*ListGatewayGroupsOutput, error) -} - -var _ ListGatewayGroupsAPIClient = (*Client)(nil) - -// ListGatewayGroupsPaginatorOptions is the paginator options for ListGatewayGroups -type ListGatewayGroupsPaginatorOptions struct { - // The maximum number of gateway group summaries to return. The default is 50. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListGatewayGroupsPaginator is a paginator for ListGatewayGroups -type ListGatewayGroupsPaginator struct { - options ListGatewayGroupsPaginatorOptions - client ListGatewayGroupsAPIClient - params *ListGatewayGroupsInput - nextToken *string - firstPage bool -} - -// NewListGatewayGroupsPaginator returns a new ListGatewayGroupsPaginator -func NewListGatewayGroupsPaginator(client ListGatewayGroupsAPIClient, params *ListGatewayGroupsInput, optFns ...func(*ListGatewayGroupsPaginatorOptions)) *ListGatewayGroupsPaginator { - if params == nil { - params = &ListGatewayGroupsInput{} - } - - options := ListGatewayGroupsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListGatewayGroupsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListGatewayGroupsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListGatewayGroups page. -func (p *ListGatewayGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGatewayGroupsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListGatewayGroups(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListGatewayGroups(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListGatewayGroups", - } -} diff --git a/service/alexaforbusiness/api_op_ListGateways.go b/service/alexaforbusiness/api_op_ListGateways.go deleted file mode 100644 index e339514961b..00000000000 --- a/service/alexaforbusiness/api_op_ListGateways.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves a list of gateway summaries. Use GetGateway to retrieve details of a -// specific gateway. An optional gateway group ARN can be provided to only retrieve -// gateway summaries of gateways that are associated with that gateway group ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListGateways(ctx context.Context, params *ListGatewaysInput, optFns ...func(*Options)) (*ListGatewaysOutput, error) { - if params == nil { - params = &ListGatewaysInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListGateways", params, optFns, c.addOperationListGatewaysMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListGatewaysOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListGatewaysInput struct { - - // The gateway group ARN for which to list gateways. - GatewayGroupArn *string - - // The maximum number of gateway summaries to return. The default is 50. - MaxResults *int32 - - // The token used to paginate though multiple pages of gateway summaries. - NextToken *string - - noSmithyDocumentSerde -} - -type ListGatewaysOutput struct { - - // The gateways in the list. - Gateways []types.GatewaySummary - - // The token used to paginate though multiple pages of gateway summaries. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListGateways{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListGateways{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListGateways"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListGateways(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListGatewaysAPIClient is a client that implements the ListGateways operation. -type ListGatewaysAPIClient interface { - ListGateways(context.Context, *ListGatewaysInput, ...func(*Options)) (*ListGatewaysOutput, error) -} - -var _ ListGatewaysAPIClient = (*Client)(nil) - -// ListGatewaysPaginatorOptions is the paginator options for ListGateways -type ListGatewaysPaginatorOptions struct { - // The maximum number of gateway summaries to return. The default is 50. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListGatewaysPaginator is a paginator for ListGateways -type ListGatewaysPaginator struct { - options ListGatewaysPaginatorOptions - client ListGatewaysAPIClient - params *ListGatewaysInput - nextToken *string - firstPage bool -} - -// NewListGatewaysPaginator returns a new ListGatewaysPaginator -func NewListGatewaysPaginator(client ListGatewaysAPIClient, params *ListGatewaysInput, optFns ...func(*ListGatewaysPaginatorOptions)) *ListGatewaysPaginator { - if params == nil { - params = &ListGatewaysInput{} - } - - options := ListGatewaysPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListGatewaysPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListGatewaysPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListGateways page. -func (p *ListGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGatewaysOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListGateways(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListGateways(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListGateways", - } -} diff --git a/service/alexaforbusiness/api_op_ListSkills.go b/service/alexaforbusiness/api_op_ListSkills.go deleted file mode 100644 index d90fac63ddc..00000000000 --- a/service/alexaforbusiness/api_op_ListSkills.go +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists all enabled skills in a specific skill group. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListSkills(ctx context.Context, params *ListSkillsInput, optFns ...func(*Options)) (*ListSkillsOutput, error) { - if params == nil { - params = &ListSkillsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSkills", params, optFns, c.addOperationListSkillsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSkillsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSkillsInput struct { - - // Whether the skill is enabled under the user's account. - EnablementType types.EnablementTypeFilter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults . - NextToken *string - - // The ARN of the skill group for which to list enabled skills. - SkillGroupArn *string - - // Whether the skill is publicly available or is a private skill. - SkillType types.SkillTypeFilter - - noSmithyDocumentSerde -} - -type ListSkillsOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The list of enabled skills requested. Required. - SkillSummaries []types.SkillSummary - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSkillsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSkills{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSkills{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListSkills"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSkills(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListSkillsAPIClient is a client that implements the ListSkills operation. -type ListSkillsAPIClient interface { - ListSkills(context.Context, *ListSkillsInput, ...func(*Options)) (*ListSkillsOutput, error) -} - -var _ ListSkillsAPIClient = (*Client)(nil) - -// ListSkillsPaginatorOptions is the paginator options for ListSkills -type ListSkillsPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListSkillsPaginator is a paginator for ListSkills -type ListSkillsPaginator struct { - options ListSkillsPaginatorOptions - client ListSkillsAPIClient - params *ListSkillsInput - nextToken *string - firstPage bool -} - -// NewListSkillsPaginator returns a new ListSkillsPaginator -func NewListSkillsPaginator(client ListSkillsAPIClient, params *ListSkillsInput, optFns ...func(*ListSkillsPaginatorOptions)) *ListSkillsPaginator { - if params == nil { - params = &ListSkillsInput{} - } - - options := ListSkillsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSkillsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSkillsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListSkills page. -func (p *ListSkillsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSkillsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListSkills(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListSkills(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListSkills", - } -} diff --git a/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go b/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go deleted file mode 100644 index 7ec27107c77..00000000000 --- a/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go +++ /dev/null @@ -1,231 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists all categories in the Alexa skill store. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListSkillsStoreCategories(ctx context.Context, params *ListSkillsStoreCategoriesInput, optFns ...func(*Options)) (*ListSkillsStoreCategoriesOutput, error) { - if params == nil { - params = &ListSkillsStoreCategoriesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSkillsStoreCategories", params, optFns, c.addOperationListSkillsStoreCategoriesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSkillsStoreCategoriesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSkillsStoreCategoriesInput struct { - - // The maximum number of categories returned, per paginated calls. - MaxResults *int32 - - // The tokens used for pagination. - NextToken *string - - noSmithyDocumentSerde -} - -type ListSkillsStoreCategoriesOutput struct { - - // The list of categories. - CategoryList []types.Category - - // The tokens used for pagination. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSkillsStoreCategoriesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSkillsStoreCategories{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSkillsStoreCategories{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListSkillsStoreCategories"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSkillsStoreCategories(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListSkillsStoreCategoriesAPIClient is a client that implements the -// ListSkillsStoreCategories operation. -type ListSkillsStoreCategoriesAPIClient interface { - ListSkillsStoreCategories(context.Context, *ListSkillsStoreCategoriesInput, ...func(*Options)) (*ListSkillsStoreCategoriesOutput, error) -} - -var _ ListSkillsStoreCategoriesAPIClient = (*Client)(nil) - -// ListSkillsStoreCategoriesPaginatorOptions is the paginator options for -// ListSkillsStoreCategories -type ListSkillsStoreCategoriesPaginatorOptions struct { - // The maximum number of categories returned, per paginated calls. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListSkillsStoreCategoriesPaginator is a paginator for ListSkillsStoreCategories -type ListSkillsStoreCategoriesPaginator struct { - options ListSkillsStoreCategoriesPaginatorOptions - client ListSkillsStoreCategoriesAPIClient - params *ListSkillsStoreCategoriesInput - nextToken *string - firstPage bool -} - -// NewListSkillsStoreCategoriesPaginator returns a new -// ListSkillsStoreCategoriesPaginator -func NewListSkillsStoreCategoriesPaginator(client ListSkillsStoreCategoriesAPIClient, params *ListSkillsStoreCategoriesInput, optFns ...func(*ListSkillsStoreCategoriesPaginatorOptions)) *ListSkillsStoreCategoriesPaginator { - if params == nil { - params = &ListSkillsStoreCategoriesInput{} - } - - options := ListSkillsStoreCategoriesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSkillsStoreCategoriesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSkillsStoreCategoriesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListSkillsStoreCategories page. -func (p *ListSkillsStoreCategoriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSkillsStoreCategoriesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListSkillsStoreCategories(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListSkillsStoreCategories(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListSkillsStoreCategories", - } -} diff --git a/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go b/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go deleted file mode 100644 index e26cd8ac8ce..00000000000 --- a/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists all skills in the Alexa skill store by category. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListSkillsStoreSkillsByCategory(ctx context.Context, params *ListSkillsStoreSkillsByCategoryInput, optFns ...func(*Options)) (*ListSkillsStoreSkillsByCategoryOutput, error) { - if params == nil { - params = &ListSkillsStoreSkillsByCategoryInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSkillsStoreSkillsByCategory", params, optFns, c.addOperationListSkillsStoreSkillsByCategoryMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSkillsStoreSkillsByCategoryOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSkillsStoreSkillsByCategoryInput struct { - - // The category ID for which the skills are being retrieved from the skill store. - // - // This member is required. - CategoryId *int64 - - // The maximum number of skills returned per paginated calls. - MaxResults *int32 - - // The tokens used for pagination. - NextToken *string - - noSmithyDocumentSerde -} - -type ListSkillsStoreSkillsByCategoryOutput struct { - - // The tokens used for pagination. - NextToken *string - - // The skill store skills. - SkillsStoreSkills []types.SkillsStoreSkill - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSkillsStoreSkillsByCategoryMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSkillsStoreSkillsByCategory{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSkillsStoreSkillsByCategory{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListSkillsStoreSkillsByCategory"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListSkillsStoreSkillsByCategoryValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSkillsStoreSkillsByCategory(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListSkillsStoreSkillsByCategoryAPIClient is a client that implements the -// ListSkillsStoreSkillsByCategory operation. -type ListSkillsStoreSkillsByCategoryAPIClient interface { - ListSkillsStoreSkillsByCategory(context.Context, *ListSkillsStoreSkillsByCategoryInput, ...func(*Options)) (*ListSkillsStoreSkillsByCategoryOutput, error) -} - -var _ ListSkillsStoreSkillsByCategoryAPIClient = (*Client)(nil) - -// ListSkillsStoreSkillsByCategoryPaginatorOptions is the paginator options for -// ListSkillsStoreSkillsByCategory -type ListSkillsStoreSkillsByCategoryPaginatorOptions struct { - // The maximum number of skills returned per paginated calls. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListSkillsStoreSkillsByCategoryPaginator is a paginator for -// ListSkillsStoreSkillsByCategory -type ListSkillsStoreSkillsByCategoryPaginator struct { - options ListSkillsStoreSkillsByCategoryPaginatorOptions - client ListSkillsStoreSkillsByCategoryAPIClient - params *ListSkillsStoreSkillsByCategoryInput - nextToken *string - firstPage bool -} - -// NewListSkillsStoreSkillsByCategoryPaginator returns a new -// ListSkillsStoreSkillsByCategoryPaginator -func NewListSkillsStoreSkillsByCategoryPaginator(client ListSkillsStoreSkillsByCategoryAPIClient, params *ListSkillsStoreSkillsByCategoryInput, optFns ...func(*ListSkillsStoreSkillsByCategoryPaginatorOptions)) *ListSkillsStoreSkillsByCategoryPaginator { - if params == nil { - params = &ListSkillsStoreSkillsByCategoryInput{} - } - - options := ListSkillsStoreSkillsByCategoryPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSkillsStoreSkillsByCategoryPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSkillsStoreSkillsByCategoryPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListSkillsStoreSkillsByCategory page. -func (p *ListSkillsStoreSkillsByCategoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSkillsStoreSkillsByCategoryOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListSkillsStoreSkillsByCategory(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListSkillsStoreSkillsByCategory(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListSkillsStoreSkillsByCategory", - } -} diff --git a/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go b/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go deleted file mode 100644 index 82b0a0c5f8e..00000000000 --- a/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go +++ /dev/null @@ -1,239 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists all of the smart home appliances associated with a room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListSmartHomeAppliances(ctx context.Context, params *ListSmartHomeAppliancesInput, optFns ...func(*Options)) (*ListSmartHomeAppliancesOutput, error) { - if params == nil { - params = &ListSmartHomeAppliancesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSmartHomeAppliances", params, optFns, c.addOperationListSmartHomeAppliancesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSmartHomeAppliancesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSmartHomeAppliancesInput struct { - - // The room that the appliances are associated with. - // - // This member is required. - RoomArn *string - - // The maximum number of appliances to be returned, per paginated calls. - MaxResults *int32 - - // The tokens used for pagination. - NextToken *string - - noSmithyDocumentSerde -} - -type ListSmartHomeAppliancesOutput struct { - - // The tokens used for pagination. - NextToken *string - - // The smart home appliances. - SmartHomeAppliances []types.SmartHomeAppliance - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSmartHomeAppliancesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSmartHomeAppliances{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSmartHomeAppliances{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListSmartHomeAppliances"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListSmartHomeAppliancesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSmartHomeAppliances(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListSmartHomeAppliancesAPIClient is a client that implements the -// ListSmartHomeAppliances operation. -type ListSmartHomeAppliancesAPIClient interface { - ListSmartHomeAppliances(context.Context, *ListSmartHomeAppliancesInput, ...func(*Options)) (*ListSmartHomeAppliancesOutput, error) -} - -var _ ListSmartHomeAppliancesAPIClient = (*Client)(nil) - -// ListSmartHomeAppliancesPaginatorOptions is the paginator options for -// ListSmartHomeAppliances -type ListSmartHomeAppliancesPaginatorOptions struct { - // The maximum number of appliances to be returned, per paginated calls. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListSmartHomeAppliancesPaginator is a paginator for ListSmartHomeAppliances -type ListSmartHomeAppliancesPaginator struct { - options ListSmartHomeAppliancesPaginatorOptions - client ListSmartHomeAppliancesAPIClient - params *ListSmartHomeAppliancesInput - nextToken *string - firstPage bool -} - -// NewListSmartHomeAppliancesPaginator returns a new -// ListSmartHomeAppliancesPaginator -func NewListSmartHomeAppliancesPaginator(client ListSmartHomeAppliancesAPIClient, params *ListSmartHomeAppliancesInput, optFns ...func(*ListSmartHomeAppliancesPaginatorOptions)) *ListSmartHomeAppliancesPaginator { - if params == nil { - params = &ListSmartHomeAppliancesInput{} - } - - options := ListSmartHomeAppliancesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSmartHomeAppliancesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSmartHomeAppliancesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListSmartHomeAppliances page. -func (p *ListSmartHomeAppliancesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSmartHomeAppliancesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListSmartHomeAppliances(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListSmartHomeAppliances(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListSmartHomeAppliances", - } -} diff --git a/service/alexaforbusiness/api_op_ListTags.go b/service/alexaforbusiness/api_op_ListTags.go deleted file mode 100644 index c1af124470a..00000000000 --- a/service/alexaforbusiness/api_op_ListTags.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists all tags for the specified resource. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error) { - if params == nil { - params = &ListTagsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListTags", params, optFns, c.addOperationListTagsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListTagsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListTagsInput struct { - - // The ARN of the specified resource for which to list tags. - // - // This member is required. - Arn *string - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults . - NextToken *string - - noSmithyDocumentSerde -} - -type ListTagsOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The tags requested for the specified resource. - Tags []types.Tag - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTags{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTags{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListTags"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListTagsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTags(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListTagsAPIClient is a client that implements the ListTags operation. -type ListTagsAPIClient interface { - ListTags(context.Context, *ListTagsInput, ...func(*Options)) (*ListTagsOutput, error) -} - -var _ ListTagsAPIClient = (*Client)(nil) - -// ListTagsPaginatorOptions is the paginator options for ListTags -type ListTagsPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListTagsPaginator is a paginator for ListTags -type ListTagsPaginator struct { - options ListTagsPaginatorOptions - client ListTagsAPIClient - params *ListTagsInput - nextToken *string - firstPage bool -} - -// NewListTagsPaginator returns a new ListTagsPaginator -func NewListTagsPaginator(client ListTagsAPIClient, params *ListTagsInput, optFns ...func(*ListTagsPaginatorOptions)) *ListTagsPaginator { - if params == nil { - params = &ListTagsInput{} - } - - options := ListTagsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListTagsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListTagsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListTags page. -func (p *ListTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListTags(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListTags(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListTags", - } -} diff --git a/service/alexaforbusiness/api_op_PutConferencePreference.go b/service/alexaforbusiness/api_op_PutConferencePreference.go deleted file mode 100644 index 312a51fdd7d..00000000000 --- a/service/alexaforbusiness/api_op_PutConferencePreference.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Sets the conference preferences on a specific conference provider at the -// account level. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) PutConferencePreference(ctx context.Context, params *PutConferencePreferenceInput, optFns ...func(*Options)) (*PutConferencePreferenceOutput, error) { - if params == nil { - params = &PutConferencePreferenceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "PutConferencePreference", params, optFns, c.addOperationPutConferencePreferenceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*PutConferencePreferenceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type PutConferencePreferenceInput struct { - - // The conference preference of a specific conference provider. - // - // This member is required. - ConferencePreference *types.ConferencePreference - - noSmithyDocumentSerde -} - -type PutConferencePreferenceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationPutConferencePreferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutConferencePreference{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutConferencePreference{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "PutConferencePreference"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpPutConferencePreferenceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutConferencePreference(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opPutConferencePreference(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "PutConferencePreference", - } -} diff --git a/service/alexaforbusiness/api_op_PutInvitationConfiguration.go b/service/alexaforbusiness/api_op_PutInvitationConfiguration.go deleted file mode 100644 index d2aa14bcaf1..00000000000 --- a/service/alexaforbusiness/api_op_PutInvitationConfiguration.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Configures the email template for the user enrollment invitation with the -// specified attributes. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) PutInvitationConfiguration(ctx context.Context, params *PutInvitationConfigurationInput, optFns ...func(*Options)) (*PutInvitationConfigurationOutput, error) { - if params == nil { - params = &PutInvitationConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "PutInvitationConfiguration", params, optFns, c.addOperationPutInvitationConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*PutInvitationConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type PutInvitationConfigurationInput struct { - - // The name of the organization sending the enrollment invite to a user. - // - // This member is required. - OrganizationName *string - - // The email ID of the organization or individual contact that the enrolled user - // can use. - ContactEmail *string - - // The list of private skill IDs that you want to recommend to the user to enable - // in the invitation. - PrivateSkillIds []string - - noSmithyDocumentSerde -} - -type PutInvitationConfigurationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationPutInvitationConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutInvitationConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutInvitationConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "PutInvitationConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpPutInvitationConfigurationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutInvitationConfiguration(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opPutInvitationConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "PutInvitationConfiguration", - } -} diff --git a/service/alexaforbusiness/api_op_PutRoomSkillParameter.go b/service/alexaforbusiness/api_op_PutRoomSkillParameter.go deleted file mode 100644 index aa4f0fe1496..00000000000 --- a/service/alexaforbusiness/api_op_PutRoomSkillParameter.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates room skill parameter details by room, skill, and parameter key ID. Not -// all skills have a room skill parameter. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) PutRoomSkillParameter(ctx context.Context, params *PutRoomSkillParameterInput, optFns ...func(*Options)) (*PutRoomSkillParameterOutput, error) { - if params == nil { - params = &PutRoomSkillParameterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "PutRoomSkillParameter", params, optFns, c.addOperationPutRoomSkillParameterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*PutRoomSkillParameterOutput) - out.ResultMetadata = metadata - return out, nil -} - -type PutRoomSkillParameterInput struct { - - // The updated room skill parameter. Required. - // - // This member is required. - RoomSkillParameter *types.RoomSkillParameter - - // The ARN of the skill associated with the room skill parameter. Required. - // - // This member is required. - SkillId *string - - // The ARN of the room associated with the room skill parameter. Required. - RoomArn *string - - noSmithyDocumentSerde -} - -type PutRoomSkillParameterOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationPutRoomSkillParameterMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutRoomSkillParameter{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "PutRoomSkillParameter"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpPutRoomSkillParameterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutRoomSkillParameter(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opPutRoomSkillParameter(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "PutRoomSkillParameter", - } -} diff --git a/service/alexaforbusiness/api_op_PutSkillAuthorization.go b/service/alexaforbusiness/api_op_PutSkillAuthorization.go deleted file mode 100644 index eebc0e700cf..00000000000 --- a/service/alexaforbusiness/api_op_PutSkillAuthorization.go +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Links a user's account to a third-party skill provider. If this API operation -// is called by an assumed IAM role, the skill being linked must be a private -// skill. Also, the skill must be owned by the AWS account that assumed the IAM -// role. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) PutSkillAuthorization(ctx context.Context, params *PutSkillAuthorizationInput, optFns ...func(*Options)) (*PutSkillAuthorizationOutput, error) { - if params == nil { - params = &PutSkillAuthorizationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "PutSkillAuthorization", params, optFns, c.addOperationPutSkillAuthorizationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*PutSkillAuthorizationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type PutSkillAuthorizationInput struct { - - // The authorization result specific to OAUTH code grant output. "Code” must be - // populated in the AuthorizationResult map to establish the authorization. - // - // This member is required. - AuthorizationResult map[string]string - - // The unique identifier of a skill. - // - // This member is required. - SkillId *string - - // The room that the skill is authorized for. - RoomArn *string - - noSmithyDocumentSerde -} - -type PutSkillAuthorizationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationPutSkillAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutSkillAuthorization{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutSkillAuthorization{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "PutSkillAuthorization"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpPutSkillAuthorizationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutSkillAuthorization(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opPutSkillAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "PutSkillAuthorization", - } -} diff --git a/service/alexaforbusiness/api_op_RegisterAVSDevice.go b/service/alexaforbusiness/api_op_RegisterAVSDevice.go deleted file mode 100644 index 3f3f49dfda7..00000000000 --- a/service/alexaforbusiness/api_op_RegisterAVSDevice.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Registers an Alexa-enabled device built by an Original Equipment Manufacturer -// (OEM) using Alexa Voice Service (AVS). -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) RegisterAVSDevice(ctx context.Context, params *RegisterAVSDeviceInput, optFns ...func(*Options)) (*RegisterAVSDeviceOutput, error) { - if params == nil { - params = &RegisterAVSDeviceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "RegisterAVSDevice", params, optFns, c.addOperationRegisterAVSDeviceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*RegisterAVSDeviceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type RegisterAVSDeviceInput struct { - - // The device type ID for your AVS device generated by Amazon when the OEM creates - // a new product on Amazon's Developer Console. - // - // This member is required. - AmazonId *string - - // The client ID of the OEM used for code-based linking authorization on an AVS - // device. - // - // This member is required. - ClientId *string - - // The product ID used to identify your AVS device during authorization. - // - // This member is required. - ProductId *string - - // The code that is obtained after your AVS device has made a POST request to LWA - // as a part of the Device Authorization Request component of the OAuth code-based - // linking specification. - // - // This member is required. - UserCode *string - - // The key generated by the OEM that uniquely identifies a specified instance of - // your AVS device. - DeviceSerialNumber *string - - // The Amazon Resource Name (ARN) of the room with which to associate your AVS - // device. - RoomArn *string - - // The tags to be added to the specified resource. Do not provide system tags. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type RegisterAVSDeviceOutput struct { - - // The ARN of the device. - DeviceArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationRegisterAVSDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterAVSDevice{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterAVSDevice{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "RegisterAVSDevice"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpRegisterAVSDeviceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterAVSDevice(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opRegisterAVSDevice(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "RegisterAVSDevice", - } -} diff --git a/service/alexaforbusiness/api_op_RejectSkill.go b/service/alexaforbusiness/api_op_RejectSkill.go deleted file mode 100644 index 889c860687e..00000000000 --- a/service/alexaforbusiness/api_op_RejectSkill.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates a skill from the organization under a user's AWS account. If the -// skill is a private skill, it moves to an AcceptStatus of PENDING. Any private or -// public skill that is rejected can be added later by calling the ApproveSkill -// API. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) RejectSkill(ctx context.Context, params *RejectSkillInput, optFns ...func(*Options)) (*RejectSkillOutput, error) { - if params == nil { - params = &RejectSkillInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "RejectSkill", params, optFns, c.addOperationRejectSkillMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*RejectSkillOutput) - out.ResultMetadata = metadata - return out, nil -} - -type RejectSkillInput struct { - - // The unique identifier of the skill. - // - // This member is required. - SkillId *string - - noSmithyDocumentSerde -} - -type RejectSkillOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationRejectSkillMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRejectSkill{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRejectSkill{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "RejectSkill"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpRejectSkillValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectSkill(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opRejectSkill(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "RejectSkill", - } -} diff --git a/service/alexaforbusiness/api_op_ResolveRoom.go b/service/alexaforbusiness/api_op_ResolveRoom.go deleted file mode 100644 index 8570cfd3025..00000000000 --- a/service/alexaforbusiness/api_op_ResolveRoom.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Determines the details for the room from which a skill request was invoked. -// This operation is used by skill developers. To query ResolveRoom from an Alexa -// skill, the skill ID needs to be authorized. When the skill is using an AWS -// Lambda function, the skill is automatically authorized when you publish your -// skill as a private skill to your AWS account. Skills that are hosted using a -// custom web service must be manually authorized. To get your skill authorized, -// contact AWS Support with your AWS account ID that queries the ResolveRoom API -// and skill ID. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) ResolveRoom(ctx context.Context, params *ResolveRoomInput, optFns ...func(*Options)) (*ResolveRoomOutput, error) { - if params == nil { - params = &ResolveRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ResolveRoom", params, optFns, c.addOperationResolveRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ResolveRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ResolveRoomInput struct { - - // The ARN of the skill that was requested. Required. - // - // This member is required. - SkillId *string - - // The ARN of the user. Required. - // - // This member is required. - UserId *string - - noSmithyDocumentSerde -} - -type ResolveRoomOutput struct { - - // The ARN of the room from which the skill request was invoked. - RoomArn *string - - // The name of the room from which the skill request was invoked. - RoomName *string - - // Response to get the room profile request. Required. - RoomSkillParameters []types.RoomSkillParameter - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationResolveRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpResolveRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpResolveRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ResolveRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpResolveRoomValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResolveRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opResolveRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ResolveRoom", - } -} diff --git a/service/alexaforbusiness/api_op_RevokeInvitation.go b/service/alexaforbusiness/api_op_RevokeInvitation.go deleted file mode 100644 index 56b605d96e0..00000000000 --- a/service/alexaforbusiness/api_op_RevokeInvitation.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Revokes an invitation and invalidates the enrollment URL. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) RevokeInvitation(ctx context.Context, params *RevokeInvitationInput, optFns ...func(*Options)) (*RevokeInvitationOutput, error) { - if params == nil { - params = &RevokeInvitationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "RevokeInvitation", params, optFns, c.addOperationRevokeInvitationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*RevokeInvitationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type RevokeInvitationInput struct { - - // The ARN of the enrollment invitation to revoke. Required. - EnrollmentId *string - - // The ARN of the user for whom to revoke an enrollment invitation. Required. - UserArn *string - - noSmithyDocumentSerde -} - -type RevokeInvitationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationRevokeInvitationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRevokeInvitation{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRevokeInvitation{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeInvitation"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeInvitation(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opRevokeInvitation(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "RevokeInvitation", - } -} diff --git a/service/alexaforbusiness/api_op_SearchAddressBooks.go b/service/alexaforbusiness/api_op_SearchAddressBooks.go deleted file mode 100644 index edac1020b42..00000000000 --- a/service/alexaforbusiness/api_op_SearchAddressBooks.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches address books and lists the ones that meet a set of filter and sort -// criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchAddressBooks(ctx context.Context, params *SearchAddressBooksInput, optFns ...func(*Options)) (*SearchAddressBooksOutput, error) { - if params == nil { - params = &SearchAddressBooksInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchAddressBooks", params, optFns, c.addOperationSearchAddressBooksMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchAddressBooksOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchAddressBooksInput struct { - - // The filters to use to list a specified set of address books. The supported - // filter key is AddressBookName. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response only - // includes results beyond the token, up to the value specified by MaxResults. - NextToken *string - - // The sort order to use in listing the specified set of address books. The - // supported sort key is AddressBookName. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchAddressBooksOutput struct { - - // The address books that meet the specified set of filter criteria, in sort order. - AddressBooks []types.AddressBookData - - // The token returned to indicate that there is more data available. - NextToken *string - - // The total number of address books returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchAddressBooksMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchAddressBooks{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchAddressBooks{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchAddressBooks"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchAddressBooksValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchAddressBooks(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchAddressBooksAPIClient is a client that implements the SearchAddressBooks -// operation. -type SearchAddressBooksAPIClient interface { - SearchAddressBooks(context.Context, *SearchAddressBooksInput, ...func(*Options)) (*SearchAddressBooksOutput, error) -} - -var _ SearchAddressBooksAPIClient = (*Client)(nil) - -// SearchAddressBooksPaginatorOptions is the paginator options for -// SearchAddressBooks -type SearchAddressBooksPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchAddressBooksPaginator is a paginator for SearchAddressBooks -type SearchAddressBooksPaginator struct { - options SearchAddressBooksPaginatorOptions - client SearchAddressBooksAPIClient - params *SearchAddressBooksInput - nextToken *string - firstPage bool -} - -// NewSearchAddressBooksPaginator returns a new SearchAddressBooksPaginator -func NewSearchAddressBooksPaginator(client SearchAddressBooksAPIClient, params *SearchAddressBooksInput, optFns ...func(*SearchAddressBooksPaginatorOptions)) *SearchAddressBooksPaginator { - if params == nil { - params = &SearchAddressBooksInput{} - } - - options := SearchAddressBooksPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchAddressBooksPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchAddressBooksPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchAddressBooks page. -func (p *SearchAddressBooksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchAddressBooksOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchAddressBooks(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchAddressBooks(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchAddressBooks", - } -} diff --git a/service/alexaforbusiness/api_op_SearchContacts.go b/service/alexaforbusiness/api_op_SearchContacts.go deleted file mode 100644 index 788a17ebf60..00000000000 --- a/service/alexaforbusiness/api_op_SearchContacts.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches contacts and lists the ones that meet a set of filter and sort -// criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchContacts(ctx context.Context, params *SearchContactsInput, optFns ...func(*Options)) (*SearchContactsOutput, error) { - if params == nil { - params = &SearchContactsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchContacts", params, optFns, c.addOperationSearchContactsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchContactsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchContactsInput struct { - - // The filters to use to list a specified set of address books. The supported - // filter keys are DisplayName, FirstName, LastName, and AddressBookArns. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response only - // includes results beyond the token, up to the value specified by MaxResults. - NextToken *string - - // The sort order to use in listing the specified set of contacts. The supported - // sort keys are DisplayName, FirstName, and LastName. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchContactsOutput struct { - - // The contacts that meet the specified set of filter criteria, in sort order. - Contacts []types.ContactData - - // The token returned to indicate that there is more data available. - NextToken *string - - // The total number of contacts returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchContactsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchContacts{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchContacts{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchContacts"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchContactsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchContacts(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchContactsAPIClient is a client that implements the SearchContacts -// operation. -type SearchContactsAPIClient interface { - SearchContacts(context.Context, *SearchContactsInput, ...func(*Options)) (*SearchContactsOutput, error) -} - -var _ SearchContactsAPIClient = (*Client)(nil) - -// SearchContactsPaginatorOptions is the paginator options for SearchContacts -type SearchContactsPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchContactsPaginator is a paginator for SearchContacts -type SearchContactsPaginator struct { - options SearchContactsPaginatorOptions - client SearchContactsAPIClient - params *SearchContactsInput - nextToken *string - firstPage bool -} - -// NewSearchContactsPaginator returns a new SearchContactsPaginator -func NewSearchContactsPaginator(client SearchContactsAPIClient, params *SearchContactsInput, optFns ...func(*SearchContactsPaginatorOptions)) *SearchContactsPaginator { - if params == nil { - params = &SearchContactsInput{} - } - - options := SearchContactsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchContactsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchContactsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchContacts page. -func (p *SearchContactsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchContactsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchContacts(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchContacts(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchContacts", - } -} diff --git a/service/alexaforbusiness/api_op_SearchDevices.go b/service/alexaforbusiness/api_op_SearchDevices.go deleted file mode 100644 index c78a0574c11..00000000000 --- a/service/alexaforbusiness/api_op_SearchDevices.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches devices and lists the ones that meet a set of filter criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchDevices(ctx context.Context, params *SearchDevicesInput, optFns ...func(*Options)) (*SearchDevicesOutput, error) { - if params == nil { - params = &SearchDevicesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchDevices", params, optFns, c.addOperationSearchDevicesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchDevicesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchDevicesInput struct { - - // The filters to use to list a specified set of devices. Supported filter keys - // are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, - // DeviceSerialNumber, UnassociatedOnly, ConnectionStatus (ONLINE and OFFLINE), - // NetworkProfileName, NetworkProfileArn, Feature, and FailureCode. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults . - NextToken *string - - // The sort order to use in listing the specified set of devices. Supported sort - // keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, - // ConnectionStatus, NetworkProfileName, NetworkProfileArn, Feature, and - // FailureCode. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchDevicesOutput struct { - - // The devices that meet the specified set of filter criteria, in sort order. - Devices []types.DeviceData - - // The token returned to indicate that there is more data available. - NextToken *string - - // The total number of devices returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchDevicesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchDevices{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchDevices{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchDevices"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchDevicesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchDevices(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchDevicesAPIClient is a client that implements the SearchDevices operation. -type SearchDevicesAPIClient interface { - SearchDevices(context.Context, *SearchDevicesInput, ...func(*Options)) (*SearchDevicesOutput, error) -} - -var _ SearchDevicesAPIClient = (*Client)(nil) - -// SearchDevicesPaginatorOptions is the paginator options for SearchDevices -type SearchDevicesPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchDevicesPaginator is a paginator for SearchDevices -type SearchDevicesPaginator struct { - options SearchDevicesPaginatorOptions - client SearchDevicesAPIClient - params *SearchDevicesInput - nextToken *string - firstPage bool -} - -// NewSearchDevicesPaginator returns a new SearchDevicesPaginator -func NewSearchDevicesPaginator(client SearchDevicesAPIClient, params *SearchDevicesInput, optFns ...func(*SearchDevicesPaginatorOptions)) *SearchDevicesPaginator { - if params == nil { - params = &SearchDevicesInput{} - } - - options := SearchDevicesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchDevicesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchDevicesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchDevices page. -func (p *SearchDevicesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchDevicesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchDevices(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchDevices(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchDevices", - } -} diff --git a/service/alexaforbusiness/api_op_SearchNetworkProfiles.go b/service/alexaforbusiness/api_op_SearchNetworkProfiles.go deleted file mode 100644 index 220a7a66d6e..00000000000 --- a/service/alexaforbusiness/api_op_SearchNetworkProfiles.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches network profiles and lists the ones that meet a set of filter and sort -// criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchNetworkProfiles(ctx context.Context, params *SearchNetworkProfilesInput, optFns ...func(*Options)) (*SearchNetworkProfilesOutput, error) { - if params == nil { - params = &SearchNetworkProfilesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchNetworkProfiles", params, optFns, c.addOperationSearchNetworkProfilesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchNetworkProfilesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchNetworkProfilesInput struct { - - // The filters to use to list a specified set of network profiles. Valid filters - // are NetworkProfileName, Ssid, and SecurityType. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults. - NextToken *string - - // The sort order to use to list the specified set of network profiles. Valid sort - // criteria includes NetworkProfileName, Ssid, and SecurityType. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchNetworkProfilesOutput struct { - - // The network profiles that meet the specified set of filter criteria, in sort - // order. It is a list of NetworkProfileData objects. - NetworkProfiles []types.NetworkProfileData - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults. - NextToken *string - - // The total number of network profiles returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchNetworkProfilesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchNetworkProfiles{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchNetworkProfiles{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchNetworkProfiles"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchNetworkProfilesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchNetworkProfiles(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchNetworkProfilesAPIClient is a client that implements the -// SearchNetworkProfiles operation. -type SearchNetworkProfilesAPIClient interface { - SearchNetworkProfiles(context.Context, *SearchNetworkProfilesInput, ...func(*Options)) (*SearchNetworkProfilesOutput, error) -} - -var _ SearchNetworkProfilesAPIClient = (*Client)(nil) - -// SearchNetworkProfilesPaginatorOptions is the paginator options for -// SearchNetworkProfiles -type SearchNetworkProfilesPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so that - // the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchNetworkProfilesPaginator is a paginator for SearchNetworkProfiles -type SearchNetworkProfilesPaginator struct { - options SearchNetworkProfilesPaginatorOptions - client SearchNetworkProfilesAPIClient - params *SearchNetworkProfilesInput - nextToken *string - firstPage bool -} - -// NewSearchNetworkProfilesPaginator returns a new SearchNetworkProfilesPaginator -func NewSearchNetworkProfilesPaginator(client SearchNetworkProfilesAPIClient, params *SearchNetworkProfilesInput, optFns ...func(*SearchNetworkProfilesPaginatorOptions)) *SearchNetworkProfilesPaginator { - if params == nil { - params = &SearchNetworkProfilesInput{} - } - - options := SearchNetworkProfilesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchNetworkProfilesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchNetworkProfilesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchNetworkProfiles page. -func (p *SearchNetworkProfilesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchNetworkProfilesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchNetworkProfiles(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchNetworkProfiles(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchNetworkProfiles", - } -} diff --git a/service/alexaforbusiness/api_op_SearchProfiles.go b/service/alexaforbusiness/api_op_SearchProfiles.go deleted file mode 100644 index 203c6b25c89..00000000000 --- a/service/alexaforbusiness/api_op_SearchProfiles.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches room profiles and lists the ones that meet a set of filter criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchProfiles(ctx context.Context, params *SearchProfilesInput, optFns ...func(*Options)) (*SearchProfilesOutput, error) { - if params == nil { - params = &SearchProfilesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchProfiles", params, optFns, c.addOperationSearchProfilesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchProfilesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchProfilesInput struct { - - // The filters to use to list a specified set of room profiles. Supported filter - // keys are ProfileName and Address. Required. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults . - NextToken *string - - // The sort order to use in listing the specified set of room profiles. Supported - // sort keys are ProfileName and Address. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchProfilesOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The profiles that meet the specified set of filter criteria, in sort order. - Profiles []types.ProfileData - - // The total number of room profiles returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchProfilesMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchProfiles{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchProfiles{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchProfiles"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchProfilesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchProfiles(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchProfilesAPIClient is a client that implements the SearchProfiles -// operation. -type SearchProfilesAPIClient interface { - SearchProfiles(context.Context, *SearchProfilesInput, ...func(*Options)) (*SearchProfilesOutput, error) -} - -var _ SearchProfilesAPIClient = (*Client)(nil) - -// SearchProfilesPaginatorOptions is the paginator options for SearchProfiles -type SearchProfilesPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchProfilesPaginator is a paginator for SearchProfiles -type SearchProfilesPaginator struct { - options SearchProfilesPaginatorOptions - client SearchProfilesAPIClient - params *SearchProfilesInput - nextToken *string - firstPage bool -} - -// NewSearchProfilesPaginator returns a new SearchProfilesPaginator -func NewSearchProfilesPaginator(client SearchProfilesAPIClient, params *SearchProfilesInput, optFns ...func(*SearchProfilesPaginatorOptions)) *SearchProfilesPaginator { - if params == nil { - params = &SearchProfilesInput{} - } - - options := SearchProfilesPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchProfilesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchProfilesPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchProfiles page. -func (p *SearchProfilesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchProfilesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchProfiles(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchProfiles(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchProfiles", - } -} diff --git a/service/alexaforbusiness/api_op_SearchRooms.go b/service/alexaforbusiness/api_op_SearchRooms.go deleted file mode 100644 index ecb953d75ca..00000000000 --- a/service/alexaforbusiness/api_op_SearchRooms.go +++ /dev/null @@ -1,248 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches rooms and lists the ones that meet a set of filter and sort criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchRooms(ctx context.Context, params *SearchRoomsInput, optFns ...func(*Options)) (*SearchRoomsOutput, error) { - if params == nil { - params = &SearchRoomsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchRooms", params, optFns, c.addOperationSearchRoomsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchRoomsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchRoomsInput struct { - - // The filters to use to list a specified set of rooms. The supported filter keys - // are RoomName and ProfileName. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults . - NextToken *string - - // The sort order to use in listing the specified set of rooms. The supported sort - // keys are RoomName and ProfileName. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchRoomsOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The rooms that meet the specified set of filter criteria, in sort order. - Rooms []types.RoomData - - // The total number of rooms returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchRoomsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchRooms{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchRooms{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchRooms"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchRoomsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchRooms(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchRoomsAPIClient is a client that implements the SearchRooms operation. -type SearchRoomsAPIClient interface { - SearchRooms(context.Context, *SearchRoomsInput, ...func(*Options)) (*SearchRoomsOutput, error) -} - -var _ SearchRoomsAPIClient = (*Client)(nil) - -// SearchRoomsPaginatorOptions is the paginator options for SearchRooms -type SearchRoomsPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchRoomsPaginator is a paginator for SearchRooms -type SearchRoomsPaginator struct { - options SearchRoomsPaginatorOptions - client SearchRoomsAPIClient - params *SearchRoomsInput - nextToken *string - firstPage bool -} - -// NewSearchRoomsPaginator returns a new SearchRoomsPaginator -func NewSearchRoomsPaginator(client SearchRoomsAPIClient, params *SearchRoomsInput, optFns ...func(*SearchRoomsPaginatorOptions)) *SearchRoomsPaginator { - if params == nil { - params = &SearchRoomsInput{} - } - - options := SearchRoomsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchRoomsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchRoomsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchRooms page. -func (p *SearchRoomsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchRoomsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchRooms(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchRooms(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchRooms", - } -} diff --git a/service/alexaforbusiness/api_op_SearchSkillGroups.go b/service/alexaforbusiness/api_op_SearchSkillGroups.go deleted file mode 100644 index 56751773dca..00000000000 --- a/service/alexaforbusiness/api_op_SearchSkillGroups.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches skill groups and lists the ones that meet a set of filter and sort -// criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchSkillGroups(ctx context.Context, params *SearchSkillGroupsInput, optFns ...func(*Options)) (*SearchSkillGroupsOutput, error) { - if params == nil { - params = &SearchSkillGroupsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchSkillGroups", params, optFns, c.addOperationSearchSkillGroupsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchSkillGroupsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchSkillGroupsInput struct { - - // The filters to use to list a specified set of skill groups. The supported - // filter key is SkillGroupName. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults - // . Required. - NextToken *string - - // The sort order to use in listing the specified set of skill groups. The - // supported sort key is SkillGroupName. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchSkillGroupsOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The skill groups that meet the filter criteria, in sort order. - SkillGroups []types.SkillGroupData - - // The total number of skill groups returned. - TotalCount *int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchSkillGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchSkillGroups{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchSkillGroups{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchSkillGroups"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchSkillGroupsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchSkillGroups(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchSkillGroupsAPIClient is a client that implements the SearchSkillGroups -// operation. -type SearchSkillGroupsAPIClient interface { - SearchSkillGroups(context.Context, *SearchSkillGroupsInput, ...func(*Options)) (*SearchSkillGroupsOutput, error) -} - -var _ SearchSkillGroupsAPIClient = (*Client)(nil) - -// SearchSkillGroupsPaginatorOptions is the paginator options for SearchSkillGroups -type SearchSkillGroupsPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchSkillGroupsPaginator is a paginator for SearchSkillGroups -type SearchSkillGroupsPaginator struct { - options SearchSkillGroupsPaginatorOptions - client SearchSkillGroupsAPIClient - params *SearchSkillGroupsInput - nextToken *string - firstPage bool -} - -// NewSearchSkillGroupsPaginator returns a new SearchSkillGroupsPaginator -func NewSearchSkillGroupsPaginator(client SearchSkillGroupsAPIClient, params *SearchSkillGroupsInput, optFns ...func(*SearchSkillGroupsPaginatorOptions)) *SearchSkillGroupsPaginator { - if params == nil { - params = &SearchSkillGroupsInput{} - } - - options := SearchSkillGroupsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchSkillGroupsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchSkillGroupsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchSkillGroups page. -func (p *SearchSkillGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchSkillGroupsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchSkillGroups(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchSkillGroups(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchSkillGroups", - } -} diff --git a/service/alexaforbusiness/api_op_SearchUsers.go b/service/alexaforbusiness/api_op_SearchUsers.go deleted file mode 100644 index ed1dc9420c9..00000000000 --- a/service/alexaforbusiness/api_op_SearchUsers.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Searches users and lists the ones that meet a set of filter and sort criteria. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SearchUsers(ctx context.Context, params *SearchUsersInput, optFns ...func(*Options)) (*SearchUsersOutput, error) { - if params == nil { - params = &SearchUsersInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SearchUsers", params, optFns, c.addOperationSearchUsersMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SearchUsersOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SearchUsersInput struct { - - // The filters to use for listing a specific set of users. Required. Supported - // filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus. - Filters []types.Filter - - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. Required. - MaxResults *int32 - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults - // . Required. - NextToken *string - - // The sort order to use in listing the filtered set of users. Required. Supported - // sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus. - SortCriteria []types.Sort - - noSmithyDocumentSerde -} - -type SearchUsersOutput struct { - - // The token returned to indicate that there is more data available. - NextToken *string - - // The total number of users returned. - TotalCount *int32 - - // The users that meet the specified set of filter criteria, in sort order. - Users []types.UserData - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSearchUsersMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchUsers{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchUsers{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SearchUsers"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpSearchUsersValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchUsers(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// SearchUsersAPIClient is a client that implements the SearchUsers operation. -type SearchUsersAPIClient interface { - SearchUsers(context.Context, *SearchUsersInput, ...func(*Options)) (*SearchUsersOutput, error) -} - -var _ SearchUsersAPIClient = (*Client)(nil) - -// SearchUsersPaginatorOptions is the paginator options for SearchUsers -type SearchUsersPaginatorOptions struct { - // The maximum number of results to include in the response. If more results exist - // than the specified MaxResults value, a token is included in the response so - // that the remaining results can be retrieved. Required. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// SearchUsersPaginator is a paginator for SearchUsers -type SearchUsersPaginator struct { - options SearchUsersPaginatorOptions - client SearchUsersAPIClient - params *SearchUsersInput - nextToken *string - firstPage bool -} - -// NewSearchUsersPaginator returns a new SearchUsersPaginator -func NewSearchUsersPaginator(client SearchUsersAPIClient, params *SearchUsersInput, optFns ...func(*SearchUsersPaginatorOptions)) *SearchUsersPaginator { - if params == nil { - params = &SearchUsersInput{} - } - - options := SearchUsersPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &SearchUsersPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *SearchUsersPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next SearchUsers page. -func (p *SearchUsersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchUsersOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.SearchUsers(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && - prevToken != nil && - p.nextToken != nil && - *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opSearchUsers(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SearchUsers", - } -} diff --git a/service/alexaforbusiness/api_op_SendAnnouncement.go b/service/alexaforbusiness/api_op_SendAnnouncement.go deleted file mode 100644 index 614656ba375..00000000000 --- a/service/alexaforbusiness/api_op_SendAnnouncement.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Triggers an asynchronous flow to send text, SSML, or audio announcements to -// rooms that are identified by a search or filter. -func (c *Client) SendAnnouncement(ctx context.Context, params *SendAnnouncementInput, optFns ...func(*Options)) (*SendAnnouncementOutput, error) { - if params == nil { - params = &SendAnnouncementInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SendAnnouncement", params, optFns, c.addOperationSendAnnouncementMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SendAnnouncementOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SendAnnouncementInput struct { - - // The unique, user-specified identifier for the request that ensures idempotency. - // - // This member is required. - ClientRequestToken *string - - // The announcement content. This can contain only one of the three possible - // announcement types (text, SSML or audio). - // - // This member is required. - Content *types.Content - - // The filters to use to send an announcement to a specified list of rooms. The - // supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To - // send to all rooms, specify an empty RoomFilters list. - // - // This member is required. - RoomFilters []types.Filter - - // The time to live for an announcement. Default is 300. If delivery doesn't occur - // within this time, the announcement is not delivered. - TimeToLiveInSeconds *int32 - - noSmithyDocumentSerde -} - -type SendAnnouncementOutput struct { - - // The identifier of the announcement. - AnnouncementArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSendAnnouncementMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendAnnouncement{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendAnnouncement{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SendAnnouncement"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opSendAnnouncementMiddleware(stack, options); err != nil { - return err - } - if err = addOpSendAnnouncementValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendAnnouncement(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpSendAnnouncement struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpSendAnnouncement) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpSendAnnouncement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*SendAnnouncementInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *SendAnnouncementInput ") - } - - if input.ClientRequestToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientRequestToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opSendAnnouncementMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpSendAnnouncement{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opSendAnnouncement(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SendAnnouncement", - } -} diff --git a/service/alexaforbusiness/api_op_SendInvitation.go b/service/alexaforbusiness/api_op_SendInvitation.go deleted file mode 100644 index 5530475d307..00000000000 --- a/service/alexaforbusiness/api_op_SendInvitation.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Sends an enrollment invitation email with a URL to a user. The URL is valid for -// 30 days or until you call this operation again, whichever comes first. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) SendInvitation(ctx context.Context, params *SendInvitationInput, optFns ...func(*Options)) (*SendInvitationOutput, error) { - if params == nil { - params = &SendInvitationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "SendInvitation", params, optFns, c.addOperationSendInvitationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*SendInvitationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type SendInvitationInput struct { - - // The ARN of the user to whom to send an invitation. Required. - UserArn *string - - noSmithyDocumentSerde -} - -type SendInvitationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationSendInvitationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendInvitation{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendInvitation{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "SendInvitation"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendInvitation(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opSendInvitation(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "SendInvitation", - } -} diff --git a/service/alexaforbusiness/api_op_StartDeviceSync.go b/service/alexaforbusiness/api_op_StartDeviceSync.go deleted file mode 100644 index 7d22cf8507a..00000000000 --- a/service/alexaforbusiness/api_op_StartDeviceSync.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Resets a device and its account to the known default settings. This clears all -// information and settings set by previous users in the following ways: -// - Bluetooth - This unpairs all bluetooth devices paired with your echo -// device. -// - Volume - This resets the echo device's volume to the default value. -// - Notifications - This clears all notifications from your echo device. -// - Lists - This clears all to-do items from your echo device. -// - Settings - This internally syncs the room's profile (if the device is -// assigned to a room), contacts, address books, delegation access for account -// linking, and communications (if enabled on the room profile). -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) StartDeviceSync(ctx context.Context, params *StartDeviceSyncInput, optFns ...func(*Options)) (*StartDeviceSyncOutput, error) { - if params == nil { - params = &StartDeviceSyncInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "StartDeviceSync", params, optFns, c.addOperationStartDeviceSyncMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*StartDeviceSyncOutput) - out.ResultMetadata = metadata - return out, nil -} - -type StartDeviceSyncInput struct { - - // Request structure to start the device sync. Required. - // - // This member is required. - Features []types.Feature - - // The ARN of the device to sync. Required. - DeviceArn *string - - // The ARN of the room with which the device to sync is associated. Required. - RoomArn *string - - noSmithyDocumentSerde -} - -type StartDeviceSyncOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationStartDeviceSyncMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartDeviceSync{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartDeviceSync{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "StartDeviceSync"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpStartDeviceSyncValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartDeviceSync(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opStartDeviceSync(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "StartDeviceSync", - } -} diff --git a/service/alexaforbusiness/api_op_StartSmartHomeApplianceDiscovery.go b/service/alexaforbusiness/api_op_StartSmartHomeApplianceDiscovery.go deleted file mode 100644 index ce1a9c5a64b..00000000000 --- a/service/alexaforbusiness/api_op_StartSmartHomeApplianceDiscovery.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Initiates the discovery of any smart home appliances associated with the room. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) StartSmartHomeApplianceDiscovery(ctx context.Context, params *StartSmartHomeApplianceDiscoveryInput, optFns ...func(*Options)) (*StartSmartHomeApplianceDiscoveryOutput, error) { - if params == nil { - params = &StartSmartHomeApplianceDiscoveryInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "StartSmartHomeApplianceDiscovery", params, optFns, c.addOperationStartSmartHomeApplianceDiscoveryMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*StartSmartHomeApplianceDiscoveryOutput) - out.ResultMetadata = metadata - return out, nil -} - -type StartSmartHomeApplianceDiscoveryInput struct { - - // The room where smart home appliance discovery was initiated. - // - // This member is required. - RoomArn *string - - noSmithyDocumentSerde -} - -type StartSmartHomeApplianceDiscoveryOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationStartSmartHomeApplianceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartSmartHomeApplianceDiscovery{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartSmartHomeApplianceDiscovery{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "StartSmartHomeApplianceDiscovery"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpStartSmartHomeApplianceDiscoveryValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartSmartHomeApplianceDiscovery(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opStartSmartHomeApplianceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "StartSmartHomeApplianceDiscovery", - } -} diff --git a/service/alexaforbusiness/api_op_TagResource.go b/service/alexaforbusiness/api_op_TagResource.go deleted file mode 100644 index 80680a9e3a7..00000000000 --- a/service/alexaforbusiness/api_op_TagResource.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Adds metadata tags to a specified resource. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { - if params == nil { - params = &TagResourceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*TagResourceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type TagResourceInput struct { - - // The ARN of the resource to which to add metadata tags. Required. - // - // This member is required. - Arn *string - - // The tags to be added to the specified resource. Do not provide system tags. - // Required. - // - // This member is required. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type TagResourceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpTagResource{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpTagResource{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "TagResource"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpTagResourceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "TagResource", - } -} diff --git a/service/alexaforbusiness/api_op_UntagResource.go b/service/alexaforbusiness/api_op_UntagResource.go deleted file mode 100644 index 68ca255c1b4..00000000000 --- a/service/alexaforbusiness/api_op_UntagResource.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Removes metadata tags from a specified resource. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { - if params == nil { - params = &UntagResourceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UntagResourceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UntagResourceInput struct { - - // The ARN of the resource from which to remove metadata tags. Required. - // - // This member is required. - Arn *string - - // The tags to be removed from the specified resource. Do not provide system tags. - // Required. - // - // This member is required. - TagKeys []string - - noSmithyDocumentSerde -} - -type UntagResourceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUntagResource{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUntagResource{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UntagResource"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUntagResourceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UntagResource", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateAddressBook.go b/service/alexaforbusiness/api_op_UpdateAddressBook.go deleted file mode 100644 index 0c41db338a3..00000000000 --- a/service/alexaforbusiness/api_op_UpdateAddressBook.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates address book details by the address book ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateAddressBook(ctx context.Context, params *UpdateAddressBookInput, optFns ...func(*Options)) (*UpdateAddressBookOutput, error) { - if params == nil { - params = &UpdateAddressBookInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateAddressBook", params, optFns, c.addOperationUpdateAddressBookMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateAddressBookOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateAddressBookInput struct { - - // The ARN of the room to update. - // - // This member is required. - AddressBookArn *string - - // The updated description of the room. - Description *string - - // The updated name of the room. - Name *string - - noSmithyDocumentSerde -} - -type UpdateAddressBookOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateAddressBookMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateAddressBook{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateAddressBook{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateAddressBook"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateAddressBookValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAddressBook(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateAddressBook(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateAddressBook", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateBusinessReportSchedule.go b/service/alexaforbusiness/api_op_UpdateBusinessReportSchedule.go deleted file mode 100644 index 95de56106a1..00000000000 --- a/service/alexaforbusiness/api_op_UpdateBusinessReportSchedule.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the configuration of the report delivery schedule with the specified -// schedule ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateBusinessReportSchedule(ctx context.Context, params *UpdateBusinessReportScheduleInput, optFns ...func(*Options)) (*UpdateBusinessReportScheduleOutput, error) { - if params == nil { - params = &UpdateBusinessReportScheduleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateBusinessReportSchedule", params, optFns, c.addOperationUpdateBusinessReportScheduleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateBusinessReportScheduleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateBusinessReportScheduleInput struct { - - // The ARN of the business report schedule. - // - // This member is required. - ScheduleArn *string - - // The format of the generated report (individual CSV files or zipped files of - // individual files). - Format types.BusinessReportFormat - - // The recurrence of the reports. - Recurrence *types.BusinessReportRecurrence - - // The S3 location of the output reports. - S3BucketName *string - - // The S3 key where the report is delivered. - S3KeyPrefix *string - - // The name identifier of the schedule. - ScheduleName *string - - noSmithyDocumentSerde -} - -type UpdateBusinessReportScheduleOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateBusinessReportScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateBusinessReportSchedule{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateBusinessReportSchedule"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateBusinessReportScheduleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateBusinessReportSchedule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateBusinessReportSchedule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateBusinessReportSchedule", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateConferenceProvider.go b/service/alexaforbusiness/api_op_UpdateConferenceProvider.go deleted file mode 100644 index f229483dd0b..00000000000 --- a/service/alexaforbusiness/api_op_UpdateConferenceProvider.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an existing conference provider's settings. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateConferenceProvider(ctx context.Context, params *UpdateConferenceProviderInput, optFns ...func(*Options)) (*UpdateConferenceProviderOutput, error) { - if params == nil { - params = &UpdateConferenceProviderInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateConferenceProvider", params, optFns, c.addOperationUpdateConferenceProviderMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateConferenceProviderOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateConferenceProviderInput struct { - - // The ARN of the conference provider. - // - // This member is required. - ConferenceProviderArn *string - - // The type of the conference provider. - // - // This member is required. - ConferenceProviderType types.ConferenceProviderType - - // The meeting settings for the conference provider. - // - // This member is required. - MeetingSetting *types.MeetingSetting - - // The IP endpoint and protocol for calling. - IPDialIn *types.IPDialIn - - // The information for PSTN conferencing. - PSTNDialIn *types.PSTNDialIn - - noSmithyDocumentSerde -} - -type UpdateConferenceProviderOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateConferenceProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateConferenceProvider{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateConferenceProvider{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateConferenceProvider"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateConferenceProviderValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConferenceProvider(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateConferenceProvider(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateConferenceProvider", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateContact.go b/service/alexaforbusiness/api_op_UpdateContact.go deleted file mode 100644 index e693f3ccd91..00000000000 --- a/service/alexaforbusiness/api_op_UpdateContact.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the contact details by the contact ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateContact(ctx context.Context, params *UpdateContactInput, optFns ...func(*Options)) (*UpdateContactOutput, error) { - if params == nil { - params = &UpdateContactInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateContact", params, optFns, c.addOperationUpdateContactMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateContactOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateContactInput struct { - - // The ARN of the contact to update. - // - // This member is required. - ContactArn *string - - // The updated display name of the contact. - DisplayName *string - - // The updated first name of the contact. - FirstName *string - - // The updated last name of the contact. - LastName *string - - // The updated phone number of the contact. The phone number type defaults to - // WORK. You can either specify PhoneNumber or PhoneNumbers. We recommend that you - // use PhoneNumbers, which lets you specify the phone number type and multiple - // numbers. - PhoneNumber *string - - // The list of phone numbers for the contact. - PhoneNumbers []types.PhoneNumber - - // The list of SIP addresses for the contact. - SipAddresses []types.SipAddress - - noSmithyDocumentSerde -} - -type UpdateContactOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateContactMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateContact{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateContact{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateContact"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateContactValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateContact(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateContact(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateContact", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateDevice.go b/service/alexaforbusiness/api_op_UpdateDevice.go deleted file mode 100644 index 35b029557de..00000000000 --- a/service/alexaforbusiness/api_op_UpdateDevice.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the device name by device ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateDevice(ctx context.Context, params *UpdateDeviceInput, optFns ...func(*Options)) (*UpdateDeviceOutput, error) { - if params == nil { - params = &UpdateDeviceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateDevice", params, optFns, c.addOperationUpdateDeviceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateDeviceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateDeviceInput struct { - - // The ARN of the device to update. Required. - DeviceArn *string - - // The updated device name. Required. - DeviceName *string - - noSmithyDocumentSerde -} - -type UpdateDeviceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDevice{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDevice{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateDevice"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDevice(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateDevice(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateDevice", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateGateway.go b/service/alexaforbusiness/api_op_UpdateGateway.go deleted file mode 100644 index f2939ebcd83..00000000000 --- a/service/alexaforbusiness/api_op_UpdateGateway.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the details of a gateway. If any optional field is not provided, the -// existing corresponding value is left unmodified. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateGateway(ctx context.Context, params *UpdateGatewayInput, optFns ...func(*Options)) (*UpdateGatewayOutput, error) { - if params == nil { - params = &UpdateGatewayInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateGateway", params, optFns, c.addOperationUpdateGatewayMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateGatewayOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateGatewayInput struct { - - // The ARN of the gateway to update. - // - // This member is required. - GatewayArn *string - - // The updated description of the gateway. - Description *string - - // The updated name of the gateway. - Name *string - - // The updated software version of the gateway. The gateway automatically updates - // its software version during normal operation. - SoftwareVersion *string - - noSmithyDocumentSerde -} - -type UpdateGatewayOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateGateway{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateGateway{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateGateway"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateGatewayValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateGateway(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateGateway(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateGateway", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateGatewayGroup.go b/service/alexaforbusiness/api_op_UpdateGatewayGroup.go deleted file mode 100644 index 64a6df91121..00000000000 --- a/service/alexaforbusiness/api_op_UpdateGatewayGroup.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the details of a gateway group. If any optional field is not provided, -// the existing corresponding value is left unmodified. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateGatewayGroup(ctx context.Context, params *UpdateGatewayGroupInput, optFns ...func(*Options)) (*UpdateGatewayGroupOutput, error) { - if params == nil { - params = &UpdateGatewayGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateGatewayGroup", params, optFns, c.addOperationUpdateGatewayGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateGatewayGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateGatewayGroupInput struct { - - // The ARN of the gateway group to update. - // - // This member is required. - GatewayGroupArn *string - - // The updated description of the gateway group. - Description *string - - // The updated name of the gateway group. - Name *string - - noSmithyDocumentSerde -} - -type UpdateGatewayGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateGatewayGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateGatewayGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateGatewayGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateGatewayGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateGatewayGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateGatewayGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateGatewayGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateGatewayGroup", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateNetworkProfile.go b/service/alexaforbusiness/api_op_UpdateNetworkProfile.go deleted file mode 100644 index 97c6bb2898f..00000000000 --- a/service/alexaforbusiness/api_op_UpdateNetworkProfile.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates a network profile by the network profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateNetworkProfile(ctx context.Context, params *UpdateNetworkProfileInput, optFns ...func(*Options)) (*UpdateNetworkProfileOutput, error) { - if params == nil { - params = &UpdateNetworkProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateNetworkProfile", params, optFns, c.addOperationUpdateNetworkProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateNetworkProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateNetworkProfileInput struct { - - // The ARN of the network profile associated with a device. - // - // This member is required. - NetworkProfileArn *string - - // The ARN of the Private Certificate Authority (PCA) created in AWS Certificate - // Manager (ACM). This is used to issue certificates to the devices. - CertificateAuthorityArn *string - - // The current password of the Wi-Fi network. - CurrentPassword *string - - // Detailed information about a device's network profile. - Description *string - - // The name of the network profile associated with a device. - NetworkProfileName *string - - // The next, or subsequent, password of the Wi-Fi network. This password is - // asynchronously transmitted to the device and is used when the password of the - // network changes to NextPassword. - NextPassword *string - - // The root certificate(s) of your authentication server that will be installed on - // your devices and used to trust your authentication server during EAP - // negotiation. - TrustAnchors []string - - noSmithyDocumentSerde -} - -type UpdateNetworkProfileOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateNetworkProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateNetworkProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateNetworkProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateNetworkProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateNetworkProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateNetworkProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateNetworkProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateNetworkProfile", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateProfile.go b/service/alexaforbusiness/api_op_UpdateProfile.go deleted file mode 100644 index 3b9e5ce7254..00000000000 --- a/service/alexaforbusiness/api_op_UpdateProfile.go +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an existing room profile by room profile ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateProfile(ctx context.Context, params *UpdateProfileInput, optFns ...func(*Options)) (*UpdateProfileOutput, error) { - if params == nil { - params = &UpdateProfileInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateProfile", params, optFns, c.addOperationUpdateProfileMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateProfileOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateProfileInput struct { - - // The updated address for the room profile. - Address *string - - // Whether data retention of the profile is enabled. - DataRetentionOptIn *bool - - // The updated distance unit for the room profile. - DistanceUnit types.DistanceUnit - - // Sets the profile as default if selected. If this is missing, no update is done - // to the default status. - IsDefault *bool - - // The updated locale for the room profile. (This is currently only available to a - // limited preview audience.) - Locale *string - - // The updated maximum volume limit for the room profile. - MaxVolumeLimit *int32 - - // The updated meeting room settings of a room profile. - MeetingRoomConfiguration *types.UpdateMeetingRoomConfiguration - - // Whether the PSTN setting of the room profile is enabled. - PSTNEnabled *bool - - // The ARN of the room profile to update. Required. - ProfileArn *string - - // The updated name for the room profile. - ProfileName *string - - // Whether the setup mode of the profile is enabled. - SetupModeDisabled *bool - - // The updated temperature unit for the room profile. - TemperatureUnit types.TemperatureUnit - - // The updated timezone for the room profile. - Timezone *string - - // The updated wake word for the room profile. - WakeWord types.WakeWord - - noSmithyDocumentSerde -} - -type UpdateProfileOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProfile{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProfile{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateProfile"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateProfileValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProfile(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateProfile(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateProfile", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateRoom.go b/service/alexaforbusiness/api_op_UpdateRoom.go deleted file mode 100644 index d126d7a2cb5..00000000000 --- a/service/alexaforbusiness/api_op_UpdateRoom.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates room details by room ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateRoom(ctx context.Context, params *UpdateRoomInput, optFns ...func(*Options)) (*UpdateRoomOutput, error) { - if params == nil { - params = &UpdateRoomInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRoom", params, optFns, c.addOperationUpdateRoomMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRoomOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateRoomInput struct { - - // The updated description for the room. - Description *string - - // The updated profile ARN for the room. - ProfileArn *string - - // The updated provider calendar ARN for the room. - ProviderCalendarId *string - - // The ARN of the room to update. - RoomArn *string - - // The updated name for the room. - RoomName *string - - noSmithyDocumentSerde -} - -type UpdateRoomOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRoomMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateRoom{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateRoom{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateRoom"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoom(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRoom(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateRoom", - } -} diff --git a/service/alexaforbusiness/api_op_UpdateSkillGroup.go b/service/alexaforbusiness/api_op_UpdateSkillGroup.go deleted file mode 100644 index 69772b4a938..00000000000 --- a/service/alexaforbusiness/api_op_UpdateSkillGroup.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates skill group details by skill group ARN. -// -// Deprecated: Alexa For Business is no longer supported -func (c *Client) UpdateSkillGroup(ctx context.Context, params *UpdateSkillGroupInput, optFns ...func(*Options)) (*UpdateSkillGroupOutput, error) { - if params == nil { - params = &UpdateSkillGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateSkillGroup", params, optFns, c.addOperationUpdateSkillGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateSkillGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateSkillGroupInput struct { - - // The updated description for the skill group. - Description *string - - // The ARN of the skill group to update. - SkillGroupArn *string - - // The updated name for the skill group. - SkillGroupName *string - - noSmithyDocumentSerde -} - -type UpdateSkillGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateSkillGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSkillGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSkillGroup{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSkillGroup"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = addClientRequestID(stack); err != nil { - return err - } - if err = addComputeContentLength(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = addComputePayloadSHA256(stack); err != nil { - return err - } - if err = addRetry(stack, options); err != nil { - return err - } - if err = addRawResponseToMetadata(stack); err != nil { - return err - } - if err = addRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSkillGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRecursionDetection(stack); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateSkillGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateSkillGroup", - } -} diff --git a/service/alexaforbusiness/auth.go b/service/alexaforbusiness/auth.go deleted file mode 100644 index dc24f714049..00000000000 --- a/service/alexaforbusiness/auth.go +++ /dev/null @@ -1,284 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - smithy "github.com/aws/smithy-go" - smithyauth "github.com/aws/smithy-go/auth" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -func bindAuthParamsRegion(params *AuthResolverParameters, _ interface{}, options Options) { - params.Region = options.Region -} - -type setLegacyContextSigningOptionsMiddleware struct { -} - -func (*setLegacyContextSigningOptionsMiddleware) ID() string { - return "setLegacyContextSigningOptions" -} - -func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - rscheme := getResolvedAuthScheme(ctx) - schemeID := rscheme.Scheme.SchemeID() - - if sn := awsmiddleware.GetSigningName(ctx); sn != "" { - if schemeID == "aws.auth#sigv4" { - smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn) - } else if schemeID == "aws.auth#sigv4a" { - smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn) - } - } - - if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" { - if schemeID == "aws.auth#sigv4" { - smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr) - } else if schemeID == "aws.auth#sigv4a" { - smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr}) - } - } - - return next.HandleFinalize(ctx, in) -} - -func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error { - return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before) -} - -type withAnonymous struct { - resolver AuthSchemeResolver -} - -var _ AuthSchemeResolver = (*withAnonymous)(nil) - -func (v *withAnonymous) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) { - opts, err := v.resolver.ResolveAuthSchemes(ctx, params) - if err != nil { - return nil, err - } - - opts = append(opts, &smithyauth.Option{ - SchemeID: smithyauth.SchemeIDAnonymous, - }) - return opts, nil -} - -func wrapWithAnonymousAuth(options *Options) { - if _, ok := options.AuthSchemeResolver.(*defaultAuthSchemeResolver); !ok { - return - } - - options.AuthSchemeResolver = &withAnonymous{ - resolver: options.AuthSchemeResolver, - } -} - -// AuthResolverParameters contains the set of inputs necessary for auth scheme -// resolution. -type AuthResolverParameters struct { - // The name of the operation being invoked. - Operation string - - // The region in which the operation is being invoked. - Region string -} - -func bindAuthResolverParams(operation string, input interface{}, options Options) *AuthResolverParameters { - params := &AuthResolverParameters{ - Operation: operation, - } - - bindAuthParamsRegion(params, input, options) - - return params -} - -// AuthSchemeResolver returns a set of possible authentication options for an -// operation. -type AuthSchemeResolver interface { - ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error) -} - -type defaultAuthSchemeResolver struct{} - -var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil) - -func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) { - if overrides, ok := operationAuthOptions[params.Operation]; ok { - return overrides(params), nil - } - return serviceAuthOptions(params), nil -} - -var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{} - -func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option { - return []*smithyauth.Option{ - { - SchemeID: smithyauth.SchemeIDSigV4, - SignerProperties: func() smithy.Properties { - var props smithy.Properties - smithyhttp.SetSigV4SigningName(&props, "a4b") - smithyhttp.SetSigV4SigningRegion(&props, params.Region) - return props - }(), - }, - } -} - -type resolveAuthSchemeMiddleware struct { - operation string - options Options -} - -func (*resolveAuthSchemeMiddleware) ID() string { - return "ResolveAuthScheme" -} - -func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) - options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) - if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) - } - - scheme, ok := m.selectScheme(options) - if !ok { - return out, metadata, fmt.Errorf("could not select an auth scheme") - } - - ctx = setResolvedAuthScheme(ctx, scheme) - return next.HandleFinalize(ctx, in) -} - -func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) { - for _, option := range options { - if option.SchemeID == smithyauth.SchemeIDAnonymous { - return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true - } - - for _, scheme := range m.options.AuthSchemes { - if scheme.SchemeID() != option.SchemeID { - continue - } - - if scheme.IdentityResolver(m.options) != nil { - return newResolvedAuthScheme(scheme, option), true - } - } - } - - return nil, false -} - -type resolvedAuthSchemeKey struct{} - -type resolvedAuthScheme struct { - Scheme smithyhttp.AuthScheme - IdentityProperties smithy.Properties - SignerProperties smithy.Properties -} - -func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme { - return &resolvedAuthScheme{ - Scheme: scheme, - IdentityProperties: option.IdentityProperties, - SignerProperties: option.SignerProperties, - } -} - -func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context { - return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme) -} - -func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme { - v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme) - return v -} - -type getIdentityMiddleware struct { - options Options -} - -func (*getIdentityMiddleware) ID() string { - return "GetIdentity" -} - -func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - rscheme := getResolvedAuthScheme(ctx) - if rscheme == nil { - return out, metadata, fmt.Errorf("no resolved auth scheme") - } - - resolver := rscheme.Scheme.IdentityResolver(m.options) - if resolver == nil { - return out, metadata, fmt.Errorf("no identity resolver") - } - - identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) - if err != nil { - return out, metadata, fmt.Errorf("get identity: %w", err) - } - - ctx = setIdentity(ctx, identity) - return next.HandleFinalize(ctx, in) -} - -type identityKey struct{} - -func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context { - return middleware.WithStackValue(ctx, identityKey{}, identity) -} - -func getIdentity(ctx context.Context) smithyauth.Identity { - v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity) - return v -} - -type signRequestMiddleware struct { -} - -func (*signRequestMiddleware) ID() string { - return "Signing" -} - -func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) - } - - rscheme := getResolvedAuthScheme(ctx) - if rscheme == nil { - return out, metadata, fmt.Errorf("no resolved auth scheme") - } - - identity := getIdentity(ctx) - if identity == nil { - return out, metadata, fmt.Errorf("no identity") - } - - signer := rscheme.Scheme.Signer() - if signer == nil { - return out, metadata, fmt.Errorf("no signer") - } - - if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %w", err) - } - - return next.HandleFinalize(ctx, in) -} diff --git a/service/alexaforbusiness/deserializers.go b/service/alexaforbusiness/deserializers.go deleted file mode 100644 index 935b8311577..00000000000 --- a/service/alexaforbusiness/deserializers.go +++ /dev/null @@ -1,19191 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - smithy "github.com/aws/smithy-go" - smithyio "github.com/aws/smithy-go/io" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithytime "github.com/aws/smithy-go/time" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io" - "strings" -) - -type awsAwsjson11_deserializeOpApproveSkill struct { -} - -func (*awsAwsjson11_deserializeOpApproveSkill) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpApproveSkill) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorApproveSkill(response, &metadata) - } - output := &ApproveSkillOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentApproveSkillOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorApproveSkill(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateContactWithAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpAssociateContactWithAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateContactWithAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateContactWithAddressBook(response, &metadata) - } - output := &AssociateContactWithAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateContactWithAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateContactWithAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateDeviceWithNetworkProfile struct { -} - -func (*awsAwsjson11_deserializeOpAssociateDeviceWithNetworkProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateDeviceWithNetworkProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateDeviceWithNetworkProfile(response, &metadata) - } - output := &AssociateDeviceWithNetworkProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateDeviceWithNetworkProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateDeviceWithNetworkProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateDeviceWithRoom struct { -} - -func (*awsAwsjson11_deserializeOpAssociateDeviceWithRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateDeviceWithRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateDeviceWithRoom(response, &metadata) - } - output := &AssociateDeviceWithRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateDeviceWithRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateDeviceWithRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateSkillGroupWithRoom struct { -} - -func (*awsAwsjson11_deserializeOpAssociateSkillGroupWithRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateSkillGroupWithRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateSkillGroupWithRoom(response, &metadata) - } - output := &AssociateSkillGroupWithRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateSkillGroupWithRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateSkillGroupWithRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateSkillWithSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpAssociateSkillWithSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateSkillWithSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateSkillWithSkillGroup(response, &metadata) - } - output := &AssociateSkillWithSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateSkillWithSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateSkillWithSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("SkillNotLinkedException", errorCode): - return awsAwsjson11_deserializeErrorSkillNotLinkedException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpAssociateSkillWithUsers struct { -} - -func (*awsAwsjson11_deserializeOpAssociateSkillWithUsers) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAssociateSkillWithUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAssociateSkillWithUsers(response, &metadata) - } - output := &AssociateSkillWithUsersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAssociateSkillWithUsersOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAssociateSkillWithUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpCreateAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateAddressBook(response, &metadata) - } - output := &CreateAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateBusinessReportSchedule struct { -} - -func (*awsAwsjson11_deserializeOpCreateBusinessReportSchedule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateBusinessReportSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateBusinessReportSchedule(response, &metadata) - } - output := &CreateBusinessReportScheduleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateBusinessReportScheduleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateBusinessReportSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateConferenceProvider struct { -} - -func (*awsAwsjson11_deserializeOpCreateConferenceProvider) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateConferenceProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateConferenceProvider(response, &metadata) - } - output := &CreateConferenceProviderOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateConferenceProviderOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateConferenceProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateContact struct { -} - -func (*awsAwsjson11_deserializeOpCreateContact) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateContact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateContact(response, &metadata) - } - output := &CreateContactOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateContactOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateContact(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateGatewayGroup struct { -} - -func (*awsAwsjson11_deserializeOpCreateGatewayGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateGatewayGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateGatewayGroup(response, &metadata) - } - output := &CreateGatewayGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateGatewayGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateGatewayGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateNetworkProfile struct { -} - -func (*awsAwsjson11_deserializeOpCreateNetworkProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateNetworkProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateNetworkProfile(response, &metadata) - } - output := &CreateNetworkProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateNetworkProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateNetworkProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InvalidCertificateAuthorityException", errorCode): - return awsAwsjson11_deserializeErrorInvalidCertificateAuthorityException(response, errorBody) - - case strings.EqualFold("InvalidServiceLinkedRoleStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidServiceLinkedRoleStateException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateProfile struct { -} - -func (*awsAwsjson11_deserializeOpCreateProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateProfile(response, &metadata) - } - output := &CreateProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateRoom struct { -} - -func (*awsAwsjson11_deserializeOpCreateRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateRoom(response, &metadata) - } - output := &CreateRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpCreateSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateSkillGroup(response, &metadata) - } - output := &CreateSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateUser struct { -} - -func (*awsAwsjson11_deserializeOpCreateUser) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateUser(response, &metadata) - } - output := &CreateUserOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateUserOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceInUseException", errorCode): - return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpDeleteAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteAddressBook(response, &metadata) - } - output := &DeleteAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteBusinessReportSchedule struct { -} - -func (*awsAwsjson11_deserializeOpDeleteBusinessReportSchedule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteBusinessReportSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteBusinessReportSchedule(response, &metadata) - } - output := &DeleteBusinessReportScheduleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteBusinessReportScheduleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteBusinessReportSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteConferenceProvider struct { -} - -func (*awsAwsjson11_deserializeOpDeleteConferenceProvider) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteConferenceProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteConferenceProvider(response, &metadata) - } - output := &DeleteConferenceProviderOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteConferenceProviderOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteConferenceProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteContact struct { -} - -func (*awsAwsjson11_deserializeOpDeleteContact) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteContact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteContact(response, &metadata) - } - output := &DeleteContactOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteContactOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteContact(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteDevice struct { -} - -func (*awsAwsjson11_deserializeOpDeleteDevice) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteDevice(response, &metadata) - } - output := &DeleteDeviceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteDeviceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InvalidCertificateAuthorityException", errorCode): - return awsAwsjson11_deserializeErrorInvalidCertificateAuthorityException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteDeviceUsageData struct { -} - -func (*awsAwsjson11_deserializeOpDeleteDeviceUsageData) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteDeviceUsageData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteDeviceUsageData(response, &metadata) - } - output := &DeleteDeviceUsageDataOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteDeviceUsageDataOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteDeviceUsageData(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteGatewayGroup struct { -} - -func (*awsAwsjson11_deserializeOpDeleteGatewayGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteGatewayGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteGatewayGroup(response, &metadata) - } - output := &DeleteGatewayGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteGatewayGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteGatewayGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ResourceAssociatedException", errorCode): - return awsAwsjson11_deserializeErrorResourceAssociatedException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteNetworkProfile struct { -} - -func (*awsAwsjson11_deserializeOpDeleteNetworkProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteNetworkProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteNetworkProfile(response, &metadata) - } - output := &DeleteNetworkProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteNetworkProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteNetworkProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceInUseException", errorCode): - return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteProfile struct { -} - -func (*awsAwsjson11_deserializeOpDeleteProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteProfile(response, &metadata) - } - output := &DeleteProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteRoom struct { -} - -func (*awsAwsjson11_deserializeOpDeleteRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteRoom(response, &metadata) - } - output := &DeleteRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteRoomSkillParameter struct { -} - -func (*awsAwsjson11_deserializeOpDeleteRoomSkillParameter) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteRoomSkillParameter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteRoomSkillParameter(response, &metadata) - } - output := &DeleteRoomSkillParameterOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteRoomSkillParameterOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteRoomSkillParameter(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteSkillAuthorization struct { -} - -func (*awsAwsjson11_deserializeOpDeleteSkillAuthorization) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteSkillAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSkillAuthorization(response, &metadata) - } - output := &DeleteSkillAuthorizationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteSkillAuthorizationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteSkillAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpDeleteSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSkillGroup(response, &metadata) - } - output := &DeleteSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDeleteUser struct { -} - -func (*awsAwsjson11_deserializeOpDeleteUser) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDeleteUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteUser(response, &metadata) - } - output := &DeleteUserOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDeleteUserOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDeleteUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDisassociateContactFromAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpDisassociateContactFromAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDisassociateContactFromAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateContactFromAddressBook(response, &metadata) - } - output := &DisassociateContactFromAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDisassociateContactFromAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDisassociateContactFromAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDisassociateDeviceFromRoom struct { -} - -func (*awsAwsjson11_deserializeOpDisassociateDeviceFromRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDisassociateDeviceFromRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateDeviceFromRoom(response, &metadata) - } - output := &DisassociateDeviceFromRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDisassociateDeviceFromRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDisassociateDeviceFromRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDisassociateSkillFromSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpDisassociateSkillFromSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDisassociateSkillFromSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateSkillFromSkillGroup(response, &metadata) - } - output := &DisassociateSkillFromSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDisassociateSkillFromSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDisassociateSkillFromSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDisassociateSkillFromUsers struct { -} - -func (*awsAwsjson11_deserializeOpDisassociateSkillFromUsers) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDisassociateSkillFromUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateSkillFromUsers(response, &metadata) - } - output := &DisassociateSkillFromUsersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDisassociateSkillFromUsersOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDisassociateSkillFromUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDisassociateSkillGroupFromRoom struct { -} - -func (*awsAwsjson11_deserializeOpDisassociateSkillGroupFromRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDisassociateSkillGroupFromRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateSkillGroupFromRoom(response, &metadata) - } - output := &DisassociateSkillGroupFromRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDisassociateSkillGroupFromRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDisassociateSkillGroupFromRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpForgetSmartHomeAppliances struct { -} - -func (*awsAwsjson11_deserializeOpForgetSmartHomeAppliances) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpForgetSmartHomeAppliances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorForgetSmartHomeAppliances(response, &metadata) - } - output := &ForgetSmartHomeAppliancesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentForgetSmartHomeAppliancesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorForgetSmartHomeAppliances(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpGetAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetAddressBook(response, &metadata) - } - output := &GetAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetConferencePreference struct { -} - -func (*awsAwsjson11_deserializeOpGetConferencePreference) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetConferencePreference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetConferencePreference(response, &metadata) - } - output := &GetConferencePreferenceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetConferencePreferenceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetConferencePreference(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetConferenceProvider struct { -} - -func (*awsAwsjson11_deserializeOpGetConferenceProvider) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetConferenceProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetConferenceProvider(response, &metadata) - } - output := &GetConferenceProviderOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetConferenceProviderOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetConferenceProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetContact struct { -} - -func (*awsAwsjson11_deserializeOpGetContact) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetContact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetContact(response, &metadata) - } - output := &GetContactOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetContactOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetContact(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetDevice struct { -} - -func (*awsAwsjson11_deserializeOpGetDevice) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetDevice(response, &metadata) - } - output := &GetDeviceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetDeviceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetGateway struct { -} - -func (*awsAwsjson11_deserializeOpGetGateway) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetGateway(response, &metadata) - } - output := &GetGatewayOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetGatewayOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetGatewayGroup struct { -} - -func (*awsAwsjson11_deserializeOpGetGatewayGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetGatewayGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetGatewayGroup(response, &metadata) - } - output := &GetGatewayGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetGatewayGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetGatewayGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetInvitationConfiguration struct { -} - -func (*awsAwsjson11_deserializeOpGetInvitationConfiguration) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetInvitationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetInvitationConfiguration(response, &metadata) - } - output := &GetInvitationConfigurationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetInvitationConfigurationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetInvitationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetNetworkProfile struct { -} - -func (*awsAwsjson11_deserializeOpGetNetworkProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetNetworkProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetNetworkProfile(response, &metadata) - } - output := &GetNetworkProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetNetworkProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetNetworkProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("InvalidSecretsManagerResourceException", errorCode): - return awsAwsjson11_deserializeErrorInvalidSecretsManagerResourceException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetProfile struct { -} - -func (*awsAwsjson11_deserializeOpGetProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetProfile(response, &metadata) - } - output := &GetProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetRoom struct { -} - -func (*awsAwsjson11_deserializeOpGetRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetRoom(response, &metadata) - } - output := &GetRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetRoomSkillParameter struct { -} - -func (*awsAwsjson11_deserializeOpGetRoomSkillParameter) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetRoomSkillParameter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetRoomSkillParameter(response, &metadata) - } - output := &GetRoomSkillParameterOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetRoomSkillParameterOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetRoomSkillParameter(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpGetSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpGetSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpGetSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSkillGroup(response, &metadata) - } - output := &GetSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentGetSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorGetSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListBusinessReportSchedules struct { -} - -func (*awsAwsjson11_deserializeOpListBusinessReportSchedules) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListBusinessReportSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListBusinessReportSchedules(response, &metadata) - } - output := &ListBusinessReportSchedulesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListBusinessReportSchedulesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListBusinessReportSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListConferenceProviders struct { -} - -func (*awsAwsjson11_deserializeOpListConferenceProviders) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListConferenceProviders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListConferenceProviders(response, &metadata) - } - output := &ListConferenceProvidersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListConferenceProvidersOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListConferenceProviders(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListDeviceEvents struct { -} - -func (*awsAwsjson11_deserializeOpListDeviceEvents) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListDeviceEvents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDeviceEvents(response, &metadata) - } - output := &ListDeviceEventsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListDeviceEventsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListDeviceEvents(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListGatewayGroups struct { -} - -func (*awsAwsjson11_deserializeOpListGatewayGroups) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListGatewayGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListGatewayGroups(response, &metadata) - } - output := &ListGatewayGroupsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListGatewayGroupsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListGatewayGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListGateways struct { -} - -func (*awsAwsjson11_deserializeOpListGateways) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListGateways(response, &metadata) - } - output := &ListGatewaysOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListGatewaysOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListSkills struct { -} - -func (*awsAwsjson11_deserializeOpListSkills) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListSkills) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSkills(response, &metadata) - } - output := &ListSkillsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListSkillsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListSkills(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListSkillsStoreCategories struct { -} - -func (*awsAwsjson11_deserializeOpListSkillsStoreCategories) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListSkillsStoreCategories) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSkillsStoreCategories(response, &metadata) - } - output := &ListSkillsStoreCategoriesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListSkillsStoreCategoriesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListSkillsStoreCategories(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListSkillsStoreSkillsByCategory struct { -} - -func (*awsAwsjson11_deserializeOpListSkillsStoreSkillsByCategory) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListSkillsStoreSkillsByCategory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSkillsStoreSkillsByCategory(response, &metadata) - } - output := &ListSkillsStoreSkillsByCategoryOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListSkillsStoreSkillsByCategoryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListSkillsStoreSkillsByCategory(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListSmartHomeAppliances struct { -} - -func (*awsAwsjson11_deserializeOpListSmartHomeAppliances) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListSmartHomeAppliances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSmartHomeAppliances(response, &metadata) - } - output := &ListSmartHomeAppliancesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListSmartHomeAppliancesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListSmartHomeAppliances(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListTags struct { -} - -func (*awsAwsjson11_deserializeOpListTags) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTags(response, &metadata) - } - output := &ListTagsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListTagsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpPutConferencePreference struct { -} - -func (*awsAwsjson11_deserializeOpPutConferencePreference) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpPutConferencePreference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutConferencePreference(response, &metadata) - } - output := &PutConferencePreferenceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentPutConferencePreferenceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorPutConferencePreference(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpPutInvitationConfiguration struct { -} - -func (*awsAwsjson11_deserializeOpPutInvitationConfiguration) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpPutInvitationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutInvitationConfiguration(response, &metadata) - } - output := &PutInvitationConfigurationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentPutInvitationConfigurationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorPutInvitationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpPutRoomSkillParameter struct { -} - -func (*awsAwsjson11_deserializeOpPutRoomSkillParameter) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpPutRoomSkillParameter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutRoomSkillParameter(response, &metadata) - } - output := &PutRoomSkillParameterOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentPutRoomSkillParameterOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorPutRoomSkillParameter(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpPutSkillAuthorization struct { -} - -func (*awsAwsjson11_deserializeOpPutSkillAuthorization) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpPutSkillAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutSkillAuthorization(response, &metadata) - } - output := &PutSkillAuthorizationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentPutSkillAuthorizationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorPutSkillAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("UnauthorizedException", errorCode): - return awsAwsjson11_deserializeErrorUnauthorizedException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpRegisterAVSDevice struct { -} - -func (*awsAwsjson11_deserializeOpRegisterAVSDevice) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpRegisterAVSDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRegisterAVSDevice(response, &metadata) - } - output := &RegisterAVSDeviceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentRegisterAVSDeviceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorRegisterAVSDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InvalidDeviceException", errorCode): - return awsAwsjson11_deserializeErrorInvalidDeviceException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpRejectSkill struct { -} - -func (*awsAwsjson11_deserializeOpRejectSkill) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpRejectSkill) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRejectSkill(response, &metadata) - } - output := &RejectSkillOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentRejectSkillOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorRejectSkill(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpResolveRoom struct { -} - -func (*awsAwsjson11_deserializeOpResolveRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpResolveRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorResolveRoom(response, &metadata) - } - output := &ResolveRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentResolveRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorResolveRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpRevokeInvitation struct { -} - -func (*awsAwsjson11_deserializeOpRevokeInvitation) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpRevokeInvitation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRevokeInvitation(response, &metadata) - } - output := &RevokeInvitationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentRevokeInvitationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorRevokeInvitation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchAddressBooks struct { -} - -func (*awsAwsjson11_deserializeOpSearchAddressBooks) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchAddressBooks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchAddressBooks(response, &metadata) - } - output := &SearchAddressBooksOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchAddressBooksOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchAddressBooks(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchContacts struct { -} - -func (*awsAwsjson11_deserializeOpSearchContacts) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchContacts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchContacts(response, &metadata) - } - output := &SearchContactsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchContactsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchContacts(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchDevices struct { -} - -func (*awsAwsjson11_deserializeOpSearchDevices) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchDevices(response, &metadata) - } - output := &SearchDevicesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchDevicesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchNetworkProfiles struct { -} - -func (*awsAwsjson11_deserializeOpSearchNetworkProfiles) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchNetworkProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchNetworkProfiles(response, &metadata) - } - output := &SearchNetworkProfilesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchNetworkProfilesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchNetworkProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchProfiles struct { -} - -func (*awsAwsjson11_deserializeOpSearchProfiles) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchProfiles(response, &metadata) - } - output := &SearchProfilesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchProfilesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchRooms struct { -} - -func (*awsAwsjson11_deserializeOpSearchRooms) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchRooms) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchRooms(response, &metadata) - } - output := &SearchRoomsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchRoomsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchRooms(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchSkillGroups struct { -} - -func (*awsAwsjson11_deserializeOpSearchSkillGroups) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchSkillGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchSkillGroups(response, &metadata) - } - output := &SearchSkillGroupsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchSkillGroupsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchSkillGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSearchUsers struct { -} - -func (*awsAwsjson11_deserializeOpSearchUsers) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchUsers(response, &metadata) - } - output := &SearchUsersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSearchUsersOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSearchUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSendAnnouncement struct { -} - -func (*awsAwsjson11_deserializeOpSendAnnouncement) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSendAnnouncement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendAnnouncement(response, &metadata) - } - output := &SendAnnouncementOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSendAnnouncementOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSendAnnouncement(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpSendInvitation struct { -} - -func (*awsAwsjson11_deserializeOpSendInvitation) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSendInvitation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendInvitation(response, &metadata) - } - output := &SendInvitationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentSendInvitationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorSendInvitation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InvalidUserStatusException", errorCode): - return awsAwsjson11_deserializeErrorInvalidUserStatusException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpStartDeviceSync struct { -} - -func (*awsAwsjson11_deserializeOpStartDeviceSync) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpStartDeviceSync) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartDeviceSync(response, &metadata) - } - output := &StartDeviceSyncOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentStartDeviceSyncOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorStartDeviceSync(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpStartSmartHomeApplianceDiscovery struct { -} - -func (*awsAwsjson11_deserializeOpStartSmartHomeApplianceDiscovery) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpStartSmartHomeApplianceDiscovery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartSmartHomeApplianceDiscovery(response, &metadata) - } - output := &StartSmartHomeApplianceDiscoveryOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentStartSmartHomeApplianceDiscoveryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorStartSmartHomeApplianceDiscovery(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpTagResource struct { -} - -func (*awsAwsjson11_deserializeOpTagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) - } - output := &TagResourceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUntagResource struct { -} - -func (*awsAwsjson11_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) - } - output := &UntagResourceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateAddressBook struct { -} - -func (*awsAwsjson11_deserializeOpUpdateAddressBook) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateAddressBook) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAddressBook(response, &metadata) - } - output := &UpdateAddressBookOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateAddressBookOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateAddressBook(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateBusinessReportSchedule struct { -} - -func (*awsAwsjson11_deserializeOpUpdateBusinessReportSchedule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateBusinessReportSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateBusinessReportSchedule(response, &metadata) - } - output := &UpdateBusinessReportScheduleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateBusinessReportScheduleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateBusinessReportSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateConferenceProvider struct { -} - -func (*awsAwsjson11_deserializeOpUpdateConferenceProvider) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateConferenceProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateConferenceProvider(response, &metadata) - } - output := &UpdateConferenceProviderOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateConferenceProviderOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateConferenceProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateContact struct { -} - -func (*awsAwsjson11_deserializeOpUpdateContact) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateContact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateContact(response, &metadata) - } - output := &UpdateContactOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateContactOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateContact(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateDevice struct { -} - -func (*awsAwsjson11_deserializeOpUpdateDevice) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDevice(response, &metadata) - } - output := &UpdateDeviceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateDeviceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("DeviceNotRegisteredException", errorCode): - return awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateGateway struct { -} - -func (*awsAwsjson11_deserializeOpUpdateGateway) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateGateway(response, &metadata) - } - output := &UpdateGatewayOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateGatewayOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateGatewayGroup struct { -} - -func (*awsAwsjson11_deserializeOpUpdateGatewayGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateGatewayGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateGatewayGroup(response, &metadata) - } - output := &UpdateGatewayGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateGatewayGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateGatewayGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateNetworkProfile struct { -} - -func (*awsAwsjson11_deserializeOpUpdateNetworkProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateNetworkProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNetworkProfile(response, &metadata) - } - output := &UpdateNetworkProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateNetworkProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateNetworkProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InvalidCertificateAuthorityException", errorCode): - return awsAwsjson11_deserializeErrorInvalidCertificateAuthorityException(response, errorBody) - - case strings.EqualFold("InvalidSecretsManagerResourceException", errorCode): - return awsAwsjson11_deserializeErrorInvalidSecretsManagerResourceException(response, errorBody) - - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateProfile struct { -} - -func (*awsAwsjson11_deserializeOpUpdateProfile) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProfile(response, &metadata) - } - output := &UpdateProfileOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateProfileOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateRoom struct { -} - -func (*awsAwsjson11_deserializeOpUpdateRoom) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateRoom) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateRoom(response, &metadata) - } - output := &UpdateRoomOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateRoomOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateRoom(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateSkillGroup struct { -} - -func (*awsAwsjson11_deserializeOpUpdateSkillGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateSkillGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSkillGroup(response, &metadata) - } - output := &UpdateSkillGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateSkillGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateSkillGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("NameInUseException", errorCode): - return awsAwsjson11_deserializeErrorNameInUseException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsAwsjson11_deserializeErrorNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsAwsjson11_deserializeErrorAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.AlreadyExistsException{} - err := awsAwsjson11_deserializeDocumentAlreadyExistsException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorConcurrentModificationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ConcurrentModificationException{} - err := awsAwsjson11_deserializeDocumentConcurrentModificationException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorDeviceNotRegisteredException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.DeviceNotRegisteredException{} - err := awsAwsjson11_deserializeDocumentDeviceNotRegisteredException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorInvalidCertificateAuthorityException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InvalidCertificateAuthorityException{} - err := awsAwsjson11_deserializeDocumentInvalidCertificateAuthorityException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorInvalidDeviceException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InvalidDeviceException{} - err := awsAwsjson11_deserializeDocumentInvalidDeviceException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorInvalidSecretsManagerResourceException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InvalidSecretsManagerResourceException{} - err := awsAwsjson11_deserializeDocumentInvalidSecretsManagerResourceException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorInvalidServiceLinkedRoleStateException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InvalidServiceLinkedRoleStateException{} - err := awsAwsjson11_deserializeDocumentInvalidServiceLinkedRoleStateException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorInvalidUserStatusException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InvalidUserStatusException{} - err := awsAwsjson11_deserializeDocumentInvalidUserStatusException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.LimitExceededException{} - err := awsAwsjson11_deserializeDocumentLimitExceededException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorNameInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.NameInUseException{} - err := awsAwsjson11_deserializeDocumentNameInUseException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.NotFoundException{} - err := awsAwsjson11_deserializeDocumentNotFoundException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorResourceAssociatedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ResourceAssociatedException{} - err := awsAwsjson11_deserializeDocumentResourceAssociatedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorResourceInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ResourceInUseException{} - err := awsAwsjson11_deserializeDocumentResourceInUseException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorSkillNotLinkedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.SkillNotLinkedException{} - err := awsAwsjson11_deserializeDocumentSkillNotLinkedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorUnauthorizedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.UnauthorizedException{} - err := awsAwsjson11_deserializeDocumentUnauthorizedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeDocumentAddressBook(v **types.AddressBook, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AddressBook - if *v == nil { - sv = &types.AddressBook{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AddressBookArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AddressBookArn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AddressBookDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AddressBookName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentAddressBookData(v **types.AddressBookData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AddressBookData - if *v == nil { - sv = &types.AddressBookData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AddressBookArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AddressBookArn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AddressBookDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AddressBookName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentAddressBookDataList(v *[]types.AddressBookData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AddressBookData - if *v == nil { - cv = []types.AddressBookData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AddressBookData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentAddressBookData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExistsException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AlreadyExistsException - if *v == nil { - sv = &types.AlreadyExistsException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBulletPoints(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BulletPoint to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReport(v **types.BusinessReport, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BusinessReport - if *v == nil { - sv = &types.BusinessReport{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeliveryTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DeliveryTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected BusinessReportDeliveryTime to be a JSON Number, got %T instead", value) - - } - } - - case "DownloadUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportDownloadUrl to be of type string, got %T instead", value) - } - sv.DownloadUrl = ptr.String(jtv) - } - - case "FailureCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportFailureCode to be of type string, got %T instead", value) - } - sv.FailureCode = types.BusinessReportFailureCode(jtv) - } - - case "S3Location": - if err := awsAwsjson11_deserializeDocumentBusinessReportS3Location(&sv.S3Location, value); err != nil { - return err - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportStatus to be of type string, got %T instead", value) - } - sv.Status = types.BusinessReportStatus(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReportContentRange(v **types.BusinessReportContentRange, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BusinessReportContentRange - if *v == nil { - sv = &types.BusinessReportContentRange{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Interval": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportInterval to be of type string, got %T instead", value) - } - sv.Interval = types.BusinessReportInterval(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReportRecurrence(v **types.BusinessReportRecurrence, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BusinessReportRecurrence - if *v == nil { - sv = &types.BusinessReportRecurrence{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "StartDate": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Date to be of type string, got %T instead", value) - } - sv.StartDate = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReportS3Location(v **types.BusinessReportS3Location, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BusinessReportS3Location - if *v == nil { - sv = &types.BusinessReportS3Location{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BucketName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomerS3BucketName to be of type string, got %T instead", value) - } - sv.BucketName = ptr.String(jtv) - } - - case "Path": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportS3Path to be of type string, got %T instead", value) - } - sv.Path = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessReportSchedule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BusinessReportSchedule - if *v == nil { - sv = &types.BusinessReportSchedule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContentRange": - if err := awsAwsjson11_deserializeDocumentBusinessReportContentRange(&sv.ContentRange, value); err != nil { - return err - } - - case "Format": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportFormat to be of type string, got %T instead", value) - } - sv.Format = types.BusinessReportFormat(jtv) - } - - case "LastBusinessReport": - if err := awsAwsjson11_deserializeDocumentBusinessReport(&sv.LastBusinessReport, value); err != nil { - return err - } - - case "Recurrence": - if err := awsAwsjson11_deserializeDocumentBusinessReportRecurrence(&sv.Recurrence, value); err != nil { - return err - } - - case "S3BucketName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomerS3BucketName to be of type string, got %T instead", value) - } - sv.S3BucketName = ptr.String(jtv) - } - - case "S3KeyPrefix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) - } - sv.S3KeyPrefix = ptr.String(jtv) - } - - case "ScheduleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ScheduleArn = ptr.String(jtv) - } - - case "ScheduleName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BusinessReportScheduleName to be of type string, got %T instead", value) - } - sv.ScheduleName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBusinessReportScheduleList(v *[]types.BusinessReportSchedule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.BusinessReportSchedule - if *v == nil { - cv = []types.BusinessReportSchedule{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.BusinessReportSchedule - destAddr := &col - if err := awsAwsjson11_deserializeDocumentBusinessReportSchedule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Category - if *v == nil { - sv = &types.Category{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CategoryId": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected CategoryId to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.CategoryId = ptr.Int64(i64) - } - - case "CategoryName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryName to be of type string, got %T instead", value) - } - sv.CategoryName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentCategoryList(v *[]types.Category, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Category - if *v == nil { - cv = []types.Category{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Category - destAddr := &col - if err := awsAwsjson11_deserializeDocumentCategory(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.ConcurrentModificationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConcurrentModificationException - if *v == nil { - sv = &types.ConcurrentModificationException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentConferencePreference(v **types.ConferencePreference, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConferencePreference - if *v == nil { - sv = &types.ConferencePreference{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DefaultConferenceProviderArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DefaultConferenceProviderArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentConferenceProvider(v **types.ConferenceProvider, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConferenceProvider - if *v == nil { - sv = &types.ConferenceProvider{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "IPDialIn": - if err := awsAwsjson11_deserializeDocumentIPDialIn(&sv.IPDialIn, value); err != nil { - return err - } - - case "MeetingSetting": - if err := awsAwsjson11_deserializeDocumentMeetingSetting(&sv.MeetingSetting, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConferenceProviderName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "PSTNDialIn": - if err := awsAwsjson11_deserializeDocumentPSTNDialIn(&sv.PSTNDialIn, value); err != nil { - return err - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConferenceProviderType to be of type string, got %T instead", value) - } - sv.Type = types.ConferenceProviderType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentConferenceProvidersList(v *[]types.ConferenceProvider, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ConferenceProvider - if *v == nil { - cv = []types.ConferenceProvider{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ConferenceProvider - destAddr := &col - if err := awsAwsjson11_deserializeDocumentConferenceProvider(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Contact - if *v == nil { - sv = &types.Contact{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContactArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ContactArn = ptr.String(jtv) - } - - case "DisplayName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.DisplayName = ptr.String(jtv) - } - - case "FirstName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.FirstName = ptr.String(jtv) - } - - case "LastName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.LastName = ptr.String(jtv) - } - - case "PhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) - } - sv.PhoneNumber = ptr.String(jtv) - } - - case "PhoneNumbers": - if err := awsAwsjson11_deserializeDocumentPhoneNumberList(&sv.PhoneNumbers, value); err != nil { - return err - } - - case "SipAddresses": - if err := awsAwsjson11_deserializeDocumentSipAddressList(&sv.SipAddresses, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ContactData - if *v == nil { - sv = &types.ContactData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContactArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ContactArn = ptr.String(jtv) - } - - case "DisplayName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.DisplayName = ptr.String(jtv) - } - - case "FirstName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.FirstName = ptr.String(jtv) - } - - case "LastName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) - } - sv.LastName = ptr.String(jtv) - } - - case "PhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) - } - sv.PhoneNumber = ptr.String(jtv) - } - - case "PhoneNumbers": - if err := awsAwsjson11_deserializeDocumentPhoneNumberList(&sv.PhoneNumbers, value); err != nil { - return err - } - - case "SipAddresses": - if err := awsAwsjson11_deserializeDocumentSipAddressList(&sv.SipAddresses, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentContactDataList(v *[]types.ContactData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ContactData - if *v == nil { - cv = []types.ContactData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ContactData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentContactData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentDeveloperInfo(v **types.DeveloperInfo, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeveloperInfo - if *v == nil { - sv = &types.DeveloperInfo{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeveloperName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeveloperName to be of type string, got %T instead", value) - } - sv.DeveloperName = ptr.String(jtv) - } - - case "Email": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Email to be of type string, got %T instead", value) - } - sv.Email = ptr.String(jtv) - } - - case "PrivacyPolicy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PrivacyPolicy to be of type string, got %T instead", value) - } - sv.PrivacyPolicy = ptr.String(jtv) - } - - case "Url": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.Url = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Device - if *v == nil { - sv = &types.Device{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeviceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DeviceArn = ptr.String(jtv) - } - - case "DeviceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceName to be of type string, got %T instead", value) - } - sv.DeviceName = ptr.String(jtv) - } - - case "DeviceSerialNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceSerialNumber to be of type string, got %T instead", value) - } - sv.DeviceSerialNumber = ptr.String(jtv) - } - - case "DeviceStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceStatus to be of type string, got %T instead", value) - } - sv.DeviceStatus = types.DeviceStatus(jtv) - } - - case "DeviceStatusInfo": - if err := awsAwsjson11_deserializeDocumentDeviceStatusInfo(&sv.DeviceStatusInfo, value); err != nil { - return err - } - - case "DeviceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceType to be of type string, got %T instead", value) - } - sv.DeviceType = ptr.String(jtv) - } - - case "MacAddress": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MacAddress to be of type string, got %T instead", value) - } - sv.MacAddress = ptr.String(jtv) - } - - case "NetworkProfileInfo": - if err := awsAwsjson11_deserializeDocumentDeviceNetworkProfileInfo(&sv.NetworkProfileInfo, value); err != nil { - return err - } - - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - case "SoftwareVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SoftwareVersion to be of type string, got %T instead", value) - } - sv.SoftwareVersion = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceData - if *v == nil { - sv = &types.DeviceData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected DeviceDataCreatedTime to be a JSON Number, got %T instead", value) - - } - } - - case "DeviceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DeviceArn = ptr.String(jtv) - } - - case "DeviceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceName to be of type string, got %T instead", value) - } - sv.DeviceName = ptr.String(jtv) - } - - case "DeviceSerialNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceSerialNumber to be of type string, got %T instead", value) - } - sv.DeviceSerialNumber = ptr.String(jtv) - } - - case "DeviceStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceStatus to be of type string, got %T instead", value) - } - sv.DeviceStatus = types.DeviceStatus(jtv) - } - - case "DeviceStatusInfo": - if err := awsAwsjson11_deserializeDocumentDeviceStatusInfo(&sv.DeviceStatusInfo, value); err != nil { - return err - } - - case "DeviceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceType to be of type string, got %T instead", value) - } - sv.DeviceType = ptr.String(jtv) - } - - case "MacAddress": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MacAddress to be of type string, got %T instead", value) - } - sv.MacAddress = ptr.String(jtv) - } - - case "NetworkProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.NetworkProfileArn = ptr.String(jtv) - } - - case "NetworkProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) - } - sv.NetworkProfileName = ptr.String(jtv) - } - - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - case "RoomName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceRoomName to be of type string, got %T instead", value) - } - sv.RoomName = ptr.String(jtv) - } - - case "SoftwareVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SoftwareVersion to be of type string, got %T instead", value) - } - sv.SoftwareVersion = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceDataList(v *[]types.DeviceData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DeviceData - if *v == nil { - cv = []types.DeviceData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DeviceData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentDeviceData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceEvent(v **types.DeviceEvent, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceEvent - if *v == nil { - sv = &types.DeviceEvent{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Timestamp": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Timestamp = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected DeviceEventTime to be a JSON Number, got %T instead", value) - - } - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceEventType to be of type string, got %T instead", value) - } - sv.Type = types.DeviceEventType(jtv) - } - - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceEventValue to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceEventList(v *[]types.DeviceEvent, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DeviceEvent - if *v == nil { - cv = []types.DeviceEvent{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DeviceEvent - destAddr := &col - if err := awsAwsjson11_deserializeDocumentDeviceEvent(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceNetworkProfileInfo(v **types.DeviceNetworkProfileInfo, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceNetworkProfileInfo - if *v == nil { - sv = &types.DeviceNetworkProfileInfo{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CertificateArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.CertificateArn = ptr.String(jtv) - } - - case "CertificateExpirationTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CertificateExpirationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected CertificateTime to be a JSON Number, got %T instead", value) - - } - } - - case "NetworkProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.NetworkProfileArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceNotRegisteredException(v **types.DeviceNotRegisteredException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceNotRegisteredException - if *v == nil { - sv = &types.DeviceNotRegisteredException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceStatusDetail(v **types.DeviceStatusDetail, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceStatusDetail - if *v == nil { - sv = &types.DeviceStatusDetail{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Code": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceStatusDetailCode to be of type string, got %T instead", value) - } - sv.Code = types.DeviceStatusDetailCode(jtv) - } - - case "Feature": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Feature to be of type string, got %T instead", value) - } - sv.Feature = types.Feature(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceStatusDetails(v *[]types.DeviceStatusDetail, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DeviceStatusDetail - if *v == nil { - cv = []types.DeviceStatusDetail{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DeviceStatusDetail - destAddr := &col - if err := awsAwsjson11_deserializeDocumentDeviceStatusDetail(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentDeviceStatusInfo(v **types.DeviceStatusInfo, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DeviceStatusInfo - if *v == nil { - sv = &types.DeviceStatusInfo{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConnectionStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionStatus to be of type string, got %T instead", value) - } - sv.ConnectionStatus = types.ConnectionStatus(jtv) - } - - case "ConnectionStatusUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ConnectionStatusUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected ConnectionStatusUpdatedTime to be a JSON Number, got %T instead", value) - - } - } - - case "DeviceStatusDetails": - if err := awsAwsjson11_deserializeDocumentDeviceStatusDetails(&sv.DeviceStatusDetails, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentEndOfMeetingReminder(v **types.EndOfMeetingReminder, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.EndOfMeetingReminder - if *v == nil { - sv = &types.EndOfMeetingReminder{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "ReminderAtMinutes": - if err := awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(&sv.ReminderAtMinutes, value); err != nil { - return err - } - - case "ReminderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EndOfMeetingReminderType to be of type string, got %T instead", value) - } - sv.ReminderType = types.EndOfMeetingReminderType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(v *[]int32, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []int32 - if *v == nil { - cv = []int32{} - } else { - cv = *v - } - - for _, value := range shape { - var col int32 - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Minutes to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - col = int32(i64) - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Gateway - if *v == nil { - sv = &types.Gateway{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "GatewayGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.GatewayGroupArn = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "SoftwareVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayVersion to be of type string, got %T instead", value) - } - sv.SoftwareVersion = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentGatewayGroup(v **types.GatewayGroup, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.GatewayGroup - if *v == nil { - sv = &types.GatewayGroup{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayGroupDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayGroupName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentGatewayGroupSummaries(v *[]types.GatewayGroupSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.GatewayGroupSummary - if *v == nil { - cv = []types.GatewayGroupSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.GatewayGroupSummary - destAddr := &col - if err := awsAwsjson11_deserializeDocumentGatewayGroupSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentGatewayGroupSummary(v **types.GatewayGroupSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.GatewayGroupSummary - if *v == nil { - sv = &types.GatewayGroupSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayGroupDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayGroupName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentGatewaySummaries(v *[]types.GatewaySummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.GatewaySummary - if *v == nil { - cv = []types.GatewaySummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.GatewaySummary - destAddr := &col - if err := awsAwsjson11_deserializeDocumentGatewaySummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.GatewaySummary - if *v == nil { - sv = &types.GatewaySummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "GatewayGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.GatewayGroupArn = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "SoftwareVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GatewayVersion to be of type string, got %T instead", value) - } - sv.SoftwareVersion = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentGenericKeywords(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GenericKeyword to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentInstantBooking(v **types.InstantBooking, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InstantBooking - if *v == nil { - sv = &types.InstantBooking{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DurationInMinutes": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Minutes to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DurationInMinutes = ptr.Int32(int32(i64)) - } - - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidCertificateAuthorityException(v **types.InvalidCertificateAuthorityException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InvalidCertificateAuthorityException - if *v == nil { - sv = &types.InvalidCertificateAuthorityException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidDeviceException(v **types.InvalidDeviceException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InvalidDeviceException - if *v == nil { - sv = &types.InvalidDeviceException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidSecretsManagerResourceException(v **types.InvalidSecretsManagerResourceException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InvalidSecretsManagerResourceException - if *v == nil { - sv = &types.InvalidSecretsManagerResourceException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidServiceLinkedRoleStateException(v **types.InvalidServiceLinkedRoleStateException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InvalidServiceLinkedRoleStateException - if *v == nil { - sv = &types.InvalidServiceLinkedRoleStateException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidUserStatusException(v **types.InvalidUserStatusException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InvalidUserStatusException - if *v == nil { - sv = &types.InvalidUserStatusException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentIPDialIn(v **types.IPDialIn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.IPDialIn - if *v == nil { - sv = &types.IPDialIn{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CommsProtocol": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CommsProtocol to be of type string, got %T instead", value) - } - sv.CommsProtocol = types.CommsProtocol(jtv) - } - - case "Endpoint": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value) - } - sv.Endpoint = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.LimitExceededException - if *v == nil { - sv = &types.LimitExceededException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentMeetingRoomConfiguration(v **types.MeetingRoomConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MeetingRoomConfiguration - if *v == nil { - sv = &types.MeetingRoomConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EndOfMeetingReminder": - if err := awsAwsjson11_deserializeDocumentEndOfMeetingReminder(&sv.EndOfMeetingReminder, value); err != nil { - return err - } - - case "InstantBooking": - if err := awsAwsjson11_deserializeDocumentInstantBooking(&sv.InstantBooking, value); err != nil { - return err - } - - case "ProactiveJoin": - if err := awsAwsjson11_deserializeDocumentProactiveJoin(&sv.ProactiveJoin, value); err != nil { - return err - } - - case "RequireCheckIn": - if err := awsAwsjson11_deserializeDocumentRequireCheckIn(&sv.RequireCheckIn, value); err != nil { - return err - } - - case "RoomUtilizationMetricsEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.RoomUtilizationMetricsEnabled = ptr.Bool(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentMeetingSetting(v **types.MeetingSetting, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MeetingSetting - if *v == nil { - sv = &types.MeetingSetting{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RequirePin": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RequirePin to be of type string, got %T instead", value) - } - sv.RequirePin = types.RequirePin(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentNameInUseException(v **types.NameInUseException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NameInUseException - if *v == nil { - sv = &types.NameInUseException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NetworkProfile - if *v == nil { - sv = &types.NetworkProfile{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CertificateAuthorityArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.CertificateAuthorityArn = ptr.String(jtv) - } - - case "CurrentPassword": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CurrentWiFiPassword to be of type string, got %T instead", value) - } - sv.CurrentPassword = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkProfileDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "EapMethod": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkEapMethod to be of type string, got %T instead", value) - } - sv.EapMethod = types.NetworkEapMethod(jtv) - } - - case "NetworkProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.NetworkProfileArn = ptr.String(jtv) - } - - case "NetworkProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) - } - sv.NetworkProfileName = ptr.String(jtv) - } - - case "NextPassword": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextWiFiPassword to be of type string, got %T instead", value) - } - sv.NextPassword = ptr.String(jtv) - } - - case "SecurityType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkSecurityType to be of type string, got %T instead", value) - } - sv.SecurityType = types.NetworkSecurityType(jtv) - } - - case "Ssid": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkSsid to be of type string, got %T instead", value) - } - sv.Ssid = ptr.String(jtv) - } - - case "TrustAnchors": - if err := awsAwsjson11_deserializeDocumentTrustAnchorList(&sv.TrustAnchors, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfileData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NetworkProfileData - if *v == nil { - sv = &types.NetworkProfileData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CertificateAuthorityArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.CertificateAuthorityArn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkProfileDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "EapMethod": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkEapMethod to be of type string, got %T instead", value) - } - sv.EapMethod = types.NetworkEapMethod(jtv) - } - - case "NetworkProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.NetworkProfileArn = ptr.String(jtv) - } - - case "NetworkProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) - } - sv.NetworkProfileName = ptr.String(jtv) - } - - case "SecurityType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkSecurityType to be of type string, got %T instead", value) - } - sv.SecurityType = types.NetworkSecurityType(jtv) - } - - case "Ssid": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkSsid to be of type string, got %T instead", value) - } - sv.Ssid = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentNetworkProfileDataList(v *[]types.NetworkProfileData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.NetworkProfileData - if *v == nil { - cv = []types.NetworkProfileData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.NetworkProfileData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentNetworkProfileData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentNewInThisVersionBulletPoints(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BulletPoint to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NotFoundException - if *v == nil { - sv = &types.NotFoundException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.PhoneNumber - if *v == nil { - sv = &types.PhoneNumber{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Number": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) - } - sv.Number = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PhoneNumberType to be of type string, got %T instead", value) - } - sv.Type = types.PhoneNumberType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentPhoneNumberList(v *[]types.PhoneNumber, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.PhoneNumber - if *v == nil { - cv = []types.PhoneNumber{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.PhoneNumber - destAddr := &col - if err := awsAwsjson11_deserializeDocumentPhoneNumber(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentProactiveJoin(v **types.ProactiveJoin, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ProactiveJoin - if *v == nil { - sv = &types.ProactiveJoin{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EnabledByMotion": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.EnabledByMotion = ptr.Bool(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Profile - if *v == nil { - sv = &types.Profile{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Address": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Address to be of type string, got %T instead", value) - } - sv.Address = ptr.String(jtv) - } - - case "AddressBookArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AddressBookArn = ptr.String(jtv) - } - - case "DataRetentionOptIn": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.DataRetentionOptIn = ptr.Bool(jtv) - } - - case "DistanceUnit": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DistanceUnit to be of type string, got %T instead", value) - } - sv.DistanceUnit = types.DistanceUnit(jtv) - } - - case "IsDefault": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IsDefault = ptr.Bool(jtv) - } - - case "Locale": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceLocale to be of type string, got %T instead", value) - } - sv.Locale = ptr.String(jtv) - } - - case "MaxVolumeLimit": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected MaxVolumeLimit to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxVolumeLimit = ptr.Int32(int32(i64)) - } - - case "MeetingRoomConfiguration": - if err := awsAwsjson11_deserializeDocumentMeetingRoomConfiguration(&sv.MeetingRoomConfiguration, value); err != nil { - return err - } - - case "ProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ProfileArn = ptr.String(jtv) - } - - case "ProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) - } - sv.ProfileName = ptr.String(jtv) - } - - case "PSTNEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.PSTNEnabled = ptr.Bool(jtv) - } - - case "SetupModeDisabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.SetupModeDisabled = ptr.Bool(jtv) - } - - case "TemperatureUnit": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TemperatureUnit to be of type string, got %T instead", value) - } - sv.TemperatureUnit = types.TemperatureUnit(jtv) - } - - case "Timezone": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timezone to be of type string, got %T instead", value) - } - sv.Timezone = ptr.String(jtv) - } - - case "WakeWord": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WakeWord to be of type string, got %T instead", value) - } - sv.WakeWord = types.WakeWord(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ProfileData - if *v == nil { - sv = &types.ProfileData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Address": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Address to be of type string, got %T instead", value) - } - sv.Address = ptr.String(jtv) - } - - case "DistanceUnit": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DistanceUnit to be of type string, got %T instead", value) - } - sv.DistanceUnit = types.DistanceUnit(jtv) - } - - case "IsDefault": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IsDefault = ptr.Bool(jtv) - } - - case "Locale": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeviceLocale to be of type string, got %T instead", value) - } - sv.Locale = ptr.String(jtv) - } - - case "ProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ProfileArn = ptr.String(jtv) - } - - case "ProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) - } - sv.ProfileName = ptr.String(jtv) - } - - case "TemperatureUnit": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TemperatureUnit to be of type string, got %T instead", value) - } - sv.TemperatureUnit = types.TemperatureUnit(jtv) - } - - case "Timezone": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timezone to be of type string, got %T instead", value) - } - sv.Timezone = ptr.String(jtv) - } - - case "WakeWord": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WakeWord to be of type string, got %T instead", value) - } - sv.WakeWord = types.WakeWord(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentProfileDataList(v *[]types.ProfileData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ProfileData - if *v == nil { - cv = []types.ProfileData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ProfileData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentProfileData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentPSTNDialIn(v **types.PSTNDialIn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.PSTNDialIn - if *v == nil { - sv = &types.PSTNDialIn{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CountryCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CountryCode to be of type string, got %T instead", value) - } - sv.CountryCode = ptr.String(jtv) - } - - case "OneClickIdDelay": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OneClickIdDelay to be of type string, got %T instead", value) - } - sv.OneClickIdDelay = ptr.String(jtv) - } - - case "OneClickPinDelay": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OneClickPinDelay to be of type string, got %T instead", value) - } - sv.OneClickPinDelay = ptr.String(jtv) - } - - case "PhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OutboundPhoneNumber to be of type string, got %T instead", value) - } - sv.PhoneNumber = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentRequireCheckIn(v **types.RequireCheckIn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RequireCheckIn - if *v == nil { - sv = &types.RequireCheckIn{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "ReleaseAfterMinutes": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Minutes to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ReleaseAfterMinutes = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentResourceAssociatedException(v **types.ResourceAssociatedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceAssociatedException - if *v == nil { - sv = &types.ResourceAssociatedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceInUseException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceInUseException - if *v == nil { - sv = &types.ResourceInUseException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ClientRequestToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) - } - sv.ClientRequestToken = ptr.String(jtv) - } - - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentReviews(v *map[string]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var mv map[string]string - if *v == nil { - mv = map[string]string{} - } else { - mv = *v - } - - for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReviewValue to be of type string, got %T instead", value) - } - parsedVal = jtv - } - mv[key] = parsedVal - - } - *v = mv - return nil -} - -func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Room - if *v == nil { - sv = &types.Room{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "ProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ProfileArn = ptr.String(jtv) - } - - case "ProviderCalendarId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderCalendarId to be of type string, got %T instead", value) - } - sv.ProviderCalendarId = ptr.String(jtv) - } - - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - case "RoomName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) - } - sv.RoomName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RoomData - if *v == nil { - sv = &types.RoomData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "ProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ProfileArn = ptr.String(jtv) - } - - case "ProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) - } - sv.ProfileName = ptr.String(jtv) - } - - case "ProviderCalendarId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderCalendarId to be of type string, got %T instead", value) - } - sv.ProviderCalendarId = ptr.String(jtv) - } - - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - case "RoomName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) - } - sv.RoomName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentRoomDataList(v *[]types.RoomData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RoomData - if *v == nil { - cv = []types.RoomData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RoomData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentRoomData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentRoomSkillParameter(v **types.RoomSkillParameter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RoomSkillParameter - if *v == nil { - sv = &types.RoomSkillParameter{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ParameterKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomSkillParameterKey to be of type string, got %T instead", value) - } - sv.ParameterKey = ptr.String(jtv) - } - - case "ParameterValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomSkillParameterValue to be of type string, got %T instead", value) - } - sv.ParameterValue = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentRoomSkillParameters(v *[]types.RoomSkillParameter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RoomSkillParameter - if *v == nil { - cv = []types.RoomSkillParameter{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RoomSkillParameter - destAddr := &col - if err := awsAwsjson11_deserializeDocumentRoomSkillParameter(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSampleUtterances(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Utterance to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentShortSkillIdList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSipAddress(v **types.SipAddress, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SipAddress - if *v == nil { - sv = &types.SipAddress{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SipType to be of type string, got %T instead", value) - } - sv.Type = types.SipType(jtv) - } - - case "Uri": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SipUri to be of type string, got %T instead", value) - } - sv.Uri = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSipAddressList(v *[]types.SipAddress, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SipAddress - if *v == nil { - cv = []types.SipAddress{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SipAddress - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSipAddress(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillDetails(v **types.SkillDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillDetails - if *v == nil { - sv = &types.SkillDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BulletPoints": - if err := awsAwsjson11_deserializeDocumentBulletPoints(&sv.BulletPoints, value); err != nil { - return err - } - - case "DeveloperInfo": - if err := awsAwsjson11_deserializeDocumentDeveloperInfo(&sv.DeveloperInfo, value); err != nil { - return err - } - - case "EndUserLicenseAgreement": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EndUserLicenseAgreement to be of type string, got %T instead", value) - } - sv.EndUserLicenseAgreement = ptr.String(jtv) - } - - case "GenericKeywords": - if err := awsAwsjson11_deserializeDocumentGenericKeywords(&sv.GenericKeywords, value); err != nil { - return err - } - - case "InvocationPhrase": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected InvocationPhrase to be of type string, got %T instead", value) - } - sv.InvocationPhrase = ptr.String(jtv) - } - - case "NewInThisVersionBulletPoints": - if err := awsAwsjson11_deserializeDocumentNewInThisVersionBulletPoints(&sv.NewInThisVersionBulletPoints, value); err != nil { - return err - } - - case "ProductDescription": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProductDescription to be of type string, got %T instead", value) - } - sv.ProductDescription = ptr.String(jtv) - } - - case "ReleaseDate": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReleaseDate to be of type string, got %T instead", value) - } - sv.ReleaseDate = ptr.String(jtv) - } - - case "Reviews": - if err := awsAwsjson11_deserializeDocumentReviews(&sv.Reviews, value); err != nil { - return err - } - - case "SkillTypes": - if err := awsAwsjson11_deserializeDocumentSkillTypes(&sv.SkillTypes, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillGroup(v **types.SkillGroup, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillGroup - if *v == nil { - sv = &types.SkillGroup{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillGroupDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "SkillGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.SkillGroupArn = ptr.String(jtv) - } - - case "SkillGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillGroupName to be of type string, got %T instead", value) - } - sv.SkillGroupName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillGroupData(v **types.SkillGroupData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillGroupData - if *v == nil { - sv = &types.SkillGroupData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillGroupDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "SkillGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.SkillGroupArn = ptr.String(jtv) - } - - case "SkillGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillGroupName to be of type string, got %T instead", value) - } - sv.SkillGroupName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillGroupDataList(v *[]types.SkillGroupData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SkillGroupData - if *v == nil { - cv = []types.SkillGroupData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SkillGroupData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSkillGroupData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillNotLinkedException(v **types.SkillNotLinkedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillNotLinkedException - if *v == nil { - sv = &types.SkillNotLinkedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillsStoreSkill - if *v == nil { - sv = &types.SkillsStoreSkill{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "IconUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IconUrl to be of type string, got %T instead", value) - } - sv.IconUrl = ptr.String(jtv) - } - - case "SampleUtterances": - if err := awsAwsjson11_deserializeDocumentSampleUtterances(&sv.SampleUtterances, value); err != nil { - return err - } - - case "ShortDescription": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortDescription to be of type string, got %T instead", value) - } - sv.ShortDescription = ptr.String(jtv) - } - - case "SkillDetails": - if err := awsAwsjson11_deserializeDocumentSkillDetails(&sv.SkillDetails, value); err != nil { - return err - } - - case "SkillId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) - } - sv.SkillId = ptr.String(jtv) - } - - case "SkillName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillName to be of type string, got %T instead", value) - } - sv.SkillName = ptr.String(jtv) - } - - case "SupportsLinking": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) - } - sv.SupportsLinking = jtv - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillsStoreSkillList(v *[]types.SkillsStoreSkill, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SkillsStoreSkill - if *v == nil { - cv = []types.SkillsStoreSkill{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SkillsStoreSkill - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSkillsStoreSkill(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillSummary(v **types.SkillSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SkillSummary - if *v == nil { - sv = &types.SkillSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EnablementType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EnablementType to be of type string, got %T instead", value) - } - sv.EnablementType = types.EnablementType(jtv) - } - - case "SkillId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) - } - sv.SkillId = ptr.String(jtv) - } - - case "SkillName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillName to be of type string, got %T instead", value) - } - sv.SkillName = ptr.String(jtv) - } - - case "SkillType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillType to be of type string, got %T instead", value) - } - sv.SkillType = types.SkillType(jtv) - } - - case "SupportsLinking": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) - } - sv.SupportsLinking = jtv - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillSummaryList(v *[]types.SkillSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SkillSummary - if *v == nil { - cv = []types.SkillSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SkillSummary - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSkillSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSkillTypes(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SkillStoreType to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSmartHomeAppliance(v **types.SmartHomeAppliance, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SmartHomeAppliance - if *v == nil { - sv = &types.SmartHomeAppliance{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ApplianceDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "FriendlyName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ApplianceFriendlyName to be of type string, got %T instead", value) - } - sv.FriendlyName = ptr.String(jtv) - } - - case "ManufacturerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ApplianceManufacturerName to be of type string, got %T instead", value) - } - sv.ManufacturerName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSmartHomeApplianceList(v *[]types.SmartHomeAppliance, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SmartHomeAppliance - if *v == nil { - cv = []types.SmartHomeAppliance{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SmartHomeAppliance - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSmartHomeAppliance(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Tag - if *v == nil { - sv = &types.Tag{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Key": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) - } - sv.Key = ptr.String(jtv) - } - - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Tag - if *v == nil { - cv = []types.Tag{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Tag - destAddr := &col - if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentTrustAnchorList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TrustAnchor to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.UnauthorizedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.UnauthorizedException - if *v == nil { - sv = &types.UnauthorizedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.UserData - if *v == nil { - sv = &types.UserData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Email": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Email to be of type string, got %T instead", value) - } - sv.Email = ptr.String(jtv) - } - - case "EnrollmentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EnrollmentId to be of type string, got %T instead", value) - } - sv.EnrollmentId = ptr.String(jtv) - } - - case "EnrollmentStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EnrollmentStatus to be of type string, got %T instead", value) - } - sv.EnrollmentStatus = types.EnrollmentStatus(jtv) - } - - case "FirstName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected user_FirstName to be of type string, got %T instead", value) - } - sv.FirstName = ptr.String(jtv) - } - - case "LastName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected user_LastName to be of type string, got %T instead", value) - } - sv.LastName = ptr.String(jtv) - } - - case "UserArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.UserArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentUserDataList(v *[]types.UserData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.UserData - if *v == nil { - cv = []types.UserData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.UserData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentUserData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeOpDocumentApproveSkillOutput(v **ApproveSkillOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ApproveSkillOutput - if *v == nil { - sv = &ApproveSkillOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateContactWithAddressBookOutput(v **AssociateContactWithAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateContactWithAddressBookOutput - if *v == nil { - sv = &AssociateContactWithAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateDeviceWithNetworkProfileOutput(v **AssociateDeviceWithNetworkProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateDeviceWithNetworkProfileOutput - if *v == nil { - sv = &AssociateDeviceWithNetworkProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateDeviceWithRoomOutput(v **AssociateDeviceWithRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateDeviceWithRoomOutput - if *v == nil { - sv = &AssociateDeviceWithRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateSkillGroupWithRoomOutput(v **AssociateSkillGroupWithRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateSkillGroupWithRoomOutput - if *v == nil { - sv = &AssociateSkillGroupWithRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateSkillWithSkillGroupOutput(v **AssociateSkillWithSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateSkillWithSkillGroupOutput - if *v == nil { - sv = &AssociateSkillWithSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentAssociateSkillWithUsersOutput(v **AssociateSkillWithUsersOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AssociateSkillWithUsersOutput - if *v == nil { - sv = &AssociateSkillWithUsersOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateAddressBookOutput(v **CreateAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateAddressBookOutput - if *v == nil { - sv = &CreateAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AddressBookArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AddressBookArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateBusinessReportScheduleOutput(v **CreateBusinessReportScheduleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateBusinessReportScheduleOutput - if *v == nil { - sv = &CreateBusinessReportScheduleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ScheduleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ScheduleArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateConferenceProviderOutput(v **CreateConferenceProviderOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateConferenceProviderOutput - if *v == nil { - sv = &CreateConferenceProviderOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConferenceProviderArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ConferenceProviderArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateContactOutput(v **CreateContactOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateContactOutput - if *v == nil { - sv = &CreateContactOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContactArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ContactArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateGatewayGroupOutput(v **CreateGatewayGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateGatewayGroupOutput - if *v == nil { - sv = &CreateGatewayGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "GatewayGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.GatewayGroupArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateNetworkProfileOutput(v **CreateNetworkProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateNetworkProfileOutput - if *v == nil { - sv = &CreateNetworkProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NetworkProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.NetworkProfileArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateProfileOutput - if *v == nil { - sv = &CreateProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ProfileArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ProfileArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateRoomOutput(v **CreateRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateRoomOutput - if *v == nil { - sv = &CreateRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateSkillGroupOutput(v **CreateSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateSkillGroupOutput - if *v == nil { - sv = &CreateSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "SkillGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.SkillGroupArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateUserOutput - if *v == nil { - sv = &CreateUserOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "UserArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.UserArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteAddressBookOutput(v **DeleteAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteAddressBookOutput - if *v == nil { - sv = &DeleteAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteBusinessReportScheduleOutput(v **DeleteBusinessReportScheduleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteBusinessReportScheduleOutput - if *v == nil { - sv = &DeleteBusinessReportScheduleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteConferenceProviderOutput(v **DeleteConferenceProviderOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteConferenceProviderOutput - if *v == nil { - sv = &DeleteConferenceProviderOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteContactOutput(v **DeleteContactOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteContactOutput - if *v == nil { - sv = &DeleteContactOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteDeviceOutput(v **DeleteDeviceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteDeviceOutput - if *v == nil { - sv = &DeleteDeviceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteDeviceUsageDataOutput(v **DeleteDeviceUsageDataOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteDeviceUsageDataOutput - if *v == nil { - sv = &DeleteDeviceUsageDataOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteGatewayGroupOutput(v **DeleteGatewayGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteGatewayGroupOutput - if *v == nil { - sv = &DeleteGatewayGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteNetworkProfileOutput(v **DeleteNetworkProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteNetworkProfileOutput - if *v == nil { - sv = &DeleteNetworkProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteProfileOutput(v **DeleteProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteProfileOutput - if *v == nil { - sv = &DeleteProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteRoomOutput(v **DeleteRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteRoomOutput - if *v == nil { - sv = &DeleteRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteRoomSkillParameterOutput(v **DeleteRoomSkillParameterOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteRoomSkillParameterOutput - if *v == nil { - sv = &DeleteRoomSkillParameterOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteSkillAuthorizationOutput(v **DeleteSkillAuthorizationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteSkillAuthorizationOutput - if *v == nil { - sv = &DeleteSkillAuthorizationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteSkillGroupOutput(v **DeleteSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteSkillGroupOutput - if *v == nil { - sv = &DeleteSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteUserOutput - if *v == nil { - sv = &DeleteUserOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDisassociateContactFromAddressBookOutput(v **DisassociateContactFromAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DisassociateContactFromAddressBookOutput - if *v == nil { - sv = &DisassociateContactFromAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDisassociateDeviceFromRoomOutput(v **DisassociateDeviceFromRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DisassociateDeviceFromRoomOutput - if *v == nil { - sv = &DisassociateDeviceFromRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDisassociateSkillFromSkillGroupOutput(v **DisassociateSkillFromSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DisassociateSkillFromSkillGroupOutput - if *v == nil { - sv = &DisassociateSkillFromSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDisassociateSkillFromUsersOutput(v **DisassociateSkillFromUsersOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DisassociateSkillFromUsersOutput - if *v == nil { - sv = &DisassociateSkillFromUsersOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentDisassociateSkillGroupFromRoomOutput(v **DisassociateSkillGroupFromRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DisassociateSkillGroupFromRoomOutput - if *v == nil { - sv = &DisassociateSkillGroupFromRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentForgetSmartHomeAppliancesOutput(v **ForgetSmartHomeAppliancesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ForgetSmartHomeAppliancesOutput - if *v == nil { - sv = &ForgetSmartHomeAppliancesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetAddressBookOutput(v **GetAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetAddressBookOutput - if *v == nil { - sv = &GetAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AddressBook": - if err := awsAwsjson11_deserializeDocumentAddressBook(&sv.AddressBook, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetConferencePreferenceOutput(v **GetConferencePreferenceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetConferencePreferenceOutput - if *v == nil { - sv = &GetConferencePreferenceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Preference": - if err := awsAwsjson11_deserializeDocumentConferencePreference(&sv.Preference, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetConferenceProviderOutput(v **GetConferenceProviderOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetConferenceProviderOutput - if *v == nil { - sv = &GetConferenceProviderOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConferenceProvider": - if err := awsAwsjson11_deserializeDocumentConferenceProvider(&sv.ConferenceProvider, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetContactOutput(v **GetContactOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetContactOutput - if *v == nil { - sv = &GetContactOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Contact": - if err := awsAwsjson11_deserializeDocumentContact(&sv.Contact, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetDeviceOutput(v **GetDeviceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetDeviceOutput - if *v == nil { - sv = &GetDeviceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Device": - if err := awsAwsjson11_deserializeDocumentDevice(&sv.Device, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetGatewayGroupOutput(v **GetGatewayGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetGatewayGroupOutput - if *v == nil { - sv = &GetGatewayGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "GatewayGroup": - if err := awsAwsjson11_deserializeDocumentGatewayGroup(&sv.GatewayGroup, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetGatewayOutput(v **GetGatewayOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetGatewayOutput - if *v == nil { - sv = &GetGatewayOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Gateway": - if err := awsAwsjson11_deserializeDocumentGateway(&sv.Gateway, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetInvitationConfigurationOutput(v **GetInvitationConfigurationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetInvitationConfigurationOutput - if *v == nil { - sv = &GetInvitationConfigurationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContactEmail": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Email to be of type string, got %T instead", value) - } - sv.ContactEmail = ptr.String(jtv) - } - - case "OrganizationName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OrganizationName to be of type string, got %T instead", value) - } - sv.OrganizationName = ptr.String(jtv) - } - - case "PrivateSkillIds": - if err := awsAwsjson11_deserializeDocumentShortSkillIdList(&sv.PrivateSkillIds, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetNetworkProfileOutput(v **GetNetworkProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetNetworkProfileOutput - if *v == nil { - sv = &GetNetworkProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NetworkProfile": - if err := awsAwsjson11_deserializeDocumentNetworkProfile(&sv.NetworkProfile, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetProfileOutput(v **GetProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetProfileOutput - if *v == nil { - sv = &GetProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Profile": - if err := awsAwsjson11_deserializeDocumentProfile(&sv.Profile, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetRoomOutput(v **GetRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetRoomOutput - if *v == nil { - sv = &GetRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Room": - if err := awsAwsjson11_deserializeDocumentRoom(&sv.Room, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetRoomSkillParameterOutput(v **GetRoomSkillParameterOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetRoomSkillParameterOutput - if *v == nil { - sv = &GetRoomSkillParameterOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoomSkillParameter": - if err := awsAwsjson11_deserializeDocumentRoomSkillParameter(&sv.RoomSkillParameter, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentGetSkillGroupOutput(v **GetSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetSkillGroupOutput - if *v == nil { - sv = &GetSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "SkillGroup": - if err := awsAwsjson11_deserializeDocumentSkillGroup(&sv.SkillGroup, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListBusinessReportSchedulesOutput(v **ListBusinessReportSchedulesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListBusinessReportSchedulesOutput - if *v == nil { - sv = &ListBusinessReportSchedulesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BusinessReportSchedules": - if err := awsAwsjson11_deserializeDocumentBusinessReportScheduleList(&sv.BusinessReportSchedules, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListConferenceProvidersOutput(v **ListConferenceProvidersOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListConferenceProvidersOutput - if *v == nil { - sv = &ListConferenceProvidersOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConferenceProviders": - if err := awsAwsjson11_deserializeDocumentConferenceProvidersList(&sv.ConferenceProviders, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListDeviceEventsOutput(v **ListDeviceEventsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListDeviceEventsOutput - if *v == nil { - sv = &ListDeviceEventsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeviceEvents": - if err := awsAwsjson11_deserializeDocumentDeviceEventList(&sv.DeviceEvents, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListGatewayGroupsOutput(v **ListGatewayGroupsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListGatewayGroupsOutput - if *v == nil { - sv = &ListGatewayGroupsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "GatewayGroups": - if err := awsAwsjson11_deserializeDocumentGatewayGroupSummaries(&sv.GatewayGroups, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListGatewaysOutput - if *v == nil { - sv = &ListGatewaysOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Gateways": - if err := awsAwsjson11_deserializeDocumentGatewaySummaries(&sv.Gateways, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListSkillsOutput(v **ListSkillsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListSkillsOutput - if *v == nil { - sv = &ListSkillsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SkillSummaries": - if err := awsAwsjson11_deserializeDocumentSkillSummaryList(&sv.SkillSummaries, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListSkillsStoreCategoriesOutput(v **ListSkillsStoreCategoriesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListSkillsStoreCategoriesOutput - if *v == nil { - sv = &ListSkillsStoreCategoriesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CategoryList": - if err := awsAwsjson11_deserializeDocumentCategoryList(&sv.CategoryList, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListSkillsStoreSkillsByCategoryOutput(v **ListSkillsStoreSkillsByCategoryOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListSkillsStoreSkillsByCategoryOutput - if *v == nil { - sv = &ListSkillsStoreSkillsByCategoryOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SkillsStoreSkills": - if err := awsAwsjson11_deserializeDocumentSkillsStoreSkillList(&sv.SkillsStoreSkills, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListSmartHomeAppliancesOutput(v **ListSmartHomeAppliancesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListSmartHomeAppliancesOutput - if *v == nil { - sv = &ListSmartHomeAppliancesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SmartHomeAppliances": - if err := awsAwsjson11_deserializeDocumentSmartHomeApplianceList(&sv.SmartHomeAppliances, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListTagsOutput - if *v == nil { - sv = &ListTagsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "Tags": - if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentPutConferencePreferenceOutput(v **PutConferencePreferenceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *PutConferencePreferenceOutput - if *v == nil { - sv = &PutConferencePreferenceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentPutInvitationConfigurationOutput(v **PutInvitationConfigurationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *PutInvitationConfigurationOutput - if *v == nil { - sv = &PutInvitationConfigurationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentPutRoomSkillParameterOutput(v **PutRoomSkillParameterOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *PutRoomSkillParameterOutput - if *v == nil { - sv = &PutRoomSkillParameterOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentPutSkillAuthorizationOutput(v **PutSkillAuthorizationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *PutSkillAuthorizationOutput - if *v == nil { - sv = &PutSkillAuthorizationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentRegisterAVSDeviceOutput(v **RegisterAVSDeviceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *RegisterAVSDeviceOutput - if *v == nil { - sv = &RegisterAVSDeviceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeviceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DeviceArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentRejectSkillOutput(v **RejectSkillOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *RejectSkillOutput - if *v == nil { - sv = &RejectSkillOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentResolveRoomOutput(v **ResolveRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ResolveRoomOutput - if *v == nil { - sv = &ResolveRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoomArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoomArn = ptr.String(jtv) - } - - case "RoomName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) - } - sv.RoomName = ptr.String(jtv) - } - - case "RoomSkillParameters": - if err := awsAwsjson11_deserializeDocumentRoomSkillParameters(&sv.RoomSkillParameters, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentRevokeInvitationOutput(v **RevokeInvitationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *RevokeInvitationOutput - if *v == nil { - sv = &RevokeInvitationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchAddressBooksOutput(v **SearchAddressBooksOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchAddressBooksOutput - if *v == nil { - sv = &SearchAddressBooksOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AddressBooks": - if err := awsAwsjson11_deserializeDocumentAddressBookDataList(&sv.AddressBooks, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchContactsOutput(v **SearchContactsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchContactsOutput - if *v == nil { - sv = &SearchContactsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Contacts": - if err := awsAwsjson11_deserializeDocumentContactDataList(&sv.Contacts, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchDevicesOutput(v **SearchDevicesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchDevicesOutput - if *v == nil { - sv = &SearchDevicesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Devices": - if err := awsAwsjson11_deserializeDocumentDeviceDataList(&sv.Devices, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchNetworkProfilesOutput(v **SearchNetworkProfilesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchNetworkProfilesOutput - if *v == nil { - sv = &SearchNetworkProfilesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NetworkProfiles": - if err := awsAwsjson11_deserializeDocumentNetworkProfileDataList(&sv.NetworkProfiles, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchProfilesOutput - if *v == nil { - sv = &SearchProfilesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "Profiles": - if err := awsAwsjson11_deserializeDocumentProfileDataList(&sv.Profiles, value); err != nil { - return err - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchRoomsOutput(v **SearchRoomsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchRoomsOutput - if *v == nil { - sv = &SearchRoomsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "Rooms": - if err := awsAwsjson11_deserializeDocumentRoomDataList(&sv.Rooms, value); err != nil { - return err - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchSkillGroupsOutput(v **SearchSkillGroupsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchSkillGroupsOutput - if *v == nil { - sv = &SearchSkillGroupsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SkillGroups": - if err := awsAwsjson11_deserializeDocumentSkillGroupDataList(&sv.SkillGroups, value); err != nil { - return err - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSearchUsersOutput(v **SearchUsersOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SearchUsersOutput - if *v == nil { - sv = &SearchUsersOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "TotalCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalCount = ptr.Int32(int32(i64)) - } - - case "Users": - if err := awsAwsjson11_deserializeDocumentUserDataList(&sv.Users, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSendAnnouncementOutput(v **SendAnnouncementOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SendAnnouncementOutput - if *v == nil { - sv = &SendAnnouncementOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AnnouncementArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AnnouncementArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentSendInvitationOutput(v **SendInvitationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *SendInvitationOutput - if *v == nil { - sv = &SendInvitationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentStartDeviceSyncOutput(v **StartDeviceSyncOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *StartDeviceSyncOutput - if *v == nil { - sv = &StartDeviceSyncOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentStartSmartHomeApplianceDiscoveryOutput(v **StartSmartHomeApplianceDiscoveryOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *StartSmartHomeApplianceDiscoveryOutput - if *v == nil { - sv = &StartSmartHomeApplianceDiscoveryOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *TagResourceOutput - if *v == nil { - sv = &TagResourceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UntagResourceOutput - if *v == nil { - sv = &UntagResourceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateAddressBookOutput(v **UpdateAddressBookOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateAddressBookOutput - if *v == nil { - sv = &UpdateAddressBookOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateBusinessReportScheduleOutput(v **UpdateBusinessReportScheduleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateBusinessReportScheduleOutput - if *v == nil { - sv = &UpdateBusinessReportScheduleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateConferenceProviderOutput(v **UpdateConferenceProviderOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateConferenceProviderOutput - if *v == nil { - sv = &UpdateConferenceProviderOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateContactOutput(v **UpdateContactOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateContactOutput - if *v == nil { - sv = &UpdateContactOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateDeviceOutput(v **UpdateDeviceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateDeviceOutput - if *v == nil { - sv = &UpdateDeviceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateGatewayGroupOutput(v **UpdateGatewayGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateGatewayGroupOutput - if *v == nil { - sv = &UpdateGatewayGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateGatewayOutput(v **UpdateGatewayOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateGatewayOutput - if *v == nil { - sv = &UpdateGatewayOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateNetworkProfileOutput(v **UpdateNetworkProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateNetworkProfileOutput - if *v == nil { - sv = &UpdateNetworkProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateProfileOutput(v **UpdateProfileOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateProfileOutput - if *v == nil { - sv = &UpdateProfileOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateRoomOutput(v **UpdateRoomOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRoomOutput - if *v == nil { - sv = &UpdateRoomOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentUpdateSkillGroupOutput(v **UpdateSkillGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateSkillGroupOutput - if *v == nil { - sv = &UpdateSkillGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type protocolErrorInfo struct { - Type string `json:"__type"` - Message string - Code any // nonstandard for awsjson but some services do present the type here -} - -func getProtocolErrorInfo(decoder *json.Decoder) (protocolErrorInfo, error) { - var errInfo protocolErrorInfo - if err := decoder.Decode(&errInfo); err != nil { - if err == io.EOF { - return errInfo, nil - } - return errInfo, err - } - - return errInfo, nil -} - -func resolveProtocolErrorType(headerType string, bodyInfo protocolErrorInfo) (string, bool) { - if len(headerType) != 0 { - return headerType, true - } else if len(bodyInfo.Type) != 0 { - return bodyInfo.Type, true - } else if code, ok := bodyInfo.Code.(string); ok && len(code) != 0 { - return code, true - } - return "", false -} diff --git a/service/alexaforbusiness/doc.go b/service/alexaforbusiness/doc.go deleted file mode 100644 index 18684aec62b..00000000000 --- a/service/alexaforbusiness/doc.go +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -// Package alexaforbusiness provides the API client, operations, and parameter -// types for Alexa For Business. -// -// Alexa for Business has been retired and is no longer supported. -package alexaforbusiness diff --git a/service/alexaforbusiness/endpoints.go b/service/alexaforbusiness/endpoints.go deleted file mode 100644 index 82477e238bb..00000000000 --- a/service/alexaforbusiness/endpoints.go +++ /dev/null @@ -1,516 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "errors" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" - "github.com/aws/aws-sdk-go-v2/internal/endpoints" - "github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn" - internalendpoints "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/internal/endpoints" - smithyauth "github.com/aws/smithy-go/auth" - smithyendpoints "github.com/aws/smithy-go/endpoints" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/http" - "net/url" - "os" - "strings" -) - -// EndpointResolverOptions is the service endpoint resolver options -type EndpointResolverOptions = internalendpoints.Options - -// EndpointResolver interface for resolving service endpoints. -type EndpointResolver interface { - ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) -} - -var _ EndpointResolver = &internalendpoints.Resolver{} - -// NewDefaultEndpointResolver constructs a new service endpoint resolver -func NewDefaultEndpointResolver() *internalendpoints.Resolver { - return internalendpoints.New() -} - -// EndpointResolverFunc is a helper utility that wraps a function so it satisfies -// the EndpointResolver interface. This is useful when you want to add additional -// endpoint resolving logic, or stub out specific endpoints with custom values. -type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) - -func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - return fn(region, options) -} - -// EndpointResolverFromURL returns an EndpointResolver configured using the -// provided endpoint url. By default, the resolved endpoint resolver uses the -// client region as signing region, and the endpoint source is set to -// EndpointSourceCustom.You can provide functional options to configure endpoint -// values for the resolved endpoint. -func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { - e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} - for _, fn := range optFns { - fn(&e) - } - - return EndpointResolverFunc( - func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { - if len(e.SigningRegion) == 0 { - e.SigningRegion = region - } - return e, nil - }, - ) -} - -type ResolveEndpoint struct { - Resolver EndpointResolver - Options EndpointResolverOptions -} - -func (*ResolveEndpoint) ID() string { - return "ResolveEndpoint" -} - -func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.Resolver == nil { - return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") - } - - eo := m.Options - eo.Logger = middleware.GetLogger(ctx) - - var endpoint aws.Endpoint - endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) - if err != nil { - nf := (&aws.EndpointNotFoundError{}) - if errors.As(err, &nf) { - ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false) - return next.HandleSerialize(ctx, in) - } - return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) - } - - req.URL, err = url.Parse(endpoint.URL) - if err != nil { - return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) - } - - if len(awsmiddleware.GetSigningName(ctx)) == 0 { - signingName := endpoint.SigningName - if len(signingName) == 0 { - signingName = "a4b" - } - ctx = awsmiddleware.SetSigningName(ctx, signingName) - } - ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) - ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) - ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) - ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) - return next.HandleSerialize(ctx, in) -} -func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { - return stack.Serialize.Insert(&ResolveEndpoint{ - Resolver: o.EndpointResolver, - Options: o.EndpointOptions, - }, "OperationSerializer", middleware.Before) -} - -func removeResolveEndpointMiddleware(stack *middleware.Stack) error { - _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) - return err -} - -type wrappedEndpointResolver struct { - awsResolver aws.EndpointResolverWithOptions -} - -func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - return w.awsResolver.ResolveEndpoint(ServiceID, region, options) -} - -type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) - -func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { - return a(service, region) -} - -var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) - -// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver. -// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error, -// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked -// via its middleware. -// -// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated. -func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver { - var resolver aws.EndpointResolverWithOptions - - if awsResolverWithOptions != nil { - resolver = awsResolverWithOptions - } else if awsResolver != nil { - resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) - } - - return &wrappedEndpointResolver{ - awsResolver: resolver, - } -} - -func finalizeClientEndpointResolverOptions(options *Options) { - options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() - - if len(options.EndpointOptions.ResolvedRegion) == 0 { - const fipsInfix = "-fips-" - const fipsPrefix = "fips-" - const fipsSuffix = "-fips" - - if strings.Contains(options.Region, fipsInfix) || - strings.Contains(options.Region, fipsPrefix) || - strings.Contains(options.Region, fipsSuffix) { - options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( - options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") - options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled - } - } - -} - -func resolveEndpointResolverV2(options *Options) { - if options.EndpointResolverV2 == nil { - options.EndpointResolverV2 = NewDefaultEndpointResolverV2() - } -} - -func resolveBaseEndpoint(cfg aws.Config, o *Options) { - if cfg.BaseEndpoint != nil { - o.BaseEndpoint = cfg.BaseEndpoint - } - - _, g := os.LookupEnv("AWS_ENDPOINT_URL") - _, s := os.LookupEnv("AWS_ENDPOINT_URL_ALEXA_FOR_BUSINESS") - - if g && !s { - return - } - - value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "Alexa For Business", cfg.ConfigSources) - if found && err == nil { - o.BaseEndpoint = &value - } -} - -func bindRegion(region string) *string { - if region == "" { - return nil - } - return aws.String(endpoints.MapFIPSRegion(region)) -} - -// EndpointParameters provides the parameters that influence how endpoints are -// resolved. -type EndpointParameters struct { - // The AWS region used to dispatch the request. - // - // Parameter is - // required. - // - // AWS::Region - Region *string - - // When true, use the dual-stack endpoint. If the configured endpoint does not - // support dual-stack, dispatching the request MAY return an error. - // - // Defaults to - // false if no value is provided. - // - // AWS::UseDualStack - UseDualStack *bool - - // When true, send this request to the FIPS-compliant regional endpoint. If the - // configured endpoint does not have a FIPS compliant endpoint, dispatching the - // request will return an error. - // - // Defaults to false if no value is - // provided. - // - // AWS::UseFIPS - UseFIPS *bool - - // Override the endpoint used to send this request - // - // Parameter is - // required. - // - // SDK::Endpoint - Endpoint *string -} - -// ValidateRequired validates required parameters are set. -func (p EndpointParameters) ValidateRequired() error { - if p.UseDualStack == nil { - return fmt.Errorf("parameter UseDualStack is required") - } - - if p.UseFIPS == nil { - return fmt.Errorf("parameter UseFIPS is required") - } - - return nil -} - -// WithDefaults returns a shallow copy of EndpointParameterswith default values -// applied to members where applicable. -func (p EndpointParameters) WithDefaults() EndpointParameters { - if p.UseDualStack == nil { - p.UseDualStack = ptr.Bool(false) - } - - if p.UseFIPS == nil { - p.UseFIPS = ptr.Bool(false) - } - return p -} - -// EndpointResolverV2 provides the interface for resolving service endpoints. -type EndpointResolverV2 interface { - // ResolveEndpoint attempts to resolve the endpoint with the provided options, - // returning the endpoint if found. Otherwise an error is returned. - ResolveEndpoint(ctx context.Context, params EndpointParameters) ( - smithyendpoints.Endpoint, error, - ) -} - -// resolver provides the implementation for resolving endpoints. -type resolver struct{} - -func NewDefaultEndpointResolverV2() EndpointResolverV2 { - return &resolver{} -} - -// ResolveEndpoint attempts to resolve the endpoint with the provided options, -// returning the endpoint if found. Otherwise an error is returned. -func (r *resolver) ResolveEndpoint( - ctx context.Context, params EndpointParameters, -) ( - endpoint smithyendpoints.Endpoint, err error, -) { - params = params.WithDefaults() - if err = params.ValidateRequired(); err != nil { - return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err) - } - _UseDualStack := *params.UseDualStack - _UseFIPS := *params.UseFIPS - - if exprVal := params.Endpoint; exprVal != nil { - _Endpoint := *exprVal - _ = _Endpoint - if _UseFIPS == true { - return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported") - } - if _UseDualStack == true { - return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and custom endpoint are not supported") - } - uriString := _Endpoint - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - if exprVal := params.Region; exprVal != nil { - _Region := *exprVal - _ = _Region - if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil { - _PartitionResult := *exprVal - _ = _PartitionResult - if _UseFIPS == true { - if _UseDualStack == true { - if true == _PartitionResult.SupportsFIPS { - if true == _PartitionResult.SupportsDualStack { - uriString := func() string { - var out strings.Builder - out.WriteString("https://a4b-fips.") - out.WriteString(_Region) - out.WriteString(".") - out.WriteString(_PartitionResult.DualStackDnsSuffix) - return out.String() - }() - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - } - return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS and DualStack are enabled, but this partition does not support one or both") - } - } - if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { - uriString := func() string { - var out strings.Builder - out.WriteString("https://a4b-fips.") - out.WriteString(_Region) - out.WriteString(".") - out.WriteString(_PartitionResult.DnsSuffix) - return out.String() - }() - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS is enabled but this partition does not support FIPS") - } - if _UseDualStack == true { - if true == _PartitionResult.SupportsDualStack { - uriString := func() string { - var out strings.Builder - out.WriteString("https://a4b.") - out.WriteString(_Region) - out.WriteString(".") - out.WriteString(_PartitionResult.DualStackDnsSuffix) - return out.String() - }() - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") - } - uriString := func() string { - var out strings.Builder - out.WriteString("https://a4b.") - out.WriteString(_Region) - out.WriteString(".") - out.WriteString(_PartitionResult.DnsSuffix) - return out.String() - }() - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.") - } - return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region") -} - -type endpointParamsBinder interface { - bindEndpointParams(*EndpointParameters) -} - -func bindEndpointParams(input interface{}, options Options) *EndpointParameters { - params := &EndpointParameters{} - - params.Region = bindRegion(options.Region) - params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled) - params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled) - params.Endpoint = options.BaseEndpoint - - if b, ok := input.(endpointParamsBinder); ok { - b.bindEndpointParams(params) - } - - return params -} - -type resolveEndpointV2Middleware struct { - options Options -} - -func (*resolveEndpointV2Middleware) ID() string { - return "ResolveEndpointV2" -} - -func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( - out middleware.FinalizeOutput, metadata middleware.Metadata, err error, -) { - if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { - return next.HandleFinalize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.options.EndpointResolverV2 == nil { - return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") - } - - params := bindEndpointParams(getOperationInput(ctx), m.options) - endpt, err := m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params) - if err != nil { - return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) - } - - if endpt.URI.RawPath == "" && req.URL.RawPath != "" { - endpt.URI.RawPath = endpt.URI.Path - } - req.URL.Scheme = endpt.URI.Scheme - req.URL.Host = endpt.URI.Host - req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path) - req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath) - for k := range endpt.Headers { - req.Header.Set(k, endpt.Headers.Get(k)) - } - - rscheme := getResolvedAuthScheme(ctx) - if rscheme == nil { - return out, metadata, fmt.Errorf("no resolved auth scheme") - } - - opts, _ := smithyauth.GetAuthOptions(&endpt.Properties) - for _, o := range opts { - rscheme.SignerProperties.SetAll(&o.SignerProperties) - } - - return next.HandleFinalize(ctx, in) -} diff --git a/service/alexaforbusiness/endpoints_config_test.go b/service/alexaforbusiness/endpoints_config_test.go deleted file mode 100644 index b49cb384664..00000000000 --- a/service/alexaforbusiness/endpoints_config_test.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "github.com/aws/aws-sdk-go-v2/aws" - "os" - "reflect" - "testing" -) - -type mockConfigSource struct { - global string - service string - ignore bool -} - -// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured -// endpoints feature. -func (m mockConfigSource) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) { - return m.ignore, m.ignore, nil -} - -// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use -// with configured endpoints. -func (m mockConfigSource) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) { - if m.service != "" { - return m.service, true, nil - } - return "", false, nil -} - -func TestResolveBaseEndpoint(t *testing.T) { - cases := map[string]struct { - envGlobal string - envService string - envIgnore bool - configGlobal string - configService string - configIgnore bool - clientEndpoint *string - expectURL *string - }{ - "env ignore": { - envGlobal: "https://env-global.dev", - envService: "https://env-alexa-for-business.dev", - envIgnore: true, - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - expectURL: nil, - }, - "env global": { - envGlobal: "https://env-global.dev", - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - expectURL: aws.String("https://env-global.dev"), - }, - "env service": { - envGlobal: "https://env-global.dev", - envService: "https://env-alexa-for-business.dev", - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - expectURL: aws.String("https://env-alexa-for-business.dev"), - }, - "config ignore": { - envGlobal: "https://env-global.dev", - envService: "https://env-alexa-for-business.dev", - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - configIgnore: true, - expectURL: nil, - }, - "config global": { - configGlobal: "http://config-global.dev", - expectURL: aws.String("http://config-global.dev"), - }, - "config service": { - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - expectURL: aws.String("http://config-alexa-for-business.dev"), - }, - "client": { - envGlobal: "https://env-global.dev", - envService: "https://env-alexa-for-business.dev", - configGlobal: "http://config-global.dev", - configService: "http://config-alexa-for-business.dev", - clientEndpoint: aws.String("https://client-alexa-for-business.dev"), - expectURL: aws.String("https://client-alexa-for-business.dev"), - }, - } - - for name, c := range cases { - t.Run(name, func(t *testing.T) { - os.Clearenv() - - awsConfig := aws.Config{} - ignore := c.envIgnore || c.configIgnore - - if c.configGlobal != "" && !ignore { - awsConfig.BaseEndpoint = aws.String(c.configGlobal) - } - - if c.envGlobal != "" { - t.Setenv("AWS_ENDPOINT_URL", c.envGlobal) - if !ignore { - awsConfig.BaseEndpoint = aws.String(c.envGlobal) - } - } - - if c.envService != "" { - t.Setenv("AWS_ENDPOINT_URL_ALEXA_FOR_BUSINESS", c.envService) - } - - awsConfig.ConfigSources = []interface{}{ - mockConfigSource{ - global: c.envGlobal, - service: c.envService, - ignore: c.envIgnore, - }, - mockConfigSource{ - global: c.configGlobal, - service: c.configService, - ignore: c.configIgnore, - }, - } - - client := NewFromConfig(awsConfig, func(o *Options) { - if c.clientEndpoint != nil { - o.BaseEndpoint = c.clientEndpoint - } - }) - - if e, a := c.expectURL, client.options.BaseEndpoint; !reflect.DeepEqual(e, a) { - t.Errorf("expect endpoint %v , got %v", e, a) - } - }) - } -} diff --git a/service/alexaforbusiness/endpoints_test.go b/service/alexaforbusiness/endpoints_test.go deleted file mode 100644 index 032d1483ad8..00000000000 --- a/service/alexaforbusiness/endpoints_test.go +++ /dev/null @@ -1,820 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - smithy "github.com/aws/smithy-go" - smithyendpoints "github.com/aws/smithy-go/endpoints" - "github.com/aws/smithy-go/ptr" - "net/http" - "net/url" - "reflect" - "strings" - "testing" -) - -// For region us-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase0(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-east-1.amazonaws.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-east-1 with FIPS enabled and DualStack enabled -func TestEndpointCase1(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-east-1.api.aws") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase2(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-east-1.amazonaws.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase3(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-east-1.api.aws") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region cn-north-1 with FIPS enabled and DualStack enabled -func TestEndpointCase4(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("cn-north-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.cn-north-1.api.amazonwebservices.com.cn") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region cn-north-1 with FIPS enabled and DualStack disabled -func TestEndpointCase5(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("cn-north-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.cn-north-1.amazonaws.com.cn") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region cn-north-1 with FIPS disabled and DualStack enabled -func TestEndpointCase6(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("cn-north-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.cn-north-1.api.amazonwebservices.com.cn") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region cn-north-1 with FIPS disabled and DualStack disabled -func TestEndpointCase7(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("cn-north-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.cn-north-1.amazonaws.com.cn") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-gov-east-1 with FIPS enabled and DualStack enabled -func TestEndpointCase8(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-gov-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-gov-east-1.api.aws") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-gov-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase9(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-gov-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-gov-east-1.amazonaws.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-gov-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase10(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-gov-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-gov-east-1.api.aws") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-gov-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase11(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-gov-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-gov-east-1.amazonaws.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-iso-east-1 with FIPS enabled and DualStack enabled -func TestEndpointCase12(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-iso-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase13(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-iso-east-1.c2s.ic.gov") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-iso-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase14(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-iso-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase15(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-iso-east-1.c2s.ic.gov") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-isob-east-1 with FIPS enabled and DualStack enabled -func TestEndpointCase16(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-isob-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-isob-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase17(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-isob-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b-fips.us-isob-east-1.sc2s.sgov.gov") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For region us-isob-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase18(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-isob-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-isob-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase19(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-isob-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://a4b.us-isob-east-1.sc2s.sgov.gov") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For custom endpoint with region set and fips disabled and dualstack disabled -func TestEndpointCase20(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - Endpoint: ptr.String("https://example.com"), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://example.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For custom endpoint with region not set and fips disabled and dualstack disabled -func TestEndpointCase21(t *testing.T) { - var params = EndpointParameters{ - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(false), - Endpoint: ptr.String("https://example.com"), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - uri, _ := url.Parse("https://example.com") - - expectEndpoint := smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: smithy.Properties{}, - } - - if e, a := expectEndpoint.URI, result.URI; e != a { - t.Errorf("expect %v URI, got %v", e, a) - } - - if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { - t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) - } - - if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { - t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) - } -} - -// For custom endpoint with fips enabled and dualstack disabled -func TestEndpointCase22(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(true), - UseDualStack: ptr.Bool(false), - Endpoint: ptr.String("https://example.com"), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "Invalid Configuration: FIPS and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase23(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - Endpoint: ptr.String("https://example.com"), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "Invalid Configuration: Dualstack and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// Missing region -func TestEndpointCase24(t *testing.T) { - var params = EndpointParameters{} - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} diff --git a/service/alexaforbusiness/generated.json b/service/alexaforbusiness/generated.json deleted file mode 100644 index 5f055a59f0f..00000000000 --- a/service/alexaforbusiness/generated.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "dependencies": { - "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", - "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", - "github.com/aws/smithy-go": "v1.4.0" - }, - "files": [ - "api_client.go", - "api_client_test.go", - "api_op_ApproveSkill.go", - "api_op_AssociateContactWithAddressBook.go", - "api_op_AssociateDeviceWithNetworkProfile.go", - "api_op_AssociateDeviceWithRoom.go", - "api_op_AssociateSkillGroupWithRoom.go", - "api_op_AssociateSkillWithSkillGroup.go", - "api_op_AssociateSkillWithUsers.go", - "api_op_CreateAddressBook.go", - "api_op_CreateBusinessReportSchedule.go", - "api_op_CreateConferenceProvider.go", - "api_op_CreateContact.go", - "api_op_CreateGatewayGroup.go", - "api_op_CreateNetworkProfile.go", - "api_op_CreateProfile.go", - "api_op_CreateRoom.go", - "api_op_CreateSkillGroup.go", - "api_op_CreateUser.go", - "api_op_DeleteAddressBook.go", - "api_op_DeleteBusinessReportSchedule.go", - "api_op_DeleteConferenceProvider.go", - "api_op_DeleteContact.go", - "api_op_DeleteDevice.go", - "api_op_DeleteDeviceUsageData.go", - "api_op_DeleteGatewayGroup.go", - "api_op_DeleteNetworkProfile.go", - "api_op_DeleteProfile.go", - "api_op_DeleteRoom.go", - "api_op_DeleteRoomSkillParameter.go", - "api_op_DeleteSkillAuthorization.go", - "api_op_DeleteSkillGroup.go", - "api_op_DeleteUser.go", - "api_op_DisassociateContactFromAddressBook.go", - "api_op_DisassociateDeviceFromRoom.go", - "api_op_DisassociateSkillFromSkillGroup.go", - "api_op_DisassociateSkillFromUsers.go", - "api_op_DisassociateSkillGroupFromRoom.go", - "api_op_ForgetSmartHomeAppliances.go", - "api_op_GetAddressBook.go", - "api_op_GetConferencePreference.go", - "api_op_GetConferenceProvider.go", - "api_op_GetContact.go", - "api_op_GetDevice.go", - "api_op_GetGateway.go", - "api_op_GetGatewayGroup.go", - "api_op_GetInvitationConfiguration.go", - "api_op_GetNetworkProfile.go", - "api_op_GetProfile.go", - "api_op_GetRoom.go", - "api_op_GetRoomSkillParameter.go", - "api_op_GetSkillGroup.go", - "api_op_ListBusinessReportSchedules.go", - "api_op_ListConferenceProviders.go", - "api_op_ListDeviceEvents.go", - "api_op_ListGatewayGroups.go", - "api_op_ListGateways.go", - "api_op_ListSkills.go", - "api_op_ListSkillsStoreCategories.go", - "api_op_ListSkillsStoreSkillsByCategory.go", - "api_op_ListSmartHomeAppliances.go", - "api_op_ListTags.go", - "api_op_PutConferencePreference.go", - "api_op_PutInvitationConfiguration.go", - "api_op_PutRoomSkillParameter.go", - "api_op_PutSkillAuthorization.go", - "api_op_RegisterAVSDevice.go", - "api_op_RejectSkill.go", - "api_op_ResolveRoom.go", - "api_op_RevokeInvitation.go", - "api_op_SearchAddressBooks.go", - "api_op_SearchContacts.go", - "api_op_SearchDevices.go", - "api_op_SearchNetworkProfiles.go", - "api_op_SearchProfiles.go", - "api_op_SearchRooms.go", - "api_op_SearchSkillGroups.go", - "api_op_SearchUsers.go", - "api_op_SendAnnouncement.go", - "api_op_SendInvitation.go", - "api_op_StartDeviceSync.go", - "api_op_StartSmartHomeApplianceDiscovery.go", - "api_op_TagResource.go", - "api_op_UntagResource.go", - "api_op_UpdateAddressBook.go", - "api_op_UpdateBusinessReportSchedule.go", - "api_op_UpdateConferenceProvider.go", - "api_op_UpdateContact.go", - "api_op_UpdateDevice.go", - "api_op_UpdateGateway.go", - "api_op_UpdateGatewayGroup.go", - "api_op_UpdateNetworkProfile.go", - "api_op_UpdateProfile.go", - "api_op_UpdateRoom.go", - "api_op_UpdateSkillGroup.go", - "auth.go", - "deserializers.go", - "doc.go", - "endpoints.go", - "endpoints_config_test.go", - "endpoints_test.go", - "generated.json", - "internal/endpoints/endpoints.go", - "internal/endpoints/endpoints_test.go", - "options.go", - "protocol_test.go", - "serializers.go", - "snapshot_test.go", - "types/enums.go", - "types/errors.go", - "types/types.go", - "validators.go" - ], - "go": "1.15", - "module": "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness", - "unstable": false -} diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod deleted file mode 100644 index 471b858e5ac..00000000000 --- a/service/alexaforbusiness/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/aws/aws-sdk-go-v2/service/alexaforbusiness - -go 1.20 - -require ( - github.com/aws/aws-sdk-go-v2 v1.26.1 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 - github.com/aws/smithy-go v1.20.2 -) - -replace github.com/aws/aws-sdk-go-v2 => ../../ - -replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ - -replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum deleted file mode 100644 index 4641fc37614..00000000000 --- a/service/alexaforbusiness/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/aws/smithy-go v1.20.2 h1:tbp628ireGtzcHDDmLT/6ADHidqnwgF57XOXZe6tp4Q= -github.com/aws/smithy-go v1.20.2/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= diff --git a/service/alexaforbusiness/go_module_metadata.go b/service/alexaforbusiness/go_module_metadata.go deleted file mode 100644 index 37399bea611..00000000000 --- a/service/alexaforbusiness/go_module_metadata.go +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. - -package alexaforbusiness - -// goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.4" diff --git a/service/alexaforbusiness/internal/endpoints/endpoints.go b/service/alexaforbusiness/internal/endpoints/endpoints.go deleted file mode 100644 index 486b80c7137..00000000000 --- a/service/alexaforbusiness/internal/endpoints/endpoints.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "github.com/aws/aws-sdk-go-v2/aws" - endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" - "github.com/aws/smithy-go/logging" - "regexp" -) - -// Options is the endpoint resolver configuration options -type Options struct { - // Logger is a logging implementation that log events should be sent to. - Logger logging.Logger - - // LogDeprecated indicates that deprecated endpoints should be logged to the - // provided logger. - LogDeprecated bool - - // ResolvedRegion is used to override the region to be resolved, rather then the - // using the value passed to the ResolveEndpoint method. This value is used by the - // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative - // name. You must not set this value directly in your application. - ResolvedRegion string - - // DisableHTTPS informs the resolver to return an endpoint that does not use the - // HTTPS scheme. - DisableHTTPS bool - - // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. - UseDualStackEndpoint aws.DualStackEndpointState - - // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. - UseFIPSEndpoint aws.FIPSEndpointState -} - -func (o Options) GetResolvedRegion() string { - return o.ResolvedRegion -} - -func (o Options) GetDisableHTTPS() bool { - return o.DisableHTTPS -} - -func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { - return o.UseDualStackEndpoint -} - -func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { - return o.UseFIPSEndpoint -} - -func transformToSharedOptions(options Options) endpoints.Options { - return endpoints.Options{ - Logger: options.Logger, - LogDeprecated: options.LogDeprecated, - ResolvedRegion: options.ResolvedRegion, - DisableHTTPS: options.DisableHTTPS, - UseDualStackEndpoint: options.UseDualStackEndpoint, - UseFIPSEndpoint: options.UseFIPSEndpoint, - } -} - -// Resolver Alexa For Business endpoint resolver -type Resolver struct { - partitions endpoints.Partitions -} - -// ResolveEndpoint resolves the service endpoint for the given region and options -func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { - if len(region) == 0 { - return endpoint, &aws.MissingRegionError{} - } - - opt := transformToSharedOptions(options) - return r.partitions.ResolveEndpoint(region, opt) -} - -// New returns a new Resolver -func New() *Resolver { - return &Resolver{ - partitions: defaultPartitions, - } -} - -var partitionRegexp = struct { - Aws *regexp.Regexp - AwsCn *regexp.Regexp - AwsIso *regexp.Regexp - AwsIsoB *regexp.Regexp - AwsIsoE *regexp.Regexp - AwsIsoF *regexp.Regexp - AwsUsGov *regexp.Regexp -}{ - - Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$"), - AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), - AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), - AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), - AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), - AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), - AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), -} - -var defaultPartitions = endpoints.Partitions{ - { - ID: "aws", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.DualStackVariant, - }: { - Hostname: "a4b.{region}.api.aws", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, - }: { - Hostname: "a4b-fips.{region}.api.aws", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.Aws, - IsRegionalized: true, - Endpoints: endpoints.Endpoints{ - endpoints.EndpointKey{ - Region: "us-east-1", - }: endpoints.Endpoint{}, - }, - }, - { - ID: "aws-cn", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.DualStackVariant, - }: { - Hostname: "a4b.{region}.api.amazonwebservices.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.amazonaws.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, - }: { - Hostname: "a4b-fips.{region}.api.amazonwebservices.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.amazonaws.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsCn, - IsRegionalized: true, - }, - { - ID: "aws-iso", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.c2s.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.c2s.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsIso, - IsRegionalized: true, - }, - { - ID: "aws-iso-b", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.sc2s.sgov.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.sc2s.sgov.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsIsoB, - IsRegionalized: true, - }, - { - ID: "aws-iso-e", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.cloud.adc-e.uk", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.cloud.adc-e.uk", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsIsoE, - IsRegionalized: true, - }, - { - ID: "aws-iso-f", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.csp.hci.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.csp.hci.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsIsoF, - IsRegionalized: true, - }, - { - ID: "aws-us-gov", - Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ - { - Variant: endpoints.DualStackVariant, - }: { - Hostname: "a4b.{region}.api.aws", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant, - }: { - Hostname: "a4b-fips.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, - }: { - Hostname: "a4b-fips.{region}.api.aws", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - { - Variant: 0, - }: { - Hostname: "a4b.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - }, - RegionRegex: partitionRegexp.AwsUsGov, - IsRegionalized: true, - }, -} diff --git a/service/alexaforbusiness/internal/endpoints/endpoints_test.go b/service/alexaforbusiness/internal/endpoints/endpoints_test.go deleted file mode 100644 index 08e5da2d833..00000000000 --- a/service/alexaforbusiness/internal/endpoints/endpoints_test.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "testing" -) - -func TestRegexCompile(t *testing.T) { - _ = defaultPartitions -} diff --git a/service/alexaforbusiness/options.go b/service/alexaforbusiness/options.go deleted file mode 100644 index 5d9b44d937b..00000000000 --- a/service/alexaforbusiness/options.go +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" - smithyauth "github.com/aws/smithy-go/auth" - "github.com/aws/smithy-go/logging" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/http" -) - -type HTTPClient interface { - Do(*http.Request) (*http.Response, error) -} - -type Options struct { - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // The optional application specific identifier appended to the User-Agent header. - AppID string - - // This endpoint will be given as input to an EndpointResolverV2. It is used for - // providing a custom base endpoint that is subject to modifications by the - // processing EndpointResolverV2. - BaseEndpoint *string - - // Configures the events that will be sent to the configured logger. - ClientLogMode aws.ClientLogMode - - // The credentials object to use when signing requests. - Credentials aws.CredentialsProvider - - // The configuration DefaultsMode that the SDK should use when constructing the - // clients initial default settings. - DefaultsMode aws.DefaultsMode - - // The endpoint options to be used when attempting to resolve an endpoint. - EndpointOptions EndpointResolverOptions - - // The service endpoint resolver. - // - // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a - // value for this field will likely prevent you from using any endpoint-related - // service features released after the introduction of EndpointResolverV2 and - // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom - // endpoint, set the client option BaseEndpoint instead. - EndpointResolver EndpointResolver - - // Resolves the endpoint used for a particular service operation. This should be - // used over the deprecated EndpointResolver. - EndpointResolverV2 EndpointResolverV2 - - // Signature Version 4 (SigV4) Signer - HTTPSignerV4 HTTPSignerV4 - - // Provides idempotency tokens values that will be automatically populated into - // idempotent API operations. - IdempotencyTokenProvider IdempotencyTokenProvider - - // The logger writer interface to write logging messages to. - Logger logging.Logger - - // The region to send requests to. (Required) - Region string - - // RetryMaxAttempts specifies the maximum number attempts an API client will call - // an operation that fails with a retryable error. A value of 0 is ignored, and - // will not be used to configure the API client created default retryer, or modify - // per operation call's retry max attempts. If specified in an operation call's - // functional options with a value that is different than the constructed client's - // Options, the Client's Retryer will be wrapped to use the operation's specific - // RetryMaxAttempts value. - RetryMaxAttempts int - - // RetryMode specifies the retry mode the API client will be created with, if - // Retryer option is not also specified. When creating a new API Clients this - // member will only be used if the Retryer Options member is nil. This value will - // be ignored if Retryer is not nil. Currently does not support per operation call - // overrides, may in the future. - RetryMode aws.RetryMode - - // Retryer guides how HTTP requests should be retried in case of recoverable - // failures. When nil the API client will use a default retryer. The kind of - // default retry created by the API client can be changed with the RetryMode - // option. - Retryer aws.Retryer - - // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set - // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You - // should not populate this structure programmatically, or rely on the values here - // within your applications. - RuntimeEnvironment aws.RuntimeEnvironment - - // The initial DefaultsMode used when the client options were constructed. If the - // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved - // value was at that point in time. Currently does not support per operation call - // overrides, may in the future. - resolvedDefaultsMode aws.DefaultsMode - - // The HTTP client to invoke API calls with. Defaults to client's default HTTP - // implementation if nil. - HTTPClient HTTPClient - - // The auth scheme resolver which determines how to authenticate for each - // operation. - AuthSchemeResolver AuthSchemeResolver - - // The list of auth schemes supported by the client. - AuthSchemes []smithyhttp.AuthScheme -} - -// Copy creates a clone where the APIOptions list is deep copied. -func (o Options) Copy() Options { - to := o - to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) - copy(to.APIOptions, o.APIOptions) - - return to -} - -func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver { - if schemeID == "aws.auth#sigv4" { - return getSigV4IdentityResolver(o) - } - if schemeID == "smithy.api#noAuth" { - return &smithyauth.AnonymousIdentityResolver{} - } - return nil -} - -// WithAPIOptions returns a functional option for setting the Client's APIOptions -// option. -func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { - return func(o *Options) { - o.APIOptions = append(o.APIOptions, optFns...) - } -} - -// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for -// this field will likely prevent you from using any endpoint-related service -// features released after the introduction of EndpointResolverV2 and BaseEndpoint. -// To migrate an EndpointResolver implementation that uses a custom endpoint, set -// the client option BaseEndpoint instead. -func WithEndpointResolver(v EndpointResolver) func(*Options) { - return func(o *Options) { - o.EndpointResolver = v - } -} - -// WithEndpointResolverV2 returns a functional option for setting the Client's -// EndpointResolverV2 option. -func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) { - return func(o *Options) { - o.EndpointResolverV2 = v - } -} - -func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver { - if o.Credentials != nil { - return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials} - } - return nil -} - -// WithSigV4SigningName applies an override to the authentication workflow to -// use the given signing name for SigV4-authenticated operations. -// -// This is an advanced setting. The value here is FINAL, taking precedence over -// the resolved signing name from both auth scheme resolution and endpoint -// resolution. -func WithSigV4SigningName(name string) func(*Options) { - fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, - ) { - return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in) - } - return func(o *Options) { - o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { - return s.Initialize.Add( - middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn), - middleware.Before, - ) - }) - } -} - -// WithSigV4SigningRegion applies an override to the authentication workflow to -// use the given signing region for SigV4-authenticated operations. -// -// This is an advanced setting. The value here is FINAL, taking precedence over -// the resolved signing region from both auth scheme resolution and endpoint -// resolution. -func WithSigV4SigningRegion(region string) func(*Options) { - fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, - ) { - return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in) - } - return func(o *Options) { - o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { - return s.Initialize.Add( - middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn), - middleware.Before, - ) - }) - } -} - -func ignoreAnonymousAuth(options *Options) { - if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { - options.Credentials = nil - } -} diff --git a/service/alexaforbusiness/protocol_test.go b/service/alexaforbusiness/protocol_test.go deleted file mode 100644 index b8fc75258a0..00000000000 --- a/service/alexaforbusiness/protocol_test.go +++ /dev/null @@ -1,3 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness diff --git a/service/alexaforbusiness/serializers.go b/service/alexaforbusiness/serializers.go deleted file mode 100644 index bcf3761f50f..00000000000 --- a/service/alexaforbusiness/serializers.go +++ /dev/null @@ -1,7963 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "bytes" - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/encoding/httpbinding" - smithyjson "github.com/aws/smithy-go/encoding/json" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "path" -) - -type awsAwsjson11_serializeOpApproveSkill struct { -} - -func (*awsAwsjson11_serializeOpApproveSkill) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpApproveSkill) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ApproveSkillInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ApproveSkill") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentApproveSkillInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateContactWithAddressBook struct { -} - -func (*awsAwsjson11_serializeOpAssociateContactWithAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateContactWithAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateContactWithAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateContactWithAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateContactWithAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateDeviceWithNetworkProfile struct { -} - -func (*awsAwsjson11_serializeOpAssociateDeviceWithNetworkProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateDeviceWithNetworkProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateDeviceWithNetworkProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateDeviceWithNetworkProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateDeviceWithNetworkProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateDeviceWithRoom struct { -} - -func (*awsAwsjson11_serializeOpAssociateDeviceWithRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateDeviceWithRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateDeviceWithRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateDeviceWithRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateDeviceWithRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateSkillGroupWithRoom struct { -} - -func (*awsAwsjson11_serializeOpAssociateSkillGroupWithRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateSkillGroupWithRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateSkillGroupWithRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateSkillGroupWithRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateSkillGroupWithRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateSkillWithSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpAssociateSkillWithSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateSkillWithSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateSkillWithSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateSkillWithSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateSkillWithSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpAssociateSkillWithUsers struct { -} - -func (*awsAwsjson11_serializeOpAssociateSkillWithUsers) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAssociateSkillWithUsers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateSkillWithUsersInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.AssociateSkillWithUsers") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAssociateSkillWithUsersInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateAddressBook struct { -} - -func (*awsAwsjson11_serializeOpCreateAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateBusinessReportSchedule struct { -} - -func (*awsAwsjson11_serializeOpCreateBusinessReportSchedule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateBusinessReportSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateBusinessReportScheduleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateBusinessReportSchedule") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateBusinessReportScheduleInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateConferenceProvider struct { -} - -func (*awsAwsjson11_serializeOpCreateConferenceProvider) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateConferenceProvider) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateConferenceProviderInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateConferenceProvider") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateConferenceProviderInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateContact struct { -} - -func (*awsAwsjson11_serializeOpCreateContact) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateContact) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateContactInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateContact") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateContactInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateGatewayGroup struct { -} - -func (*awsAwsjson11_serializeOpCreateGatewayGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateGatewayGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateGatewayGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateGatewayGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateGatewayGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateNetworkProfile struct { -} - -func (*awsAwsjson11_serializeOpCreateNetworkProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateNetworkProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateNetworkProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateNetworkProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateNetworkProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateProfile struct { -} - -func (*awsAwsjson11_serializeOpCreateProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateRoom struct { -} - -func (*awsAwsjson11_serializeOpCreateRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpCreateSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateUser struct { -} - -func (*awsAwsjson11_serializeOpCreateUser) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateUserInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.CreateUser") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteAddressBook struct { -} - -func (*awsAwsjson11_serializeOpDeleteAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteBusinessReportSchedule struct { -} - -func (*awsAwsjson11_serializeOpDeleteBusinessReportSchedule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteBusinessReportSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteBusinessReportScheduleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteBusinessReportSchedule") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteBusinessReportScheduleInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteConferenceProvider struct { -} - -func (*awsAwsjson11_serializeOpDeleteConferenceProvider) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteConferenceProvider) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteConferenceProviderInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteConferenceProvider") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteConferenceProviderInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteContact struct { -} - -func (*awsAwsjson11_serializeOpDeleteContact) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteContact) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteContactInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteContact") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteContactInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteDevice struct { -} - -func (*awsAwsjson11_serializeOpDeleteDevice) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteDeviceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteDevice") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteDeviceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteDeviceUsageData struct { -} - -func (*awsAwsjson11_serializeOpDeleteDeviceUsageData) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteDeviceUsageData) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteDeviceUsageDataInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteDeviceUsageData") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteDeviceUsageDataInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteGatewayGroup struct { -} - -func (*awsAwsjson11_serializeOpDeleteGatewayGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteGatewayGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteGatewayGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteGatewayGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteGatewayGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteNetworkProfile struct { -} - -func (*awsAwsjson11_serializeOpDeleteNetworkProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteNetworkProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteNetworkProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteNetworkProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteNetworkProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteProfile struct { -} - -func (*awsAwsjson11_serializeOpDeleteProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteRoom struct { -} - -func (*awsAwsjson11_serializeOpDeleteRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteRoomSkillParameter struct { -} - -func (*awsAwsjson11_serializeOpDeleteRoomSkillParameter) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteRoomSkillParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteRoomSkillParameterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteRoomSkillParameter") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteRoomSkillParameterInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteSkillAuthorization struct { -} - -func (*awsAwsjson11_serializeOpDeleteSkillAuthorization) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteSkillAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteSkillAuthorizationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteSkillAuthorization") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteSkillAuthorizationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpDeleteSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDeleteUser struct { -} - -func (*awsAwsjson11_serializeOpDeleteUser) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDeleteUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteUserInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DeleteUser") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDisassociateContactFromAddressBook struct { -} - -func (*awsAwsjson11_serializeOpDisassociateContactFromAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDisassociateContactFromAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateContactFromAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DisassociateContactFromAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateContactFromAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDisassociateDeviceFromRoom struct { -} - -func (*awsAwsjson11_serializeOpDisassociateDeviceFromRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDisassociateDeviceFromRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateDeviceFromRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DisassociateDeviceFromRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateDeviceFromRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDisassociateSkillFromSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpDisassociateSkillFromSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDisassociateSkillFromSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateSkillFromSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DisassociateSkillFromSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateSkillFromSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDisassociateSkillFromUsers struct { -} - -func (*awsAwsjson11_serializeOpDisassociateSkillFromUsers) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDisassociateSkillFromUsers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateSkillFromUsersInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DisassociateSkillFromUsers") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateSkillFromUsersInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpDisassociateSkillGroupFromRoom struct { -} - -func (*awsAwsjson11_serializeOpDisassociateSkillGroupFromRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDisassociateSkillGroupFromRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateSkillGroupFromRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.DisassociateSkillGroupFromRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateSkillGroupFromRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpForgetSmartHomeAppliances struct { -} - -func (*awsAwsjson11_serializeOpForgetSmartHomeAppliances) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpForgetSmartHomeAppliances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ForgetSmartHomeAppliancesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ForgetSmartHomeAppliances") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentForgetSmartHomeAppliancesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetAddressBook struct { -} - -func (*awsAwsjson11_serializeOpGetAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetConferencePreference struct { -} - -func (*awsAwsjson11_serializeOpGetConferencePreference) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetConferencePreference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetConferencePreferenceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetConferencePreference") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetConferencePreferenceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetConferenceProvider struct { -} - -func (*awsAwsjson11_serializeOpGetConferenceProvider) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetConferenceProvider) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetConferenceProviderInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetConferenceProvider") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetConferenceProviderInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetContact struct { -} - -func (*awsAwsjson11_serializeOpGetContact) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetContact) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetContactInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetContact") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetContactInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetDevice struct { -} - -func (*awsAwsjson11_serializeOpGetDevice) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetDeviceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetDevice") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetDeviceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetGateway struct { -} - -func (*awsAwsjson11_serializeOpGetGateway) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetGatewayInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetGateway") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetGatewayInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetGatewayGroup struct { -} - -func (*awsAwsjson11_serializeOpGetGatewayGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetGatewayGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetGatewayGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetGatewayGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetGatewayGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetInvitationConfiguration struct { -} - -func (*awsAwsjson11_serializeOpGetInvitationConfiguration) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetInvitationConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetInvitationConfigurationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetInvitationConfiguration") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetInvitationConfigurationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetNetworkProfile struct { -} - -func (*awsAwsjson11_serializeOpGetNetworkProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetNetworkProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetNetworkProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetNetworkProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetNetworkProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetProfile struct { -} - -func (*awsAwsjson11_serializeOpGetProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetRoom struct { -} - -func (*awsAwsjson11_serializeOpGetRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetRoomSkillParameter struct { -} - -func (*awsAwsjson11_serializeOpGetRoomSkillParameter) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetRoomSkillParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetRoomSkillParameterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetRoomSkillParameter") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetRoomSkillParameterInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpGetSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpGetSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpGetSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.GetSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListBusinessReportSchedules struct { -} - -func (*awsAwsjson11_serializeOpListBusinessReportSchedules) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListBusinessReportSchedules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListBusinessReportSchedulesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListBusinessReportSchedules") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListBusinessReportSchedulesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListConferenceProviders struct { -} - -func (*awsAwsjson11_serializeOpListConferenceProviders) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListConferenceProviders) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListConferenceProvidersInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListConferenceProviders") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListConferenceProvidersInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListDeviceEvents struct { -} - -func (*awsAwsjson11_serializeOpListDeviceEvents) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListDeviceEvents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListDeviceEventsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListDeviceEvents") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListDeviceEventsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListGatewayGroups struct { -} - -func (*awsAwsjson11_serializeOpListGatewayGroups) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListGatewayGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListGatewayGroupsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListGatewayGroups") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListGatewayGroupsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListGateways struct { -} - -func (*awsAwsjson11_serializeOpListGateways) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListGatewaysInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListGateways") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListGatewaysInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListSkills struct { -} - -func (*awsAwsjson11_serializeOpListSkills) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListSkills) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListSkillsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListSkills") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListSkillsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListSkillsStoreCategories struct { -} - -func (*awsAwsjson11_serializeOpListSkillsStoreCategories) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListSkillsStoreCategories) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListSkillsStoreCategoriesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListSkillsStoreCategories") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListSkillsStoreCategoriesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListSkillsStoreSkillsByCategory struct { -} - -func (*awsAwsjson11_serializeOpListSkillsStoreSkillsByCategory) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListSkillsStoreSkillsByCategory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListSkillsStoreSkillsByCategoryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListSkillsStoreSkillsByCategory") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListSkillsStoreSkillsByCategoryInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListSmartHomeAppliances struct { -} - -func (*awsAwsjson11_serializeOpListSmartHomeAppliances) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListSmartHomeAppliances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListSmartHomeAppliancesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListSmartHomeAppliances") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListSmartHomeAppliancesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpListTags struct { -} - -func (*awsAwsjson11_serializeOpListTags) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListTagsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ListTags") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListTagsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpPutConferencePreference struct { -} - -func (*awsAwsjson11_serializeOpPutConferencePreference) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpPutConferencePreference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*PutConferencePreferenceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.PutConferencePreference") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentPutConferencePreferenceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpPutInvitationConfiguration struct { -} - -func (*awsAwsjson11_serializeOpPutInvitationConfiguration) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpPutInvitationConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*PutInvitationConfigurationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.PutInvitationConfiguration") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentPutInvitationConfigurationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpPutRoomSkillParameter struct { -} - -func (*awsAwsjson11_serializeOpPutRoomSkillParameter) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpPutRoomSkillParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*PutRoomSkillParameterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.PutRoomSkillParameter") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentPutRoomSkillParameterInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpPutSkillAuthorization struct { -} - -func (*awsAwsjson11_serializeOpPutSkillAuthorization) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpPutSkillAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*PutSkillAuthorizationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.PutSkillAuthorization") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentPutSkillAuthorizationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpRegisterAVSDevice struct { -} - -func (*awsAwsjson11_serializeOpRegisterAVSDevice) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpRegisterAVSDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*RegisterAVSDeviceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.RegisterAVSDevice") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRegisterAVSDeviceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpRejectSkill struct { -} - -func (*awsAwsjson11_serializeOpRejectSkill) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpRejectSkill) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*RejectSkillInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.RejectSkill") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRejectSkillInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpResolveRoom struct { -} - -func (*awsAwsjson11_serializeOpResolveRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpResolveRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ResolveRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.ResolveRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentResolveRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpRevokeInvitation struct { -} - -func (*awsAwsjson11_serializeOpRevokeInvitation) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpRevokeInvitation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*RevokeInvitationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.RevokeInvitation") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRevokeInvitationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchAddressBooks struct { -} - -func (*awsAwsjson11_serializeOpSearchAddressBooks) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchAddressBooks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchAddressBooksInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchAddressBooks") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchAddressBooksInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchContacts struct { -} - -func (*awsAwsjson11_serializeOpSearchContacts) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchContacts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchContactsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchContacts") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchContactsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchDevices struct { -} - -func (*awsAwsjson11_serializeOpSearchDevices) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchDevices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchDevicesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchDevices") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchDevicesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchNetworkProfiles struct { -} - -func (*awsAwsjson11_serializeOpSearchNetworkProfiles) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchNetworkProfiles) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchNetworkProfilesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchNetworkProfiles") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchNetworkProfilesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchProfiles struct { -} - -func (*awsAwsjson11_serializeOpSearchProfiles) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchProfiles) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchProfilesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchProfiles") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchProfilesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchRooms struct { -} - -func (*awsAwsjson11_serializeOpSearchRooms) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchRooms) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchRoomsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchRooms") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchRoomsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchSkillGroups struct { -} - -func (*awsAwsjson11_serializeOpSearchSkillGroups) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchSkillGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchSkillGroupsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchSkillGroups") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchSkillGroupsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSearchUsers struct { -} - -func (*awsAwsjson11_serializeOpSearchUsers) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSearchUsers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SearchUsersInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SearchUsers") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchUsersInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSendAnnouncement struct { -} - -func (*awsAwsjson11_serializeOpSendAnnouncement) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSendAnnouncement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SendAnnouncementInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SendAnnouncement") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSendAnnouncementInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpSendInvitation struct { -} - -func (*awsAwsjson11_serializeOpSendInvitation) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpSendInvitation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*SendInvitationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.SendInvitation") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSendInvitationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpStartDeviceSync struct { -} - -func (*awsAwsjson11_serializeOpStartDeviceSync) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpStartDeviceSync) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*StartDeviceSyncInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.StartDeviceSync") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStartDeviceSyncInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpStartSmartHomeApplianceDiscovery struct { -} - -func (*awsAwsjson11_serializeOpStartSmartHomeApplianceDiscovery) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpStartSmartHomeApplianceDiscovery) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*StartSmartHomeApplianceDiscoveryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.StartSmartHomeApplianceDiscovery") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStartSmartHomeApplianceDiscoveryInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpTagResource struct { -} - -func (*awsAwsjson11_serializeOpTagResource) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*TagResourceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.TagResource") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUntagResource struct { -} - -func (*awsAwsjson11_serializeOpUntagResource) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UntagResourceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UntagResource") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateAddressBook struct { -} - -func (*awsAwsjson11_serializeOpUpdateAddressBook) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateAddressBook) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateAddressBookInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateAddressBook") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateAddressBookInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateBusinessReportSchedule struct { -} - -func (*awsAwsjson11_serializeOpUpdateBusinessReportSchedule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateBusinessReportSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateBusinessReportScheduleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateBusinessReportSchedule") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateBusinessReportScheduleInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateConferenceProvider struct { -} - -func (*awsAwsjson11_serializeOpUpdateConferenceProvider) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateConferenceProvider) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateConferenceProviderInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateConferenceProvider") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateConferenceProviderInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateContact struct { -} - -func (*awsAwsjson11_serializeOpUpdateContact) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateContact) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateContactInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateContact") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateContactInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateDevice struct { -} - -func (*awsAwsjson11_serializeOpUpdateDevice) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateDeviceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateDevice") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateDeviceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateGateway struct { -} - -func (*awsAwsjson11_serializeOpUpdateGateway) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateGatewayInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateGateway") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateGatewayInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateGatewayGroup struct { -} - -func (*awsAwsjson11_serializeOpUpdateGatewayGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateGatewayGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateGatewayGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateGatewayGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateGatewayGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateNetworkProfile struct { -} - -func (*awsAwsjson11_serializeOpUpdateNetworkProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateNetworkProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateNetworkProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateNetworkProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateNetworkProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateProfile struct { -} - -func (*awsAwsjson11_serializeOpUpdateProfile) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateProfileInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateProfile") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateRoom struct { -} - -func (*awsAwsjson11_serializeOpUpdateRoom) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateRoom) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRoomInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateRoom") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateRoomInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpUpdateSkillGroup struct { -} - -func (*awsAwsjson11_serializeOpUpdateSkillGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpUpdateSkillGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateSkillGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AlexaForBusiness.UpdateSkillGroup") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateSkillGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsAwsjson11_serializeDocumentAudio(v *types.Audio, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Locale) > 0 { - ok := object.Key("Locale") - ok.String(string(v.Locale)) - } - - if v.Location != nil { - ok := object.Key("Location") - ok.String(*v.Location) - } - - return nil -} - -func awsAwsjson11_serializeDocumentAudioList(v []types.Audio, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentAudio(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentAuthorizationResult(v map[string]string, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - for key := range v { - om := object.Key(key) - om.String(v[key]) - } - return nil -} - -func awsAwsjson11_serializeDocumentBusinessReportContentRange(v *types.BusinessReportContentRange, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Interval) > 0 { - ok := object.Key("Interval") - ok.String(string(v.Interval)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentBusinessReportRecurrence(v *types.BusinessReportRecurrence, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.StartDate != nil { - ok := object.Key("StartDate") - ok.String(*v.StartDate) - } - - return nil -} - -func awsAwsjson11_serializeDocumentConferencePreference(v *types.ConferencePreference, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DefaultConferenceProviderArn != nil { - ok := object.Key("DefaultConferenceProviderArn") - ok.String(*v.DefaultConferenceProviderArn) - } - - return nil -} - -func awsAwsjson11_serializeDocumentContent(v *types.Content, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AudioList != nil { - ok := object.Key("AudioList") - if err := awsAwsjson11_serializeDocumentAudioList(v.AudioList, ok); err != nil { - return err - } - } - - if v.SsmlList != nil { - ok := object.Key("SsmlList") - if err := awsAwsjson11_serializeDocumentSsmlList(v.SsmlList, ok); err != nil { - return err - } - } - - if v.TextList != nil { - ok := object.Key("TextList") - if err := awsAwsjson11_serializeDocumentTextList(v.TextList, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeDocumentCreateEndOfMeetingReminder(v *types.CreateEndOfMeetingReminder, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - if v.ReminderAtMinutes != nil { - ok := object.Key("ReminderAtMinutes") - if err := awsAwsjson11_serializeDocumentEndOfMeetingReminderMinutesList(v.ReminderAtMinutes, ok); err != nil { - return err - } - } - - if len(v.ReminderType) > 0 { - ok := object.Key("ReminderType") - ok.String(string(v.ReminderType)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentCreateInstantBooking(v *types.CreateInstantBooking, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DurationInMinutes != nil { - ok := object.Key("DurationInMinutes") - ok.Integer(*v.DurationInMinutes) - } - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - return nil -} - -func awsAwsjson11_serializeDocumentCreateMeetingRoomConfiguration(v *types.CreateMeetingRoomConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EndOfMeetingReminder != nil { - ok := object.Key("EndOfMeetingReminder") - if err := awsAwsjson11_serializeDocumentCreateEndOfMeetingReminder(v.EndOfMeetingReminder, ok); err != nil { - return err - } - } - - if v.InstantBooking != nil { - ok := object.Key("InstantBooking") - if err := awsAwsjson11_serializeDocumentCreateInstantBooking(v.InstantBooking, ok); err != nil { - return err - } - } - - if v.ProactiveJoin != nil { - ok := object.Key("ProactiveJoin") - if err := awsAwsjson11_serializeDocumentCreateProactiveJoin(v.ProactiveJoin, ok); err != nil { - return err - } - } - - if v.RequireCheckIn != nil { - ok := object.Key("RequireCheckIn") - if err := awsAwsjson11_serializeDocumentCreateRequireCheckIn(v.RequireCheckIn, ok); err != nil { - return err - } - } - - if v.RoomUtilizationMetricsEnabled != nil { - ok := object.Key("RoomUtilizationMetricsEnabled") - ok.Boolean(*v.RoomUtilizationMetricsEnabled) - } - - return nil -} - -func awsAwsjson11_serializeDocumentCreateProactiveJoin(v *types.CreateProactiveJoin, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EnabledByMotion != nil { - ok := object.Key("EnabledByMotion") - ok.Boolean(*v.EnabledByMotion) - } - - return nil -} - -func awsAwsjson11_serializeDocumentCreateRequireCheckIn(v *types.CreateRequireCheckIn, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - if v.ReleaseAfterMinutes != nil { - ok := object.Key("ReleaseAfterMinutes") - ok.Integer(*v.ReleaseAfterMinutes) - } - - return nil -} - -func awsAwsjson11_serializeDocumentEndOfMeetingReminderMinutesList(v []int32, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.Integer(v[i]) - } - return nil -} - -func awsAwsjson11_serializeDocumentFeatures(v []types.Feature, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(string(v[i])) - } - return nil -} - -func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) - } - - if v.Values != nil { - ok := object.Key("Values") - if err := awsAwsjson11_serializeDocumentFilterValueList(v.Values, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsjson11_serializeDocumentIPDialIn(v *types.IPDialIn, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.CommsProtocol) > 0 { - ok := object.Key("CommsProtocol") - ok.String(string(v.CommsProtocol)) - } - - if v.Endpoint != nil { - ok := object.Key("Endpoint") - ok.String(*v.Endpoint) - } - - return nil -} - -func awsAwsjson11_serializeDocumentMeetingSetting(v *types.MeetingSetting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.RequirePin) > 0 { - ok := object.Key("RequirePin") - ok.String(string(v.RequirePin)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentPhoneNumber(v *types.PhoneNumber, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Number != nil { - ok := object.Key("Number") - ok.String(*v.Number) - } - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentPhoneNumberList(v []types.PhoneNumber, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentPhoneNumber(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentPSTNDialIn(v *types.PSTNDialIn, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CountryCode != nil { - ok := object.Key("CountryCode") - ok.String(*v.CountryCode) - } - - if v.OneClickIdDelay != nil { - ok := object.Key("OneClickIdDelay") - ok.String(*v.OneClickIdDelay) - } - - if v.OneClickPinDelay != nil { - ok := object.Key("OneClickPinDelay") - ok.String(*v.OneClickPinDelay) - } - - if v.PhoneNumber != nil { - ok := object.Key("PhoneNumber") - ok.String(*v.PhoneNumber) - } - - return nil -} - -func awsAwsjson11_serializeDocumentRoomSkillParameter(v *types.RoomSkillParameter, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ParameterKey != nil { - ok := object.Key("ParameterKey") - ok.String(*v.ParameterKey) - } - - if v.ParameterValue != nil { - ok := object.Key("ParameterValue") - ok.String(*v.ParameterValue) - } - - return nil -} - -func awsAwsjson11_serializeDocumentShortSkillIdList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsjson11_serializeDocumentSipAddress(v *types.SipAddress, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - - if v.Uri != nil { - ok := object.Key("Uri") - ok.String(*v.Uri) - } - - return nil -} - -func awsAwsjson11_serializeDocumentSipAddressList(v []types.SipAddress, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentSipAddress(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentSort(v *types.Sort, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) - } - - if len(v.Value) > 0 { - ok := object.Key("Value") - ok.String(string(v.Value)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentSortList(v []types.Sort, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentSort(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentSsml(v *types.Ssml, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Locale) > 0 { - ok := object.Key("Locale") - ok.String(string(v.Locale)) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) - } - - return nil -} - -func awsAwsjson11_serializeDocumentSsmlList(v []types.Ssml, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentSsml(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) - } - - return nil -} - -func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentText(v *types.Text, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Locale) > 0 { - ok := object.Key("Locale") - ok.String(string(v.Locale)) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) - } - - return nil -} - -func awsAwsjson11_serializeDocumentTextList(v []types.Text, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentText(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson11_serializeDocumentTrustAnchorList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsjson11_serializeDocumentUpdateEndOfMeetingReminder(v *types.UpdateEndOfMeetingReminder, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - if v.ReminderAtMinutes != nil { - ok := object.Key("ReminderAtMinutes") - if err := awsAwsjson11_serializeDocumentEndOfMeetingReminderMinutesList(v.ReminderAtMinutes, ok); err != nil { - return err - } - } - - if len(v.ReminderType) > 0 { - ok := object.Key("ReminderType") - ok.String(string(v.ReminderType)) - } - - return nil -} - -func awsAwsjson11_serializeDocumentUpdateInstantBooking(v *types.UpdateInstantBooking, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DurationInMinutes != nil { - ok := object.Key("DurationInMinutes") - ok.Integer(*v.DurationInMinutes) - } - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - return nil -} - -func awsAwsjson11_serializeDocumentUpdateMeetingRoomConfiguration(v *types.UpdateMeetingRoomConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EndOfMeetingReminder != nil { - ok := object.Key("EndOfMeetingReminder") - if err := awsAwsjson11_serializeDocumentUpdateEndOfMeetingReminder(v.EndOfMeetingReminder, ok); err != nil { - return err - } - } - - if v.InstantBooking != nil { - ok := object.Key("InstantBooking") - if err := awsAwsjson11_serializeDocumentUpdateInstantBooking(v.InstantBooking, ok); err != nil { - return err - } - } - - if v.ProactiveJoin != nil { - ok := object.Key("ProactiveJoin") - if err := awsAwsjson11_serializeDocumentUpdateProactiveJoin(v.ProactiveJoin, ok); err != nil { - return err - } - } - - if v.RequireCheckIn != nil { - ok := object.Key("RequireCheckIn") - if err := awsAwsjson11_serializeDocumentUpdateRequireCheckIn(v.RequireCheckIn, ok); err != nil { - return err - } - } - - if v.RoomUtilizationMetricsEnabled != nil { - ok := object.Key("RoomUtilizationMetricsEnabled") - ok.Boolean(*v.RoomUtilizationMetricsEnabled) - } - - return nil -} - -func awsAwsjson11_serializeDocumentUpdateProactiveJoin(v *types.UpdateProactiveJoin, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EnabledByMotion != nil { - ok := object.Key("EnabledByMotion") - ok.Boolean(*v.EnabledByMotion) - } - - return nil -} - -func awsAwsjson11_serializeDocumentUpdateRequireCheckIn(v *types.UpdateRequireCheckIn, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) - } - - if v.ReleaseAfterMinutes != nil { - ok := object.Key("ReleaseAfterMinutes") - ok.Integer(*v.ReleaseAfterMinutes) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentApproveSkillInput(v *ApproveSkillInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateContactWithAddressBookInput(v *AssociateContactWithAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AddressBookArn != nil { - ok := object.Key("AddressBookArn") - ok.String(*v.AddressBookArn) - } - - if v.ContactArn != nil { - ok := object.Key("ContactArn") - ok.String(*v.ContactArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateDeviceWithNetworkProfileInput(v *AssociateDeviceWithNetworkProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if v.NetworkProfileArn != nil { - ok := object.Key("NetworkProfileArn") - ok.String(*v.NetworkProfileArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateDeviceWithRoomInput(v *AssociateDeviceWithRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateSkillGroupWithRoomInput(v *AssociateSkillGroupWithRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateSkillWithSkillGroupInput(v *AssociateSkillWithSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentAssociateSkillWithUsersInput(v *AssociateSkillWithUsersInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateAddressBookInput(v *CreateAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateBusinessReportScheduleInput(v *CreateBusinessReportScheduleInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.ContentRange != nil { - ok := object.Key("ContentRange") - if err := awsAwsjson11_serializeDocumentBusinessReportContentRange(v.ContentRange, ok); err != nil { - return err - } - } - - if len(v.Format) > 0 { - ok := object.Key("Format") - ok.String(string(v.Format)) - } - - if v.Recurrence != nil { - ok := object.Key("Recurrence") - if err := awsAwsjson11_serializeDocumentBusinessReportRecurrence(v.Recurrence, ok); err != nil { - return err - } - } - - if v.S3BucketName != nil { - ok := object.Key("S3BucketName") - ok.String(*v.S3BucketName) - } - - if v.S3KeyPrefix != nil { - ok := object.Key("S3KeyPrefix") - ok.String(*v.S3KeyPrefix) - } - - if v.ScheduleName != nil { - ok := object.Key("ScheduleName") - ok.String(*v.ScheduleName) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateConferenceProviderInput(v *CreateConferenceProviderInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.ConferenceProviderName != nil { - ok := object.Key("ConferenceProviderName") - ok.String(*v.ConferenceProviderName) - } - - if len(v.ConferenceProviderType) > 0 { - ok := object.Key("ConferenceProviderType") - ok.String(string(v.ConferenceProviderType)) - } - - if v.IPDialIn != nil { - ok := object.Key("IPDialIn") - if err := awsAwsjson11_serializeDocumentIPDialIn(v.IPDialIn, ok); err != nil { - return err - } - } - - if v.MeetingSetting != nil { - ok := object.Key("MeetingSetting") - if err := awsAwsjson11_serializeDocumentMeetingSetting(v.MeetingSetting, ok); err != nil { - return err - } - } - - if v.PSTNDialIn != nil { - ok := object.Key("PSTNDialIn") - if err := awsAwsjson11_serializeDocumentPSTNDialIn(v.PSTNDialIn, ok); err != nil { - return err - } - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateContactInput(v *CreateContactInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.DisplayName != nil { - ok := object.Key("DisplayName") - ok.String(*v.DisplayName) - } - - if v.FirstName != nil { - ok := object.Key("FirstName") - ok.String(*v.FirstName) - } - - if v.LastName != nil { - ok := object.Key("LastName") - ok.String(*v.LastName) - } - - if v.PhoneNumber != nil { - ok := object.Key("PhoneNumber") - ok.String(*v.PhoneNumber) - } - - if v.PhoneNumbers != nil { - ok := object.Key("PhoneNumbers") - if err := awsAwsjson11_serializeDocumentPhoneNumberList(v.PhoneNumbers, ok); err != nil { - return err - } - } - - if v.SipAddresses != nil { - ok := object.Key("SipAddresses") - if err := awsAwsjson11_serializeDocumentSipAddressList(v.SipAddresses, ok); err != nil { - return err - } - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateGatewayGroupInput(v *CreateGatewayGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateNetworkProfileInput(v *CreateNetworkProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CertificateAuthorityArn != nil { - ok := object.Key("CertificateAuthorityArn") - ok.String(*v.CertificateAuthorityArn) - } - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.CurrentPassword != nil { - ok := object.Key("CurrentPassword") - ok.String(*v.CurrentPassword) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.EapMethod) > 0 { - ok := object.Key("EapMethod") - ok.String(string(v.EapMethod)) - } - - if v.NetworkProfileName != nil { - ok := object.Key("NetworkProfileName") - ok.String(*v.NetworkProfileName) - } - - if v.NextPassword != nil { - ok := object.Key("NextPassword") - ok.String(*v.NextPassword) - } - - if len(v.SecurityType) > 0 { - ok := object.Key("SecurityType") - ok.String(string(v.SecurityType)) - } - - if v.Ssid != nil { - ok := object.Key("Ssid") - ok.String(*v.Ssid) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - if v.TrustAnchors != nil { - ok := object.Key("TrustAnchors") - if err := awsAwsjson11_serializeDocumentTrustAnchorList(v.TrustAnchors, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateProfileInput(v *CreateProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Address != nil { - ok := object.Key("Address") - ok.String(*v.Address) - } - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.DataRetentionOptIn != nil { - ok := object.Key("DataRetentionOptIn") - ok.Boolean(*v.DataRetentionOptIn) - } - - if len(v.DistanceUnit) > 0 { - ok := object.Key("DistanceUnit") - ok.String(string(v.DistanceUnit)) - } - - if v.Locale != nil { - ok := object.Key("Locale") - ok.String(*v.Locale) - } - - if v.MaxVolumeLimit != nil { - ok := object.Key("MaxVolumeLimit") - ok.Integer(*v.MaxVolumeLimit) - } - - if v.MeetingRoomConfiguration != nil { - ok := object.Key("MeetingRoomConfiguration") - if err := awsAwsjson11_serializeDocumentCreateMeetingRoomConfiguration(v.MeetingRoomConfiguration, ok); err != nil { - return err - } - } - - if v.ProfileName != nil { - ok := object.Key("ProfileName") - ok.String(*v.ProfileName) - } - - if v.PSTNEnabled != nil { - ok := object.Key("PSTNEnabled") - ok.Boolean(*v.PSTNEnabled) - } - - if v.SetupModeDisabled != nil { - ok := object.Key("SetupModeDisabled") - ok.Boolean(*v.SetupModeDisabled) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - if len(v.TemperatureUnit) > 0 { - ok := object.Key("TemperatureUnit") - ok.String(string(v.TemperatureUnit)) - } - - if v.Timezone != nil { - ok := object.Key("Timezone") - ok.String(*v.Timezone) - } - - if len(v.WakeWord) > 0 { - ok := object.Key("WakeWord") - ok.String(string(v.WakeWord)) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateRoomInput(v *CreateRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.ProfileArn != nil { - ok := object.Key("ProfileArn") - ok.String(*v.ProfileArn) - } - - if v.ProviderCalendarId != nil { - ok := object.Key("ProviderCalendarId") - ok.String(*v.ProviderCalendarId) - } - - if v.RoomName != nil { - ok := object.Key("RoomName") - ok.String(*v.RoomName) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateSkillGroupInput(v *CreateSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.SkillGroupName != nil { - ok := object.Key("SkillGroupName") - ok.String(*v.SkillGroupName) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentCreateUserInput(v *CreateUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Email != nil { - ok := object.Key("Email") - ok.String(*v.Email) - } - - if v.FirstName != nil { - ok := object.Key("FirstName") - ok.String(*v.FirstName) - } - - if v.LastName != nil { - ok := object.Key("LastName") - ok.String(*v.LastName) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - if v.UserId != nil { - ok := object.Key("UserId") - ok.String(*v.UserId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteAddressBookInput(v *DeleteAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AddressBookArn != nil { - ok := object.Key("AddressBookArn") - ok.String(*v.AddressBookArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteBusinessReportScheduleInput(v *DeleteBusinessReportScheduleInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ScheduleArn != nil { - ok := object.Key("ScheduleArn") - ok.String(*v.ScheduleArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteConferenceProviderInput(v *DeleteConferenceProviderInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConferenceProviderArn != nil { - ok := object.Key("ConferenceProviderArn") - ok.String(*v.ConferenceProviderArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteContactInput(v *DeleteContactInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContactArn != nil { - ok := object.Key("ContactArn") - ok.String(*v.ContactArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteDeviceInput(v *DeleteDeviceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteDeviceUsageDataInput(v *DeleteDeviceUsageDataInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if len(v.DeviceUsageType) > 0 { - ok := object.Key("DeviceUsageType") - ok.String(string(v.DeviceUsageType)) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteGatewayGroupInput(v *DeleteGatewayGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GatewayGroupArn != nil { - ok := object.Key("GatewayGroupArn") - ok.String(*v.GatewayGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteNetworkProfileInput(v *DeleteNetworkProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.NetworkProfileArn != nil { - ok := object.Key("NetworkProfileArn") - ok.String(*v.NetworkProfileArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteProfileInput(v *DeleteProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ProfileArn != nil { - ok := object.Key("ProfileArn") - ok.String(*v.ProfileArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteRoomInput(v *DeleteRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteRoomSkillParameterInput(v *DeleteRoomSkillParameterInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ParameterKey != nil { - ok := object.Key("ParameterKey") - ok.String(*v.ParameterKey) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteSkillAuthorizationInput(v *DeleteSkillAuthorizationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteSkillGroupInput(v *DeleteSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDeleteUserInput(v *DeleteUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EnrollmentId != nil { - ok := object.Key("EnrollmentId") - ok.String(*v.EnrollmentId) - } - - if v.UserArn != nil { - ok := object.Key("UserArn") - ok.String(*v.UserArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDisassociateContactFromAddressBookInput(v *DisassociateContactFromAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AddressBookArn != nil { - ok := object.Key("AddressBookArn") - ok.String(*v.AddressBookArn) - } - - if v.ContactArn != nil { - ok := object.Key("ContactArn") - ok.String(*v.ContactArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDisassociateDeviceFromRoomInput(v *DisassociateDeviceFromRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDisassociateSkillFromSkillGroupInput(v *DisassociateSkillFromSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDisassociateSkillFromUsersInput(v *DisassociateSkillFromUsersInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentDisassociateSkillGroupFromRoomInput(v *DisassociateSkillGroupFromRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentForgetSmartHomeAppliancesInput(v *ForgetSmartHomeAppliancesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetAddressBookInput(v *GetAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AddressBookArn != nil { - ok := object.Key("AddressBookArn") - ok.String(*v.AddressBookArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetConferencePreferenceInput(v *GetConferencePreferenceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetConferenceProviderInput(v *GetConferenceProviderInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConferenceProviderArn != nil { - ok := object.Key("ConferenceProviderArn") - ok.String(*v.ConferenceProviderArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetContactInput(v *GetContactInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContactArn != nil { - ok := object.Key("ContactArn") - ok.String(*v.ContactArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetDeviceInput(v *GetDeviceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetGatewayGroupInput(v *GetGatewayGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GatewayGroupArn != nil { - ok := object.Key("GatewayGroupArn") - ok.String(*v.GatewayGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetGatewayInput(v *GetGatewayInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GatewayArn != nil { - ok := object.Key("GatewayArn") - ok.String(*v.GatewayArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetInvitationConfigurationInput(v *GetInvitationConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetNetworkProfileInput(v *GetNetworkProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.NetworkProfileArn != nil { - ok := object.Key("NetworkProfileArn") - ok.String(*v.NetworkProfileArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetProfileInput(v *GetProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ProfileArn != nil { - ok := object.Key("ProfileArn") - ok.String(*v.ProfileArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetRoomInput(v *GetRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetRoomSkillParameterInput(v *GetRoomSkillParameterInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ParameterKey != nil { - ok := object.Key("ParameterKey") - ok.String(*v.ParameterKey) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentGetSkillGroupInput(v *GetSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListBusinessReportSchedulesInput(v *ListBusinessReportSchedulesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListConferenceProvidersInput(v *ListConferenceProvidersInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListDeviceEventsInput(v *ListDeviceEventsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if len(v.EventType) > 0 { - ok := object.Key("EventType") - ok.String(string(v.EventType)) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListGatewayGroupsInput(v *ListGatewayGroupsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListGatewaysInput(v *ListGatewaysInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GatewayGroupArn != nil { - ok := object.Key("GatewayGroupArn") - ok.String(*v.GatewayGroupArn) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListSkillsInput(v *ListSkillsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.EnablementType) > 0 { - ok := object.Key("EnablementType") - ok.String(string(v.EnablementType)) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - if len(v.SkillType) > 0 { - ok := object.Key("SkillType") - ok.String(string(v.SkillType)) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListSkillsStoreCategoriesInput(v *ListSkillsStoreCategoriesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListSkillsStoreSkillsByCategoryInput(v *ListSkillsStoreSkillsByCategoryInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CategoryId != nil { - ok := object.Key("CategoryId") - ok.Long(*v.CategoryId) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListSmartHomeAppliancesInput(v *ListSmartHomeAppliancesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListTagsInput(v *ListTagsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentPutConferencePreferenceInput(v *PutConferencePreferenceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConferencePreference != nil { - ok := object.Key("ConferencePreference") - if err := awsAwsjson11_serializeDocumentConferencePreference(v.ConferencePreference, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentPutInvitationConfigurationInput(v *PutInvitationConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContactEmail != nil { - ok := object.Key("ContactEmail") - ok.String(*v.ContactEmail) - } - - if v.OrganizationName != nil { - ok := object.Key("OrganizationName") - ok.String(*v.OrganizationName) - } - - if v.PrivateSkillIds != nil { - ok := object.Key("PrivateSkillIds") - if err := awsAwsjson11_serializeDocumentShortSkillIdList(v.PrivateSkillIds, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentPutRoomSkillParameterInput(v *PutRoomSkillParameterInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.RoomSkillParameter != nil { - ok := object.Key("RoomSkillParameter") - if err := awsAwsjson11_serializeDocumentRoomSkillParameter(v.RoomSkillParameter, ok); err != nil { - return err - } - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentPutSkillAuthorizationInput(v *PutSkillAuthorizationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AuthorizationResult != nil { - ok := object.Key("AuthorizationResult") - if err := awsAwsjson11_serializeDocumentAuthorizationResult(v.AuthorizationResult, ok); err != nil { - return err - } - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentRegisterAVSDeviceInput(v *RegisterAVSDeviceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AmazonId != nil { - ok := object.Key("AmazonId") - ok.String(*v.AmazonId) - } - - if v.ClientId != nil { - ok := object.Key("ClientId") - ok.String(*v.ClientId) - } - - if v.DeviceSerialNumber != nil { - ok := object.Key("DeviceSerialNumber") - ok.String(*v.DeviceSerialNumber) - } - - if v.ProductId != nil { - ok := object.Key("ProductId") - ok.String(*v.ProductId) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - if v.UserCode != nil { - ok := object.Key("UserCode") - ok.String(*v.UserCode) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentRejectSkillInput(v *RejectSkillInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentResolveRoomInput(v *ResolveRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SkillId != nil { - ok := object.Key("SkillId") - ok.String(*v.SkillId) - } - - if v.UserId != nil { - ok := object.Key("UserId") - ok.String(*v.UserId) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentRevokeInvitationInput(v *RevokeInvitationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EnrollmentId != nil { - ok := object.Key("EnrollmentId") - ok.String(*v.EnrollmentId) - } - - if v.UserArn != nil { - ok := object.Key("UserArn") - ok.String(*v.UserArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchAddressBooksInput(v *SearchAddressBooksInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchContactsInput(v *SearchContactsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchDevicesInput(v *SearchDevicesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchNetworkProfilesInput(v *SearchNetworkProfilesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchProfilesInput(v *SearchProfilesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchRoomsInput(v *SearchRoomsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchSkillGroupsInput(v *SearchSkillGroupsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSearchUsersInput(v *SearchUsersInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.SortCriteria != nil { - ok := object.Key("SortCriteria") - if err := awsAwsjson11_serializeDocumentSortList(v.SortCriteria, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSendAnnouncementInput(v *SendAnnouncementInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientRequestToken != nil { - ok := object.Key("ClientRequestToken") - ok.String(*v.ClientRequestToken) - } - - if v.Content != nil { - ok := object.Key("Content") - if err := awsAwsjson11_serializeDocumentContent(v.Content, ok); err != nil { - return err - } - } - - if v.RoomFilters != nil { - ok := object.Key("RoomFilters") - if err := awsAwsjson11_serializeDocumentFilterList(v.RoomFilters, ok); err != nil { - return err - } - } - - if v.TimeToLiveInSeconds != nil { - ok := object.Key("TimeToLiveInSeconds") - ok.Integer(*v.TimeToLiveInSeconds) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentSendInvitationInput(v *SendInvitationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.UserArn != nil { - ok := object.Key("UserArn") - ok.String(*v.UserArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentStartDeviceSyncInput(v *StartDeviceSyncInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if v.Features != nil { - ok := object.Key("Features") - if err := awsAwsjson11_serializeDocumentFeatures(v.Features, ok); err != nil { - return err - } - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentStartSmartHomeApplianceDiscoveryInput(v *StartSmartHomeApplianceDiscoveryInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if v.TagKeys != nil { - ok := object.Key("TagKeys") - if err := awsAwsjson11_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateAddressBookInput(v *UpdateAddressBookInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AddressBookArn != nil { - ok := object.Key("AddressBookArn") - ok.String(*v.AddressBookArn) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateBusinessReportScheduleInput(v *UpdateBusinessReportScheduleInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Format) > 0 { - ok := object.Key("Format") - ok.String(string(v.Format)) - } - - if v.Recurrence != nil { - ok := object.Key("Recurrence") - if err := awsAwsjson11_serializeDocumentBusinessReportRecurrence(v.Recurrence, ok); err != nil { - return err - } - } - - if v.S3BucketName != nil { - ok := object.Key("S3BucketName") - ok.String(*v.S3BucketName) - } - - if v.S3KeyPrefix != nil { - ok := object.Key("S3KeyPrefix") - ok.String(*v.S3KeyPrefix) - } - - if v.ScheduleArn != nil { - ok := object.Key("ScheduleArn") - ok.String(*v.ScheduleArn) - } - - if v.ScheduleName != nil { - ok := object.Key("ScheduleName") - ok.String(*v.ScheduleName) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateConferenceProviderInput(v *UpdateConferenceProviderInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConferenceProviderArn != nil { - ok := object.Key("ConferenceProviderArn") - ok.String(*v.ConferenceProviderArn) - } - - if len(v.ConferenceProviderType) > 0 { - ok := object.Key("ConferenceProviderType") - ok.String(string(v.ConferenceProviderType)) - } - - if v.IPDialIn != nil { - ok := object.Key("IPDialIn") - if err := awsAwsjson11_serializeDocumentIPDialIn(v.IPDialIn, ok); err != nil { - return err - } - } - - if v.MeetingSetting != nil { - ok := object.Key("MeetingSetting") - if err := awsAwsjson11_serializeDocumentMeetingSetting(v.MeetingSetting, ok); err != nil { - return err - } - } - - if v.PSTNDialIn != nil { - ok := object.Key("PSTNDialIn") - if err := awsAwsjson11_serializeDocumentPSTNDialIn(v.PSTNDialIn, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateContactInput(v *UpdateContactInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContactArn != nil { - ok := object.Key("ContactArn") - ok.String(*v.ContactArn) - } - - if v.DisplayName != nil { - ok := object.Key("DisplayName") - ok.String(*v.DisplayName) - } - - if v.FirstName != nil { - ok := object.Key("FirstName") - ok.String(*v.FirstName) - } - - if v.LastName != nil { - ok := object.Key("LastName") - ok.String(*v.LastName) - } - - if v.PhoneNumber != nil { - ok := object.Key("PhoneNumber") - ok.String(*v.PhoneNumber) - } - - if v.PhoneNumbers != nil { - ok := object.Key("PhoneNumbers") - if err := awsAwsjson11_serializeDocumentPhoneNumberList(v.PhoneNumbers, ok); err != nil { - return err - } - } - - if v.SipAddresses != nil { - ok := object.Key("SipAddresses") - if err := awsAwsjson11_serializeDocumentSipAddressList(v.SipAddresses, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateDeviceInput(v *UpdateDeviceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeviceArn != nil { - ok := object.Key("DeviceArn") - ok.String(*v.DeviceArn) - } - - if v.DeviceName != nil { - ok := object.Key("DeviceName") - ok.String(*v.DeviceName) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateGatewayGroupInput(v *UpdateGatewayGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.GatewayGroupArn != nil { - ok := object.Key("GatewayGroupArn") - ok.String(*v.GatewayGroupArn) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateGatewayInput(v *UpdateGatewayInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.GatewayArn != nil { - ok := object.Key("GatewayArn") - ok.String(*v.GatewayArn) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.SoftwareVersion != nil { - ok := object.Key("SoftwareVersion") - ok.String(*v.SoftwareVersion) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateNetworkProfileInput(v *UpdateNetworkProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CertificateAuthorityArn != nil { - ok := object.Key("CertificateAuthorityArn") - ok.String(*v.CertificateAuthorityArn) - } - - if v.CurrentPassword != nil { - ok := object.Key("CurrentPassword") - ok.String(*v.CurrentPassword) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.NetworkProfileArn != nil { - ok := object.Key("NetworkProfileArn") - ok.String(*v.NetworkProfileArn) - } - - if v.NetworkProfileName != nil { - ok := object.Key("NetworkProfileName") - ok.String(*v.NetworkProfileName) - } - - if v.NextPassword != nil { - ok := object.Key("NextPassword") - ok.String(*v.NextPassword) - } - - if v.TrustAnchors != nil { - ok := object.Key("TrustAnchors") - if err := awsAwsjson11_serializeDocumentTrustAnchorList(v.TrustAnchors, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateProfileInput(v *UpdateProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Address != nil { - ok := object.Key("Address") - ok.String(*v.Address) - } - - if v.DataRetentionOptIn != nil { - ok := object.Key("DataRetentionOptIn") - ok.Boolean(*v.DataRetentionOptIn) - } - - if len(v.DistanceUnit) > 0 { - ok := object.Key("DistanceUnit") - ok.String(string(v.DistanceUnit)) - } - - if v.IsDefault != nil { - ok := object.Key("IsDefault") - ok.Boolean(*v.IsDefault) - } - - if v.Locale != nil { - ok := object.Key("Locale") - ok.String(*v.Locale) - } - - if v.MaxVolumeLimit != nil { - ok := object.Key("MaxVolumeLimit") - ok.Integer(*v.MaxVolumeLimit) - } - - if v.MeetingRoomConfiguration != nil { - ok := object.Key("MeetingRoomConfiguration") - if err := awsAwsjson11_serializeDocumentUpdateMeetingRoomConfiguration(v.MeetingRoomConfiguration, ok); err != nil { - return err - } - } - - if v.ProfileArn != nil { - ok := object.Key("ProfileArn") - ok.String(*v.ProfileArn) - } - - if v.ProfileName != nil { - ok := object.Key("ProfileName") - ok.String(*v.ProfileName) - } - - if v.PSTNEnabled != nil { - ok := object.Key("PSTNEnabled") - ok.Boolean(*v.PSTNEnabled) - } - - if v.SetupModeDisabled != nil { - ok := object.Key("SetupModeDisabled") - ok.Boolean(*v.SetupModeDisabled) - } - - if len(v.TemperatureUnit) > 0 { - ok := object.Key("TemperatureUnit") - ok.String(string(v.TemperatureUnit)) - } - - if v.Timezone != nil { - ok := object.Key("Timezone") - ok.String(*v.Timezone) - } - - if len(v.WakeWord) > 0 { - ok := object.Key("WakeWord") - ok.String(string(v.WakeWord)) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateRoomInput(v *UpdateRoomInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.ProfileArn != nil { - ok := object.Key("ProfileArn") - ok.String(*v.ProfileArn) - } - - if v.ProviderCalendarId != nil { - ok := object.Key("ProviderCalendarId") - ok.String(*v.ProviderCalendarId) - } - - if v.RoomArn != nil { - ok := object.Key("RoomArn") - ok.String(*v.RoomArn) - } - - if v.RoomName != nil { - ok := object.Key("RoomName") - ok.String(*v.RoomName) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentUpdateSkillGroupInput(v *UpdateSkillGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.SkillGroupArn != nil { - ok := object.Key("SkillGroupArn") - ok.String(*v.SkillGroupArn) - } - - if v.SkillGroupName != nil { - ok := object.Key("SkillGroupName") - ok.String(*v.SkillGroupName) - } - - return nil -} diff --git a/service/alexaforbusiness/snapshot/api_op_ApproveSkill.go.snap b/service/alexaforbusiness/snapshot/api_op_ApproveSkill.go.snap deleted file mode 100644 index 2e08973171b..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ApproveSkill.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ApproveSkill - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateContactWithAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateContactWithAddressBook.go.snap deleted file mode 100644 index de81c2210b7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateContactWithAddressBook.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -AssociateContactWithAddressBook - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithNetworkProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithNetworkProfile.go.snap deleted file mode 100644 index f32b34261f4..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithNetworkProfile.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -AssociateDeviceWithNetworkProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithRoom.go.snap deleted file mode 100644 index 08cd1cfadde..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateDeviceWithRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -AssociateDeviceWithRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateSkillGroupWithRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateSkillGroupWithRoom.go.snap deleted file mode 100644 index 2779630d26d..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateSkillGroupWithRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -AssociateSkillGroupWithRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithSkillGroup.go.snap deleted file mode 100644 index 187fa3e9eb3..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithSkillGroup.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -AssociateSkillWithSkillGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithUsers.go.snap b/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithUsers.go.snap deleted file mode 100644 index cf9ccbb6453..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_AssociateSkillWithUsers.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -AssociateSkillWithUsers - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateAddressBook.go.snap deleted file mode 100644 index bb8a639686d..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateAddressBook.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateAddressBook - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateBusinessReportSchedule.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateBusinessReportSchedule.go.snap deleted file mode 100644 index ac9ac59f6d1..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateBusinessReportSchedule.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateBusinessReportSchedule - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateConferenceProvider.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateConferenceProvider.go.snap deleted file mode 100644 index c3994581ca9..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateConferenceProvider.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateConferenceProvider - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateContact.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateContact.go.snap deleted file mode 100644 index 47a9614986c..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateContact.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateContact - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateGatewayGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateGatewayGroup.go.snap deleted file mode 100644 index 27aedecf788..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateGatewayGroup.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateGatewayGroup - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateNetworkProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateNetworkProfile.go.snap deleted file mode 100644 index 79e9262bbe3..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateNetworkProfile.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateNetworkProfile - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateProfile.go.snap deleted file mode 100644 index 067360f22c7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateProfile.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateProfile - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateRoom.go.snap deleted file mode 100644 index a7ffb15a102..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateRoom.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateRoom - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateSkillGroup.go.snap deleted file mode 100644 index d94b4456541..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateSkillGroup.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateSkillGroup - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_CreateUser.go.snap b/service/alexaforbusiness/snapshot/api_op_CreateUser.go.snap deleted file mode 100644 index 0c412ca055f..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_CreateUser.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -CreateUser - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteAddressBook.go.snap deleted file mode 100644 index 59cdbcc00ec..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteAddressBook.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteAddressBook - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteBusinessReportSchedule.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteBusinessReportSchedule.go.snap deleted file mode 100644 index 07a6f218b9e..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteBusinessReportSchedule.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteBusinessReportSchedule - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteConferenceProvider.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteConferenceProvider.go.snap deleted file mode 100644 index 7aeb89312d5..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteConferenceProvider.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteConferenceProvider - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteContact.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteContact.go.snap deleted file mode 100644 index 3df2f869fda..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteContact.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteContact - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteDevice.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteDevice.go.snap deleted file mode 100644 index 5574bf6d152..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteDevice.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteDevice - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteDeviceUsageData.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteDeviceUsageData.go.snap deleted file mode 100644 index 47b0ddc7565..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteDeviceUsageData.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteDeviceUsageData - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteGatewayGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteGatewayGroup.go.snap deleted file mode 100644 index fc5fece0637..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteGatewayGroup.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteGatewayGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteNetworkProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteNetworkProfile.go.snap deleted file mode 100644 index 362dd729d89..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteNetworkProfile.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteNetworkProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteProfile.go.snap deleted file mode 100644 index c9e8b5cc15b..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteProfile.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -DeleteProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteRoom.go.snap deleted file mode 100644 index e762264f701..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -DeleteRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteRoomSkillParameter.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteRoomSkillParameter.go.snap deleted file mode 100644 index 8c8e4dd5073..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteRoomSkillParameter.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteRoomSkillParameter - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteSkillAuthorization.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteSkillAuthorization.go.snap deleted file mode 100644 index 481c81230d7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteSkillAuthorization.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteSkillAuthorization - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteSkillGroup.go.snap deleted file mode 100644 index c8d470bd3e6..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteSkillGroup.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -DeleteSkillGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DeleteUser.go.snap b/service/alexaforbusiness/snapshot/api_op_DeleteUser.go.snap deleted file mode 100644 index f1b26fad296..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DeleteUser.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DeleteUser - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DisassociateContactFromAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_DisassociateContactFromAddressBook.go.snap deleted file mode 100644 index a4f7089cae7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DisassociateContactFromAddressBook.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DisassociateContactFromAddressBook - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DisassociateDeviceFromRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_DisassociateDeviceFromRoom.go.snap deleted file mode 100644 index d95b432a566..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DisassociateDeviceFromRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -DisassociateDeviceFromRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromSkillGroup.go.snap deleted file mode 100644 index 9d45534ef93..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromSkillGroup.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DisassociateSkillFromSkillGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromUsers.go.snap b/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromUsers.go.snap deleted file mode 100644 index ec964964dde..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillFromUsers.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -DisassociateSkillFromUsers - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillGroupFromRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_DisassociateSkillGroupFromRoom.go.snap deleted file mode 100644 index b4045f23a70..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_DisassociateSkillGroupFromRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -DisassociateSkillGroupFromRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ForgetSmartHomeAppliances.go.snap b/service/alexaforbusiness/snapshot/api_op_ForgetSmartHomeAppliances.go.snap deleted file mode 100644 index 098673f7a3a..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ForgetSmartHomeAppliances.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ForgetSmartHomeAppliances - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_GetAddressBook.go.snap deleted file mode 100644 index c95575d2b3a..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetAddressBook.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetAddressBook - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetConferencePreference.go.snap b/service/alexaforbusiness/snapshot/api_op_GetConferencePreference.go.snap deleted file mode 100644 index 436dc31ca59..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetConferencePreference.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetConferencePreference - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetConferenceProvider.go.snap b/service/alexaforbusiness/snapshot/api_op_GetConferenceProvider.go.snap deleted file mode 100644 index d467df3c482..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetConferenceProvider.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetConferenceProvider - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetContact.go.snap b/service/alexaforbusiness/snapshot/api_op_GetContact.go.snap deleted file mode 100644 index 7e590c52034..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetContact.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetContact - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetDevice.go.snap b/service/alexaforbusiness/snapshot/api_op_GetDevice.go.snap deleted file mode 100644 index b6ff54940dd..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetDevice.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetDevice - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetGateway.go.snap b/service/alexaforbusiness/snapshot/api_op_GetGateway.go.snap deleted file mode 100644 index 093c60c73fe..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetGateway.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetGateway - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetGatewayGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_GetGatewayGroup.go.snap deleted file mode 100644 index d918929a801..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetGatewayGroup.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetGatewayGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetInvitationConfiguration.go.snap b/service/alexaforbusiness/snapshot/api_op_GetInvitationConfiguration.go.snap deleted file mode 100644 index 50a69919df5..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetInvitationConfiguration.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetInvitationConfiguration - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetNetworkProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_GetNetworkProfile.go.snap deleted file mode 100644 index d890fd9a6da..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetNetworkProfile.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetNetworkProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_GetProfile.go.snap deleted file mode 100644 index 319b02ab461..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetProfile.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_GetRoom.go.snap deleted file mode 100644 index 19ffce36977..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetRoomSkillParameter.go.snap b/service/alexaforbusiness/snapshot/api_op_GetRoomSkillParameter.go.snap deleted file mode 100644 index c4d409461e9..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetRoomSkillParameter.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -GetRoomSkillParameter - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_GetSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_GetSkillGroup.go.snap deleted file mode 100644 index 837f3475164..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_GetSkillGroup.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -GetSkillGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListBusinessReportSchedules.go.snap b/service/alexaforbusiness/snapshot/api_op_ListBusinessReportSchedules.go.snap deleted file mode 100644 index 571219f88f7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListBusinessReportSchedules.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListBusinessReportSchedules - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListConferenceProviders.go.snap b/service/alexaforbusiness/snapshot/api_op_ListConferenceProviders.go.snap deleted file mode 100644 index 6d4aa6413df..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListConferenceProviders.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListConferenceProviders - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListDeviceEvents.go.snap b/service/alexaforbusiness/snapshot/api_op_ListDeviceEvents.go.snap deleted file mode 100644 index b3803b5dbf8..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListDeviceEvents.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ListDeviceEvents - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListGatewayGroups.go.snap b/service/alexaforbusiness/snapshot/api_op_ListGatewayGroups.go.snap deleted file mode 100644 index 7b7d7013548..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListGatewayGroups.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListGatewayGroups - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListGateways.go.snap b/service/alexaforbusiness/snapshot/api_op_ListGateways.go.snap deleted file mode 100644 index 746f7a294bf..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListGateways.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListGateways - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListSkills.go.snap b/service/alexaforbusiness/snapshot/api_op_ListSkills.go.snap deleted file mode 100644 index ca884ee7e53..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListSkills.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListSkills - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreCategories.go.snap b/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreCategories.go.snap deleted file mode 100644 index 8cfd01d8802..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreCategories.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -ListSkillsStoreCategories - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreSkillsByCategory.go.snap b/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreSkillsByCategory.go.snap deleted file mode 100644 index 25eab9254cb..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListSkillsStoreSkillsByCategory.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ListSkillsStoreSkillsByCategory - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListSmartHomeAppliances.go.snap b/service/alexaforbusiness/snapshot/api_op_ListSmartHomeAppliances.go.snap deleted file mode 100644 index 65dc0f4f2ea..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListSmartHomeAppliances.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ListSmartHomeAppliances - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ListTags.go.snap b/service/alexaforbusiness/snapshot/api_op_ListTags.go.snap deleted file mode 100644 index df41baa96cd..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ListTags.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ListTags - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_PutConferencePreference.go.snap b/service/alexaforbusiness/snapshot/api_op_PutConferencePreference.go.snap deleted file mode 100644 index 482dc69a4b4..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_PutConferencePreference.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -PutConferencePreference - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_PutInvitationConfiguration.go.snap b/service/alexaforbusiness/snapshot/api_op_PutInvitationConfiguration.go.snap deleted file mode 100644 index f54fe1c342f..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_PutInvitationConfiguration.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -PutInvitationConfiguration - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_PutRoomSkillParameter.go.snap b/service/alexaforbusiness/snapshot/api_op_PutRoomSkillParameter.go.snap deleted file mode 100644 index 7020ef7c8ab..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_PutRoomSkillParameter.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -PutRoomSkillParameter - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_PutSkillAuthorization.go.snap b/service/alexaforbusiness/snapshot/api_op_PutSkillAuthorization.go.snap deleted file mode 100644 index 91b120aa5bb..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_PutSkillAuthorization.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -PutSkillAuthorization - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_RegisterAVSDevice.go.snap b/service/alexaforbusiness/snapshot/api_op_RegisterAVSDevice.go.snap deleted file mode 100644 index d6714c88848..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_RegisterAVSDevice.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -RegisterAVSDevice - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_RejectSkill.go.snap b/service/alexaforbusiness/snapshot/api_op_RejectSkill.go.snap deleted file mode 100644 index 2acbb4e316b..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_RejectSkill.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -RejectSkill - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_ResolveRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_ResolveRoom.go.snap deleted file mode 100644 index 26eae485ece..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_ResolveRoom.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -ResolveRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_RevokeInvitation.go.snap b/service/alexaforbusiness/snapshot/api_op_RevokeInvitation.go.snap deleted file mode 100644 index b8777c70e1f..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_RevokeInvitation.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -RevokeInvitation - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchAddressBooks.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchAddressBooks.go.snap deleted file mode 100644 index d03e7774ec4..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchAddressBooks.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchAddressBooks - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchContacts.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchContacts.go.snap deleted file mode 100644 index beea5a92046..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchContacts.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchContacts - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchDevices.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchDevices.go.snap deleted file mode 100644 index 32677c1667b..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchDevices.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchDevices - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchNetworkProfiles.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchNetworkProfiles.go.snap deleted file mode 100644 index e77e384a968..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchNetworkProfiles.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchNetworkProfiles - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchProfiles.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchProfiles.go.snap deleted file mode 100644 index 579cc15d563..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchProfiles.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchProfiles - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchRooms.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchRooms.go.snap deleted file mode 100644 index 7c42bd0d369..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchRooms.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchRooms - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchSkillGroups.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchSkillGroups.go.snap deleted file mode 100644 index 1c9d4be6c92..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchSkillGroups.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchSkillGroups - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SearchUsers.go.snap b/service/alexaforbusiness/snapshot/api_op_SearchUsers.go.snap deleted file mode 100644 index d13e460131a..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SearchUsers.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -SearchUsers - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SendAnnouncement.go.snap b/service/alexaforbusiness/snapshot/api_op_SendAnnouncement.go.snap deleted file mode 100644 index 32c26a7218a..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SendAnnouncement.go.snap +++ /dev/null @@ -1,35 +0,0 @@ -SendAnnouncement - Initialize stack step - RegisterServiceMetadata - OperationIdempotencyTokenAutoFill - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_SendInvitation.go.snap b/service/alexaforbusiness/snapshot/api_op_SendInvitation.go.snap deleted file mode 100644 index da2c30e2710..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_SendInvitation.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -SendInvitation - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_StartDeviceSync.go.snap b/service/alexaforbusiness/snapshot/api_op_StartDeviceSync.go.snap deleted file mode 100644 index 5f269149cc9..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_StartDeviceSync.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -StartDeviceSync - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_StartSmartHomeApplianceDiscovery.go.snap b/service/alexaforbusiness/snapshot/api_op_StartSmartHomeApplianceDiscovery.go.snap deleted file mode 100644 index 49439dfdbf9..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_StartSmartHomeApplianceDiscovery.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -StartSmartHomeApplianceDiscovery - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_TagResource.go.snap b/service/alexaforbusiness/snapshot/api_op_TagResource.go.snap deleted file mode 100644 index 8cbd140ba62..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_TagResource.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -TagResource - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UntagResource.go.snap b/service/alexaforbusiness/snapshot/api_op_UntagResource.go.snap deleted file mode 100644 index 78e1acab599..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UntagResource.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UntagResource - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateAddressBook.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateAddressBook.go.snap deleted file mode 100644 index 54a7a69bf9e..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateAddressBook.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateAddressBook - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateBusinessReportSchedule.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateBusinessReportSchedule.go.snap deleted file mode 100644 index 52231a3c6e3..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateBusinessReportSchedule.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateBusinessReportSchedule - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateConferenceProvider.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateConferenceProvider.go.snap deleted file mode 100644 index 9e3124cb023..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateConferenceProvider.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateConferenceProvider - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateContact.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateContact.go.snap deleted file mode 100644 index a775921cdd7..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateContact.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateContact - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateDevice.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateDevice.go.snap deleted file mode 100644 index 2c2af0b4b74..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateDevice.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -UpdateDevice - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateGateway.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateGateway.go.snap deleted file mode 100644 index f3c1cee4c12..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateGateway.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateGateway - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateGatewayGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateGatewayGroup.go.snap deleted file mode 100644 index 38b9c364aea..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateGatewayGroup.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateGatewayGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateNetworkProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateNetworkProfile.go.snap deleted file mode 100644 index ca540ac1461..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateNetworkProfile.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateNetworkProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateProfile.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateProfile.go.snap deleted file mode 100644 index 9012a409e44..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateProfile.go.snap +++ /dev/null @@ -1,34 +0,0 @@ -UpdateProfile - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - OperationInputValidation - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateRoom.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateRoom.go.snap deleted file mode 100644 index 8f41ea34126..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateRoom.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -UpdateRoom - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot/api_op_UpdateSkillGroup.go.snap b/service/alexaforbusiness/snapshot/api_op_UpdateSkillGroup.go.snap deleted file mode 100644 index 6d7d2ef7194..00000000000 --- a/service/alexaforbusiness/snapshot/api_op_UpdateSkillGroup.go.snap +++ /dev/null @@ -1,33 +0,0 @@ -UpdateSkillGroup - Initialize stack step - RegisterServiceMetadata - legacyEndpointContextSetter - SetLogger - Serialize stack step - setOperationInput - ResolveEndpoint - OperationSerializer - Build stack step - ClientRequestID - ComputeContentLength - UserAgent - RecursionDetection - Finalize stack step - ResolveAuthScheme - GetIdentity - ResolveEndpointV2 - disableHTTPS - ComputePayloadHash - Retry - RetryMetricsHeader - setLegacyContextSigningOptions - Signing - Deserialize stack step - AddRawResponseToMetadata - ErrorCloseResponseBody - CloseResponseBody - ResponseErrorWrapper - RequestIDRetriever - OperationDeserializer - RecordResponseTiming - RequestResponseLogger diff --git a/service/alexaforbusiness/snapshot_test.go b/service/alexaforbusiness/snapshot_test.go deleted file mode 100644 index 061574943d5..00000000000 --- a/service/alexaforbusiness/snapshot_test.go +++ /dev/null @@ -1,2294 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -//go:build snapshot - -package alexaforbusiness - -import ( - "context" - "errors" - "fmt" - "github.com/aws/smithy-go/middleware" - "io" - "io/fs" - "os" - "testing" -) - -const ssprefix = "snapshot" - -type snapshotOK struct{} - -func (snapshotOK) Error() string { return "error: success" } - -func createp(path string) (*os.File, error) { - if err := os.Mkdir(ssprefix, 0700); err != nil && !errors.Is(err, fs.ErrExist) { - return nil, err - } - return os.Create(path) -} - -func sspath(op string) string { - return fmt.Sprintf("%s/api_op_%s.go.snap", ssprefix, op) -} - -func updateSnapshot(stack *middleware.Stack, operation string) error { - f, err := createp(sspath(operation)) - if err != nil { - return err - } - defer f.Close() - if _, err := f.Write([]byte(stack.String())); err != nil { - return err - } - return snapshotOK{} -} - -func testSnapshot(stack *middleware.Stack, operation string) error { - f, err := os.Open(sspath(operation)) - if errors.Is(err, fs.ErrNotExist) { - return snapshotOK{} - } - if err != nil { - return err - } - defer f.Close() - expected, err := io.ReadAll(f) - if err != nil { - return err - } - if actual := stack.String(); actual != string(expected) { - return fmt.Errorf("%s != %s", expected, actual) - } - return snapshotOK{} -} -func TestCheckSnapshot_ApproveSkill(t *testing.T) { - svc := New(Options{}) - _, err := svc.ApproveSkill(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ApproveSkill") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateContactWithAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateContactWithAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateContactWithAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateDeviceWithNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateDeviceWithNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateDeviceWithNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateDeviceWithRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateDeviceWithRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateDeviceWithRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateSkillGroupWithRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillGroupWithRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateSkillGroupWithRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateSkillWithSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillWithSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateSkillWithSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_AssociateSkillWithUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillWithUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "AssociateSkillWithUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_CreateUser(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateUser(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "CreateUser") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteDeviceUsageData(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteDeviceUsageData(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteDeviceUsageData") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteSkillAuthorization(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteSkillAuthorization(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteSkillAuthorization") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DeleteUser(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteUser(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DeleteUser") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DisassociateContactFromAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateContactFromAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DisassociateContactFromAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DisassociateDeviceFromRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateDeviceFromRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DisassociateDeviceFromRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DisassociateSkillFromSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillFromSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DisassociateSkillFromSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DisassociateSkillFromUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillFromUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DisassociateSkillFromUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_DisassociateSkillGroupFromRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillGroupFromRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "DisassociateSkillGroupFromRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ForgetSmartHomeAppliances(t *testing.T) { - svc := New(Options{}) - _, err := svc.ForgetSmartHomeAppliances(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ForgetSmartHomeAppliances") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetConferencePreference(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetConferencePreference(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetConferencePreference") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetGateway(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetGateway(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetGateway") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetInvitationConfiguration(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetInvitationConfiguration(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetInvitationConfiguration") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_GetSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "GetSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListBusinessReportSchedules(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListBusinessReportSchedules(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListBusinessReportSchedules") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListConferenceProviders(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListConferenceProviders(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListConferenceProviders") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListDeviceEvents(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListDeviceEvents(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListDeviceEvents") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListGatewayGroups(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListGatewayGroups(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListGatewayGroups") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListGateways(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListGateways(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListGateways") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListSkills(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkills(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListSkills") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListSkillsStoreCategories(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkillsStoreCategories(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListSkillsStoreCategories") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListSkillsStoreSkillsByCategory(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkillsStoreSkillsByCategory(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListSkillsStoreSkillsByCategory") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListSmartHomeAppliances(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSmartHomeAppliances(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListSmartHomeAppliances") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ListTags(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListTags(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ListTags") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_PutConferencePreference(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutConferencePreference(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "PutConferencePreference") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_PutInvitationConfiguration(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutInvitationConfiguration(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "PutInvitationConfiguration") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_PutRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "PutRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_PutSkillAuthorization(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutSkillAuthorization(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "PutSkillAuthorization") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_RegisterAVSDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.RegisterAVSDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "RegisterAVSDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_RejectSkill(t *testing.T) { - svc := New(Options{}) - _, err := svc.RejectSkill(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "RejectSkill") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_ResolveRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.ResolveRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "ResolveRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_RevokeInvitation(t *testing.T) { - svc := New(Options{}) - _, err := svc.RevokeInvitation(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "RevokeInvitation") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchAddressBooks(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchAddressBooks(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchAddressBooks") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchContacts(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchContacts(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchContacts") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchDevices(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchDevices(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchDevices") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchNetworkProfiles(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchNetworkProfiles(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchNetworkProfiles") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchProfiles(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchProfiles(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchProfiles") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchRooms(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchRooms(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchRooms") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchSkillGroups(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchSkillGroups(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchSkillGroups") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SearchUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SearchUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SendAnnouncement(t *testing.T) { - svc := New(Options{}) - _, err := svc.SendAnnouncement(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SendAnnouncement") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_SendInvitation(t *testing.T) { - svc := New(Options{}) - _, err := svc.SendInvitation(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "SendInvitation") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_StartDeviceSync(t *testing.T) { - svc := New(Options{}) - _, err := svc.StartDeviceSync(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "StartDeviceSync") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_StartSmartHomeApplianceDiscovery(t *testing.T) { - svc := New(Options{}) - _, err := svc.StartSmartHomeApplianceDiscovery(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "StartSmartHomeApplianceDiscovery") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_TagResource(t *testing.T) { - svc := New(Options{}) - _, err := svc.TagResource(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "TagResource") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UntagResource(t *testing.T) { - svc := New(Options{}) - _, err := svc.UntagResource(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UntagResource") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateGateway(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateGateway(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateGateway") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestCheckSnapshot_UpdateSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "UpdateSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} -func TestUpdateSnapshot_ApproveSkill(t *testing.T) { - svc := New(Options{}) - _, err := svc.ApproveSkill(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ApproveSkill") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateContactWithAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateContactWithAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateContactWithAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateDeviceWithNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateDeviceWithNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateDeviceWithNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateDeviceWithRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateDeviceWithRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateDeviceWithRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateSkillGroupWithRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillGroupWithRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateSkillGroupWithRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateSkillWithSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillWithSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateSkillWithSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_AssociateSkillWithUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.AssociateSkillWithUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "AssociateSkillWithUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_CreateUser(t *testing.T) { - svc := New(Options{}) - _, err := svc.CreateUser(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "CreateUser") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteDeviceUsageData(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteDeviceUsageData(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteDeviceUsageData") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteSkillAuthorization(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteSkillAuthorization(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteSkillAuthorization") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DeleteUser(t *testing.T) { - svc := New(Options{}) - _, err := svc.DeleteUser(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DeleteUser") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DisassociateContactFromAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateContactFromAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DisassociateContactFromAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DisassociateDeviceFromRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateDeviceFromRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DisassociateDeviceFromRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DisassociateSkillFromSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillFromSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DisassociateSkillFromSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DisassociateSkillFromUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillFromUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DisassociateSkillFromUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_DisassociateSkillGroupFromRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.DisassociateSkillGroupFromRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "DisassociateSkillGroupFromRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ForgetSmartHomeAppliances(t *testing.T) { - svc := New(Options{}) - _, err := svc.ForgetSmartHomeAppliances(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ForgetSmartHomeAppliances") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetConferencePreference(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetConferencePreference(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetConferencePreference") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetGateway(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetGateway(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetGateway") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetInvitationConfiguration(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetInvitationConfiguration(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetInvitationConfiguration") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_GetSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.GetSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "GetSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListBusinessReportSchedules(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListBusinessReportSchedules(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListBusinessReportSchedules") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListConferenceProviders(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListConferenceProviders(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListConferenceProviders") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListDeviceEvents(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListDeviceEvents(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListDeviceEvents") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListGatewayGroups(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListGatewayGroups(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListGatewayGroups") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListGateways(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListGateways(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListGateways") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListSkills(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkills(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListSkills") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListSkillsStoreCategories(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkillsStoreCategories(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListSkillsStoreCategories") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListSkillsStoreSkillsByCategory(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSkillsStoreSkillsByCategory(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListSkillsStoreSkillsByCategory") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListSmartHomeAppliances(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListSmartHomeAppliances(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListSmartHomeAppliances") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ListTags(t *testing.T) { - svc := New(Options{}) - _, err := svc.ListTags(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ListTags") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_PutConferencePreference(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutConferencePreference(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "PutConferencePreference") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_PutInvitationConfiguration(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutInvitationConfiguration(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "PutInvitationConfiguration") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_PutRoomSkillParameter(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutRoomSkillParameter(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "PutRoomSkillParameter") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_PutSkillAuthorization(t *testing.T) { - svc := New(Options{}) - _, err := svc.PutSkillAuthorization(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "PutSkillAuthorization") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_RegisterAVSDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.RegisterAVSDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "RegisterAVSDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_RejectSkill(t *testing.T) { - svc := New(Options{}) - _, err := svc.RejectSkill(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "RejectSkill") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_ResolveRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.ResolveRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "ResolveRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_RevokeInvitation(t *testing.T) { - svc := New(Options{}) - _, err := svc.RevokeInvitation(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "RevokeInvitation") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchAddressBooks(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchAddressBooks(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchAddressBooks") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchContacts(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchContacts(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchContacts") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchDevices(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchDevices(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchDevices") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchNetworkProfiles(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchNetworkProfiles(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchNetworkProfiles") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchProfiles(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchProfiles(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchProfiles") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchRooms(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchRooms(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchRooms") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchSkillGroups(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchSkillGroups(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchSkillGroups") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SearchUsers(t *testing.T) { - svc := New(Options{}) - _, err := svc.SearchUsers(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SearchUsers") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SendAnnouncement(t *testing.T) { - svc := New(Options{}) - _, err := svc.SendAnnouncement(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SendAnnouncement") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_SendInvitation(t *testing.T) { - svc := New(Options{}) - _, err := svc.SendInvitation(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "SendInvitation") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_StartDeviceSync(t *testing.T) { - svc := New(Options{}) - _, err := svc.StartDeviceSync(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "StartDeviceSync") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_StartSmartHomeApplianceDiscovery(t *testing.T) { - svc := New(Options{}) - _, err := svc.StartSmartHomeApplianceDiscovery(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "StartSmartHomeApplianceDiscovery") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_TagResource(t *testing.T) { - svc := New(Options{}) - _, err := svc.TagResource(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "TagResource") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UntagResource(t *testing.T) { - svc := New(Options{}) - _, err := svc.UntagResource(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UntagResource") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateAddressBook(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateAddressBook(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateAddressBook") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateBusinessReportSchedule(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateBusinessReportSchedule(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateBusinessReportSchedule") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateConferenceProvider(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateConferenceProvider(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateConferenceProvider") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateContact(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateContact(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateContact") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateDevice(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateDevice(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateDevice") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateGateway(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateGateway(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateGateway") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateGatewayGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateGatewayGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateGatewayGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateNetworkProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateNetworkProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateNetworkProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateProfile(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateProfile(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateProfile") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateRoom(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateRoom(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateRoom") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - -func TestUpdateSnapshot_UpdateSkillGroup(t *testing.T) { - svc := New(Options{}) - _, err := svc.UpdateSkillGroup(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "UpdateSkillGroup") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} diff --git a/service/alexaforbusiness/types/enums.go b/service/alexaforbusiness/types/enums.go deleted file mode 100644 index 0bfda4060cd..00000000000 --- a/service/alexaforbusiness/types/enums.go +++ /dev/null @@ -1,597 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -type BusinessReportFailureCode string - -// Enum values for BusinessReportFailureCode -const ( - BusinessReportFailureCodeAccessDenied BusinessReportFailureCode = "ACCESS_DENIED" - BusinessReportFailureCodeNoSuchBucket BusinessReportFailureCode = "NO_SUCH_BUCKET" - BusinessReportFailureCodeInternalFailure BusinessReportFailureCode = "INTERNAL_FAILURE" -) - -// Values returns all known values for BusinessReportFailureCode. Note that this -// can be expanded in the future, and so it is only as up to date as the client. -// The ordering of this slice is not guaranteed to be stable across updates. -func (BusinessReportFailureCode) Values() []BusinessReportFailureCode { - return []BusinessReportFailureCode{ - "ACCESS_DENIED", - "NO_SUCH_BUCKET", - "INTERNAL_FAILURE", - } -} - -type BusinessReportFormat string - -// Enum values for BusinessReportFormat -const ( - BusinessReportFormatCsv BusinessReportFormat = "CSV" - BusinessReportFormatCsvZip BusinessReportFormat = "CSV_ZIP" -) - -// Values returns all known values for BusinessReportFormat. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (BusinessReportFormat) Values() []BusinessReportFormat { - return []BusinessReportFormat{ - "CSV", - "CSV_ZIP", - } -} - -type BusinessReportInterval string - -// Enum values for BusinessReportInterval -const ( - BusinessReportIntervalOneDay BusinessReportInterval = "ONE_DAY" - BusinessReportIntervalOneWeek BusinessReportInterval = "ONE_WEEK" - BusinessReportIntervalThirtyDays BusinessReportInterval = "THIRTY_DAYS" -) - -// Values returns all known values for BusinessReportInterval. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (BusinessReportInterval) Values() []BusinessReportInterval { - return []BusinessReportInterval{ - "ONE_DAY", - "ONE_WEEK", - "THIRTY_DAYS", - } -} - -type BusinessReportStatus string - -// Enum values for BusinessReportStatus -const ( - BusinessReportStatusRunning BusinessReportStatus = "RUNNING" - BusinessReportStatusSucceeded BusinessReportStatus = "SUCCEEDED" - BusinessReportStatusFailed BusinessReportStatus = "FAILED" -) - -// Values returns all known values for BusinessReportStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (BusinessReportStatus) Values() []BusinessReportStatus { - return []BusinessReportStatus{ - "RUNNING", - "SUCCEEDED", - "FAILED", - } -} - -type CommsProtocol string - -// Enum values for CommsProtocol -const ( - CommsProtocolSip CommsProtocol = "SIP" - CommsProtocolSips CommsProtocol = "SIPS" - CommsProtocolH323 CommsProtocol = "H323" -) - -// Values returns all known values for CommsProtocol. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (CommsProtocol) Values() []CommsProtocol { - return []CommsProtocol{ - "SIP", - "SIPS", - "H323", - } -} - -type ConferenceProviderType string - -// Enum values for ConferenceProviderType -const ( - ConferenceProviderTypeChime ConferenceProviderType = "CHIME" - ConferenceProviderTypeBluejeans ConferenceProviderType = "BLUEJEANS" - ConferenceProviderTypeFuze ConferenceProviderType = "FUZE" - ConferenceProviderTypeGoogleHangouts ConferenceProviderType = "GOOGLE_HANGOUTS" - ConferenceProviderTypePolycom ConferenceProviderType = "POLYCOM" - ConferenceProviderTypeRingcentral ConferenceProviderType = "RINGCENTRAL" - ConferenceProviderTypeSkypeForBusiness ConferenceProviderType = "SKYPE_FOR_BUSINESS" - ConferenceProviderTypeWebex ConferenceProviderType = "WEBEX" - ConferenceProviderTypeZoom ConferenceProviderType = "ZOOM" - ConferenceProviderTypeCustom ConferenceProviderType = "CUSTOM" -) - -// Values returns all known values for ConferenceProviderType. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (ConferenceProviderType) Values() []ConferenceProviderType { - return []ConferenceProviderType{ - "CHIME", - "BLUEJEANS", - "FUZE", - "GOOGLE_HANGOUTS", - "POLYCOM", - "RINGCENTRAL", - "SKYPE_FOR_BUSINESS", - "WEBEX", - "ZOOM", - "CUSTOM", - } -} - -type ConnectionStatus string - -// Enum values for ConnectionStatus -const ( - ConnectionStatusOnline ConnectionStatus = "ONLINE" - ConnectionStatusOffline ConnectionStatus = "OFFLINE" -) - -// Values returns all known values for ConnectionStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (ConnectionStatus) Values() []ConnectionStatus { - return []ConnectionStatus{ - "ONLINE", - "OFFLINE", - } -} - -type DeviceEventType string - -// Enum values for DeviceEventType -const ( - DeviceEventTypeConnectionStatus DeviceEventType = "CONNECTION_STATUS" - DeviceEventTypeDeviceStatus DeviceEventType = "DEVICE_STATUS" -) - -// Values returns all known values for DeviceEventType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DeviceEventType) Values() []DeviceEventType { - return []DeviceEventType{ - "CONNECTION_STATUS", - "DEVICE_STATUS", - } -} - -type DeviceStatus string - -// Enum values for DeviceStatus -const ( - DeviceStatusReady DeviceStatus = "READY" - DeviceStatusPending DeviceStatus = "PENDING" - DeviceStatusWasOffline DeviceStatus = "WAS_OFFLINE" - DeviceStatusDeregistered DeviceStatus = "DEREGISTERED" - DeviceStatusFailed DeviceStatus = "FAILED" -) - -// Values returns all known values for DeviceStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DeviceStatus) Values() []DeviceStatus { - return []DeviceStatus{ - "READY", - "PENDING", - "WAS_OFFLINE", - "DEREGISTERED", - "FAILED", - } -} - -type DeviceStatusDetailCode string - -// Enum values for DeviceStatusDetailCode -const ( - DeviceStatusDetailCodeDeviceSoftwareUpdateNeeded DeviceStatusDetailCode = "DEVICE_SOFTWARE_UPDATE_NEEDED" - DeviceStatusDetailCodeDeviceWasOffline DeviceStatusDetailCode = "DEVICE_WAS_OFFLINE" - DeviceStatusDetailCodeCredentialsAccessFailure DeviceStatusDetailCode = "CREDENTIALS_ACCESS_FAILURE" - DeviceStatusDetailCodeTlsVersionMismatch DeviceStatusDetailCode = "TLS_VERSION_MISMATCH" - DeviceStatusDetailCodeAssociationRejection DeviceStatusDetailCode = "ASSOCIATION_REJECTION" - DeviceStatusDetailCodeAuthenticationFailure DeviceStatusDetailCode = "AUTHENTICATION_FAILURE" - DeviceStatusDetailCodeDhcpFailure DeviceStatusDetailCode = "DHCP_FAILURE" - DeviceStatusDetailCodeInternetUnavailable DeviceStatusDetailCode = "INTERNET_UNAVAILABLE" - DeviceStatusDetailCodeDnsFailure DeviceStatusDetailCode = "DNS_FAILURE" - DeviceStatusDetailCodeUnknownFailure DeviceStatusDetailCode = "UNKNOWN_FAILURE" - DeviceStatusDetailCodeCertificateIssuingLimitExceeded DeviceStatusDetailCode = "CERTIFICATE_ISSUING_LIMIT_EXCEEDED" - DeviceStatusDetailCodeInvalidCertificateAuthority DeviceStatusDetailCode = "INVALID_CERTIFICATE_AUTHORITY" - DeviceStatusDetailCodeNetworkProfileNotFound DeviceStatusDetailCode = "NETWORK_PROFILE_NOT_FOUND" - DeviceStatusDetailCodeInvalidPasswordState DeviceStatusDetailCode = "INVALID_PASSWORD_STATE" - DeviceStatusDetailCodePasswordNotFound DeviceStatusDetailCode = "PASSWORD_NOT_FOUND" - DeviceStatusDetailCodePasswordManagerAccessDenied DeviceStatusDetailCode = "PASSWORD_MANAGER_ACCESS_DENIED" - DeviceStatusDetailCodeCertificateAuthorityAccessDenied DeviceStatusDetailCode = "CERTIFICATE_AUTHORITY_ACCESS_DENIED" -) - -// Values returns all known values for DeviceStatusDetailCode. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DeviceStatusDetailCode) Values() []DeviceStatusDetailCode { - return []DeviceStatusDetailCode{ - "DEVICE_SOFTWARE_UPDATE_NEEDED", - "DEVICE_WAS_OFFLINE", - "CREDENTIALS_ACCESS_FAILURE", - "TLS_VERSION_MISMATCH", - "ASSOCIATION_REJECTION", - "AUTHENTICATION_FAILURE", - "DHCP_FAILURE", - "INTERNET_UNAVAILABLE", - "DNS_FAILURE", - "UNKNOWN_FAILURE", - "CERTIFICATE_ISSUING_LIMIT_EXCEEDED", - "INVALID_CERTIFICATE_AUTHORITY", - "NETWORK_PROFILE_NOT_FOUND", - "INVALID_PASSWORD_STATE", - "PASSWORD_NOT_FOUND", - "PASSWORD_MANAGER_ACCESS_DENIED", - "CERTIFICATE_AUTHORITY_ACCESS_DENIED", - } -} - -type DeviceUsageType string - -// Enum values for DeviceUsageType -const ( - DeviceUsageTypeVoice DeviceUsageType = "VOICE" -) - -// Values returns all known values for DeviceUsageType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DeviceUsageType) Values() []DeviceUsageType { - return []DeviceUsageType{ - "VOICE", - } -} - -type DistanceUnit string - -// Enum values for DistanceUnit -const ( - DistanceUnitMetric DistanceUnit = "METRIC" - DistanceUnitImperial DistanceUnit = "IMPERIAL" -) - -// Values returns all known values for DistanceUnit. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DistanceUnit) Values() []DistanceUnit { - return []DistanceUnit{ - "METRIC", - "IMPERIAL", - } -} - -type EnablementType string - -// Enum values for EnablementType -const ( - EnablementTypeEnabled EnablementType = "ENABLED" - EnablementTypePending EnablementType = "PENDING" -) - -// Values returns all known values for EnablementType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (EnablementType) Values() []EnablementType { - return []EnablementType{ - "ENABLED", - "PENDING", - } -} - -type EnablementTypeFilter string - -// Enum values for EnablementTypeFilter -const ( - EnablementTypeFilterEnabled EnablementTypeFilter = "ENABLED" - EnablementTypeFilterPending EnablementTypeFilter = "PENDING" -) - -// Values returns all known values for EnablementTypeFilter. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (EnablementTypeFilter) Values() []EnablementTypeFilter { - return []EnablementTypeFilter{ - "ENABLED", - "PENDING", - } -} - -type EndOfMeetingReminderType string - -// Enum values for EndOfMeetingReminderType -const ( - EndOfMeetingReminderTypeAnnouncementTimeCheck EndOfMeetingReminderType = "ANNOUNCEMENT_TIME_CHECK" - EndOfMeetingReminderTypeAnnouncementVariableTimeLeft EndOfMeetingReminderType = "ANNOUNCEMENT_VARIABLE_TIME_LEFT" - EndOfMeetingReminderTypeChime EndOfMeetingReminderType = "CHIME" - EndOfMeetingReminderTypeKnock EndOfMeetingReminderType = "KNOCK" -) - -// Values returns all known values for EndOfMeetingReminderType. Note that this -// can be expanded in the future, and so it is only as up to date as the client. -// The ordering of this slice is not guaranteed to be stable across updates. -func (EndOfMeetingReminderType) Values() []EndOfMeetingReminderType { - return []EndOfMeetingReminderType{ - "ANNOUNCEMENT_TIME_CHECK", - "ANNOUNCEMENT_VARIABLE_TIME_LEFT", - "CHIME", - "KNOCK", - } -} - -type EnrollmentStatus string - -// Enum values for EnrollmentStatus -const ( - EnrollmentStatusInitialized EnrollmentStatus = "INITIALIZED" - EnrollmentStatusPending EnrollmentStatus = "PENDING" - EnrollmentStatusRegistered EnrollmentStatus = "REGISTERED" - EnrollmentStatusDisassociating EnrollmentStatus = "DISASSOCIATING" - EnrollmentStatusDeregistering EnrollmentStatus = "DEREGISTERING" -) - -// Values returns all known values for EnrollmentStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (EnrollmentStatus) Values() []EnrollmentStatus { - return []EnrollmentStatus{ - "INITIALIZED", - "PENDING", - "REGISTERED", - "DISASSOCIATING", - "DEREGISTERING", - } -} - -type Feature string - -// Enum values for Feature -const ( - FeatureBluetooth Feature = "BLUETOOTH" - FeatureVolume Feature = "VOLUME" - FeatureNotifications Feature = "NOTIFICATIONS" - FeatureLists Feature = "LISTS" - FeatureSkills Feature = "SKILLS" - FeatureNetworkProfile Feature = "NETWORK_PROFILE" - FeatureSettings Feature = "SETTINGS" - FeatureAll Feature = "ALL" -) - -// Values returns all known values for Feature. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (Feature) Values() []Feature { - return []Feature{ - "BLUETOOTH", - "VOLUME", - "NOTIFICATIONS", - "LISTS", - "SKILLS", - "NETWORK_PROFILE", - "SETTINGS", - "ALL", - } -} - -type Locale string - -// Enum values for Locale -const ( - LocaleEnUs Locale = "en-US" -) - -// Values returns all known values for Locale. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (Locale) Values() []Locale { - return []Locale{ - "en-US", - } -} - -type NetworkEapMethod string - -// Enum values for NetworkEapMethod -const ( - NetworkEapMethodEapTls NetworkEapMethod = "EAP_TLS" -) - -// Values returns all known values for NetworkEapMethod. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (NetworkEapMethod) Values() []NetworkEapMethod { - return []NetworkEapMethod{ - "EAP_TLS", - } -} - -type NetworkSecurityType string - -// Enum values for NetworkSecurityType -const ( - NetworkSecurityTypeOpen NetworkSecurityType = "OPEN" - NetworkSecurityTypeWep NetworkSecurityType = "WEP" - NetworkSecurityTypeWpaPsk NetworkSecurityType = "WPA_PSK" - NetworkSecurityTypeWpa2Psk NetworkSecurityType = "WPA2_PSK" - NetworkSecurityTypeWpa2Enterprise NetworkSecurityType = "WPA2_ENTERPRISE" -) - -// Values returns all known values for NetworkSecurityType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (NetworkSecurityType) Values() []NetworkSecurityType { - return []NetworkSecurityType{ - "OPEN", - "WEP", - "WPA_PSK", - "WPA2_PSK", - "WPA2_ENTERPRISE", - } -} - -type PhoneNumberType string - -// Enum values for PhoneNumberType -const ( - PhoneNumberTypeMobile PhoneNumberType = "MOBILE" - PhoneNumberTypeWork PhoneNumberType = "WORK" - PhoneNumberTypeHome PhoneNumberType = "HOME" -) - -// Values returns all known values for PhoneNumberType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (PhoneNumberType) Values() []PhoneNumberType { - return []PhoneNumberType{ - "MOBILE", - "WORK", - "HOME", - } -} - -type RequirePin string - -// Enum values for RequirePin -const ( - RequirePinYes RequirePin = "YES" - RequirePinNo RequirePin = "NO" - RequirePinOptional RequirePin = "OPTIONAL" -) - -// Values returns all known values for RequirePin. Note that this can be expanded -// in the future, and so it is only as up to date as the client. The ordering of -// this slice is not guaranteed to be stable across updates. -func (RequirePin) Values() []RequirePin { - return []RequirePin{ - "YES", - "NO", - "OPTIONAL", - } -} - -type SipType string - -// Enum values for SipType -const ( - SipTypeWork SipType = "WORK" -) - -// Values returns all known values for SipType. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (SipType) Values() []SipType { - return []SipType{ - "WORK", - } -} - -type SkillType string - -// Enum values for SkillType -const ( - SkillTypePublic SkillType = "PUBLIC" - SkillTypePrivate SkillType = "PRIVATE" -) - -// Values returns all known values for SkillType. Note that this can be expanded -// in the future, and so it is only as up to date as the client. The ordering of -// this slice is not guaranteed to be stable across updates. -func (SkillType) Values() []SkillType { - return []SkillType{ - "PUBLIC", - "PRIVATE", - } -} - -type SkillTypeFilter string - -// Enum values for SkillTypeFilter -const ( - SkillTypeFilterPublic SkillTypeFilter = "PUBLIC" - SkillTypeFilterPrivate SkillTypeFilter = "PRIVATE" - SkillTypeFilterAll SkillTypeFilter = "ALL" -) - -// Values returns all known values for SkillTypeFilter. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (SkillTypeFilter) Values() []SkillTypeFilter { - return []SkillTypeFilter{ - "PUBLIC", - "PRIVATE", - "ALL", - } -} - -type SortValue string - -// Enum values for SortValue -const ( - SortValueAsc SortValue = "ASC" - SortValueDesc SortValue = "DESC" -) - -// Values returns all known values for SortValue. Note that this can be expanded -// in the future, and so it is only as up to date as the client. The ordering of -// this slice is not guaranteed to be stable across updates. -func (SortValue) Values() []SortValue { - return []SortValue{ - "ASC", - "DESC", - } -} - -type TemperatureUnit string - -// Enum values for TemperatureUnit -const ( - TemperatureUnitFahrenheit TemperatureUnit = "FAHRENHEIT" - TemperatureUnitCelsius TemperatureUnit = "CELSIUS" -) - -// Values returns all known values for TemperatureUnit. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (TemperatureUnit) Values() []TemperatureUnit { - return []TemperatureUnit{ - "FAHRENHEIT", - "CELSIUS", - } -} - -type WakeWord string - -// Enum values for WakeWord -const ( - WakeWordAlexa WakeWord = "ALEXA" - WakeWordAmazon WakeWord = "AMAZON" - WakeWordEcho WakeWord = "ECHO" - WakeWordComputer WakeWord = "COMPUTER" -) - -// Values returns all known values for WakeWord. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (WakeWord) Values() []WakeWord { - return []WakeWord{ - "ALEXA", - "AMAZON", - "ECHO", - "COMPUTER", - } -} diff --git a/service/alexaforbusiness/types/errors.go b/service/alexaforbusiness/types/errors.go deleted file mode 100644 index 73475d5ce03..00000000000 --- a/service/alexaforbusiness/types/errors.go +++ /dev/null @@ -1,408 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - "fmt" - smithy "github.com/aws/smithy-go" -) - -// The resource being created already exists. -type AlreadyExistsException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *AlreadyExistsException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *AlreadyExistsException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *AlreadyExistsException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "AlreadyExistsException" - } - return *e.ErrorCodeOverride -} -func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// There is a concurrent modification of resources. -type ConcurrentModificationException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *ConcurrentModificationException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ConcurrentModificationException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ConcurrentModificationException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ConcurrentModificationException" - } - return *e.ErrorCodeOverride -} -func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The request failed because this device is no longer registered and therefore no -// longer managed by this account. -type DeviceNotRegisteredException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *DeviceNotRegisteredException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *DeviceNotRegisteredException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *DeviceNotRegisteredException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "DeviceNotRegisteredException" - } - return *e.ErrorCodeOverride -} -func (e *DeviceNotRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The Certificate Authority can't issue or revoke a certificate. -type InvalidCertificateAuthorityException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InvalidCertificateAuthorityException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InvalidCertificateAuthorityException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InvalidCertificateAuthorityException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InvalidCertificateAuthorityException" - } - return *e.ErrorCodeOverride -} -func (e *InvalidCertificateAuthorityException) ErrorFault() smithy.ErrorFault { - return smithy.FaultClient -} - -// The device is in an invalid state. -type InvalidDeviceException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InvalidDeviceException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InvalidDeviceException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InvalidDeviceException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InvalidDeviceException" - } - return *e.ErrorCodeOverride -} -func (e *InvalidDeviceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// A password in SecretsManager is in an invalid state. -type InvalidSecretsManagerResourceException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InvalidSecretsManagerResourceException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InvalidSecretsManagerResourceException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InvalidSecretsManagerResourceException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InvalidSecretsManagerResourceException" - } - return *e.ErrorCodeOverride -} -func (e *InvalidSecretsManagerResourceException) ErrorFault() smithy.ErrorFault { - return smithy.FaultClient -} - -// The service linked role is locked for deletion. -type InvalidServiceLinkedRoleStateException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InvalidServiceLinkedRoleStateException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InvalidServiceLinkedRoleStateException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InvalidServiceLinkedRoleStateException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InvalidServiceLinkedRoleStateException" - } - return *e.ErrorCodeOverride -} -func (e *InvalidServiceLinkedRoleStateException) ErrorFault() smithy.ErrorFault { - return smithy.FaultClient -} - -// The attempt to update a user is invalid due to the user's current status. -type InvalidUserStatusException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InvalidUserStatusException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InvalidUserStatusException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InvalidUserStatusException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InvalidUserStatusException" - } - return *e.ErrorCodeOverride -} -func (e *InvalidUserStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// You are performing an action that would put you beyond your account's limits. -type LimitExceededException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *LimitExceededException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *LimitExceededException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *LimitExceededException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "LimitExceededException" - } - return *e.ErrorCodeOverride -} -func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The name sent in the request is already in use. -type NameInUseException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *NameInUseException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *NameInUseException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *NameInUseException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "NameInUseException" - } - return *e.ErrorCodeOverride -} -func (e *NameInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The resource is not found. -type NotFoundException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *NotFoundException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *NotFoundException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *NotFoundException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "NotFoundException" - } - return *e.ErrorCodeOverride -} -func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// Another resource is associated with the resource in the request. -type ResourceAssociatedException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *ResourceAssociatedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceAssociatedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceAssociatedException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ResourceAssociatedException" - } - return *e.ErrorCodeOverride -} -func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The resource in the request is already in use. -type ResourceInUseException struct { - Message *string - - ErrorCodeOverride *string - - ClientRequestToken *string - - noSmithyDocumentSerde -} - -func (e *ResourceInUseException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceInUseException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceInUseException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ResourceInUseException" - } - return *e.ErrorCodeOverride -} -func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The skill must be linked to a third-party account. -type SkillNotLinkedException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *SkillNotLinkedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *SkillNotLinkedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *SkillNotLinkedException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "SkillNotLinkedException" - } - return *e.ErrorCodeOverride -} -func (e *SkillNotLinkedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The caller has no permissions to operate on the resource involved in the API -// call. -type UnauthorizedException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *UnauthorizedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *UnauthorizedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *UnauthorizedException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "UnauthorizedException" - } - return *e.ErrorCodeOverride -} -func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/alexaforbusiness/types/types.go b/service/alexaforbusiness/types/types.go deleted file mode 100644 index 2fc0ac0afe7..00000000000 --- a/service/alexaforbusiness/types/types.go +++ /dev/null @@ -1,1315 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - smithydocument "github.com/aws/smithy-go/document" - "time" -) - -// An address book with attributes. -type AddressBook struct { - - // The ARN of the address book. - AddressBookArn *string - - // The description of the address book. - Description *string - - // The name of the address book. - Name *string - - noSmithyDocumentSerde -} - -// Information related to an address book. -type AddressBookData struct { - - // The ARN of the address book. - AddressBookArn *string - - // The description of the address book. - Description *string - - // The name of the address book. - Name *string - - noSmithyDocumentSerde -} - -// The audio message. There is a 1 MB limit on the audio file input and the only -// supported format is MP3. To convert your MP3 audio files to an Alexa-friendly, -// required codec version (MPEG version 2) and bit rate (48 kbps), you might use -// converter software. One option for this is a command-line tool, FFmpeg. For more -// information, see FFmpeg (https://www.ffmpeg.org/) . The following command -// converts the provided to an MP3 file that is played in the announcement: ffmpeg -// -i -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 -type Audio struct { - - // The locale of the audio message. Currently, en-US is supported. - // - // This member is required. - Locale Locale - - // The location of the audio file. Currently, S3 URLs are supported. Only S3 - // locations comprised of safe characters are valid. For more information, see - // Safe Characters (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#Safe%20Characters) - // . - // - // This member is required. - Location *string - - noSmithyDocumentSerde -} - -// Usage report with specified parameters. -type BusinessReport struct { - - // The time of report delivery. - DeliveryTime *time.Time - - // The download link where a user can download the report. - DownloadUrl *string - - // The failure code. - FailureCode BusinessReportFailureCode - - // The S3 location of the output reports. - S3Location *BusinessReportS3Location - - // The status of the report generation execution (RUNNING, SUCCEEDED, or FAILED). - Status BusinessReportStatus - - noSmithyDocumentSerde -} - -// The content range of the report. -type BusinessReportContentRange struct { - - // The interval of the content range. - // - // This member is required. - Interval BusinessReportInterval - - noSmithyDocumentSerde -} - -// The recurrence of the reports. -type BusinessReportRecurrence struct { - - // The start date. - StartDate *string - - noSmithyDocumentSerde -} - -// The S3 location of the output reports. -type BusinessReportS3Location struct { - - // The S3 bucket name of the output reports. - BucketName *string - - // The path of the business report. - Path *string - - noSmithyDocumentSerde -} - -// The schedule of the usage report. -type BusinessReportSchedule struct { - - // The content range of the reports. - ContentRange *BusinessReportContentRange - - // The format of the generated report (individual CSV files or zipped files of - // individual files). - Format BusinessReportFormat - - // The details of the last business report delivery for a specified time interval. - LastBusinessReport *BusinessReport - - // The recurrence of the reports. - Recurrence *BusinessReportRecurrence - - // The S3 bucket name of the output reports. - S3BucketName *string - - // The S3 key where the report is delivered. - S3KeyPrefix *string - - // The ARN of the business report schedule. - ScheduleArn *string - - // The name identifier of the schedule. - ScheduleName *string - - noSmithyDocumentSerde -} - -// The skill store category that is shown. Alexa skills are assigned a specific -// skill category during creation, such as News, Social, and Sports. -type Category struct { - - // The ID of the skill store category. - CategoryId *int64 - - // The name of the skill store category. - CategoryName *string - - noSmithyDocumentSerde -} - -// The default conference provider that is used if no other scheduled meetings are -// detected. -type ConferencePreference struct { - - // The ARN of the default conference provider. - DefaultConferenceProviderArn *string - - noSmithyDocumentSerde -} - -// An entity that provides a conferencing solution. Alexa for Business acts as the -// voice interface and mediator that connects users to their preferred conference -// provider. Examples of conference providers include Amazon Chime, Zoom, Cisco, -// and Polycom. -type ConferenceProvider struct { - - // The ARN of the newly created conference provider. - Arn *string - - // The IP endpoint and protocol for calling. - IPDialIn *IPDialIn - - // The meeting settings for the conference provider. - MeetingSetting *MeetingSetting - - // The name of the conference provider. - Name *string - - // The information for PSTN conferencing. - PSTNDialIn *PSTNDialIn - - // The type of conference providers. - Type ConferenceProviderType - - noSmithyDocumentSerde -} - -// A contact with attributes. -type Contact struct { - - // The ARN of the contact. - ContactArn *string - - // The name of the contact to display on the console. - DisplayName *string - - // The first name of the contact, used to call the contact on the device. - FirstName *string - - // The last name of the contact, used to call the contact on the device. - LastName *string - - // The phone number of the contact. The phone number type defaults to WORK. You - // can either specify PhoneNumber or PhoneNumbers. We recommend that you use - // PhoneNumbers, which lets you specify the phone number type and multiple numbers. - PhoneNumber *string - - // The list of phone numbers for the contact. - PhoneNumbers []PhoneNumber - - // The list of SIP addresses for the contact. - SipAddresses []SipAddress - - noSmithyDocumentSerde -} - -// Information related to a contact. -type ContactData struct { - - // The ARN of the contact. - ContactArn *string - - // The name of the contact to display on the console. - DisplayName *string - - // The first name of the contact, used to call the contact on the device. - FirstName *string - - // The last name of the contact, used to call the contact on the device. - LastName *string - - // The phone number of the contact. The phone number type defaults to WORK. You - // can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, - // which lets you specify the phone number type and multiple numbers. - PhoneNumber *string - - // The list of phone numbers for the contact. - PhoneNumbers []PhoneNumber - - // The list of SIP addresses for the contact. - SipAddresses []SipAddress - - noSmithyDocumentSerde -} - -// The content definition. This can contain only one text, SSML, or audio list -// object. -type Content struct { - - // The list of audio messages. - AudioList []Audio - - // The list of SSML messages. - SsmlList []Ssml - - // The list of text messages. - TextList []Text - - noSmithyDocumentSerde -} - -// Creates settings for the end of meeting reminder feature that are applied to a -// room profile. The end of meeting reminder enables Alexa to remind users when a -// meeting is ending. -type CreateEndOfMeetingReminder struct { - - // Whether an end of meeting reminder is enabled or not. - // - // This member is required. - Enabled *bool - - // A range of 3 to 15 minutes that determines when the reminder begins. - // - // This member is required. - ReminderAtMinutes []int32 - - // The type of sound that users hear during the end of meeting reminder. - // - // This member is required. - ReminderType EndOfMeetingReminderType - - noSmithyDocumentSerde -} - -// Creates settings for the instant booking feature that are applied to a room -// profile. When users start their meeting with Alexa, Alexa automatically books -// the room for the configured duration if the room is available. -type CreateInstantBooking struct { - - // Duration between 15 and 240 minutes at increments of 15 that determines how - // long to book an available room when a meeting is started with Alexa. - // - // This member is required. - DurationInMinutes *int32 - - // Whether instant booking is enabled or not. - // - // This member is required. - Enabled *bool - - noSmithyDocumentSerde -} - -// Creates meeting room settings of a room profile. -type CreateMeetingRoomConfiguration struct { - - // Creates settings for the end of meeting reminder feature that are applied to a - // room profile. The end of meeting reminder enables Alexa to remind users when a - // meeting is ending. - EndOfMeetingReminder *CreateEndOfMeetingReminder - - // Settings to automatically book a room for a configured duration if it's free - // when joining a meeting with Alexa. - InstantBooking *CreateInstantBooking - - ProactiveJoin *CreateProactiveJoin - - // Settings for requiring a check in when a room is reserved. Alexa can cancel a - // room reservation if it's not checked into to make the room available for others. - // Users can check in by joining the meeting with Alexa or an AVS device, or by - // saying “Alexa, check in.” - RequireCheckIn *CreateRequireCheckIn - - // Whether room utilization metrics are enabled or not. - RoomUtilizationMetricsEnabled *bool - - noSmithyDocumentSerde -} - -type CreateProactiveJoin struct { - - // This member is required. - EnabledByMotion *bool - - noSmithyDocumentSerde -} - -// Creates settings for the require check in feature that are applied to a room -// profile. Require check in allows a meeting room’s Alexa or AVS device to prompt -// the user to check in; otherwise, the room will be released. -type CreateRequireCheckIn struct { - - // Whether require check in is enabled or not. - // - // This member is required. - Enabled *bool - - // Duration between 5 and 20 minutes to determine when to release the room if it's - // not checked into. - // - // This member is required. - ReleaseAfterMinutes *int32 - - noSmithyDocumentSerde -} - -// The details about the developer that published the skill. -type DeveloperInfo struct { - - // The name of the developer. - DeveloperName *string - - // The email of the developer. - Email *string - - // The URL of the privacy policy. - PrivacyPolicy *string - - // The website of the developer. - Url *string - - noSmithyDocumentSerde -} - -// A device with attributes. -type Device struct { - - // The ARN of a device. - DeviceArn *string - - // The name of a device. - DeviceName *string - - // The serial number of a device. - DeviceSerialNumber *string - - // The status of a device. If the status is not READY, check the DeviceStatusInfo - // value for details. - DeviceStatus DeviceStatus - - // Detailed information about a device's status. - DeviceStatusInfo *DeviceStatusInfo - - // The type of a device. - DeviceType *string - - // The MAC address of a device. - MacAddress *string - - // Detailed information about a device's network profile. - NetworkProfileInfo *DeviceNetworkProfileInfo - - // The room ARN of a device. - RoomArn *string - - // The software version of a device. - SoftwareVersion *string - - noSmithyDocumentSerde -} - -// Device attributes. -type DeviceData struct { - - // The time (in epoch) when the device data was created. - CreatedTime *time.Time - - // The ARN of a device. - DeviceArn *string - - // The name of a device. - DeviceName *string - - // The serial number of a device. - DeviceSerialNumber *string - - // The status of a device. - DeviceStatus DeviceStatus - - // Detailed information about a device's status. - DeviceStatusInfo *DeviceStatusInfo - - // The type of a device. - DeviceType *string - - // The MAC address of a device. - MacAddress *string - - // The ARN of the network profile associated with a device. - NetworkProfileArn *string - - // The name of the network profile associated with a device. - NetworkProfileName *string - - // The room ARN associated with a device. - RoomArn *string - - // The name of the room associated with a device. - RoomName *string - - // The software version of a device. - SoftwareVersion *string - - noSmithyDocumentSerde -} - -// The list of device events. -type DeviceEvent struct { - - // The time (in epoch) when the event occurred. - Timestamp *time.Time - - // The type of device event. - Type DeviceEventType - - // The value of the event. - Value *string - - noSmithyDocumentSerde -} - -// Detailed information about a device's network profile. -type DeviceNetworkProfileInfo struct { - - // The ARN of the certificate associated with a device. - CertificateArn *string - - // The time (in epoch) when the certificate expires. - CertificateExpirationTime *time.Time - - // The ARN of the network profile associated with a device. - NetworkProfileArn *string - - noSmithyDocumentSerde -} - -// Details of a device’s status. -type DeviceStatusDetail struct { - - // The device status detail code. - Code DeviceStatusDetailCode - - // The list of available features on the device. - Feature Feature - - noSmithyDocumentSerde -} - -// Detailed information about a device's status. -type DeviceStatusInfo struct { - - // The latest available information about the connection status of a device. - ConnectionStatus ConnectionStatus - - // The time (in epoch) when the device connection status changed. - ConnectionStatusUpdatedTime *time.Time - - // One or more device status detail descriptions. - DeviceStatusDetails []DeviceStatusDetail - - noSmithyDocumentSerde -} - -// Settings for the end of meeting reminder feature that are applied to a room -// profile. The end of meeting reminder enables Alexa to remind users when a -// meeting is ending. -type EndOfMeetingReminder struct { - - // Whether an end of meeting reminder is enabled or not. - Enabled *bool - - // A range of 3 to 15 minutes that determines when the reminder begins. - ReminderAtMinutes []int32 - - // The type of sound that users hear during the end of meeting reminder. - ReminderType EndOfMeetingReminderType - - noSmithyDocumentSerde -} - -// A filter name and value pair that is used to return a more specific list of -// results. Filters can be used to match a set of resources by various criteria. -type Filter struct { - - // The key of a filter. - // - // This member is required. - Key *string - - // The values of a filter. - // - // This member is required. - Values []string - - noSmithyDocumentSerde -} - -// The details of the gateway. -type Gateway struct { - - // The ARN of the gateway. - Arn *string - - // The description of the gateway. - Description *string - - // The ARN of the gateway group that the gateway is associated to. - GatewayGroupArn *string - - // The name of the gateway. - Name *string - - // The software version of the gateway. The gateway automatically updates its - // software version during normal operation. - SoftwareVersion *string - - noSmithyDocumentSerde -} - -// The details of the gateway group. -type GatewayGroup struct { - - // The ARN of the gateway group. - Arn *string - - // The description of the gateway group. - Description *string - - // The name of the gateway group. - Name *string - - noSmithyDocumentSerde -} - -// The summary of a gateway group. -type GatewayGroupSummary struct { - - // The ARN of the gateway group. - Arn *string - - // The description of the gateway group. - Description *string - - // The name of the gateway group. - Name *string - - noSmithyDocumentSerde -} - -// The summary of a gateway. -type GatewaySummary struct { - - // The ARN of the gateway. - Arn *string - - // The description of the gateway. - Description *string - - // The ARN of the gateway group that the gateway is associated to. - GatewayGroupArn *string - - // The name of the gateway. - Name *string - - // The software version of the gateway. The gateway automatically updates its - // software version during normal operation. - SoftwareVersion *string - - noSmithyDocumentSerde -} - -// Settings for the instant booking feature that are applied to a room profile. -// When users start their meeting with Alexa, Alexa automatically books the room -// for the configured duration if the room is available. -type InstantBooking struct { - - // Duration between 15 and 240 minutes at increments of 15 that determines how - // long to book an available room when a meeting is started with Alexa. - DurationInMinutes *int32 - - // Whether instant booking is enabled or not. - Enabled *bool - - noSmithyDocumentSerde -} - -// The IP endpoint and protocol for calling. -type IPDialIn struct { - - // The protocol, including SIP, SIPS, and H323. - // - // This member is required. - CommsProtocol CommsProtocol - - // The IP address. - // - // This member is required. - Endpoint *string - - noSmithyDocumentSerde -} - -// Meeting room settings of a room profile. -type MeetingRoomConfiguration struct { - - // Settings for the end of meeting reminder feature that are applied to a room - // profile. The end of meeting reminder enables Alexa to remind users when a - // meeting is ending. - EndOfMeetingReminder *EndOfMeetingReminder - - // Settings to automatically book the room if available for a configured duration - // when joining a meeting with Alexa. - InstantBooking *InstantBooking - - ProactiveJoin *ProactiveJoin - - // Settings for requiring a check in when a room is reserved. Alexa can cancel a - // room reservation if it's not checked into. This makes the room available for - // others. Users can check in by joining the meeting with Alexa or an AVS device, - // or by saying “Alexa, check in.” - RequireCheckIn *RequireCheckIn - - // Whether room utilization metrics are enabled or not. - RoomUtilizationMetricsEnabled *bool - - noSmithyDocumentSerde -} - -// The values that indicate whether a pin is always required (YES), never required -// (NO), or OPTIONAL. -// - If YES, Alexa will always ask for a meeting pin. -// - If NO, Alexa will never ask for a meeting pin. -// - If OPTIONAL, Alexa will ask if you have a meeting pin and if the customer -// responds with yes, it will ask for the meeting pin. -type MeetingSetting struct { - - // The values that indicate whether the pin is always required. - // - // This member is required. - RequirePin RequirePin - - noSmithyDocumentSerde -} - -// The network profile associated with a device. -type NetworkProfile struct { - - // The ARN of the Private Certificate Authority (PCA) created in AWS Certificate - // Manager (ACM). This is used to issue certificates to the devices. - CertificateAuthorityArn *string - - // The current password of the Wi-Fi network. - CurrentPassword *string - - // Detailed information about a device's network profile. - Description *string - - // The authentication standard that is used in the EAP framework. Currently, - // EAP_TLS is supported. - EapMethod NetworkEapMethod - - // The ARN of the network profile associated with a device. - NetworkProfileArn *string - - // The name of the network profile associated with a device. - NetworkProfileName *string - - // The next, or subsequent, password of the Wi-Fi network. This password is - // asynchronously transmitted to the device and is used when the password of the - // network changes to NextPassword. - NextPassword *string - - // The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, - // WPA_PSK, WEP, or OPEN. - SecurityType NetworkSecurityType - - // The SSID of the Wi-Fi network. - Ssid *string - - // The root certificates of your authentication server, which is installed on your - // devices and used to trust your authentication server during EAP negotiation. - TrustAnchors []string - - noSmithyDocumentSerde -} - -// The data associated with a network profile. -type NetworkProfileData struct { - - // The ARN of the Private Certificate Authority (PCA) created in AWS Certificate - // Manager (ACM). This is used to issue certificates to the devices. - CertificateAuthorityArn *string - - // Detailed information about a device's network profile. - Description *string - - // The authentication standard that is used in the EAP framework. Currently, - // EAP_TLS is supported. - EapMethod NetworkEapMethod - - // The ARN of the network profile associated with a device. - NetworkProfileArn *string - - // The name of the network profile associated with a device. - NetworkProfileName *string - - // The security type of the Wi-Fi network. This can be WPA2_ENTERPRISE, WPA2_PSK, - // WPA_PSK, WEP, or OPEN. - SecurityType NetworkSecurityType - - // The SSID of the Wi-Fi network. - Ssid *string - - noSmithyDocumentSerde -} - -// The phone number for the contact containing the raw number and phone number -// type. -type PhoneNumber struct { - - // The raw value of the phone number. - // - // This member is required. - Number *string - - // The type of the phone number. - // - // This member is required. - Type PhoneNumberType - - noSmithyDocumentSerde -} - -type ProactiveJoin struct { - EnabledByMotion *bool - - noSmithyDocumentSerde -} - -// A room profile with attributes. -type Profile struct { - - // The address of a room profile. - Address *string - - // The ARN of the address book. - AddressBookArn *string - - // Whether data retention of the profile is enabled. - DataRetentionOptIn *bool - - // The distance unit of a room profile. - DistanceUnit DistanceUnit - - // Retrieves if the profile is default or not. - IsDefault *bool - - // The locale of a room profile. (This is currently available only to a limited - // preview audience.) - Locale *string - - // The max volume limit of a room profile. - MaxVolumeLimit *int32 - - // Meeting room settings of a room profile. - MeetingRoomConfiguration *MeetingRoomConfiguration - - // The PSTN setting of a room profile. - PSTNEnabled *bool - - // The ARN of a room profile. - ProfileArn *string - - // The name of a room profile. - ProfileName *string - - // The setup mode of a room profile. - SetupModeDisabled *bool - - // The temperature unit of a room profile. - TemperatureUnit TemperatureUnit - - // The time zone of a room profile. - Timezone *string - - // The wake word of a room profile. - WakeWord WakeWord - - noSmithyDocumentSerde -} - -// The data of a room profile. -type ProfileData struct { - - // The address of a room profile. - Address *string - - // The distance unit of a room profile. - DistanceUnit DistanceUnit - - // Retrieves if the profile data is default or not. - IsDefault *bool - - // The locale of a room profile. (This is currently available only to a limited - // preview audience.) - Locale *string - - // The ARN of a room profile. - ProfileArn *string - - // The name of a room profile. - ProfileName *string - - // The temperature unit of a room profile. - TemperatureUnit TemperatureUnit - - // The time zone of a room profile. - Timezone *string - - // The wake word of a room profile. - WakeWord WakeWord - - noSmithyDocumentSerde -} - -// The information for public switched telephone network (PSTN) conferencing. -type PSTNDialIn struct { - - // The zip code. - // - // This member is required. - CountryCode *string - - // The delay duration before Alexa enters the conference ID with dual-tone - // multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, - // which is how we send data over the telephone network. - // - // This member is required. - OneClickIdDelay *string - - // The delay duration before Alexa enters the conference pin with dual-tone - // multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, - // which is how we send data over the telephone network. - // - // This member is required. - OneClickPinDelay *string - - // The phone number to call to join the conference. - // - // This member is required. - PhoneNumber *string - - noSmithyDocumentSerde -} - -// Settings for the require check in feature that are applied to a room profile. -// Require check in allows a meeting room’s Alexa or AVS device to prompt the user -// to check in; otherwise, the room will be released. -type RequireCheckIn struct { - - // Whether require check in is enabled or not. - Enabled *bool - - // Duration between 5 and 20 minutes to determine when to release the room if it's - // not checked into. - ReleaseAfterMinutes *int32 - - noSmithyDocumentSerde -} - -// A room with attributes. -type Room struct { - - // The description of a room. - Description *string - - // The profile ARN of a room. - ProfileArn *string - - // The provider calendar ARN of a room. - ProviderCalendarId *string - - // The ARN of a room. - RoomArn *string - - // The name of a room. - RoomName *string - - noSmithyDocumentSerde -} - -// The data of a room. -type RoomData struct { - - // The description of a room. - Description *string - - // The profile ARN of a room. - ProfileArn *string - - // The profile name of a room. - ProfileName *string - - // The provider calendar ARN of a room. - ProviderCalendarId *string - - // The ARN of a room. - RoomArn *string - - // The name of a room. - RoomName *string - - noSmithyDocumentSerde -} - -// A skill parameter associated with a room. -type RoomSkillParameter struct { - - // The parameter key of a room skill parameter. ParameterKey is an enumerated type - // that only takes “DEFAULT” or “SCOPE” as valid values. - // - // This member is required. - ParameterKey *string - - // The parameter value of a room skill parameter. - // - // This member is required. - ParameterValue *string - - noSmithyDocumentSerde -} - -// The SIP address for the contact containing the URI and SIP address type. -type SipAddress struct { - - // The type of the SIP address. - // - // This member is required. - Type SipType - - // The URI for the SIP address. - // - // This member is required. - Uri *string - - noSmithyDocumentSerde -} - -// Granular information about the skill. -type SkillDetails struct { - - // The details about what the skill supports organized as bullet points. - BulletPoints []string - - // The details about the developer that published the skill. - DeveloperInfo *DeveloperInfo - - // The URL of the end user license agreement. - EndUserLicenseAgreement *string - - // The generic keywords associated with the skill that can be used to find a skill. - GenericKeywords []string - - // The phrase used to trigger the skill. - InvocationPhrase *string - - // The updates added in bullet points. - NewInThisVersionBulletPoints []string - - // The description of the product. - ProductDescription *string - - // The date when the skill was released. - ReleaseDate *string - - // This member has been deprecated. The list of reviews for the skill, including - // Key and Value pair. - Reviews map[string]string - - // The types of skills. - SkillTypes []string - - noSmithyDocumentSerde -} - -// A skill group with attributes. -type SkillGroup struct { - - // The description of a skill group. - Description *string - - // The ARN of a skill group. - SkillGroupArn *string - - // The name of a skill group. - SkillGroupName *string - - noSmithyDocumentSerde -} - -// The attributes of a skill group. -type SkillGroupData struct { - - // The description of a skill group. - Description *string - - // The skill group ARN of a skill group. - SkillGroupArn *string - - // The skill group name of a skill group. - SkillGroupName *string - - noSmithyDocumentSerde -} - -// The detailed information about an Alexa skill. -type SkillsStoreSkill struct { - - // The URL where the skill icon resides. - IconUrl *string - - // Sample utterances that interact with the skill. - SampleUtterances []string - - // Short description about the skill. - ShortDescription *string - - // Information about the skill. - SkillDetails *SkillDetails - - // The ARN of the skill. - SkillId *string - - // The name of the skill. - SkillName *string - - // Linking support for a skill. - SupportsLinking bool - - noSmithyDocumentSerde -} - -// The summary of skills. -type SkillSummary struct { - - // Whether the skill is enabled under the user's account, or if it requires - // linking to be used. - EnablementType EnablementType - - // The ARN of the skill summary. - SkillId *string - - // The name of the skill. - SkillName *string - - // Whether the skill is publicly available or is a private skill. - SkillType SkillType - - // Linking support for a skill. - SupportsLinking bool - - noSmithyDocumentSerde -} - -// A smart home appliance that can connect to a central system. Any domestic -// device can be a smart appliance. -type SmartHomeAppliance struct { - - // The description of the smart home appliance. - Description *string - - // The friendly name of the smart home appliance. - FriendlyName *string - - // The name of the manufacturer of the smart home appliance. - ManufacturerName *string - - noSmithyDocumentSerde -} - -// An object representing a sort criteria. -type Sort struct { - - // The sort key of a sort object. - // - // This member is required. - Key *string - - // The sort value of a sort object. - // - // This member is required. - Value SortValue - - noSmithyDocumentSerde -} - -// The SSML message. For more information, see SSML Reference (https://developer.amazon.com/docs/custom-skills/speech-synthesis-markup-language-ssml-reference.html) -// . -type Ssml struct { - - // The locale of the SSML message. Currently, en-US is supported. - // - // This member is required. - Locale Locale - - // The value of the SSML message in the correct SSML format. The audio tag is not - // supported. - // - // This member is required. - Value *string - - noSmithyDocumentSerde -} - -// A key-value pair that can be associated with a resource. -type Tag struct { - - // The key of a tag. Tag keys are case-sensitive. - // - // This member is required. - Key *string - - // The value of a tag. Tag values are case sensitive and can be null. - // - // This member is required. - Value *string - - noSmithyDocumentSerde -} - -// The text message. -type Text struct { - - // The locale of the text message. Currently, en-US is supported. - // - // This member is required. - Locale Locale - - // The value of the text message. - // - // This member is required. - Value *string - - noSmithyDocumentSerde -} - -// Settings for the end of meeting reminder feature that are applied to a room -// profile. The end of meeting reminder enables Alexa to remind users when a -// meeting is ending. -type UpdateEndOfMeetingReminder struct { - - // Whether an end of meeting reminder is enabled or not. - Enabled *bool - - // Updates settings for the end of meeting reminder feature that are applied to a - // room profile. The end of meeting reminder enables Alexa to remind users when a - // meeting is ending. - ReminderAtMinutes []int32 - - // The type of sound that users hear during the end of meeting reminder. - ReminderType EndOfMeetingReminderType - - noSmithyDocumentSerde -} - -// Updates settings for the instant booking feature that are applied to a room -// profile. If instant booking is enabled, Alexa automatically reserves a room if -// it is free when a user joins a meeting with Alexa. -type UpdateInstantBooking struct { - - // Duration between 15 and 240 minutes at increments of 15 that determines how - // long to book an available room when a meeting is started with Alexa. - DurationInMinutes *int32 - - // Whether instant booking is enabled or not. - Enabled *bool - - noSmithyDocumentSerde -} - -// Updates meeting room settings of a room profile. -type UpdateMeetingRoomConfiguration struct { - - // Settings for the end of meeting reminder feature that are applied to a room - // profile. The end of meeting reminder enables Alexa to remind users when a - // meeting is ending. - EndOfMeetingReminder *UpdateEndOfMeetingReminder - - // Settings to automatically book an available room available for a configured - // duration when joining a meeting with Alexa. - InstantBooking *UpdateInstantBooking - - ProactiveJoin *UpdateProactiveJoin - - // Settings for requiring a check in when a room is reserved. Alexa can cancel a - // room reservation if it's not checked into to make the room available for others. - // Users can check in by joining the meeting with Alexa or an AVS device, or by - // saying “Alexa, check in.” - RequireCheckIn *UpdateRequireCheckIn - - // Whether room utilization metrics are enabled or not. - RoomUtilizationMetricsEnabled *bool - - noSmithyDocumentSerde -} - -type UpdateProactiveJoin struct { - - // This member is required. - EnabledByMotion *bool - - noSmithyDocumentSerde -} - -// Updates settings for the require check in feature that are applied to a room -// profile. Require check in allows a meeting room’s Alexa or AVS device to prompt -// the user to check in; otherwise, the room will be released. -type UpdateRequireCheckIn struct { - - // Whether require check in is enabled or not. - Enabled *bool - - // Duration between 5 and 20 minutes to determine when to release the room if it's - // not checked into. - ReleaseAfterMinutes *int32 - - noSmithyDocumentSerde -} - -// Information related to a user. -type UserData struct { - - // The email of a user. - Email *string - - // The enrollment ARN of a user. - EnrollmentId *string - - // The enrollment status of a user. - EnrollmentStatus EnrollmentStatus - - // The first name of a user. - FirstName *string - - // The last name of a user. - LastName *string - - // The ARN of a user. - UserArn *string - - noSmithyDocumentSerde -} - -type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/alexaforbusiness/validators.go b/service/alexaforbusiness/validators.go deleted file mode 100644 index c89edb34ba1..00000000000 --- a/service/alexaforbusiness/validators.go +++ /dev/null @@ -1,3511 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package alexaforbusiness - -import ( - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/alexaforbusiness/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/middleware" -) - -type validateOpApproveSkill struct { -} - -func (*validateOpApproveSkill) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpApproveSkill) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ApproveSkillInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpApproveSkillInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpAssociateContactWithAddressBook struct { -} - -func (*validateOpAssociateContactWithAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAssociateContactWithAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AssociateContactWithAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAssociateContactWithAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpAssociateDeviceWithNetworkProfile struct { -} - -func (*validateOpAssociateDeviceWithNetworkProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAssociateDeviceWithNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AssociateDeviceWithNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAssociateDeviceWithNetworkProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpAssociateSkillWithSkillGroup struct { -} - -func (*validateOpAssociateSkillWithSkillGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAssociateSkillWithSkillGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AssociateSkillWithSkillGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAssociateSkillWithSkillGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpAssociateSkillWithUsers struct { -} - -func (*validateOpAssociateSkillWithUsers) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAssociateSkillWithUsers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AssociateSkillWithUsersInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAssociateSkillWithUsersInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateAddressBook struct { -} - -func (*validateOpCreateAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateBusinessReportSchedule struct { -} - -func (*validateOpCreateBusinessReportSchedule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateBusinessReportSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateBusinessReportScheduleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateBusinessReportScheduleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateConferenceProvider struct { -} - -func (*validateOpCreateConferenceProvider) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateConferenceProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateConferenceProviderInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateConferenceProviderInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateContact struct { -} - -func (*validateOpCreateContact) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateContactInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateContactInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateGatewayGroup struct { -} - -func (*validateOpCreateGatewayGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateGatewayGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateGatewayGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateGatewayGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateNetworkProfile struct { -} - -func (*validateOpCreateNetworkProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateNetworkProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateProfile struct { -} - -func (*validateOpCreateProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateRoom struct { -} - -func (*validateOpCreateRoom) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateRoom) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateRoomInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateRoomInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateSkillGroup struct { -} - -func (*validateOpCreateSkillGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateSkillGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateSkillGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateSkillGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateUser struct { -} - -func (*validateOpCreateUser) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateUserInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateUserInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteAddressBook struct { -} - -func (*validateOpDeleteAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteBusinessReportSchedule struct { -} - -func (*validateOpDeleteBusinessReportSchedule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteBusinessReportSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteBusinessReportScheduleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteBusinessReportScheduleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteConferenceProvider struct { -} - -func (*validateOpDeleteConferenceProvider) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteConferenceProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteConferenceProviderInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteConferenceProviderInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteContact struct { -} - -func (*validateOpDeleteContact) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteContactInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteContactInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteDevice struct { -} - -func (*validateOpDeleteDevice) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteDevice) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteDeviceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteDeviceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteDeviceUsageData struct { -} - -func (*validateOpDeleteDeviceUsageData) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteDeviceUsageData) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteDeviceUsageDataInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteDeviceUsageDataInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteGatewayGroup struct { -} - -func (*validateOpDeleteGatewayGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteGatewayGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteGatewayGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteGatewayGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteNetworkProfile struct { -} - -func (*validateOpDeleteNetworkProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteNetworkProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteRoomSkillParameter struct { -} - -func (*validateOpDeleteRoomSkillParameter) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteRoomSkillParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteRoomSkillParameterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteRoomSkillParameterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteSkillAuthorization struct { -} - -func (*validateOpDeleteSkillAuthorization) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteSkillAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteSkillAuthorizationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteSkillAuthorizationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteUser struct { -} - -func (*validateOpDeleteUser) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteUserInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteUserInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDisassociateContactFromAddressBook struct { -} - -func (*validateOpDisassociateContactFromAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDisassociateContactFromAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DisassociateContactFromAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDisassociateContactFromAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDisassociateSkillFromSkillGroup struct { -} - -func (*validateOpDisassociateSkillFromSkillGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDisassociateSkillFromSkillGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DisassociateSkillFromSkillGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDisassociateSkillFromSkillGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDisassociateSkillFromUsers struct { -} - -func (*validateOpDisassociateSkillFromUsers) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDisassociateSkillFromUsers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DisassociateSkillFromUsersInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDisassociateSkillFromUsersInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpForgetSmartHomeAppliances struct { -} - -func (*validateOpForgetSmartHomeAppliances) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpForgetSmartHomeAppliances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ForgetSmartHomeAppliancesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpForgetSmartHomeAppliancesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetAddressBook struct { -} - -func (*validateOpGetAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetConferenceProvider struct { -} - -func (*validateOpGetConferenceProvider) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetConferenceProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetConferenceProviderInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetConferenceProviderInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetContact struct { -} - -func (*validateOpGetContact) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetContactInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetContactInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetGatewayGroup struct { -} - -func (*validateOpGetGatewayGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetGatewayGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetGatewayGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetGatewayGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetGateway struct { -} - -func (*validateOpGetGateway) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetGatewayInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetGatewayInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetNetworkProfile struct { -} - -func (*validateOpGetNetworkProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetNetworkProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetRoomSkillParameter struct { -} - -func (*validateOpGetRoomSkillParameter) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRoomSkillParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRoomSkillParameterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRoomSkillParameterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListDeviceEvents struct { -} - -func (*validateOpListDeviceEvents) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListDeviceEvents) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListDeviceEventsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListDeviceEventsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListSkillsStoreSkillsByCategory struct { -} - -func (*validateOpListSkillsStoreSkillsByCategory) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListSkillsStoreSkillsByCategory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListSkillsStoreSkillsByCategoryInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListSkillsStoreSkillsByCategoryInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListSmartHomeAppliances struct { -} - -func (*validateOpListSmartHomeAppliances) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListSmartHomeAppliances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListSmartHomeAppliancesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListSmartHomeAppliancesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListTags struct { -} - -func (*validateOpListTags) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListTags) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListTagsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListTagsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpPutConferencePreference struct { -} - -func (*validateOpPutConferencePreference) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpPutConferencePreference) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*PutConferencePreferenceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpPutConferencePreferenceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpPutInvitationConfiguration struct { -} - -func (*validateOpPutInvitationConfiguration) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpPutInvitationConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*PutInvitationConfigurationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpPutInvitationConfigurationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpPutRoomSkillParameter struct { -} - -func (*validateOpPutRoomSkillParameter) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpPutRoomSkillParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*PutRoomSkillParameterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpPutRoomSkillParameterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpPutSkillAuthorization struct { -} - -func (*validateOpPutSkillAuthorization) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpPutSkillAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*PutSkillAuthorizationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpPutSkillAuthorizationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpRegisterAVSDevice struct { -} - -func (*validateOpRegisterAVSDevice) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpRegisterAVSDevice) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*RegisterAVSDeviceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpRegisterAVSDeviceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpRejectSkill struct { -} - -func (*validateOpRejectSkill) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpRejectSkill) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*RejectSkillInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpRejectSkillInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpResolveRoom struct { -} - -func (*validateOpResolveRoom) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpResolveRoom) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ResolveRoomInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpResolveRoomInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchAddressBooks struct { -} - -func (*validateOpSearchAddressBooks) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchAddressBooks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchAddressBooksInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchAddressBooksInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchContacts struct { -} - -func (*validateOpSearchContacts) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchContacts) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchContactsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchContactsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchDevices struct { -} - -func (*validateOpSearchDevices) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchDevices) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchDevicesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchDevicesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchNetworkProfiles struct { -} - -func (*validateOpSearchNetworkProfiles) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchNetworkProfiles) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchNetworkProfilesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchNetworkProfilesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchProfiles struct { -} - -func (*validateOpSearchProfiles) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchProfiles) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchProfilesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchProfilesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchRooms struct { -} - -func (*validateOpSearchRooms) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchRooms) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchRoomsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchRoomsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchSkillGroups struct { -} - -func (*validateOpSearchSkillGroups) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchSkillGroups) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchSkillGroupsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchSkillGroupsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSearchUsers struct { -} - -func (*validateOpSearchUsers) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSearchUsers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SearchUsersInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSearchUsersInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpSendAnnouncement struct { -} - -func (*validateOpSendAnnouncement) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpSendAnnouncement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*SendAnnouncementInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpSendAnnouncementInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpStartDeviceSync struct { -} - -func (*validateOpStartDeviceSync) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpStartDeviceSync) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*StartDeviceSyncInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpStartDeviceSyncInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpStartSmartHomeApplianceDiscovery struct { -} - -func (*validateOpStartSmartHomeApplianceDiscovery) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpStartSmartHomeApplianceDiscovery) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*StartSmartHomeApplianceDiscoveryInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpStartSmartHomeApplianceDiscoveryInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpTagResource struct { -} - -func (*validateOpTagResource) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*TagResourceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpTagResourceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUntagResource struct { -} - -func (*validateOpUntagResource) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UntagResourceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUntagResourceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateAddressBook struct { -} - -func (*validateOpUpdateAddressBook) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateAddressBook) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateAddressBookInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateAddressBookInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateBusinessReportSchedule struct { -} - -func (*validateOpUpdateBusinessReportSchedule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateBusinessReportSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateBusinessReportScheduleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateBusinessReportScheduleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateConferenceProvider struct { -} - -func (*validateOpUpdateConferenceProvider) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateConferenceProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateConferenceProviderInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateConferenceProviderInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateContact struct { -} - -func (*validateOpUpdateContact) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateContactInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateContactInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateGatewayGroup struct { -} - -func (*validateOpUpdateGatewayGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateGatewayGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateGatewayGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateGatewayGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateGateway struct { -} - -func (*validateOpUpdateGateway) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateGatewayInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateGatewayInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateNetworkProfile struct { -} - -func (*validateOpUpdateNetworkProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateNetworkProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateNetworkProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateNetworkProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateProfile struct { -} - -func (*validateOpUpdateProfile) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateProfileInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateProfileInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -func addOpApproveSkillValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpApproveSkill{}, middleware.After) -} - -func addOpAssociateContactWithAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAssociateContactWithAddressBook{}, middleware.After) -} - -func addOpAssociateDeviceWithNetworkProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAssociateDeviceWithNetworkProfile{}, middleware.After) -} - -func addOpAssociateSkillWithSkillGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAssociateSkillWithSkillGroup{}, middleware.After) -} - -func addOpAssociateSkillWithUsersValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAssociateSkillWithUsers{}, middleware.After) -} - -func addOpCreateAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateAddressBook{}, middleware.After) -} - -func addOpCreateBusinessReportScheduleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateBusinessReportSchedule{}, middleware.After) -} - -func addOpCreateConferenceProviderValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateConferenceProvider{}, middleware.After) -} - -func addOpCreateContactValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateContact{}, middleware.After) -} - -func addOpCreateGatewayGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateGatewayGroup{}, middleware.After) -} - -func addOpCreateNetworkProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateNetworkProfile{}, middleware.After) -} - -func addOpCreateProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateProfile{}, middleware.After) -} - -func addOpCreateRoomValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateRoom{}, middleware.After) -} - -func addOpCreateSkillGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateSkillGroup{}, middleware.After) -} - -func addOpCreateUserValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateUser{}, middleware.After) -} - -func addOpDeleteAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteAddressBook{}, middleware.After) -} - -func addOpDeleteBusinessReportScheduleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteBusinessReportSchedule{}, middleware.After) -} - -func addOpDeleteConferenceProviderValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteConferenceProvider{}, middleware.After) -} - -func addOpDeleteContactValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteContact{}, middleware.After) -} - -func addOpDeleteDeviceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteDevice{}, middleware.After) -} - -func addOpDeleteDeviceUsageDataValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteDeviceUsageData{}, middleware.After) -} - -func addOpDeleteGatewayGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteGatewayGroup{}, middleware.After) -} - -func addOpDeleteNetworkProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteNetworkProfile{}, middleware.After) -} - -func addOpDeleteRoomSkillParameterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteRoomSkillParameter{}, middleware.After) -} - -func addOpDeleteSkillAuthorizationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteSkillAuthorization{}, middleware.After) -} - -func addOpDeleteUserValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteUser{}, middleware.After) -} - -func addOpDisassociateContactFromAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDisassociateContactFromAddressBook{}, middleware.After) -} - -func addOpDisassociateSkillFromSkillGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDisassociateSkillFromSkillGroup{}, middleware.After) -} - -func addOpDisassociateSkillFromUsersValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDisassociateSkillFromUsers{}, middleware.After) -} - -func addOpForgetSmartHomeAppliancesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpForgetSmartHomeAppliances{}, middleware.After) -} - -func addOpGetAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetAddressBook{}, middleware.After) -} - -func addOpGetConferenceProviderValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetConferenceProvider{}, middleware.After) -} - -func addOpGetContactValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetContact{}, middleware.After) -} - -func addOpGetGatewayGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetGatewayGroup{}, middleware.After) -} - -func addOpGetGatewayValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetGateway{}, middleware.After) -} - -func addOpGetNetworkProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetNetworkProfile{}, middleware.After) -} - -func addOpGetRoomSkillParameterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRoomSkillParameter{}, middleware.After) -} - -func addOpListDeviceEventsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListDeviceEvents{}, middleware.After) -} - -func addOpListSkillsStoreSkillsByCategoryValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListSkillsStoreSkillsByCategory{}, middleware.After) -} - -func addOpListSmartHomeAppliancesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListSmartHomeAppliances{}, middleware.After) -} - -func addOpListTagsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListTags{}, middleware.After) -} - -func addOpPutConferencePreferenceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpPutConferencePreference{}, middleware.After) -} - -func addOpPutInvitationConfigurationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpPutInvitationConfiguration{}, middleware.After) -} - -func addOpPutRoomSkillParameterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpPutRoomSkillParameter{}, middleware.After) -} - -func addOpPutSkillAuthorizationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpPutSkillAuthorization{}, middleware.After) -} - -func addOpRegisterAVSDeviceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpRegisterAVSDevice{}, middleware.After) -} - -func addOpRejectSkillValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpRejectSkill{}, middleware.After) -} - -func addOpResolveRoomValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpResolveRoom{}, middleware.After) -} - -func addOpSearchAddressBooksValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchAddressBooks{}, middleware.After) -} - -func addOpSearchContactsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchContacts{}, middleware.After) -} - -func addOpSearchDevicesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchDevices{}, middleware.After) -} - -func addOpSearchNetworkProfilesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchNetworkProfiles{}, middleware.After) -} - -func addOpSearchProfilesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchProfiles{}, middleware.After) -} - -func addOpSearchRoomsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchRooms{}, middleware.After) -} - -func addOpSearchSkillGroupsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchSkillGroups{}, middleware.After) -} - -func addOpSearchUsersValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSearchUsers{}, middleware.After) -} - -func addOpSendAnnouncementValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpSendAnnouncement{}, middleware.After) -} - -func addOpStartDeviceSyncValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpStartDeviceSync{}, middleware.After) -} - -func addOpStartSmartHomeApplianceDiscoveryValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpStartSmartHomeApplianceDiscovery{}, middleware.After) -} - -func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) -} - -func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) -} - -func addOpUpdateAddressBookValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateAddressBook{}, middleware.After) -} - -func addOpUpdateBusinessReportScheduleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateBusinessReportSchedule{}, middleware.After) -} - -func addOpUpdateConferenceProviderValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateConferenceProvider{}, middleware.After) -} - -func addOpUpdateContactValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateContact{}, middleware.After) -} - -func addOpUpdateGatewayGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateGatewayGroup{}, middleware.After) -} - -func addOpUpdateGatewayValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateGateway{}, middleware.After) -} - -func addOpUpdateNetworkProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateNetworkProfile{}, middleware.After) -} - -func addOpUpdateProfileValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateProfile{}, middleware.After) -} - -func validateAudio(v *types.Audio) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Audio"} - if len(v.Locale) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Locale")) - } - if v.Location == nil { - invalidParams.Add(smithy.NewErrParamRequired("Location")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateAudioList(v []types.Audio) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AudioList"} - for i := range v { - if err := validateAudio(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateBusinessReportContentRange(v *types.BusinessReportContentRange) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "BusinessReportContentRange"} - if len(v.Interval) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Interval")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateContent(v *types.Content) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Content"} - if v.TextList != nil { - if err := validateTextList(v.TextList); err != nil { - invalidParams.AddNested("TextList", err.(smithy.InvalidParamsError)) - } - } - if v.SsmlList != nil { - if err := validateSsmlList(v.SsmlList); err != nil { - invalidParams.AddNested("SsmlList", err.(smithy.InvalidParamsError)) - } - } - if v.AudioList != nil { - if err := validateAudioList(v.AudioList); err != nil { - invalidParams.AddNested("AudioList", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateCreateEndOfMeetingReminder(v *types.CreateEndOfMeetingReminder) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateEndOfMeetingReminder"} - if v.ReminderAtMinutes == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReminderAtMinutes")) - } - if len(v.ReminderType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ReminderType")) - } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateCreateInstantBooking(v *types.CreateInstantBooking) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateInstantBooking"} - if v.DurationInMinutes == nil { - invalidParams.Add(smithy.NewErrParamRequired("DurationInMinutes")) - } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateCreateMeetingRoomConfiguration(v *types.CreateMeetingRoomConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateMeetingRoomConfiguration"} - if v.EndOfMeetingReminder != nil { - if err := validateCreateEndOfMeetingReminder(v.EndOfMeetingReminder); err != nil { - invalidParams.AddNested("EndOfMeetingReminder", err.(smithy.InvalidParamsError)) - } - } - if v.InstantBooking != nil { - if err := validateCreateInstantBooking(v.InstantBooking); err != nil { - invalidParams.AddNested("InstantBooking", err.(smithy.InvalidParamsError)) - } - } - if v.RequireCheckIn != nil { - if err := validateCreateRequireCheckIn(v.RequireCheckIn); err != nil { - invalidParams.AddNested("RequireCheckIn", err.(smithy.InvalidParamsError)) - } - } - if v.ProactiveJoin != nil { - if err := validateCreateProactiveJoin(v.ProactiveJoin); err != nil { - invalidParams.AddNested("ProactiveJoin", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateCreateProactiveJoin(v *types.CreateProactiveJoin) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateProactiveJoin"} - if v.EnabledByMotion == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnabledByMotion")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateCreateRequireCheckIn(v *types.CreateRequireCheckIn) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateRequireCheckIn"} - if v.ReleaseAfterMinutes == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReleaseAfterMinutes")) - } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateFilter(v *types.Filter) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Filter"} - if v.Key == nil { - invalidParams.Add(smithy.NewErrParamRequired("Key")) - } - if v.Values == nil { - invalidParams.Add(smithy.NewErrParamRequired("Values")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateFilterList(v []types.Filter) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "FilterList"} - for i := range v { - if err := validateFilter(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateIPDialIn(v *types.IPDialIn) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "IPDialIn"} - if v.Endpoint == nil { - invalidParams.Add(smithy.NewErrParamRequired("Endpoint")) - } - if len(v.CommsProtocol) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("CommsProtocol")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateMeetingSetting(v *types.MeetingSetting) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "MeetingSetting"} - if len(v.RequirePin) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("RequirePin")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validatePhoneNumber(v *types.PhoneNumber) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PhoneNumber"} - if v.Number == nil { - invalidParams.Add(smithy.NewErrParamRequired("Number")) - } - if len(v.Type) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Type")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validatePhoneNumberList(v []types.PhoneNumber) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PhoneNumberList"} - for i := range v { - if err := validatePhoneNumber(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validatePSTNDialIn(v *types.PSTNDialIn) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PSTNDialIn"} - if v.CountryCode == nil { - invalidParams.Add(smithy.NewErrParamRequired("CountryCode")) - } - if v.PhoneNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("PhoneNumber")) - } - if v.OneClickIdDelay == nil { - invalidParams.Add(smithy.NewErrParamRequired("OneClickIdDelay")) - } - if v.OneClickPinDelay == nil { - invalidParams.Add(smithy.NewErrParamRequired("OneClickPinDelay")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateRoomSkillParameter(v *types.RoomSkillParameter) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RoomSkillParameter"} - if v.ParameterKey == nil { - invalidParams.Add(smithy.NewErrParamRequired("ParameterKey")) - } - if v.ParameterValue == nil { - invalidParams.Add(smithy.NewErrParamRequired("ParameterValue")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSipAddress(v *types.SipAddress) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SipAddress"} - if v.Uri == nil { - invalidParams.Add(smithy.NewErrParamRequired("Uri")) - } - if len(v.Type) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Type")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSipAddressList(v []types.SipAddress) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SipAddressList"} - for i := range v { - if err := validateSipAddress(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSort(v *types.Sort) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Sort"} - if v.Key == nil { - invalidParams.Add(smithy.NewErrParamRequired("Key")) - } - if len(v.Value) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSortList(v []types.Sort) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SortList"} - for i := range v { - if err := validateSort(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSsml(v *types.Ssml) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Ssml"} - if len(v.Locale) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Locale")) - } - if v.Value == nil { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSsmlList(v []types.Ssml) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SsmlList"} - for i := range v { - if err := validateSsml(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateTag(v *types.Tag) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Tag"} - if v.Key == nil { - invalidParams.Add(smithy.NewErrParamRequired("Key")) - } - if v.Value == nil { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateTagList(v []types.Tag) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TagList"} - for i := range v { - if err := validateTag(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateText(v *types.Text) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Text"} - if len(v.Locale) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Locale")) - } - if v.Value == nil { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateTextList(v []types.Text) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TextList"} - for i := range v { - if err := validateText(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateUpdateMeetingRoomConfiguration(v *types.UpdateMeetingRoomConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateMeetingRoomConfiguration"} - if v.ProactiveJoin != nil { - if err := validateUpdateProactiveJoin(v.ProactiveJoin); err != nil { - invalidParams.AddNested("ProactiveJoin", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateUpdateProactiveJoin(v *types.UpdateProactiveJoin) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateProactiveJoin"} - if v.EnabledByMotion == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnabledByMotion")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpApproveSkillInput(v *ApproveSkillInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ApproveSkillInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpAssociateContactWithAddressBookInput(v *AssociateContactWithAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssociateContactWithAddressBookInput"} - if v.ContactArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContactArn")) - } - if v.AddressBookArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("AddressBookArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpAssociateDeviceWithNetworkProfileInput(v *AssociateDeviceWithNetworkProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssociateDeviceWithNetworkProfileInput"} - if v.DeviceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeviceArn")) - } - if v.NetworkProfileArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkProfileArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpAssociateSkillWithSkillGroupInput(v *AssociateSkillWithSkillGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssociateSkillWithSkillGroupInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpAssociateSkillWithUsersInput(v *AssociateSkillWithUsersInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssociateSkillWithUsersInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateAddressBookInput(v *CreateAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateAddressBookInput"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateBusinessReportScheduleInput(v *CreateBusinessReportScheduleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateBusinessReportScheduleInput"} - if len(v.Format) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Format")) - } - if v.ContentRange == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContentRange")) - } else if v.ContentRange != nil { - if err := validateBusinessReportContentRange(v.ContentRange); err != nil { - invalidParams.AddNested("ContentRange", err.(smithy.InvalidParamsError)) - } - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateConferenceProviderInput(v *CreateConferenceProviderInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateConferenceProviderInput"} - if v.ConferenceProviderName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderName")) - } - if len(v.ConferenceProviderType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderType")) - } - if v.IPDialIn != nil { - if err := validateIPDialIn(v.IPDialIn); err != nil { - invalidParams.AddNested("IPDialIn", err.(smithy.InvalidParamsError)) - } - } - if v.PSTNDialIn != nil { - if err := validatePSTNDialIn(v.PSTNDialIn); err != nil { - invalidParams.AddNested("PSTNDialIn", err.(smithy.InvalidParamsError)) - } - } - if v.MeetingSetting == nil { - invalidParams.Add(smithy.NewErrParamRequired("MeetingSetting")) - } else if v.MeetingSetting != nil { - if err := validateMeetingSetting(v.MeetingSetting); err != nil { - invalidParams.AddNested("MeetingSetting", err.(smithy.InvalidParamsError)) - } - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateContactInput(v *CreateContactInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateContactInput"} - if v.FirstName == nil { - invalidParams.Add(smithy.NewErrParamRequired("FirstName")) - } - if v.PhoneNumbers != nil { - if err := validatePhoneNumberList(v.PhoneNumbers); err != nil { - invalidParams.AddNested("PhoneNumbers", err.(smithy.InvalidParamsError)) - } - } - if v.SipAddresses != nil { - if err := validateSipAddressList(v.SipAddresses); err != nil { - invalidParams.AddNested("SipAddresses", err.(smithy.InvalidParamsError)) - } - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateGatewayGroupInput(v *CreateGatewayGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateGatewayGroupInput"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.ClientRequestToken == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClientRequestToken")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateNetworkProfileInput(v *CreateNetworkProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateNetworkProfileInput"} - if v.NetworkProfileName == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkProfileName")) - } - if v.Ssid == nil { - invalidParams.Add(smithy.NewErrParamRequired("Ssid")) - } - if len(v.SecurityType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SecurityType")) - } - if v.ClientRequestToken == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClientRequestToken")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateProfileInput(v *CreateProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateProfileInput"} - if v.ProfileName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ProfileName")) - } - if v.Timezone == nil { - invalidParams.Add(smithy.NewErrParamRequired("Timezone")) - } - if v.Address == nil { - invalidParams.Add(smithy.NewErrParamRequired("Address")) - } - if len(v.DistanceUnit) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("DistanceUnit")) - } - if len(v.TemperatureUnit) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("TemperatureUnit")) - } - if len(v.WakeWord) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("WakeWord")) - } - if v.MeetingRoomConfiguration != nil { - if err := validateCreateMeetingRoomConfiguration(v.MeetingRoomConfiguration); err != nil { - invalidParams.AddNested("MeetingRoomConfiguration", err.(smithy.InvalidParamsError)) - } - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateRoomInput(v *CreateRoomInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateRoomInput"} - if v.RoomName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomName")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateSkillGroupInput(v *CreateSkillGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateSkillGroupInput"} - if v.SkillGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillGroupName")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateUserInput(v *CreateUserInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateUserInput"} - if v.UserId == nil { - invalidParams.Add(smithy.NewErrParamRequired("UserId")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteAddressBookInput(v *DeleteAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteAddressBookInput"} - if v.AddressBookArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("AddressBookArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteBusinessReportScheduleInput(v *DeleteBusinessReportScheduleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteBusinessReportScheduleInput"} - if v.ScheduleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ScheduleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteConferenceProviderInput(v *DeleteConferenceProviderInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteConferenceProviderInput"} - if v.ConferenceProviderArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteContactInput(v *DeleteContactInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteContactInput"} - if v.ContactArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContactArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteDeviceInput(v *DeleteDeviceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteDeviceInput"} - if v.DeviceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeviceArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteDeviceUsageDataInput(v *DeleteDeviceUsageDataInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteDeviceUsageDataInput"} - if v.DeviceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeviceArn")) - } - if len(v.DeviceUsageType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("DeviceUsageType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteGatewayGroupInput(v *DeleteGatewayGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteGatewayGroupInput"} - if v.GatewayGroupArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatewayGroupArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteNetworkProfileInput(v *DeleteNetworkProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkProfileInput"} - if v.NetworkProfileArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkProfileArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteRoomSkillParameterInput(v *DeleteRoomSkillParameterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteRoomSkillParameterInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if v.ParameterKey == nil { - invalidParams.Add(smithy.NewErrParamRequired("ParameterKey")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteSkillAuthorizationInput(v *DeleteSkillAuthorizationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteSkillAuthorizationInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteUserInput(v *DeleteUserInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteUserInput"} - if v.EnrollmentId == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnrollmentId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDisassociateContactFromAddressBookInput(v *DisassociateContactFromAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DisassociateContactFromAddressBookInput"} - if v.ContactArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContactArn")) - } - if v.AddressBookArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("AddressBookArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDisassociateSkillFromSkillGroupInput(v *DisassociateSkillFromSkillGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DisassociateSkillFromSkillGroupInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDisassociateSkillFromUsersInput(v *DisassociateSkillFromUsersInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DisassociateSkillFromUsersInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpForgetSmartHomeAppliancesInput(v *ForgetSmartHomeAppliancesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ForgetSmartHomeAppliancesInput"} - if v.RoomArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetAddressBookInput(v *GetAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetAddressBookInput"} - if v.AddressBookArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("AddressBookArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetConferenceProviderInput(v *GetConferenceProviderInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetConferenceProviderInput"} - if v.ConferenceProviderArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetContactInput(v *GetContactInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetContactInput"} - if v.ContactArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContactArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetGatewayGroupInput(v *GetGatewayGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetGatewayGroupInput"} - if v.GatewayGroupArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatewayGroupArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetGatewayInput(v *GetGatewayInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetGatewayInput"} - if v.GatewayArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetNetworkProfileInput(v *GetNetworkProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetNetworkProfileInput"} - if v.NetworkProfileArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkProfileArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetRoomSkillParameterInput(v *GetRoomSkillParameterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRoomSkillParameterInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if v.ParameterKey == nil { - invalidParams.Add(smithy.NewErrParamRequired("ParameterKey")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListDeviceEventsInput(v *ListDeviceEventsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListDeviceEventsInput"} - if v.DeviceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeviceArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListSkillsStoreSkillsByCategoryInput(v *ListSkillsStoreSkillsByCategoryInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListSkillsStoreSkillsByCategoryInput"} - if v.CategoryId == nil { - invalidParams.Add(smithy.NewErrParamRequired("CategoryId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListSmartHomeAppliancesInput(v *ListSmartHomeAppliancesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListSmartHomeAppliancesInput"} - if v.RoomArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListTagsInput(v *ListTagsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListTagsInput"} - if v.Arn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Arn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpPutConferencePreferenceInput(v *PutConferencePreferenceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PutConferencePreferenceInput"} - if v.ConferencePreference == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConferencePreference")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpPutInvitationConfigurationInput(v *PutInvitationConfigurationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PutInvitationConfigurationInput"} - if v.OrganizationName == nil { - invalidParams.Add(smithy.NewErrParamRequired("OrganizationName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpPutRoomSkillParameterInput(v *PutRoomSkillParameterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PutRoomSkillParameterInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if v.RoomSkillParameter == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomSkillParameter")) - } else if v.RoomSkillParameter != nil { - if err := validateRoomSkillParameter(v.RoomSkillParameter); err != nil { - invalidParams.AddNested("RoomSkillParameter", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpPutSkillAuthorizationInput(v *PutSkillAuthorizationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "PutSkillAuthorizationInput"} - if v.AuthorizationResult == nil { - invalidParams.Add(smithy.NewErrParamRequired("AuthorizationResult")) - } - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpRegisterAVSDeviceInput(v *RegisterAVSDeviceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RegisterAVSDeviceInput"} - if v.ClientId == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClientId")) - } - if v.UserCode == nil { - invalidParams.Add(smithy.NewErrParamRequired("UserCode")) - } - if v.ProductId == nil { - invalidParams.Add(smithy.NewErrParamRequired("ProductId")) - } - if v.AmazonId == nil { - invalidParams.Add(smithy.NewErrParamRequired("AmazonId")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpRejectSkillInput(v *RejectSkillInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RejectSkillInput"} - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpResolveRoomInput(v *ResolveRoomInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ResolveRoomInput"} - if v.UserId == nil { - invalidParams.Add(smithy.NewErrParamRequired("UserId")) - } - if v.SkillId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SkillId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchAddressBooksInput(v *SearchAddressBooksInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchAddressBooksInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchContactsInput(v *SearchContactsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchContactsInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchDevicesInput(v *SearchDevicesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchDevicesInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchNetworkProfilesInput(v *SearchNetworkProfilesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchNetworkProfilesInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchProfilesInput(v *SearchProfilesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchProfilesInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchRoomsInput(v *SearchRoomsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchRoomsInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchSkillGroupsInput(v *SearchSkillGroupsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchSkillGroupsInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSearchUsersInput(v *SearchUsersInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SearchUsersInput"} - if v.Filters != nil { - if err := validateFilterList(v.Filters); err != nil { - invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) - } - } - if v.SortCriteria != nil { - if err := validateSortList(v.SortCriteria); err != nil { - invalidParams.AddNested("SortCriteria", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpSendAnnouncementInput(v *SendAnnouncementInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SendAnnouncementInput"} - if v.RoomFilters == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomFilters")) - } else if v.RoomFilters != nil { - if err := validateFilterList(v.RoomFilters); err != nil { - invalidParams.AddNested("RoomFilters", err.(smithy.InvalidParamsError)) - } - } - if v.Content == nil { - invalidParams.Add(smithy.NewErrParamRequired("Content")) - } else if v.Content != nil { - if err := validateContent(v.Content); err != nil { - invalidParams.AddNested("Content", err.(smithy.InvalidParamsError)) - } - } - if v.ClientRequestToken == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClientRequestToken")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpStartDeviceSyncInput(v *StartDeviceSyncInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StartDeviceSyncInput"} - if v.Features == nil { - invalidParams.Add(smithy.NewErrParamRequired("Features")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpStartSmartHomeApplianceDiscoveryInput(v *StartSmartHomeApplianceDiscoveryInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StartSmartHomeApplianceDiscoveryInput"} - if v.RoomArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoomArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpTagResourceInput(v *TagResourceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} - if v.Arn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Arn")) - } - if v.Tags == nil { - invalidParams.Add(smithy.NewErrParamRequired("Tags")) - } else if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUntagResourceInput(v *UntagResourceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} - if v.Arn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Arn")) - } - if v.TagKeys == nil { - invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateAddressBookInput(v *UpdateAddressBookInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateAddressBookInput"} - if v.AddressBookArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("AddressBookArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateBusinessReportScheduleInput(v *UpdateBusinessReportScheduleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateBusinessReportScheduleInput"} - if v.ScheduleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ScheduleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateConferenceProviderInput(v *UpdateConferenceProviderInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateConferenceProviderInput"} - if v.ConferenceProviderArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderArn")) - } - if len(v.ConferenceProviderType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ConferenceProviderType")) - } - if v.IPDialIn != nil { - if err := validateIPDialIn(v.IPDialIn); err != nil { - invalidParams.AddNested("IPDialIn", err.(smithy.InvalidParamsError)) - } - } - if v.PSTNDialIn != nil { - if err := validatePSTNDialIn(v.PSTNDialIn); err != nil { - invalidParams.AddNested("PSTNDialIn", err.(smithy.InvalidParamsError)) - } - } - if v.MeetingSetting == nil { - invalidParams.Add(smithy.NewErrParamRequired("MeetingSetting")) - } else if v.MeetingSetting != nil { - if err := validateMeetingSetting(v.MeetingSetting); err != nil { - invalidParams.AddNested("MeetingSetting", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateContactInput(v *UpdateContactInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateContactInput"} - if v.ContactArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ContactArn")) - } - if v.PhoneNumbers != nil { - if err := validatePhoneNumberList(v.PhoneNumbers); err != nil { - invalidParams.AddNested("PhoneNumbers", err.(smithy.InvalidParamsError)) - } - } - if v.SipAddresses != nil { - if err := validateSipAddressList(v.SipAddresses); err != nil { - invalidParams.AddNested("SipAddresses", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateGatewayGroupInput(v *UpdateGatewayGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateGatewayGroupInput"} - if v.GatewayGroupArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatewayGroupArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateGatewayInput(v *UpdateGatewayInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateGatewayInput"} - if v.GatewayArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateNetworkProfileInput(v *UpdateNetworkProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateNetworkProfileInput"} - if v.NetworkProfileArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkProfileArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateProfileInput(v *UpdateProfileInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateProfileInput"} - if v.MeetingRoomConfiguration != nil { - if err := validateUpdateMeetingRoomConfiguration(v.MeetingRoomConfiguration); err != nil { - invalidParams.AddNested("MeetingRoomConfiguration", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} From cec94b777b923a87e24a8421d15ba9a8233efa4f Mon Sep 17 00:00:00 2001 From: Tianyi Wang Date: Tue, 30 Apr 2024 14:23:34 -0400 Subject: [PATCH 2/3] add changelog --- .changelog/41a4c0708d4b410392ea999a0a08129a.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changelog/41a4c0708d4b410392ea999a0a08129a.json diff --git a/.changelog/41a4c0708d4b410392ea999a0a08129a.json b/.changelog/41a4c0708d4b410392ea999a0a08129a.json new file mode 100644 index 00000000000..e76789896ef --- /dev/null +++ b/.changelog/41a4c0708d4b410392ea999a0a08129a.json @@ -0,0 +1,8 @@ +{ + "id": "41a4c070-8d4b-4103-92ea-999a0a08129a", + "type": "release", + "description": "remove deprecated alexaforbusiness from v2", + "modules": [ + "." + ] +} \ No newline at end of file From c4347e3e71778460cb1f0ed91efa203df32fdf14 Mon Sep 17 00:00:00 2001 From: Eren Yeager <92114074+wty-Bryant@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:19:28 -0400 Subject: [PATCH 3/3] Update changelog description Co-authored-by: Luc Talatinian <102624213+lucix-aws@users.noreply.github.com> --- .changelog/41a4c0708d4b410392ea999a0a08129a.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changelog/41a4c0708d4b410392ea999a0a08129a.json b/.changelog/41a4c0708d4b410392ea999a0a08129a.json index e76789896ef..465473150eb 100644 --- a/.changelog/41a4c0708d4b410392ea999a0a08129a.json +++ b/.changelog/41a4c0708d4b410392ea999a0a08129a.json @@ -1,7 +1,7 @@ { "id": "41a4c070-8d4b-4103-92ea-999a0a08129a", - "type": "release", - "description": "remove deprecated alexaforbusiness from v2", + "type": "feature", + "description": "Remove deprecated `alexaforbusiness` service.", "modules": [ "." ]