pub struct CreateChannelMembership<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateChannelMembership
.
Adds a user to a channel. The InvitedBy
response field is derived from the request header. A channel member can:
-
List messages
-
Send messages
-
Receive messages
-
Edit their own messages
-
Leave the channel
Privacy settings impact this action as follows:
-
Public Channels: You do not need to be a member to list messages, but you must be a member to send messages.
-
Private Channels: You must be a member to list or send messages.
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> CreateChannelMembership<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateChannelMembership<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateChannelMembershipOutput, SdkError<CreateChannelMembershipError>> where
R::Policy: SmithyRetryPolicy<CreateChannelMembershipInputOperationOutputAlias, CreateChannelMembershipOutput, CreateChannelMembershipError, CreateChannelMembershipInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateChannelMembershipOutput, SdkError<CreateChannelMembershipError>> where
R::Policy: SmithyRetryPolicy<CreateChannelMembershipInputOperationOutputAlias, CreateChannelMembershipOutput, CreateChannelMembershipError, CreateChannelMembershipInputOperationRetryAlias>,
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 to which you're adding users.
The ARN of the channel to which you're adding users.
The ARN of the member you want to add to the channel.
The ARN of the member you want to add to the channel.
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
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 CreateChannelMembership<C, M, R>
impl<C, M, R> Send for CreateChannelMembership<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateChannelMembership<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateChannelMembership<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateChannelMembership<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