forked from aws-amplify/aws-sdk-android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
AmazonChimeSDKMessaging.java
1812 lines (1759 loc) · 76 KB
/
AmazonChimeSDKMessaging.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
package com.amazonaws.services.chimesdkmessaging;
import com.amazonaws.*;
import com.amazonaws.regions.*;
import com.amazonaws.services.chimesdkmessaging.model.*;
/**
* Interface for accessing Amazon ChimeSDK Messaging
* <p>
* The Amazon Chime SDK Messaging APIs in this section allow software developers
* to send and receive messages in custom messaging applications. These APIs
* depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For
* more information about the messaging APIs, see <a href=
* "https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging.html"
* >Amazon Chime SDK messaging</a>.
* </p>
**/
public interface AmazonChimeSDKMessaging {
/**
* Overrides the default endpoint for this client
* ("https://messaging-chime.us-east-1.amazonaws.com"). Callers can use this
* method to control which AWS region they want to work with.
* <p>
* Callers can pass in just the endpoint (ex:
* "messaging-chime.us-east-1.amazonaws.com") or a full URL, including the
* protocol (ex: "https://messaging-chime.us-east-1.amazonaws.com"). If the
* protocol is not specified here, the default protocol from this client's
* {@link ClientConfiguration} will be used, which by default is HTTPS.
* <p>
* For more information on using AWS regions with the AWS SDK for Java, and
* a complete list of all available endpoints for all AWS services, see: <a
* href=
* "http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912"
* > http://developer.amazonwebservices.com/connect/entry.jspa?externalID=
* 3912</a>
* <p>
* <b>This method is not threadsafe. An endpoint should be configured when
* the client is created and before any service requests are made. Changing
* it afterwards creates inevitable race conditions for any service requests
* in transit or retrying.</b>
*
* @param endpoint The endpoint (ex:
* "messaging-chime.us-east-1.amazonaws.com") or a full URL,
* including the protocol (ex:
* "https://messaging-chime.us-east-1.amazonaws.com") of the
* region specific AWS endpoint this client will communicate
* with.
* @throws IllegalArgumentException If any problems are detected with the
* specified endpoint.
*/
public void setEndpoint(String endpoint) throws java.lang.IllegalArgumentException;
/**
* An alternative to {@link AmazonChimeSDKMessaging#setEndpoint(String)},
* sets the regional endpoint for this client's service calls. Callers can
* use this method to control which AWS region they want to work with.
* <p>
* By default, all service endpoints in all regions use the https protocol.
* To use http instead, specify it in the {@link ClientConfiguration}
* supplied at construction.
* <p>
* <b>This method is not threadsafe. A region should be configured when the
* client is created and before any service requests are made. Changing it
* afterwards creates inevitable race conditions for any service requests in
* transit or retrying.</b>
*
* @param region The region this client will communicate with. See
* {@link Region#getRegion(com.amazonaws.regions.Regions)} for
* accessing a given region.
* @throws java.lang.IllegalArgumentException If the given region is null,
* or if this service isn't available in the given region. See
* {@link Region#isServiceSupported(String)}
* @see Region#getRegion(com.amazonaws.regions.Regions)
* @see Region#createClient(Class,
* com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
*/
public void setRegion(Region region) throws java.lang.IllegalArgumentException;
/**
* <p>
* Associates a channel flow with a channel. Once associated, all messages
* to that channel go through channel flow processors. To stop processing,
* use the <code>DisassociateChannelFlow</code> API.
* </p>
* <note>
* <p>
* Only administrators or channel moderators can associate a channel flow.
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param associateChannelFlowRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void associateChannelFlow(AssociateChannelFlowRequest associateChannelFlowRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Adds a specified number of users to a channel.
* </p>
*
* @param batchCreateChannelMembershipRequest
* @return batchCreateChannelMembershipResult The response from the
* BatchCreateChannelMembership service method, as returned by
* Amazon ChimeSDK Messaging.
* @throws ServiceFailureException
* @throws ServiceUnavailableException
* @throws UnauthorizedClientException
* @throws BadRequestException
* @throws ForbiddenException
* @throws ThrottledClientException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
BatchCreateChannelMembershipResult batchCreateChannelMembership(
BatchCreateChannelMembershipRequest batchCreateChannelMembershipRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Calls back Chime SDK Messaging with a processing response message. This
* should be invoked from the processor Lambda. This is a developer API.
* </p>
* <p>
* You can return one of the following processing responses:
* </p>
* <ul>
* <li>
* <p>
* Update message content or metadata
* </p>
* </li>
* <li>
* <p>
* Deny a message
* </p>
* </li>
* <li>
* <p>
* Make no changes to the message
* </p>
* </li>
* </ul>
*
* @param channelFlowCallbackRequest
* @return channelFlowCallbackResult The response from the
* ChannelFlowCallback service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
ChannelFlowCallbackResult channelFlowCallback(
ChannelFlowCallbackRequest channelFlowCallbackRequest) throws AmazonClientException,
AmazonServiceException;
/**
* <p>
* Creates a channel to which you can add users and send messages.
* </p>
* <p>
* <b>Restriction</b>: You can't change a channel's privacy.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param createChannelRequest
* @return createChannelResult The response from the CreateChannel service
* method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ResourceLimitExceededException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
CreateChannelResult createChannel(CreateChannelRequest createChannelRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Permanently bans a member from a channel. Moderators can't add banned
* members to a channel. To undo a ban, you first have to
* <code>DeleteChannelBan</code>, and then
* <code>CreateChannelMembership</code>. Bans are cleaned up when you delete
* users or channels.
* </p>
* <p>
* If you ban a user who is already part of a channel, that user is
* automatically kicked from the channel.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param createChannelBanRequest
* @return createChannelBanResult The response from the CreateChannelBan
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ResourceLimitExceededException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
CreateChannelBanResult createChannelBan(CreateChannelBanRequest createChannelBanRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Creates a channel flow, a container for processors. Processors are AWS
* Lambda functions that perform actions on chat messages, such as stripping
* out profanity. You can associate channel flows with channels, and the
* processors in the channel flow then take action on all messages sent to
* that channel. This is a developer API.
* </p>
* <p>
* Channel flows process the following items:
* </p>
* <ol>
* <li>
* <p>
* New and updated messages
* </p>
* </li>
* <li>
* <p>
* Persistent and non-persistent messages
* </p>
* </li>
* <li>
* <p>
* The Standard message type
* </p>
* </li>
* </ol>
* <note>
* <p>
* Channel flows don't process Control or System messages. For more
* information about the message types provided by Chime SDK Messaging,
* refer to <a href=
* "https://docs.aws.amazon.com/chime/latest/dg/using-the-messaging-sdk.html#msg-types"
* >Message types</a> in the <i>Amazon Chime developer guide</i>.
* </p>
* </note>
*
* @param createChannelFlowRequest
* @return createChannelFlowResult The response from the CreateChannelFlow
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ResourceLimitExceededException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
CreateChannelFlowResult createChannelFlow(CreateChannelFlowRequest createChannelFlowRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Adds a user to a channel. The <code>InvitedBy</code> field in
* <code>ChannelMembership</code> is derived from the request header. A
* channel member can:
* </p>
* <ul>
* <li>
* <p>
* List messages
* </p>
* </li>
* <li>
* <p>
* Send messages
* </p>
* </li>
* <li>
* <p>
* Receive messages
* </p>
* </li>
* <li>
* <p>
* Edit their own messages
* </p>
* </li>
* <li>
* <p>
* Leave the channel
* </p>
* </li>
* </ul>
* <p>
* Privacy settings impact this action as follows:
* </p>
* <ul>
* <li>
* <p>
* Public Channels: You do not need to be a member to list messages, but you
* must be a member to send messages.
* </p>
* </li>
* <li>
* <p>
* Private Channels: You must be a member to list or send messages.
* </p>
* </li>
* </ul>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param createChannelMembershipRequest
* @return createChannelMembershipResult The response from the
* CreateChannelMembership service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ResourceLimitExceededException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
CreateChannelMembershipResult createChannelMembership(
CreateChannelMembershipRequest createChannelMembershipRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Creates a new <code>ChannelModerator</code>. A channel moderator can:
* </p>
* <ul>
* <li>
* <p>
* Add and remove other members of the channel.
* </p>
* </li>
* <li>
* <p>
* Add and remove other moderators of the channel.
* </p>
* </li>
* <li>
* <p>
* Add and remove user bans for the channel.
* </p>
* </li>
* <li>
* <p>
* Redact messages in the channel.
* </p>
* </li>
* <li>
* <p>
* List messages in the channel.
* </p>
* </li>
* </ul>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param createChannelModeratorRequest
* @return createChannelModeratorResult The response from the
* CreateChannelModerator service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ResourceLimitExceededException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
CreateChannelModeratorResult createChannelModerator(
CreateChannelModeratorRequest createChannelModeratorRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Immediately makes a channel and its memberships inaccessible and marks
* them for deletion. This is an irreversible process.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param deleteChannelRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannel(DeleteChannelRequest deleteChannelRequest) throws AmazonClientException,
AmazonServiceException;
/**
* <p>
* Removes a user from a channel's ban list.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param deleteChannelBanRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannelBan(DeleteChannelBanRequest deleteChannelBanRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Deletes a channel flow, an irreversible process. This is a developer API.
* </p>
* <note>
* <p>
* This API works only when the channel flow is not associated with any
* channel. To get a list of all channels that a channel flow is associated
* with, use the <code>ListChannelsAssociatedWithChannelFlow</code> API. Use
* the <code>DisassociateChannelFlow</code> API to disassociate a channel
* flow from all channels.
* </p>
* </note>
*
* @param deleteChannelFlowRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ConflictException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannelFlow(DeleteChannelFlowRequest deleteChannelFlowRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Removes a member from a channel.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param deleteChannelMembershipRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannelMembership(DeleteChannelMembershipRequest deleteChannelMembershipRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Deletes a channel message. Only admins can perform this action. Deletion
* makes messages inaccessible immediately. A background process deletes any
* revisions created by <code>UpdateChannelMessage</code>.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param deleteChannelMessageRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannelMessage(DeleteChannelMessageRequest deleteChannelMessageRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Deletes a channel moderator.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param deleteChannelModeratorRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void deleteChannelModerator(DeleteChannelModeratorRequest deleteChannelModeratorRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the full details of a channel in an Amazon Chime
* <code>AppInstance</code>.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelRequest
* @return describeChannelResult The response from the DescribeChannel
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelResult describeChannel(DescribeChannelRequest describeChannelRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the full details of a channel ban.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelBanRequest
* @return describeChannelBanResult The response from the DescribeChannelBan
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelBanResult describeChannelBan(DescribeChannelBanRequest describeChannelBanRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the full details of a channel flow in an Amazon Chime
* <code>AppInstance</code>. This is a developer API.
* </p>
*
* @param describeChannelFlowRequest
* @return describeChannelFlowResult The response from the
* DescribeChannelFlow service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelFlowResult describeChannelFlow(
DescribeChannelFlowRequest describeChannelFlowRequest) throws AmazonClientException,
AmazonServiceException;
/**
* <p>
* Returns the full details of a user's channel membership.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelMembershipRequest
* @return describeChannelMembershipResult The response from the
* DescribeChannelMembership service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelMembershipResult describeChannelMembership(
DescribeChannelMembershipRequest describeChannelMembershipRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the details of a channel based on the membership of the specified
* <code>AppInstanceUser</code>.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelMembershipForAppInstanceUserRequest
* @return describeChannelMembershipForAppInstanceUserResult The response
* from the DescribeChannelMembershipForAppInstanceUser service
* method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelMembershipForAppInstanceUserResult describeChannelMembershipForAppInstanceUser(
DescribeChannelMembershipForAppInstanceUserRequest describeChannelMembershipForAppInstanceUserRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the full details of a channel moderated by the specified
* <code>AppInstanceUser</code>.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelModeratedByAppInstanceUserRequest
* @return describeChannelModeratedByAppInstanceUserResult The response from
* the DescribeChannelModeratedByAppInstanceUser service method, as
* returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelModeratedByAppInstanceUserResult describeChannelModeratedByAppInstanceUser(
DescribeChannelModeratedByAppInstanceUserRequest describeChannelModeratedByAppInstanceUserRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Returns the full details of a single ChannelModerator.
* </p>
* <note>
* <p>
* The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param describeChannelModeratorRequest
* @return describeChannelModeratorResult The response from the
* DescribeChannelModerator service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
DescribeChannelModeratorResult describeChannelModerator(
DescribeChannelModeratorRequest describeChannelModeratorRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Disassociates a channel flow from all its channels. Once disassociated,
* all messages to that channel stop going through the channel flow
* processor.
* </p>
* <note>
* <p>
* Only administrators or channel moderators can disassociate a channel
* flow. The <code>x-amz-chime-bearer</code> request header is mandatory.
* Use the <code>AppInstanceUserArn</code> of the user that makes the API
* call as the value in the header.
* </p>
* </note>
*
* @param disassociateChannelFlowRequest
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ConflictException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
void disassociateChannelFlow(DisassociateChannelFlowRequest disassociateChannelFlowRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Gets the membership preferences of an <code>AppInstanceUser</code> for
* the specified channel. The <code>AppInstanceUser</code> must be a member
* of the channel. Only the <code>AppInstanceUser</code> who owns the
* membership can retrieve preferences. Users in the
* <code>AppInstanceAdmin</code> and channel moderator roles can't retrieve
* preferences for other users. Banned users can't retrieve membership
* preferences for the channel from which they are banned.
* </p>
*
* @param getChannelMembershipPreferencesRequest
* @return getChannelMembershipPreferencesResult The response from the
* GetChannelMembershipPreferences service method, as returned by
* Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws UnauthorizedClientException
* @throws ForbiddenException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
GetChannelMembershipPreferencesResult getChannelMembershipPreferences(
GetChannelMembershipPreferencesRequest getChannelMembershipPreferencesRequest)
throws AmazonClientException, AmazonServiceException;
/**
* <p>
* Gets the full details of a channel message.
* </p>
* <note>
* <p>
* The x-amz-chime-bearer request header is mandatory. Use the
* <code>AppInstanceUserArn</code> of the user that makes the API call as
* the value in the header.
* </p>
* </note>
*
* @param getChannelMessageRequest
* @return getChannelMessageResult The response from the GetChannelMessage
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws NotFoundException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered