1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5import (
6	smithydocument "github.com/aws/smithy-go/document"
7	"time"
8)
9
10// Summary of the membership details of an AppInstanceUser.
11type AppInstanceUserMembershipSummary struct {
12
13	// The time at which a message was last read.
14	ReadMarkerTimestamp *time.Time
15
16	// The type of ChannelMembership.
17	Type ChannelMembershipType
18
19	noSmithyDocumentSerde
20}
21
22// The membership information, including member ARNs, the channel ARN, and
23// membership types.
24type BatchChannelMemberships struct {
25
26	// The ARN of the channel to which you're adding users.
27	ChannelArn *string
28
29	// The identifier of the member who invited another member.
30	InvitedBy *Identity
31
32	// The users successfully added to the request.
33	Members []Identity
34
35	// The membership types set for the channel users.
36	Type ChannelMembershipType
37
38	noSmithyDocumentSerde
39}
40
41// A list of failed member ARNs, error codes, and error messages.
42type BatchCreateChannelMembershipError struct {
43
44	// The error code.
45	ErrorCode ErrorCode
46
47	// The error message.
48	ErrorMessage *string
49
50	// The ARN of the member that the service couldn't add.
51	MemberArn *string
52
53	noSmithyDocumentSerde
54}
55
56// The details of a channel.
57type Channel struct {
58
59	// The ARN of a channel.
60	ChannelArn *string
61
62	// The AppInstanceUser who created the channel.
63	CreatedBy *Identity
64
65	// The time at which the AppInstanceUser created the channel.
66	CreatedTimestamp *time.Time
67
68	// The time at which a member sent the last message in the channel.
69	LastMessageTimestamp *time.Time
70
71	// The time at which a channel was last updated.
72	LastUpdatedTimestamp *time.Time
73
74	// The channel's metadata.
75	Metadata *string
76
77	// The mode of the channel.
78	Mode ChannelMode
79
80	// The name of a channel.
81	Name *string
82
83	// The channel's privacy setting.
84	Privacy ChannelPrivacy
85
86	noSmithyDocumentSerde
87}
88
89// The details of a channel ban.
90type ChannelBan struct {
91
92	// The ARN of the channel from which a member is being banned.
93	ChannelArn *string
94
95	// The AppInstanceUser who created the ban.
96	CreatedBy *Identity
97
98	// The time at which the ban was created.
99	CreatedTimestamp *time.Time
100
101	// The member being banned from the channel.
102	Member *Identity
103
104	noSmithyDocumentSerde
105}
106
107// Summary of the details of a ChannelBan.
108type ChannelBanSummary struct {
109
110	// The member being banned from a channel.
111	Member *Identity
112
113	noSmithyDocumentSerde
114}
115
116// The details of a channel member.
117type ChannelMembership struct {
118
119	// The ARN of the member's channel.
120	ChannelArn *string
121
122	// The time at which the channel membership was created.
123	CreatedTimestamp *time.Time
124
125	// The identifier of the member who invited another member.
126	InvitedBy *Identity
127
128	// The time at which a channel membership was last updated.
129	LastUpdatedTimestamp *time.Time
130
131	// The data of the channel member.
132	Member *Identity
133
134	// The membership type set for the channel member.
135	Type ChannelMembershipType
136
137	noSmithyDocumentSerde
138}
139
140// Summary of the channel membership details of an AppInstanceUser.
141type ChannelMembershipForAppInstanceUserSummary struct {
142
143	// Returns the channel membership data for an AppInstance.
144	AppInstanceUserMembershipSummary *AppInstanceUserMembershipSummary
145
146	// Returns the channel data for an AppInstance.
147	ChannelSummary *ChannelSummary
148
149	noSmithyDocumentSerde
150}
151
152// Summary of the details of a ChannelMembership.
153type ChannelMembershipSummary struct {
154
155	// A member's summary data.
156	Member *Identity
157
158	noSmithyDocumentSerde
159}
160
161// The details of a message in a channel.
162type ChannelMessage struct {
163
164	// The ARN of the channel.
165	ChannelArn *string
166
167	// The message content.
168	Content *string
169
170	// The time at which the message was created.
171	CreatedTimestamp *time.Time
172
173	// The time at which a message was edited.
174	LastEditedTimestamp *time.Time
175
176	// The time at which a message was updated.
177	LastUpdatedTimestamp *time.Time
178
179	// The ID of a message.
180	MessageId *string
181
182	// The message metadata.
183	Metadata *string
184
185	// The persistence setting for a channel message.
186	Persistence ChannelMessagePersistenceType
187
188	// Hides the content of a message.
189	Redacted bool
190
191	// The message sender.
192	Sender *Identity
193
194	// The message type.
195	Type ChannelMessageType
196
197	noSmithyDocumentSerde
198}
199
200// Summary of the messages in a Channel.
201type ChannelMessageSummary struct {
202
203	// The content of the message.
204	Content *string
205
206	// The time at which the message summary was created.
207	CreatedTimestamp *time.Time
208
209	// The time at which a message was last edited.
210	LastEditedTimestamp *time.Time
211
212	// The time at which a message was last updated.
213	LastUpdatedTimestamp *time.Time
214
215	// The ID of the message.
216	MessageId *string
217
218	// The metadata of the message.
219	Metadata *string
220
221	// Indicates whether a message was redacted.
222	Redacted bool
223
224	// The message sender.
225	Sender *Identity
226
227	// The type of message.
228	Type ChannelMessageType
229
230	noSmithyDocumentSerde
231}
232
233// Summary of the details of a moderated channel.
234type ChannelModeratedByAppInstanceUserSummary struct {
235
236	// Summary of the details of a Channel.
237	ChannelSummary *ChannelSummary
238
239	noSmithyDocumentSerde
240}
241
242// The details of a channel moderator.
243type ChannelModerator struct {
244
245	// The ARN of the moderator's channel.
246	ChannelArn *string
247
248	// The AppInstanceUser who created the moderator.
249	CreatedBy *Identity
250
251	// The time at which the moderator was created.
252	CreatedTimestamp *time.Time
253
254	// The moderator's data.
255	Moderator *Identity
256
257	noSmithyDocumentSerde
258}
259
260// Summary of the details of a ChannelModerator.
261type ChannelModeratorSummary struct {
262
263	// The data for a moderator.
264	Moderator *Identity
265
266	noSmithyDocumentSerde
267}
268
269// Summary of the details of a Channel.
270type ChannelSummary struct {
271
272	// The ARN of the channel.
273	ChannelArn *string
274
275	// The time at which the last message in a channel was sent.
276	LastMessageTimestamp *time.Time
277
278	// The metadata of the channel.
279	Metadata *string
280
281	// The mode of the channel.
282	Mode ChannelMode
283
284	// The name of the channel.
285	Name *string
286
287	// The privacy setting of the channel.
288	Privacy ChannelPrivacy
289
290	noSmithyDocumentSerde
291}
292
293// The details of a user.
294type Identity struct {
295
296	// The ARN in an Identity.
297	Arn *string
298
299	// The name in an Identity.
300	Name *string
301
302	noSmithyDocumentSerde
303}
304
305// The websocket endpoint used to connect to Amazon Chime SDK messaging.
306type MessagingSessionEndpoint struct {
307
308	// The endpoint to which you establish a websocket connection.
309	Url *string
310
311	noSmithyDocumentSerde
312}
313
314// Describes a tag applied to a resource.
315type Tag struct {
316
317	// The key of the tag.
318	//
319	// This member is required.
320	Key *string
321
322	// The value of the tag.
323	//
324	// This member is required.
325	Value *string
326
327	noSmithyDocumentSerde
328}
329
330type noSmithyDocumentSerde = smithydocument.NoSerde
331