Chime.Client.create_channel(**kwargs)¶Creates a channel to which you can add users and send messages.
Restriction : You can't change a channel's privacy.
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(
AppInstanceArn='string',
Name='string',
Mode='UNRESTRICTED'|'RESTRICTED',
Privacy='PUBLIC'|'PRIVATE',
Metadata='string',
ClientRequestToken='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
ChimeBearer='string'
)
[REQUIRED]
The ARN of the channel request.
[REQUIRED]
The name of the channel.
UNRESTRICTED or RESTRICTED . Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.PUBLIC or PRIVATE . Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance .[REQUIRED]
The client token for the request. An Idempotency token.
This field is autopopulated if not provided.
The tags for the creation request.
Describes a tag applied to a resource.
The key of the tag.
The value of the tag.
AppInstanceUserArn of the user that makes the API call.dict
Response Syntax
{
'ChannelArn': 'string'
}
Response Structure
(dict) --
ChannelArn (string) --
The ARN of the channel.
Exceptions
Chime.Client.exceptions.BadRequestExceptionChime.Client.exceptions.ForbiddenExceptionChime.Client.exceptions.UnauthorizedClientExceptionChime.Client.exceptions.ConflictExceptionChime.Client.exceptions.ResourceLimitExceededExceptionChime.Client.exceptions.ThrottledClientExceptionChime.Client.exceptions.ServiceUnavailableExceptionChime.Client.exceptions.ServiceFailureException