Struct aws_sdk_chime::client::fluent_builders::CreateChannel
source · [−]pub struct CreateChannel<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateChannel
.
Creates a channel to which you can add users and send messages.
Restriction: You can't change a channel's privacy.
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.
Implementations
impl<C, M, R> CreateChannel<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateChannel<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateChannelOutput, SdkError<CreateChannelError>> where
R::Policy: SmithyRetryPolicy<CreateChannelInputOperationOutputAlias, CreateChannelOutput, CreateChannelError, CreateChannelInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateChannelOutput, SdkError<CreateChannelError>> where
R::Policy: SmithyRetryPolicy<CreateChannelInputOperationOutputAlias, CreateChannelOutput, CreateChannelError, CreateChannelInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ARN of the channel request.
The ARN of the channel request.
The channel mode: 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.
The channel mode: 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.
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance
.
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance
.
The metadata of the creation request. Limited to 1KB and UTF-8.
The metadata of the creation request. Limited to 1KB and UTF-8.
The client token for the request. An Idempotency
token.
The client token for the request. An Idempotency
token.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags for the creation request.
The tags for the creation request.
The AppInstanceUserArn
of the user that makes the API call.
The AppInstanceUserArn
of the user that makes the API call.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateChannel<C, M, R>
impl<C, M, R> Unpin for CreateChannel<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateChannel<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more