create_channel_moderator(**kwargs)¶Creates a new ChannelModerator . A channel moderator can:
Note
The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.
See also: AWS API Documentation
Request Syntax
response = client.create_channel_moderator(
ChannelArn='string',
ChannelModeratorArn='string',
ChimeBearer='string'
)
[REQUIRED]
The ARN of the channel.
[REQUIRED]
The AppInstanceUserArn of the moderator.
[REQUIRED]
The AppInstanceUserArn of the user that makes the API call.
dict
Response Syntax
{
'ChannelArn': 'string',
'ChannelModerator': {
'Arn': 'string',
'Name': 'string'
}
}
Response Structure
(dict) --
ChannelArn (string) --
The ARN of the channel.
ChannelModerator (dict) --
The ARNs of the channel and the moderator.
Arn (string) --
The ARN in an Identity.
Name (string) --
The name in an Identity.
Exceptions
ChimeSDKMessaging.Client.exceptions.BadRequestExceptionChimeSDKMessaging.Client.exceptions.ForbiddenExceptionChimeSDKMessaging.Client.exceptions.UnauthorizedClientExceptionChimeSDKMessaging.Client.exceptions.ConflictExceptionChimeSDKMessaging.Client.exceptions.ResourceLimitExceededExceptionChimeSDKMessaging.Client.exceptions.ThrottledClientExceptionChimeSDKMessaging.Client.exceptions.ServiceUnavailableExceptionChimeSDKMessaging.Client.exceptions.ServiceFailureException