aws-sdk-alexaforbusiness 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,14 +12,29 @@ module Aws::AlexaForBusiness
12
12
  include Seahorse::Model
13
13
 
14
14
  Address = Shapes::StringShape.new(name: 'Address')
15
+ AddressBook = Shapes::StructureShape.new(name: 'AddressBook')
16
+ AddressBookData = Shapes::StructureShape.new(name: 'AddressBookData')
17
+ AddressBookDataList = Shapes::ListShape.new(name: 'AddressBookDataList')
18
+ AddressBookDescription = Shapes::StringShape.new(name: 'AddressBookDescription')
19
+ AddressBookName = Shapes::StringShape.new(name: 'AddressBookName')
15
20
  AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
16
21
  Arn = Shapes::StringShape.new(name: 'Arn')
22
+ AssociateContactWithAddressBookRequest = Shapes::StructureShape.new(name: 'AssociateContactWithAddressBookRequest')
23
+ AssociateContactWithAddressBookResponse = Shapes::StructureShape.new(name: 'AssociateContactWithAddressBookResponse')
17
24
  AssociateDeviceWithRoomRequest = Shapes::StructureShape.new(name: 'AssociateDeviceWithRoomRequest')
18
25
  AssociateDeviceWithRoomResponse = Shapes::StructureShape.new(name: 'AssociateDeviceWithRoomResponse')
19
26
  AssociateSkillGroupWithRoomRequest = Shapes::StructureShape.new(name: 'AssociateSkillGroupWithRoomRequest')
20
27
  AssociateSkillGroupWithRoomResponse = Shapes::StructureShape.new(name: 'AssociateSkillGroupWithRoomResponse')
21
28
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
29
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
30
+ Contact = Shapes::StructureShape.new(name: 'Contact')
31
+ ContactData = Shapes::StructureShape.new(name: 'ContactData')
32
+ ContactDataList = Shapes::ListShape.new(name: 'ContactDataList')
33
+ ContactName = Shapes::StringShape.new(name: 'ContactName')
34
+ CreateAddressBookRequest = Shapes::StructureShape.new(name: 'CreateAddressBookRequest')
35
+ CreateAddressBookResponse = Shapes::StructureShape.new(name: 'CreateAddressBookResponse')
36
+ CreateContactRequest = Shapes::StructureShape.new(name: 'CreateContactRequest')
37
+ CreateContactResponse = Shapes::StructureShape.new(name: 'CreateContactResponse')
23
38
  CreateProfileRequest = Shapes::StructureShape.new(name: 'CreateProfileRequest')
24
39
  CreateProfileResponse = Shapes::StructureShape.new(name: 'CreateProfileResponse')
25
40
  CreateRoomRequest = Shapes::StructureShape.new(name: 'CreateRoomRequest')
@@ -28,6 +43,10 @@ module Aws::AlexaForBusiness
28
43
  CreateSkillGroupResponse = Shapes::StructureShape.new(name: 'CreateSkillGroupResponse')
29
44
  CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest')
30
45
  CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse')
46
+ DeleteAddressBookRequest = Shapes::StructureShape.new(name: 'DeleteAddressBookRequest')
47
+ DeleteAddressBookResponse = Shapes::StructureShape.new(name: 'DeleteAddressBookResponse')
48
+ DeleteContactRequest = Shapes::StructureShape.new(name: 'DeleteContactRequest')
49
+ DeleteContactResponse = Shapes::StructureShape.new(name: 'DeleteContactResponse')
31
50
  DeleteProfileRequest = Shapes::StructureShape.new(name: 'DeleteProfileRequest')
32
51
  DeleteProfileResponse = Shapes::StructureShape.new(name: 'DeleteProfileResponse')
33
52
  DeleteRoomRequest = Shapes::StructureShape.new(name: 'DeleteRoomRequest')
@@ -49,11 +68,14 @@ module Aws::AlexaForBusiness
49
68
  DeviceStatusDetails = Shapes::ListShape.new(name: 'DeviceStatusDetails')
50
69
  DeviceStatusInfo = Shapes::StructureShape.new(name: 'DeviceStatusInfo')
51
70
  DeviceType = Shapes::StringShape.new(name: 'DeviceType')
71
+ DisassociateContactFromAddressBookRequest = Shapes::StructureShape.new(name: 'DisassociateContactFromAddressBookRequest')
72
+ DisassociateContactFromAddressBookResponse = Shapes::StructureShape.new(name: 'DisassociateContactFromAddressBookResponse')
52
73
  DisassociateDeviceFromRoomRequest = Shapes::StructureShape.new(name: 'DisassociateDeviceFromRoomRequest')
53
74
  DisassociateDeviceFromRoomResponse = Shapes::StructureShape.new(name: 'DisassociateDeviceFromRoomResponse')
54
75
  DisassociateSkillGroupFromRoomRequest = Shapes::StructureShape.new(name: 'DisassociateSkillGroupFromRoomRequest')
55
76
  DisassociateSkillGroupFromRoomResponse = Shapes::StructureShape.new(name: 'DisassociateSkillGroupFromRoomResponse')
56
77
  DistanceUnit = Shapes::StringShape.new(name: 'DistanceUnit')
78
+ E164PhoneNumber = Shapes::StringShape.new(name: 'E164PhoneNumber')
57
79
  Email = Shapes::StringShape.new(name: 'Email')
58
80
  EnrollmentId = Shapes::StringShape.new(name: 'EnrollmentId')
59
81
  EnrollmentStatus = Shapes::StringShape.new(name: 'EnrollmentStatus')
@@ -65,6 +87,10 @@ module Aws::AlexaForBusiness
65
87
  FilterList = Shapes::ListShape.new(name: 'FilterList')
66
88
  FilterValue = Shapes::StringShape.new(name: 'FilterValue')
67
89
  FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
90
+ GetAddressBookRequest = Shapes::StructureShape.new(name: 'GetAddressBookRequest')
91
+ GetAddressBookResponse = Shapes::StructureShape.new(name: 'GetAddressBookResponse')
92
+ GetContactRequest = Shapes::StructureShape.new(name: 'GetContactRequest')
93
+ GetContactResponse = Shapes::StructureShape.new(name: 'GetContactResponse')
68
94
  GetDeviceRequest = Shapes::StructureShape.new(name: 'GetDeviceRequest')
69
95
  GetDeviceResponse = Shapes::StructureShape.new(name: 'GetDeviceResponse')
70
96
  GetProfileRequest = Shapes::StructureShape.new(name: 'GetProfileRequest')
@@ -108,6 +134,10 @@ module Aws::AlexaForBusiness
108
134
  RoomSkillParameterKey = Shapes::StringShape.new(name: 'RoomSkillParameterKey')
109
135
  RoomSkillParameterValue = Shapes::StringShape.new(name: 'RoomSkillParameterValue')
110
136
  RoomSkillParameters = Shapes::ListShape.new(name: 'RoomSkillParameters')
137
+ SearchAddressBooksRequest = Shapes::StructureShape.new(name: 'SearchAddressBooksRequest')
138
+ SearchAddressBooksResponse = Shapes::StructureShape.new(name: 'SearchAddressBooksResponse')
139
+ SearchContactsRequest = Shapes::StructureShape.new(name: 'SearchContactsRequest')
140
+ SearchContactsResponse = Shapes::StructureShape.new(name: 'SearchContactsResponse')
111
141
  SearchDevicesRequest = Shapes::StructureShape.new(name: 'SearchDevicesRequest')
112
142
  SearchDevicesResponse = Shapes::StructureShape.new(name: 'SearchDevicesResponse')
113
143
  SearchProfilesRequest = Shapes::StructureShape.new(name: 'SearchProfilesRequest')
@@ -149,6 +179,10 @@ module Aws::AlexaForBusiness
149
179
  TotalCount = Shapes::IntegerShape.new(name: 'TotalCount')
150
180
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
151
181
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
182
+ UpdateAddressBookRequest = Shapes::StructureShape.new(name: 'UpdateAddressBookRequest')
183
+ UpdateAddressBookResponse = Shapes::StructureShape.new(name: 'UpdateAddressBookResponse')
184
+ UpdateContactRequest = Shapes::StructureShape.new(name: 'UpdateContactRequest')
185
+ UpdateContactResponse = Shapes::StructureShape.new(name: 'UpdateContactResponse')
152
186
  UpdateDeviceRequest = Shapes::StructureShape.new(name: 'UpdateDeviceRequest')
153
187
  UpdateDeviceResponse = Shapes::StructureShape.new(name: 'UpdateDeviceResponse')
154
188
  UpdateProfileRequest = Shapes::StructureShape.new(name: 'UpdateProfileRequest')
@@ -166,6 +200,24 @@ module Aws::AlexaForBusiness
166
200
  user_LastName = Shapes::StringShape.new(name: 'user_LastName')
167
201
  user_UserId = Shapes::StringShape.new(name: 'user_UserId')
168
202
 
203
+ AddressBook.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn"))
204
+ AddressBook.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name"))
205
+ AddressBook.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description"))
206
+ AddressBook.struct_class = Types::AddressBook
207
+
208
+ AddressBookData.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn"))
209
+ AddressBookData.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name"))
210
+ AddressBookData.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description"))
211
+ AddressBookData.struct_class = Types::AddressBookData
212
+
213
+ AddressBookDataList.member = Shapes::ShapeRef.new(shape: AddressBookData)
214
+
215
+ AssociateContactWithAddressBookRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn"))
216
+ AssociateContactWithAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn"))
217
+ AssociateContactWithAddressBookRequest.struct_class = Types::AssociateContactWithAddressBookRequest
218
+
219
+ AssociateContactWithAddressBookResponse.struct_class = Types::AssociateContactWithAddressBookResponse
220
+
169
221
  AssociateDeviceWithRoomRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn"))
170
222
  AssociateDeviceWithRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn"))
171
223
  AssociateDeviceWithRoomRequest.struct_class = Types::AssociateDeviceWithRoomRequest
@@ -178,6 +230,40 @@ module Aws::AlexaForBusiness
178
230
 
179
231
  AssociateSkillGroupWithRoomResponse.struct_class = Types::AssociateSkillGroupWithRoomResponse
180
232
 
233
+ Contact.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn"))
234
+ Contact.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName"))
235
+ Contact.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName"))
236
+ Contact.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName"))
237
+ Contact.add_member(:phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, location_name: "PhoneNumber"))
238
+ Contact.struct_class = Types::Contact
239
+
240
+ ContactData.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn"))
241
+ ContactData.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName"))
242
+ ContactData.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName"))
243
+ ContactData.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName"))
244
+ ContactData.add_member(:phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, location_name: "PhoneNumber"))
245
+ ContactData.struct_class = Types::ContactData
246
+
247
+ ContactDataList.member = Shapes::ShapeRef.new(shape: ContactData)
248
+
249
+ CreateAddressBookRequest.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, required: true, location_name: "Name"))
250
+ CreateAddressBookRequest.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description"))
251
+ CreateAddressBookRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
252
+ CreateAddressBookRequest.struct_class = Types::CreateAddressBookRequest
253
+
254
+ CreateAddressBookResponse.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn"))
255
+ CreateAddressBookResponse.struct_class = Types::CreateAddressBookResponse
256
+
257
+ CreateContactRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName"))
258
+ CreateContactRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, required: true, location_name: "FirstName"))
259
+ CreateContactRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName"))
260
+ CreateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, required: true, location_name: "PhoneNumber"))
261
+ CreateContactRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
262
+ CreateContactRequest.struct_class = Types::CreateContactRequest
263
+
264
+ CreateContactResponse.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn"))
265
+ CreateContactResponse.struct_class = Types::CreateContactResponse
266
+
181
267
  CreateProfileRequest.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, required: true, location_name: "ProfileName"))
182
268
  CreateProfileRequest.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, required: true, location_name: "Timezone"))
183
269
  CreateProfileRequest.add_member(:address, Shapes::ShapeRef.new(shape: Address, required: true, location_name: "Address"))
@@ -223,6 +309,16 @@ module Aws::AlexaForBusiness
223
309
  CreateUserResponse.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn"))
224
310
  CreateUserResponse.struct_class = Types::CreateUserResponse
225
311
 
312
+ DeleteAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn"))
313
+ DeleteAddressBookRequest.struct_class = Types::DeleteAddressBookRequest
314
+
315
+ DeleteAddressBookResponse.struct_class = Types::DeleteAddressBookResponse
316
+
317
+ DeleteContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn"))
318
+ DeleteContactRequest.struct_class = Types::DeleteContactRequest
319
+
320
+ DeleteContactResponse.struct_class = Types::DeleteContactResponse
321
+
226
322
  DeleteProfileRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn"))
227
323
  DeleteProfileRequest.struct_class = Types::DeleteProfileRequest
228
324
 
@@ -284,6 +380,12 @@ module Aws::AlexaForBusiness
284
380
  DeviceStatusInfo.add_member(:device_status_details, Shapes::ShapeRef.new(shape: DeviceStatusDetails, location_name: "DeviceStatusDetails"))
285
381
  DeviceStatusInfo.struct_class = Types::DeviceStatusInfo
286
382
 
383
+ DisassociateContactFromAddressBookRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn"))
384
+ DisassociateContactFromAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn"))
385
+ DisassociateContactFromAddressBookRequest.struct_class = Types::DisassociateContactFromAddressBookRequest
386
+
387
+ DisassociateContactFromAddressBookResponse.struct_class = Types::DisassociateContactFromAddressBookResponse
388
+
287
389
  DisassociateDeviceFromRoomRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn"))
288
390
  DisassociateDeviceFromRoomRequest.struct_class = Types::DisassociateDeviceFromRoomRequest
289
391
 
@@ -305,6 +407,18 @@ module Aws::AlexaForBusiness
305
407
 
306
408
  FilterValueList.member = Shapes::ShapeRef.new(shape: FilterValue)
307
409
 
410
+ GetAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn"))
411
+ GetAddressBookRequest.struct_class = Types::GetAddressBookRequest
412
+
413
+ GetAddressBookResponse.add_member(:address_book, Shapes::ShapeRef.new(shape: AddressBook, location_name: "AddressBook"))
414
+ GetAddressBookResponse.struct_class = Types::GetAddressBookResponse
415
+
416
+ GetContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn"))
417
+ GetContactRequest.struct_class = Types::GetContactRequest
418
+
419
+ GetContactResponse.add_member(:contact, Shapes::ShapeRef.new(shape: Contact, location_name: "Contact"))
420
+ GetContactResponse.struct_class = Types::GetContactResponse
421
+
308
422
  GetDeviceRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn"))
309
423
  GetDeviceRequest.struct_class = Types::GetDeviceRequest
310
424
 
@@ -423,6 +537,28 @@ module Aws::AlexaForBusiness
423
537
 
424
538
  RoomSkillParameters.member = Shapes::ShapeRef.new(shape: RoomSkillParameter)
425
539
 
540
+ SearchAddressBooksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
541
+ SearchAddressBooksRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria"))
542
+ SearchAddressBooksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
543
+ SearchAddressBooksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
544
+ SearchAddressBooksRequest.struct_class = Types::SearchAddressBooksRequest
545
+
546
+ SearchAddressBooksResponse.add_member(:address_books, Shapes::ShapeRef.new(shape: AddressBookDataList, location_name: "AddressBooks"))
547
+ SearchAddressBooksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
548
+ SearchAddressBooksResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount"))
549
+ SearchAddressBooksResponse.struct_class = Types::SearchAddressBooksResponse
550
+
551
+ SearchContactsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
552
+ SearchContactsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria"))
553
+ SearchContactsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
554
+ SearchContactsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
555
+ SearchContactsRequest.struct_class = Types::SearchContactsRequest
556
+
557
+ SearchContactsResponse.add_member(:contacts, Shapes::ShapeRef.new(shape: ContactDataList, location_name: "Contacts"))
558
+ SearchContactsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
559
+ SearchContactsResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount"))
560
+ SearchContactsResponse.struct_class = Types::SearchContactsResponse
561
+
426
562
  SearchDevicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
427
563
  SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
428
564
  SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
@@ -535,6 +671,22 @@ module Aws::AlexaForBusiness
535
671
 
536
672
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
537
673
 
674
+ UpdateAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn"))
675
+ UpdateAddressBookRequest.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name"))
676
+ UpdateAddressBookRequest.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description"))
677
+ UpdateAddressBookRequest.struct_class = Types::UpdateAddressBookRequest
678
+
679
+ UpdateAddressBookResponse.struct_class = Types::UpdateAddressBookResponse
680
+
681
+ UpdateContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn"))
682
+ UpdateContactRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName"))
683
+ UpdateContactRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName"))
684
+ UpdateContactRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName"))
685
+ UpdateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, location_name: "PhoneNumber"))
686
+ UpdateContactRequest.struct_class = Types::UpdateContactRequest
687
+
688
+ UpdateContactResponse.struct_class = Types::UpdateContactResponse
689
+
538
690
  UpdateDeviceRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn"))
539
691
  UpdateDeviceRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, location_name: "DeviceName"))
540
692
  UpdateDeviceRequest.struct_class = Types::UpdateDeviceRequest
@@ -596,6 +748,14 @@ module Aws::AlexaForBusiness
596
748
  "targetPrefix" => "AlexaForBusiness",
597
749
  }
598
750
 
751
+ api.add_operation(:associate_contact_with_address_book, Seahorse::Model::Operation.new.tap do |o|
752
+ o.name = "AssociateContactWithAddressBook"
753
+ o.http_method = "POST"
754
+ o.http_request_uri = "/"
755
+ o.input = Shapes::ShapeRef.new(shape: AssociateContactWithAddressBookRequest)
756
+ o.output = Shapes::ShapeRef.new(shape: AssociateContactWithAddressBookResponse)
757
+ end)
758
+
599
759
  api.add_operation(:associate_device_with_room, Seahorse::Model::Operation.new.tap do |o|
600
760
  o.name = "AssociateDeviceWithRoom"
601
761
  o.http_method = "POST"
@@ -613,6 +773,26 @@ module Aws::AlexaForBusiness
613
773
  o.output = Shapes::ShapeRef.new(shape: AssociateSkillGroupWithRoomResponse)
614
774
  end)
615
775
 
776
+ api.add_operation(:create_address_book, Seahorse::Model::Operation.new.tap do |o|
777
+ o.name = "CreateAddressBook"
778
+ o.http_method = "POST"
779
+ o.http_request_uri = "/"
780
+ o.input = Shapes::ShapeRef.new(shape: CreateAddressBookRequest)
781
+ o.output = Shapes::ShapeRef.new(shape: CreateAddressBookResponse)
782
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
783
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
784
+ end)
785
+
786
+ api.add_operation(:create_contact, Seahorse::Model::Operation.new.tap do |o|
787
+ o.name = "CreateContact"
788
+ o.http_method = "POST"
789
+ o.http_request_uri = "/"
790
+ o.input = Shapes::ShapeRef.new(shape: CreateContactRequest)
791
+ o.output = Shapes::ShapeRef.new(shape: CreateContactResponse)
792
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
793
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
794
+ end)
795
+
616
796
  api.add_operation(:create_profile, Seahorse::Model::Operation.new.tap do |o|
617
797
  o.name = "CreateProfile"
618
798
  o.http_method = "POST"
@@ -653,6 +833,24 @@ module Aws::AlexaForBusiness
653
833
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
654
834
  end)
655
835
 
836
+ api.add_operation(:delete_address_book, Seahorse::Model::Operation.new.tap do |o|
837
+ o.name = "DeleteAddressBook"
838
+ o.http_method = "POST"
839
+ o.http_request_uri = "/"
840
+ o.input = Shapes::ShapeRef.new(shape: DeleteAddressBookRequest)
841
+ o.output = Shapes::ShapeRef.new(shape: DeleteAddressBookResponse)
842
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
843
+ end)
844
+
845
+ api.add_operation(:delete_contact, Seahorse::Model::Operation.new.tap do |o|
846
+ o.name = "DeleteContact"
847
+ o.http_method = "POST"
848
+ o.http_request_uri = "/"
849
+ o.input = Shapes::ShapeRef.new(shape: DeleteContactRequest)
850
+ o.output = Shapes::ShapeRef.new(shape: DeleteContactResponse)
851
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
852
+ end)
853
+
656
854
  api.add_operation(:delete_profile, Seahorse::Model::Operation.new.tap do |o|
657
855
  o.name = "DeleteProfile"
658
856
  o.http_method = "POST"
@@ -697,6 +895,14 @@ module Aws::AlexaForBusiness
697
895
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
698
896
  end)
699
897
 
898
+ api.add_operation(:disassociate_contact_from_address_book, Seahorse::Model::Operation.new.tap do |o|
899
+ o.name = "DisassociateContactFromAddressBook"
900
+ o.http_method = "POST"
901
+ o.http_request_uri = "/"
902
+ o.input = Shapes::ShapeRef.new(shape: DisassociateContactFromAddressBookRequest)
903
+ o.output = Shapes::ShapeRef.new(shape: DisassociateContactFromAddressBookResponse)
904
+ end)
905
+
700
906
  api.add_operation(:disassociate_device_from_room, Seahorse::Model::Operation.new.tap do |o|
701
907
  o.name = "DisassociateDeviceFromRoom"
702
908
  o.http_method = "POST"
@@ -713,6 +919,24 @@ module Aws::AlexaForBusiness
713
919
  o.output = Shapes::ShapeRef.new(shape: DisassociateSkillGroupFromRoomResponse)
714
920
  end)
715
921
 
922
+ api.add_operation(:get_address_book, Seahorse::Model::Operation.new.tap do |o|
923
+ o.name = "GetAddressBook"
924
+ o.http_method = "POST"
925
+ o.http_request_uri = "/"
926
+ o.input = Shapes::ShapeRef.new(shape: GetAddressBookRequest)
927
+ o.output = Shapes::ShapeRef.new(shape: GetAddressBookResponse)
928
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
929
+ end)
930
+
931
+ api.add_operation(:get_contact, Seahorse::Model::Operation.new.tap do |o|
932
+ o.name = "GetContact"
933
+ o.http_method = "POST"
934
+ o.http_request_uri = "/"
935
+ o.input = Shapes::ShapeRef.new(shape: GetContactRequest)
936
+ o.output = Shapes::ShapeRef.new(shape: GetContactResponse)
937
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
938
+ end)
939
+
716
940
  api.add_operation(:get_device, Seahorse::Model::Operation.new.tap do |o|
717
941
  o.name = "GetDevice"
718
942
  o.http_method = "POST"
@@ -813,6 +1037,34 @@ module Aws::AlexaForBusiness
813
1037
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
814
1038
  end)
815
1039
 
1040
+ api.add_operation(:search_address_books, Seahorse::Model::Operation.new.tap do |o|
1041
+ o.name = "SearchAddressBooks"
1042
+ o.http_method = "POST"
1043
+ o.http_request_uri = "/"
1044
+ o.input = Shapes::ShapeRef.new(shape: SearchAddressBooksRequest)
1045
+ o.output = Shapes::ShapeRef.new(shape: SearchAddressBooksResponse)
1046
+ o[:pager] = Aws::Pager.new(
1047
+ limit_key: "max_results",
1048
+ tokens: {
1049
+ "next_token" => "next_token"
1050
+ }
1051
+ )
1052
+ end)
1053
+
1054
+ api.add_operation(:search_contacts, Seahorse::Model::Operation.new.tap do |o|
1055
+ o.name = "SearchContacts"
1056
+ o.http_method = "POST"
1057
+ o.http_request_uri = "/"
1058
+ o.input = Shapes::ShapeRef.new(shape: SearchContactsRequest)
1059
+ o.output = Shapes::ShapeRef.new(shape: SearchContactsResponse)
1060
+ o[:pager] = Aws::Pager.new(
1061
+ limit_key: "max_results",
1062
+ tokens: {
1063
+ "next_token" => "next_token"
1064
+ }
1065
+ )
1066
+ end)
1067
+
816
1068
  api.add_operation(:search_devices, Seahorse::Model::Operation.new.tap do |o|
817
1069
  o.name = "SearchDevices"
818
1070
  o.http_method = "POST"
@@ -919,6 +1171,25 @@ module Aws::AlexaForBusiness
919
1171
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
920
1172
  end)
921
1173
 
1174
+ api.add_operation(:update_address_book, Seahorse::Model::Operation.new.tap do |o|
1175
+ o.name = "UpdateAddressBook"
1176
+ o.http_method = "POST"
1177
+ o.http_request_uri = "/"
1178
+ o.input = Shapes::ShapeRef.new(shape: UpdateAddressBookRequest)
1179
+ o.output = Shapes::ShapeRef.new(shape: UpdateAddressBookResponse)
1180
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1181
+ o.errors << Shapes::ShapeRef.new(shape: NameInUseException)
1182
+ end)
1183
+
1184
+ api.add_operation(:update_contact, Seahorse::Model::Operation.new.tap do |o|
1185
+ o.name = "UpdateContact"
1186
+ o.http_method = "POST"
1187
+ o.http_request_uri = "/"
1188
+ o.input = Shapes::ShapeRef.new(shape: UpdateContactRequest)
1189
+ o.output = Shapes::ShapeRef.new(shape: UpdateContactResponse)
1190
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1191
+ end)
1192
+
922
1193
  api.add_operation(:update_device, Seahorse::Model::Operation.new.tap do |o|
923
1194
  o.name = "UpdateDevice"
924
1195
  o.http_method = "POST"
@@ -8,6 +8,80 @@
8
8
  module Aws::AlexaForBusiness
9
9
  module Types
10
10
 
11
+ # An address book with attributes.
12
+ #
13
+ # @!attribute [rw] address_book_arn
14
+ # The ARN of the address book.
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] name
18
+ # The name of the address book.
19
+ # @return [String]
20
+ #
21
+ # @!attribute [rw] description
22
+ # The description of the address book.
23
+ # @return [String]
24
+ #
25
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AddressBook AWS API Documentation
26
+ #
27
+ class AddressBook < Struct.new(
28
+ :address_book_arn,
29
+ :name,
30
+ :description)
31
+ include Aws::Structure
32
+ end
33
+
34
+ # Information related to an address book.
35
+ #
36
+ # @!attribute [rw] address_book_arn
37
+ # The ARN of the address book.
38
+ # @return [String]
39
+ #
40
+ # @!attribute [rw] name
41
+ # The name of the address book.
42
+ # @return [String]
43
+ #
44
+ # @!attribute [rw] description
45
+ # The description of the address book.
46
+ # @return [String]
47
+ #
48
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AddressBookData AWS API Documentation
49
+ #
50
+ class AddressBookData < Struct.new(
51
+ :address_book_arn,
52
+ :name,
53
+ :description)
54
+ include Aws::Structure
55
+ end
56
+
57
+ # @note When making an API call, you may pass AssociateContactWithAddressBookRequest
58
+ # data as a hash:
59
+ #
60
+ # {
61
+ # contact_arn: "Arn", # required
62
+ # address_book_arn: "Arn", # required
63
+ # }
64
+ #
65
+ # @!attribute [rw] contact_arn
66
+ # The ARN of the contact to associate with an address book.
67
+ # @return [String]
68
+ #
69
+ # @!attribute [rw] address_book_arn
70
+ # The ARN of the address book with which to associate the contact.
71
+ # @return [String]
72
+ #
73
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBookRequest AWS API Documentation
74
+ #
75
+ class AssociateContactWithAddressBookRequest < Struct.new(
76
+ :contact_arn,
77
+ :address_book_arn)
78
+ include Aws::Structure
79
+ end
80
+
81
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBookResponse AWS API Documentation
82
+ #
83
+ class AssociateContactWithAddressBookResponse < Aws::EmptyStructure; end
84
+
11
85
  # @note When making an API call, you may pass AssociateDeviceWithRoomRequest
12
86
  # data as a hash:
13
87
  #
@@ -65,6 +139,180 @@ module Aws::AlexaForBusiness
65
139
  #
66
140
  class AssociateSkillGroupWithRoomResponse < Aws::EmptyStructure; end
67
141
 
142
+ # A contact with attributes.
143
+ #
144
+ # @!attribute [rw] contact_arn
145
+ # The ARN of the contact.
146
+ # @return [String]
147
+ #
148
+ # @!attribute [rw] display_name
149
+ # The name of the contact to display on the AWS management console.
150
+ # @return [String]
151
+ #
152
+ # @!attribute [rw] first_name
153
+ # The first name of the contact that is used to call the contact on
154
+ # the device.
155
+ # @return [String]
156
+ #
157
+ # @!attribute [rw] last_name
158
+ # The last name of the contact that is used to call the contact on the
159
+ # device.
160
+ # @return [String]
161
+ #
162
+ # @!attribute [rw] phone_number
163
+ # The phone number of the contact.
164
+ # @return [String]
165
+ #
166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/Contact AWS API Documentation
167
+ #
168
+ class Contact < Struct.new(
169
+ :contact_arn,
170
+ :display_name,
171
+ :first_name,
172
+ :last_name,
173
+ :phone_number)
174
+ include Aws::Structure
175
+ end
176
+
177
+ # Information related to a contact.
178
+ #
179
+ # @!attribute [rw] contact_arn
180
+ # The ARN of the contact.
181
+ # @return [String]
182
+ #
183
+ # @!attribute [rw] display_name
184
+ # The name of the contact to display on the AWS management console.
185
+ # @return [String]
186
+ #
187
+ # @!attribute [rw] first_name
188
+ # The first name of the contact that is used to call the contact on
189
+ # the device.
190
+ # @return [String]
191
+ #
192
+ # @!attribute [rw] last_name
193
+ # The last name of the contact that is used to call the contact on the
194
+ # device.
195
+ # @return [String]
196
+ #
197
+ # @!attribute [rw] phone_number
198
+ # The phone number of the contact.
199
+ # @return [String]
200
+ #
201
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ContactData AWS API Documentation
202
+ #
203
+ class ContactData < Struct.new(
204
+ :contact_arn,
205
+ :display_name,
206
+ :first_name,
207
+ :last_name,
208
+ :phone_number)
209
+ include Aws::Structure
210
+ end
211
+
212
+ # @note When making an API call, you may pass CreateAddressBookRequest
213
+ # data as a hash:
214
+ #
215
+ # {
216
+ # name: "AddressBookName", # required
217
+ # description: "AddressBookDescription",
218
+ # client_request_token: "ClientRequestToken",
219
+ # }
220
+ #
221
+ # @!attribute [rw] name
222
+ # The name of the address book.
223
+ # @return [String]
224
+ #
225
+ # @!attribute [rw] description
226
+ # The description of the address book.
227
+ # @return [String]
228
+ #
229
+ # @!attribute [rw] client_request_token
230
+ # A unique, user-specified identifier for the request that ensures
231
+ # idempotency.
232
+ #
233
+ # **A suitable default value is auto-generated.** You should normally
234
+ # not need to pass this option.
235
+ # @return [String]
236
+ #
237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBookRequest AWS API Documentation
238
+ #
239
+ class CreateAddressBookRequest < Struct.new(
240
+ :name,
241
+ :description,
242
+ :client_request_token)
243
+ include Aws::Structure
244
+ end
245
+
246
+ # @!attribute [rw] address_book_arn
247
+ # The ARN of the newly created address book.
248
+ # @return [String]
249
+ #
250
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBookResponse AWS API Documentation
251
+ #
252
+ class CreateAddressBookResponse < Struct.new(
253
+ :address_book_arn)
254
+ include Aws::Structure
255
+ end
256
+
257
+ # @note When making an API call, you may pass CreateContactRequest
258
+ # data as a hash:
259
+ #
260
+ # {
261
+ # display_name: "ContactName",
262
+ # first_name: "ContactName", # required
263
+ # last_name: "ContactName",
264
+ # phone_number: "E164PhoneNumber", # required
265
+ # client_request_token: "ClientRequestToken",
266
+ # }
267
+ #
268
+ # @!attribute [rw] display_name
269
+ # The name of the contact to display on the AWS management console.
270
+ # @return [String]
271
+ #
272
+ # @!attribute [rw] first_name
273
+ # The first name of the contact that is used to call the contact on
274
+ # the device.
275
+ # @return [String]
276
+ #
277
+ # @!attribute [rw] last_name
278
+ # The last name of the contact that is used to call the contact on the
279
+ # device.
280
+ # @return [String]
281
+ #
282
+ # @!attribute [rw] phone_number
283
+ # The phone number of the contact in E164 format.
284
+ # @return [String]
285
+ #
286
+ # @!attribute [rw] client_request_token
287
+ # A unique, user-specified identifier for this request that ensures
288
+ # idempotency.
289
+ #
290
+ # **A suitable default value is auto-generated.** You should normally
291
+ # not need to pass this option.
292
+ # @return [String]
293
+ #
294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContactRequest AWS API Documentation
295
+ #
296
+ class CreateContactRequest < Struct.new(
297
+ :display_name,
298
+ :first_name,
299
+ :last_name,
300
+ :phone_number,
301
+ :client_request_token)
302
+ include Aws::Structure
303
+ end
304
+
305
+ # @!attribute [rw] contact_arn
306
+ # The ARN of the newly created address book.
307
+ # @return [String]
308
+ #
309
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContactResponse AWS API Documentation
310
+ #
311
+ class CreateContactResponse < Struct.new(
312
+ :contact_arn)
313
+ include Aws::Structure
314
+ end
315
+
68
316
  # @note When making an API call, you may pass CreateProfileRequest
69
317
  # data as a hash:
70
318
  #
@@ -333,6 +581,50 @@ module Aws::AlexaForBusiness
333
581
  include Aws::Structure
334
582
  end
335
583
 
584
+ # @note When making an API call, you may pass DeleteAddressBookRequest
585
+ # data as a hash:
586
+ #
587
+ # {
588
+ # address_book_arn: "Arn", # required
589
+ # }
590
+ #
591
+ # @!attribute [rw] address_book_arn
592
+ # The ARN of the address book to delete.
593
+ # @return [String]
594
+ #
595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBookRequest AWS API Documentation
596
+ #
597
+ class DeleteAddressBookRequest < Struct.new(
598
+ :address_book_arn)
599
+ include Aws::Structure
600
+ end
601
+
602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBookResponse AWS API Documentation
603
+ #
604
+ class DeleteAddressBookResponse < Aws::EmptyStructure; end
605
+
606
+ # @note When making an API call, you may pass DeleteContactRequest
607
+ # data as a hash:
608
+ #
609
+ # {
610
+ # contact_arn: "Arn", # required
611
+ # }
612
+ #
613
+ # @!attribute [rw] contact_arn
614
+ # The ARN of the contact to delete.
615
+ # @return [String]
616
+ #
617
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContactRequest AWS API Documentation
618
+ #
619
+ class DeleteContactRequest < Struct.new(
620
+ :contact_arn)
621
+ include Aws::Structure
622
+ end
623
+
624
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContactResponse AWS API Documentation
625
+ #
626
+ class DeleteContactResponse < Aws::EmptyStructure; end
627
+
336
628
  # @note When making an API call, you may pass DeleteProfileRequest
337
629
  # data as a hash:
338
630
  #
@@ -601,6 +893,34 @@ module Aws::AlexaForBusiness
601
893
  include Aws::Structure
602
894
  end
603
895
 
896
+ # @note When making an API call, you may pass DisassociateContactFromAddressBookRequest
897
+ # data as a hash:
898
+ #
899
+ # {
900
+ # contact_arn: "Arn", # required
901
+ # address_book_arn: "Arn", # required
902
+ # }
903
+ #
904
+ # @!attribute [rw] contact_arn
905
+ # The ARN of the contact to disassociate from an address book.
906
+ # @return [String]
907
+ #
908
+ # @!attribute [rw] address_book_arn
909
+ # The ARN of the address from which to disassociate the contact.
910
+ # @return [String]
911
+ #
912
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateContactFromAddressBookRequest AWS API Documentation
913
+ #
914
+ class DisassociateContactFromAddressBookRequest < Struct.new(
915
+ :contact_arn,
916
+ :address_book_arn)
917
+ include Aws::Structure
918
+ end
919
+
920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateContactFromAddressBookResponse AWS API Documentation
921
+ #
922
+ class DisassociateContactFromAddressBookResponse < Aws::EmptyStructure; end
923
+
604
924
  # @note When making an API call, you may pass DisassociateDeviceFromRoomRequest
605
925
  # data as a hash:
606
926
  #
@@ -680,6 +1000,64 @@ module Aws::AlexaForBusiness
680
1000
  include Aws::Structure
681
1001
  end
682
1002
 
1003
+ # @note When making an API call, you may pass GetAddressBookRequest
1004
+ # data as a hash:
1005
+ #
1006
+ # {
1007
+ # address_book_arn: "Arn", # required
1008
+ # }
1009
+ #
1010
+ # @!attribute [rw] address_book_arn
1011
+ # The ARN of the address book for which to request details.
1012
+ # @return [String]
1013
+ #
1014
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBookRequest AWS API Documentation
1015
+ #
1016
+ class GetAddressBookRequest < Struct.new(
1017
+ :address_book_arn)
1018
+ include Aws::Structure
1019
+ end
1020
+
1021
+ # @!attribute [rw] address_book
1022
+ # The details of the requested address book.
1023
+ # @return [Types::AddressBook]
1024
+ #
1025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBookResponse AWS API Documentation
1026
+ #
1027
+ class GetAddressBookResponse < Struct.new(
1028
+ :address_book)
1029
+ include Aws::Structure
1030
+ end
1031
+
1032
+ # @note When making an API call, you may pass GetContactRequest
1033
+ # data as a hash:
1034
+ #
1035
+ # {
1036
+ # contact_arn: "Arn", # required
1037
+ # }
1038
+ #
1039
+ # @!attribute [rw] contact_arn
1040
+ # The ARN of the contact for which to request details.
1041
+ # @return [String]
1042
+ #
1043
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContactRequest AWS API Documentation
1044
+ #
1045
+ class GetContactRequest < Struct.new(
1046
+ :contact_arn)
1047
+ include Aws::Structure
1048
+ end
1049
+
1050
+ # @!attribute [rw] contact
1051
+ # The details of the requested contact.
1052
+ # @return [Types::Contact]
1053
+ #
1054
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContactResponse AWS API Documentation
1055
+ #
1056
+ class GetContactResponse < Struct.new(
1057
+ :contact)
1058
+ include Aws::Structure
1059
+ end
1060
+
683
1061
  # @note When making an API call, you may pass GetDeviceRequest
684
1062
  # data as a hash:
685
1063
  #
@@ -1257,6 +1635,159 @@ module Aws::AlexaForBusiness
1257
1635
  include Aws::Structure
1258
1636
  end
1259
1637
 
1638
+ # @note When making an API call, you may pass SearchAddressBooksRequest
1639
+ # data as a hash:
1640
+ #
1641
+ # {
1642
+ # filters: [
1643
+ # {
1644
+ # key: "FilterKey", # required
1645
+ # values: ["FilterValue"], # required
1646
+ # },
1647
+ # ],
1648
+ # sort_criteria: [
1649
+ # {
1650
+ # key: "SortKey", # required
1651
+ # value: "ASC", # required, accepts ASC, DESC
1652
+ # },
1653
+ # ],
1654
+ # next_token: "NextToken",
1655
+ # max_results: 1,
1656
+ # }
1657
+ #
1658
+ # @!attribute [rw] filters
1659
+ # The filters to use to list a specified set of address books. The
1660
+ # supported filter key is AddressBookName.
1661
+ # @return [Array<Types::Filter>]
1662
+ #
1663
+ # @!attribute [rw] sort_criteria
1664
+ # The sort order to use in listing the specified set of address books.
1665
+ # The supported sort key is AddressBookName.
1666
+ # @return [Array<Types::Sort>]
1667
+ #
1668
+ # @!attribute [rw] next_token
1669
+ # An optional token returned from a prior request. Use this token for
1670
+ # pagination of results from this action. If this parameter is
1671
+ # specified, the response only includes results beyond the token, up
1672
+ # to the value specified by MaxResults.
1673
+ # @return [String]
1674
+ #
1675
+ # @!attribute [rw] max_results
1676
+ # The maximum number of results to include in the response. If more
1677
+ # results exist than the specified MaxResults value, a token is
1678
+ # included in the response so that the remaining results can be
1679
+ # retrieved.
1680
+ # @return [Integer]
1681
+ #
1682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooksRequest AWS API Documentation
1683
+ #
1684
+ class SearchAddressBooksRequest < Struct.new(
1685
+ :filters,
1686
+ :sort_criteria,
1687
+ :next_token,
1688
+ :max_results)
1689
+ include Aws::Structure
1690
+ end
1691
+
1692
+ # @!attribute [rw] address_books
1693
+ # The address books that meet the specified set of filter criteria, in
1694
+ # sort order.
1695
+ # @return [Array<Types::AddressBookData>]
1696
+ #
1697
+ # @!attribute [rw] next_token
1698
+ # The token returned to indicate that there is more data available.
1699
+ # @return [String]
1700
+ #
1701
+ # @!attribute [rw] total_count
1702
+ # The total number of address books returned.
1703
+ # @return [Integer]
1704
+ #
1705
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooksResponse AWS API Documentation
1706
+ #
1707
+ class SearchAddressBooksResponse < Struct.new(
1708
+ :address_books,
1709
+ :next_token,
1710
+ :total_count)
1711
+ include Aws::Structure
1712
+ end
1713
+
1714
+ # @note When making an API call, you may pass SearchContactsRequest
1715
+ # data as a hash:
1716
+ #
1717
+ # {
1718
+ # filters: [
1719
+ # {
1720
+ # key: "FilterKey", # required
1721
+ # values: ["FilterValue"], # required
1722
+ # },
1723
+ # ],
1724
+ # sort_criteria: [
1725
+ # {
1726
+ # key: "SortKey", # required
1727
+ # value: "ASC", # required, accepts ASC, DESC
1728
+ # },
1729
+ # ],
1730
+ # next_token: "NextToken",
1731
+ # max_results: 1,
1732
+ # }
1733
+ #
1734
+ # @!attribute [rw] filters
1735
+ # The filters to use to list a specified set of address books. The
1736
+ # supported filter keys are DisplayName, FirstName, LastName, and
1737
+ # AddressBookArns.
1738
+ # @return [Array<Types::Filter>]
1739
+ #
1740
+ # @!attribute [rw] sort_criteria
1741
+ # The sort order to use in listing the specified set of contacts. The
1742
+ # supported sort keys are DisplayName, FirstName, and LastName.
1743
+ # @return [Array<Types::Sort>]
1744
+ #
1745
+ # @!attribute [rw] next_token
1746
+ # An optional token returned from a prior request. Use this token for
1747
+ # pagination of results from this action. If this parameter is
1748
+ # specified, the response only includes results beyond the token, up
1749
+ # to the value specified by MaxResults.
1750
+ # @return [String]
1751
+ #
1752
+ # @!attribute [rw] max_results
1753
+ # The maximum number of results to include in the response. If more
1754
+ # results exist than the specified MaxResults value, a token is
1755
+ # included in the response so that the remaining results can be
1756
+ # retrieved.
1757
+ # @return [Integer]
1758
+ #
1759
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContactsRequest AWS API Documentation
1760
+ #
1761
+ class SearchContactsRequest < Struct.new(
1762
+ :filters,
1763
+ :sort_criteria,
1764
+ :next_token,
1765
+ :max_results)
1766
+ include Aws::Structure
1767
+ end
1768
+
1769
+ # @!attribute [rw] contacts
1770
+ # The contacts that meet the specified set of filter criteria, in sort
1771
+ # order.
1772
+ # @return [Array<Types::ContactData>]
1773
+ #
1774
+ # @!attribute [rw] next_token
1775
+ # The token returned to indicate that there is more data available.
1776
+ # @return [String]
1777
+ #
1778
+ # @!attribute [rw] total_count
1779
+ # The total number of contacts returned.
1780
+ # @return [Integer]
1781
+ #
1782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContactsResponse AWS API Documentation
1783
+ #
1784
+ class SearchContactsResponse < Struct.new(
1785
+ :contacts,
1786
+ :next_token,
1787
+ :total_count)
1788
+ include Aws::Structure
1789
+ end
1790
+
1260
1791
  # @note When making an API call, you may pass SearchDevicesRequest
1261
1792
  # data as a hash:
1262
1793
  #
@@ -1882,6 +2413,86 @@ module Aws::AlexaForBusiness
1882
2413
  #
1883
2414
  class UntagResourceResponse < Aws::EmptyStructure; end
1884
2415
 
2416
+ # @note When making an API call, you may pass UpdateAddressBookRequest
2417
+ # data as a hash:
2418
+ #
2419
+ # {
2420
+ # address_book_arn: "Arn", # required
2421
+ # name: "AddressBookName",
2422
+ # description: "AddressBookDescription",
2423
+ # }
2424
+ #
2425
+ # @!attribute [rw] address_book_arn
2426
+ # The ARN of the room to update.
2427
+ # @return [String]
2428
+ #
2429
+ # @!attribute [rw] name
2430
+ # The updated name of the room.
2431
+ # @return [String]
2432
+ #
2433
+ # @!attribute [rw] description
2434
+ # The updated description of the room.
2435
+ # @return [String]
2436
+ #
2437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBookRequest AWS API Documentation
2438
+ #
2439
+ class UpdateAddressBookRequest < Struct.new(
2440
+ :address_book_arn,
2441
+ :name,
2442
+ :description)
2443
+ include Aws::Structure
2444
+ end
2445
+
2446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBookResponse AWS API Documentation
2447
+ #
2448
+ class UpdateAddressBookResponse < Aws::EmptyStructure; end
2449
+
2450
+ # @note When making an API call, you may pass UpdateContactRequest
2451
+ # data as a hash:
2452
+ #
2453
+ # {
2454
+ # contact_arn: "Arn", # required
2455
+ # display_name: "ContactName",
2456
+ # first_name: "ContactName",
2457
+ # last_name: "ContactName",
2458
+ # phone_number: "E164PhoneNumber",
2459
+ # }
2460
+ #
2461
+ # @!attribute [rw] contact_arn
2462
+ # The ARN of the contact to update.
2463
+ # @return [String]
2464
+ #
2465
+ # @!attribute [rw] display_name
2466
+ # The updated display name of the contact.
2467
+ # @return [String]
2468
+ #
2469
+ # @!attribute [rw] first_name
2470
+ # The updated first name of the contact.
2471
+ # @return [String]
2472
+ #
2473
+ # @!attribute [rw] last_name
2474
+ # The updated last name of the contact.
2475
+ # @return [String]
2476
+ #
2477
+ # @!attribute [rw] phone_number
2478
+ # The updated phone number of the contact.
2479
+ # @return [String]
2480
+ #
2481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContactRequest AWS API Documentation
2482
+ #
2483
+ class UpdateContactRequest < Struct.new(
2484
+ :contact_arn,
2485
+ :display_name,
2486
+ :first_name,
2487
+ :last_name,
2488
+ :phone_number)
2489
+ include Aws::Structure
2490
+ end
2491
+
2492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContactResponse AWS API Documentation
2493
+ #
2494
+ class UpdateContactResponse < Aws::EmptyStructure; end
2495
+
1885
2496
  # @note When making an API call, you may pass UpdateDeviceRequest
1886
2497
  # data as a hash:
1887
2498
  #