batch_create_channel_membership
¶
batch_create_channel_membership(
channel_arn: ChimeArn,
member_arns: MemberArns,
chime_bearer: ChimeArn,
*,
config_overrides: Optional[ChimeSDKMessagingClientConfig] = None,
type: Optional[ChannelMembershipType] = None,
sub_channel_id: Optional[SubChannelId] = None,
) -> BatchCreateChannelMembershipResponse
Adds a specified number of users and bots to a channel.
Parameters:
-
channel_arn(ChimeArn) –The ARN of the channel to which you're adding users or bots.
-
type(Optional[ChannelMembershipType], default:None) –The membership type of a user,
DEFAULTorHIDDEN. Default members are always returned as part ofListChannelMemberships. Hidden members are only returned if the type filter inListChannelMembershipsequalsHIDDEN. Otherwise hidden members are not returned. This is only supported by moderators. -
member_arns(MemberArns) –The ARNs of the members you want to add to the channel. Only
AppInstanceUsersandAppInstanceBotscan be added as a channel member. -
chime_bearer(ChimeArn) –The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call. -
sub_channel_id(Optional[SubChannelId], default:None) –The ID of the SubChannel in the request.
Only required when creating membership in a SubChannel for a moderator in an elastic channel.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
NotFoundException–One or more of the resources in the request does not exist in the system.
-
ResourceLimitExceededException–The request exceeds the resource limit.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_messaging/_services/chime_sdk_messaging.py
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 | |