/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the chime-sdk-messaging-2021-05-15.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.ChimeSDKMessaging.Model; using Amazon.ChimeSDKMessaging.Model.Internal.MarshallTransformations; using Amazon.ChimeSDKMessaging.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ChimeSDKMessaging { /// /// Implementation for accessing ChimeSDKMessaging /// /// The Amazon Chime SDK messaging APIs in this section allow software developers to send /// and receive messages in custom messaging applications. These APIs depend on the frameworks /// provided by the Amazon Chime SDK identity APIs. For more information about the messaging /// APIs, see Amazon /// Chime SDK messaging. /// public partial class AmazonChimeSDKMessagingClient : AmazonServiceClient, IAmazonChimeSDKMessaging { private static IServiceMetadata serviceMetadata = new AmazonChimeSDKMessagingMetadata(); private IChimeSDKMessagingPaginatorFactory _paginators; /// /// Paginators for the service /// public IChimeSDKMessagingPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ChimeSDKMessagingPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonChimeSDKMessagingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonChimeSDKMessagingClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonChimeSDKMessagingConfig()) { } /// /// Constructs AmazonChimeSDKMessagingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonChimeSDKMessagingClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonChimeSDKMessagingConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonChimeSDKMessagingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonChimeSDKMessagingClient Configuration Object public AmazonChimeSDKMessagingClient(AmazonChimeSDKMessagingConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonChimeSDKMessagingClient with AWS Credentials /// /// AWS Credentials public AmazonChimeSDKMessagingClient(AWSCredentials credentials) : this(credentials, new AmazonChimeSDKMessagingConfig()) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonChimeSDKMessagingClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonChimeSDKMessagingConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Credentials and an /// AmazonChimeSDKMessagingClient Configuration object. /// /// AWS Credentials /// The AmazonChimeSDKMessagingClient Configuration Object public AmazonChimeSDKMessagingClient(AWSCredentials credentials, AmazonChimeSDKMessagingConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonChimeSDKMessagingConfig()) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonChimeSDKMessagingConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonChimeSDKMessagingClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonChimeSDKMessagingClient Configuration Object public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonChimeSDKMessagingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonChimeSDKMessagingConfig()) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonChimeSDKMessagingConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonChimeSDKMessagingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonChimeSDKMessagingClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonChimeSDKMessagingClient Configuration Object public AmazonChimeSDKMessagingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonChimeSDKMessagingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonChimeSDKMessagingEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateChannelFlow /// /// Associates a channel flow with a channel. Once associated, all messages to that channel /// go through channel flow processors. To stop processing, use the DisassociateChannelFlow /// API. /// /// /// /// Only administrators or channel moderators can associate a channel flow. The x-amz-chime-bearer /// request header is mandatory. Use the ARN of the AppInstanceUser or AppInstanceBot /// that makes the API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the AssociateChannelFlow service method. /// /// The response from the AssociateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for AssociateChannelFlow Operation public virtual AssociateChannelFlowResponse AssociateChannelFlow(AssociateChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates a channel flow with a channel. Once associated, all messages to that channel /// go through channel flow processors. To stop processing, use the DisassociateChannelFlow /// API. /// /// /// /// Only administrators or channel moderators can associate a channel flow. The x-amz-chime-bearer /// request header is mandatory. Use the ARN of the AppInstanceUser or AppInstanceBot /// that makes the API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the AssociateChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for AssociateChannelFlow Operation public virtual Task AssociateChannelFlowAsync(AssociateChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchCreateChannelMembership /// /// Adds a specified number of users and bots to a channel. /// /// Container for the necessary parameters to execute the BatchCreateChannelMembership service method. /// /// The response from the BatchCreateChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for BatchCreateChannelMembership Operation public virtual BatchCreateChannelMembershipResponse BatchCreateChannelMembership(BatchCreateChannelMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCreateChannelMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a specified number of users and bots to a channel. /// /// Container for the necessary parameters to execute the BatchCreateChannelMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchCreateChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for BatchCreateChannelMembership Operation public virtual Task BatchCreateChannelMembershipAsync(BatchCreateChannelMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCreateChannelMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ChannelFlowCallback /// /// Calls back Amazon Chime SDK messaging with a processing response message. This should /// be invoked from the processor Lambda. This is a developer API. /// /// /// /// You can return one of the following processing responses: /// ///
  • /// /// Update message content or metadata /// ///
  • /// /// Deny a message /// ///
  • /// /// Make no changes to the message /// ///
///
/// Container for the necessary parameters to execute the ChannelFlowCallback service method. /// /// The response from the ChannelFlowCallback service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ChannelFlowCallback Operation public virtual ChannelFlowCallbackResponse ChannelFlowCallback(ChannelFlowCallbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ChannelFlowCallbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ChannelFlowCallbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Calls back Amazon Chime SDK messaging with a processing response message. This should /// be invoked from the processor Lambda. This is a developer API. /// /// /// /// You can return one of the following processing responses: /// ///
  • /// /// Update message content or metadata /// ///
  • /// /// Deny a message /// ///
  • /// /// Make no changes to the message /// ///
///
/// Container for the necessary parameters to execute the ChannelFlowCallback service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ChannelFlowCallback service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ChannelFlowCallback Operation public virtual Task ChannelFlowCallbackAsync(ChannelFlowCallbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ChannelFlowCallbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ChannelFlowCallbackResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region 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 ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the CreateChannel service method. /// /// The response from the CreateChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannel Operation public virtual CreateChannelResponse CreateChannel(CreateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the CreateChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannel Operation public virtual Task CreateChannelAsync(CreateChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateChannelBan /// /// Permanently bans a member from a channel. Moderators can't add banned members to a /// channel. To undo a ban, you first have to DeleteChannelBan, and then /// CreateChannelMembership. Bans are cleaned up when you delete users or /// channels. /// /// /// /// If you ban a user who is already part of a channel, that user is automatically kicked /// from the channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the CreateChannelBan service method. /// /// The response from the CreateChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelBan Operation public virtual CreateChannelBanResponse CreateChannelBan(CreateChannelBanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelBanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Permanently bans a member from a channel. Moderators can't add banned members to a /// channel. To undo a ban, you first have to DeleteChannelBan, and then /// CreateChannelMembership. Bans are cleaned up when you delete users or /// channels. /// /// /// /// If you ban a user who is already part of a channel, that user is automatically kicked /// from the channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the CreateChannelBan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelBan Operation public virtual Task CreateChannelBanAsync(CreateChannelBanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelBanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateChannelFlow /// /// Creates a channel flow, a container for processors. Processors are AWS Lambda functions /// that perform actions on chat messages, such as stripping out profanity. You can associate /// channel flows with channels, and the processors in the channel flow then take action /// on all messages sent to that channel. This is a developer API. /// /// /// /// Channel flows process the following items: /// ///
  1. /// /// New and updated messages /// ///
  2. /// /// Persistent and non-persistent messages /// ///
  3. /// /// The Standard message type /// ///
/// /// Channel flows don't process Control or System messages. For more information about /// the message types provided by Chime SDK messaging, refer to Message /// types in the Amazon Chime developer guide. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelFlow service method. /// /// The response from the CreateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelFlow Operation public virtual CreateChannelFlowResponse CreateChannelFlow(CreateChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a channel flow, a container for processors. Processors are AWS Lambda functions /// that perform actions on chat messages, such as stripping out profanity. You can associate /// channel flows with channels, and the processors in the channel flow then take action /// on all messages sent to that channel. This is a developer API. /// /// /// /// Channel flows process the following items: /// ///
  1. /// /// New and updated messages /// ///
  2. /// /// Persistent and non-persistent messages /// ///
  3. /// /// The Standard message type /// ///
/// /// Channel flows don't process Control or System messages. For more information about /// the message types provided by Chime SDK messaging, refer to Message /// types in the Amazon Chime developer guide. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelFlow Operation public virtual Task CreateChannelFlowAsync(CreateChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateChannelMembership /// /// Adds a member to a channel. The InvitedBy field in ChannelMembership /// 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 ARN of the /// AppInstanceUserArn or AppInstanceBot that makes the API /// call as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelMembership service method. /// /// The response from the CreateChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelMembership Operation public virtual CreateChannelMembershipResponse CreateChannelMembership(CreateChannelMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a member to a channel. The InvitedBy field in ChannelMembership /// 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 ARN of the /// AppInstanceUserArn or AppInstanceBot that makes the API /// call as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelMembership Operation public virtual Task CreateChannelMembershipAsync(CreateChannelMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateChannelModerator /// /// Creates a new ChannelModerator. A channel moderator can: /// ///
  • /// /// Add and remove other members of the channel. /// ///
  • /// /// Add and remove other moderators of the channel. /// ///
  • /// /// Add and remove user bans for the channel. /// ///
  • /// /// Redact messages in the channel. /// ///
  • /// /// List messages in the channel. /// ///
/// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBotof the user that makes /// the API call as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelModerator service method. /// /// The response from the CreateChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelModerator Operation public virtual CreateChannelModeratorResponse CreateChannelModerator(CreateChannelModeratorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelModeratorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new ChannelModerator. A channel moderator can: /// ///
  • /// /// Add and remove other members of the channel. /// ///
  • /// /// Add and remove other moderators of the channel. /// ///
  • /// /// Add and remove user bans for the channel. /// ///
  • /// /// Redact messages in the channel. /// ///
  • /// /// List messages in the channel. /// ///
/// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBotof the user that makes /// the API call as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the CreateChannelModerator service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for CreateChannelModerator Operation public virtual Task CreateChannelModeratorAsync(CreateChannelModeratorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelModeratorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannel /// /// Immediately makes a channel and its memberships inaccessible and marks them for deletion. /// This is an irreversible process. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUserArn or AppInstanceBot that makes the API /// call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannel service method. /// /// The response from the DeleteChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannel Operation public virtual DeleteChannelResponse DeleteChannel(DeleteChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Immediately makes a channel and its memberships inaccessible and marks them for deletion. /// This is an irreversible process. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUserArn or AppInstanceBot that makes the API /// call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannel Operation public virtual Task DeleteChannelAsync(DeleteChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelBan /// /// Removes a member from a channel's ban list. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelBan service method. /// /// The response from the DeleteChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelBan Operation public virtual DeleteChannelBanResponse DeleteChannelBan(DeleteChannelBanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelBanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes a member from a channel's ban list. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelBan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelBan Operation public virtual Task DeleteChannelBanAsync(DeleteChannelBanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelBanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelFlow /// /// Deletes a channel flow, an irreversible process. This is a developer API. /// /// /// /// This API works only when the channel flow is not associated with any channel. To /// get a list of all channels that a channel flow is associated with, use the ListChannelsAssociatedWithChannelFlow /// API. Use the DisassociateChannelFlow API to disassociate a channel flow /// from all channels. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelFlow service method. /// /// The response from the DeleteChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelFlow Operation public virtual DeleteChannelFlowResponse DeleteChannelFlow(DeleteChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a channel flow, an irreversible process. This is a developer API. /// /// /// /// This API works only when the channel flow is not associated with any channel. To /// get a list of all channels that a channel flow is associated with, use the ListChannelsAssociatedWithChannelFlow /// API. Use the DisassociateChannelFlow API to disassociate a channel flow /// from all channels. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelFlow Operation public virtual Task DeleteChannelFlowAsync(DeleteChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelMembership /// /// Removes a member from a channel. /// /// /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelMembership service method. /// /// The response from the DeleteChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelMembership Operation public virtual DeleteChannelMembershipResponse DeleteChannelMembership(DeleteChannelMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes a member from a channel. /// /// /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelMembership Operation public virtual Task DeleteChannelMembershipAsync(DeleteChannelMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelMessage /// /// Deletes a channel message. Only admins can perform this action. Deletion makes messages /// inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelMessage service method. /// /// The response from the DeleteChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelMessage Operation public virtual DeleteChannelMessageResponse DeleteChannelMessage(DeleteChannelMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMessageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a channel message. Only admins can perform this action. Deletion makes messages /// inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelMessage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelMessage Operation public virtual Task DeleteChannelMessageAsync(DeleteChannelMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMessageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelModerator /// /// Deletes a channel moderator. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelModerator service method. /// /// The response from the DeleteChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelModerator Operation public virtual DeleteChannelModeratorResponse DeleteChannelModerator(DeleteChannelModeratorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelModeratorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a channel moderator. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DeleteChannelModerator service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteChannelModerator Operation public virtual Task DeleteChannelModeratorAsync(DeleteChannelModeratorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelModeratorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteMessagingStreamingConfigurations /// /// Deletes the streaming configurations for an AppInstance. For more information, /// see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the DeleteMessagingStreamingConfigurations service method. /// /// The response from the DeleteMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteMessagingStreamingConfigurations Operation public virtual DeleteMessagingStreamingConfigurationsResponse DeleteMessagingStreamingConfigurations(DeleteMessagingStreamingConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the streaming configurations for an AppInstance. For more information, /// see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the DeleteMessagingStreamingConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DeleteMessagingStreamingConfigurations Operation public virtual Task DeleteMessagingStreamingConfigurationsAsync(DeleteMessagingStreamingConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannel /// /// Returns the full details of a channel in an Amazon Chime AppInstance. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannel service method. /// /// The response from the DescribeChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannel Operation public virtual DescribeChannelResponse DescribeChannel(DescribeChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a channel in an Amazon Chime AppInstance. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannel Operation public virtual Task DescribeChannelAsync(DescribeChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelBan /// /// Returns the full details of a channel ban. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelBan service method. /// /// The response from the DescribeChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelBan Operation public virtual DescribeChannelBanResponse DescribeChannelBan(DescribeChannelBanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelBanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a channel ban. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelBan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelBan service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelBan Operation public virtual Task DescribeChannelBanAsync(DescribeChannelBanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelBanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelFlow /// /// Returns the full details of a channel flow in an Amazon Chime AppInstance. /// This is a developer API. /// /// Container for the necessary parameters to execute the DescribeChannelFlow service method. /// /// The response from the DescribeChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelFlow Operation public virtual DescribeChannelFlowResponse DescribeChannelFlow(DescribeChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a channel flow in an Amazon Chime AppInstance. /// This is a developer API. /// /// Container for the necessary parameters to execute the DescribeChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelFlow Operation public virtual Task DescribeChannelFlowAsync(DescribeChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelMembership /// /// Returns the full details of a user's channel membership. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelMembership service method. /// /// The response from the DescribeChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelMembership Operation public virtual DescribeChannelMembershipResponse DescribeChannelMembership(DescribeChannelMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a user's channel membership. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelMembership service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelMembership Operation public virtual Task DescribeChannelMembershipAsync(DescribeChannelMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelMembershipForAppInstanceUser /// /// Returns the details of a channel based on the membership of the specified AppInstanceUser /// or AppInstanceBot. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelMembershipForAppInstanceUser service method. /// /// The response from the DescribeChannelMembershipForAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelMembershipForAppInstanceUser Operation public virtual DescribeChannelMembershipForAppInstanceUserResponse DescribeChannelMembershipForAppInstanceUser(DescribeChannelMembershipForAppInstanceUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipForAppInstanceUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of a channel based on the membership of the specified AppInstanceUser /// or AppInstanceBot. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelMembershipForAppInstanceUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelMembershipForAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelMembershipForAppInstanceUser Operation public virtual Task DescribeChannelMembershipForAppInstanceUserAsync(DescribeChannelMembershipForAppInstanceUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipForAppInstanceUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelModeratedByAppInstanceUser /// /// Returns the full details of a channel moderated by the specified AppInstanceUser /// or AppInstanceBot. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelModeratedByAppInstanceUser service method. /// /// The response from the DescribeChannelModeratedByAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelModeratedByAppInstanceUser Operation public virtual DescribeChannelModeratedByAppInstanceUserResponse DescribeChannelModeratedByAppInstanceUser(DescribeChannelModeratedByAppInstanceUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratedByAppInstanceUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a channel moderated by the specified AppInstanceUser /// or AppInstanceBot. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelModeratedByAppInstanceUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelModeratedByAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelModeratedByAppInstanceUser Operation public virtual Task DescribeChannelModeratedByAppInstanceUserAsync(DescribeChannelModeratedByAppInstanceUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratedByAppInstanceUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannelModerator /// /// Returns the full details of a single ChannelModerator. /// /// /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelModerator service method. /// /// The response from the DescribeChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelModerator Operation public virtual DescribeChannelModeratorResponse DescribeChannelModerator(DescribeChannelModeratorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the full details of a single ChannelModerator. /// /// /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DescribeChannelModerator service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannelModerator service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DescribeChannelModerator Operation public virtual Task DescribeChannelModeratorAsync(DescribeChannelModeratorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateChannelFlow /// /// Disassociates a channel flow from all its channels. Once disassociated, all messages /// to that channel stop going through the channel flow processor. /// /// /// /// Only administrators or channel moderators can disassociate a channel flow. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DisassociateChannelFlow service method. /// /// The response from the DisassociateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DisassociateChannelFlow Operation public virtual DisassociateChannelFlowResponse DisassociateChannelFlow(DisassociateChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates a channel flow from all its channels. Once disassociated, all messages /// to that channel stop going through the channel flow processor. /// /// /// /// Only administrators or channel moderators can disassociate a channel flow. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the DisassociateChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for DisassociateChannelFlow Operation public virtual Task DisassociateChannelFlowAsync(DisassociateChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetChannelMembershipPreferences /// /// Gets the membership preferences of an AppInstanceUser or AppInstanceBot /// for the specified channel. A user or a bot must be a member of the channel and own /// the membership in order to retrieve membership preferences. Users or bots in the AppInstanceAdmin /// and channel moderator roles can't retrieve preferences for other users or bots. Banned /// users or bots can't retrieve membership preferences for the channel from which they /// are banned. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the GetChannelMembershipPreferences service method. /// /// The response from the GetChannelMembershipPreferences service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMembershipPreferences Operation public virtual GetChannelMembershipPreferencesResponse GetChannelMembershipPreferences(GetChannelMembershipPreferencesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMembershipPreferencesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the membership preferences of an AppInstanceUser or AppInstanceBot /// for the specified channel. A user or a bot must be a member of the channel and own /// the membership in order to retrieve membership preferences. Users or bots in the AppInstanceAdmin /// and channel moderator roles can't retrieve preferences for other users or bots. Banned /// users or bots can't retrieve membership preferences for the channel from which they /// are banned. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the GetChannelMembershipPreferences service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetChannelMembershipPreferences service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMembershipPreferences Operation public virtual Task GetChannelMembershipPreferencesAsync(GetChannelMembershipPreferencesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMembershipPreferencesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetChannelMessage /// /// Gets the full details of a channel message. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the GetChannelMessage service method. /// /// The response from the GetChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMessage Operation public virtual GetChannelMessageResponse GetChannelMessage(GetChannelMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the full details of a channel message. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the GetChannelMessage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMessage Operation public virtual Task GetChannelMessageAsync(GetChannelMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetChannelMessageStatus /// /// Gets message status for a specified messageId. Use this API to determine /// the intermediate status of messages going through channel flow processing. The API /// provides an alternative to retrieving message status if the event was not received /// because a client wasn't connected to a websocket. /// /// /// /// Messages can have any one of these statuses. /// ///
SENT
/// /// Message processed successfully /// ///
PENDING
/// /// Ongoing processing /// ///
FAILED
/// /// Processing failed /// ///
DENIED
/// /// Message denied by the processor /// ///
  • /// /// This API does not return statuses for denied messages, because we don't store them /// once the processor denies them. /// ///
  • /// /// Only the message sender can invoke this API. /// ///
  • /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// ///
///
/// Container for the necessary parameters to execute the GetChannelMessageStatus service method. /// /// The response from the GetChannelMessageStatus service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMessageStatus Operation public virtual GetChannelMessageStatusResponse GetChannelMessageStatus(GetChannelMessageStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets message status for a specified messageId. Use this API to determine /// the intermediate status of messages going through channel flow processing. The API /// provides an alternative to retrieving message status if the event was not received /// because a client wasn't connected to a websocket. /// /// /// /// Messages can have any one of these statuses. /// ///
SENT
/// /// Message processed successfully /// ///
PENDING
/// /// Ongoing processing /// ///
FAILED
/// /// Processing failed /// ///
DENIED
/// /// Message denied by the processor /// ///
  • /// /// This API does not return statuses for denied messages, because we don't store them /// once the processor denies them. /// ///
  • /// /// Only the message sender can invoke this API. /// ///
  • /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// ///
///
/// Container for the necessary parameters to execute the GetChannelMessageStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetChannelMessageStatus service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetChannelMessageStatus Operation public virtual Task GetChannelMessageStatusAsync(GetChannelMessageStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMessagingSessionEndpoint /// /// The details of the endpoint for the messaging session. /// /// Container for the necessary parameters to execute the GetMessagingSessionEndpoint service method. /// /// The response from the GetMessagingSessionEndpoint service method, as returned by ChimeSDKMessaging. /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetMessagingSessionEndpoint Operation public virtual GetMessagingSessionEndpointResponse GetMessagingSessionEndpoint(GetMessagingSessionEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingSessionEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingSessionEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The details of the endpoint for the messaging session. /// /// Container for the necessary parameters to execute the GetMessagingSessionEndpoint service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMessagingSessionEndpoint service method, as returned by ChimeSDKMessaging. /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetMessagingSessionEndpoint Operation public virtual Task GetMessagingSessionEndpointAsync(GetMessagingSessionEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingSessionEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingSessionEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMessagingStreamingConfigurations /// /// Retrieves the data streaming configuration for an AppInstance. For more /// information, see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the GetMessagingStreamingConfigurations service method. /// /// The response from the GetMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetMessagingStreamingConfigurations Operation public virtual GetMessagingStreamingConfigurationsResponse GetMessagingStreamingConfigurations(GetMessagingStreamingConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the data streaming configuration for an AppInstance. For more /// information, see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the GetMessagingStreamingConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for GetMessagingStreamingConfigurations Operation public virtual Task GetMessagingStreamingConfigurationsAsync(GetMessagingStreamingConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelBans /// /// Lists all the users and bots banned from a particular channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelBans service method. /// /// The response from the ListChannelBans service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelBans Operation public virtual ListChannelBansResponse ListChannelBans(ListChannelBansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelBansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelBansResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the users and bots banned from a particular channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelBans service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelBans service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelBans Operation public virtual Task ListChannelBansAsync(ListChannelBansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelBansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelBansResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelFlows /// /// Returns a paginated lists of all the channel flows created under a single Chime. This /// is a developer API. /// /// Container for the necessary parameters to execute the ListChannelFlows service method. /// /// The response from the ListChannelFlows service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelFlows Operation public virtual ListChannelFlowsResponse ListChannelFlows(ListChannelFlowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelFlowsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated lists of all the channel flows created under a single Chime. This /// is a developer API. /// /// Container for the necessary parameters to execute the ListChannelFlows service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelFlows service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelFlows Operation public virtual Task ListChannelFlowsAsync(ListChannelFlowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelFlowsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelMemberships /// /// Lists all channel memberships in a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// If you want to list the channels to which a specific app instance user belongs, see /// the ListChannelMembershipsForAppInstanceUser /// API. /// /// /// Container for the necessary parameters to execute the ListChannelMemberships service method. /// /// The response from the ListChannelMemberships service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMemberships Operation public virtual ListChannelMembershipsResponse ListChannelMemberships(ListChannelMembershipsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all channel memberships in a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// If you want to list the channels to which a specific app instance user belongs, see /// the ListChannelMembershipsForAppInstanceUser /// API. /// /// /// Container for the necessary parameters to execute the ListChannelMemberships service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelMemberships service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMemberships Operation public virtual Task ListChannelMembershipsAsync(ListChannelMembershipsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelMembershipsForAppInstanceUser /// /// Lists all channels that an AppInstanceUser or AppInstanceBot /// is a part of. Only an AppInstanceAdmin can call the API with a user ARN /// that is not their own. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelMembershipsForAppInstanceUser service method. /// /// The response from the ListChannelMembershipsForAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMembershipsForAppInstanceUser Operation public virtual ListChannelMembershipsForAppInstanceUserResponse ListChannelMembershipsForAppInstanceUser(ListChannelMembershipsForAppInstanceUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsForAppInstanceUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all channels that an AppInstanceUser or AppInstanceBot /// is a part of. Only an AppInstanceAdmin can call the API with a user ARN /// that is not their own. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelMembershipsForAppInstanceUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelMembershipsForAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMembershipsForAppInstanceUser Operation public virtual Task ListChannelMembershipsForAppInstanceUserAsync(ListChannelMembershipsForAppInstanceUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsForAppInstanceUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelMessages /// /// List all the messages in a channel. Returns a paginated list of ChannelMessages. /// By default, sorted by creation timestamp in descending order. /// /// /// /// Redacted messages appear in the results as empty, since they are only redacted, not /// deleted. Deleted messages do not appear in the results. This action always returns /// the latest version of an edited message. /// /// /// /// Also, the x-amz-chime-bearer request header is mandatory. Use the ARN /// of the AppInstanceUser or AppInstanceBot that makes the /// API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelMessages service method. /// /// The response from the ListChannelMessages service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMessages Operation public virtual ListChannelMessagesResponse ListChannelMessages(ListChannelMessagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMessagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMessagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List all the messages in a channel. Returns a paginated list of ChannelMessages. /// By default, sorted by creation timestamp in descending order. /// /// /// /// Redacted messages appear in the results as empty, since they are only redacted, not /// deleted. Deleted messages do not appear in the results. This action always returns /// the latest version of an edited message. /// /// /// /// Also, the x-amz-chime-bearer request header is mandatory. Use the ARN /// of the AppInstanceUser or AppInstanceBot that makes the /// API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelMessages service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelMessages service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelMessages Operation public virtual Task ListChannelMessagesAsync(ListChannelMessagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMessagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMessagesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelModerators /// /// Lists all the moderators for a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelModerators service method. /// /// The response from the ListChannelModerators service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelModerators Operation public virtual ListChannelModeratorsResponse ListChannelModerators(ListChannelModeratorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelModeratorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelModeratorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the moderators for a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelModerators service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelModerators service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelModerators Operation public virtual Task ListChannelModeratorsAsync(ListChannelModeratorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelModeratorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelModeratorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannels /// /// Lists all Channels created under a single Chime App as a paginated list. You can specify /// filters to narrow results. /// ///

Functionality & restrictions /// ///

  • /// /// Use privacy = PUBLIC to retrieve all public channels in the account. /// ///
  • /// /// Only an AppInstanceAdmin can set privacy = PRIVATE to list /// the private channels in an account. /// ///
/// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the ListChannels service method. /// /// The response from the ListChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannels Operation public virtual ListChannelsResponse ListChannels(ListChannelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all Channels created under a single Chime App as a paginated list. You can specify /// filters to narrow results. /// ///

Functionality & restrictions /// ///

  • /// /// Use privacy = PUBLIC to retrieve all public channels in the account. /// ///
  • /// /// Only an AppInstanceAdmin can set privacy = PRIVATE to list /// the private channels in an account. /// ///
/// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// ///
/// Container for the necessary parameters to execute the ListChannels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannels Operation public virtual Task ListChannelsAsync(ListChannelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelsAssociatedWithChannelFlow /// /// Lists all channels associated with a specified channel flow. You can associate a channel /// flow with multiple channels, but you can only associate a channel with one channel /// flow. This is a developer API. /// /// Container for the necessary parameters to execute the ListChannelsAssociatedWithChannelFlow service method. /// /// The response from the ListChannelsAssociatedWithChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelsAssociatedWithChannelFlow Operation public virtual ListChannelsAssociatedWithChannelFlowResponse ListChannelsAssociatedWithChannelFlow(ListChannelsAssociatedWithChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsAssociatedWithChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsAssociatedWithChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all channels associated with a specified channel flow. You can associate a channel /// flow with multiple channels, but you can only associate a channel with one channel /// flow. This is a developer API. /// /// Container for the necessary parameters to execute the ListChannelsAssociatedWithChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelsAssociatedWithChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelsAssociatedWithChannelFlow Operation public virtual Task ListChannelsAssociatedWithChannelFlowAsync(ListChannelsAssociatedWithChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsAssociatedWithChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsAssociatedWithChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannelsModeratedByAppInstanceUser /// /// A list of the channels moderated by an AppInstanceUser. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelsModeratedByAppInstanceUser service method. /// /// The response from the ListChannelsModeratedByAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelsModeratedByAppInstanceUser Operation public virtual ListChannelsModeratedByAppInstanceUserResponse ListChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsModeratedByAppInstanceUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// A list of the channels moderated by an AppInstanceUser. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the ListChannelsModeratedByAppInstanceUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannelsModeratedByAppInstanceUser service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListChannelsModeratedByAppInstanceUser Operation public virtual Task ListChannelsModeratedByAppInstanceUserAsync(ListChannelsModeratedByAppInstanceUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsModeratedByAppInstanceUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSubChannels /// /// Lists all the SubChannels in an elastic channel when given a channel ID. Available /// only to the app instance admins and channel moderators of elastic channels. /// /// Container for the necessary parameters to execute the ListSubChannels service method. /// /// The response from the ListSubChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListSubChannels Operation public virtual ListSubChannelsResponse ListSubChannels(ListSubChannelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSubChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSubChannelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the SubChannels in an elastic channel when given a channel ID. Available /// only to the app instance admins and channel moderators of elastic channels. /// /// Container for the necessary parameters to execute the ListSubChannels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSubChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListSubChannels Operation public virtual Task ListSubChannelsAsync(ListSubChannelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSubChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSubChannelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Lists the tags applied to an Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the tags applied to an Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutChannelExpirationSettings /// /// Sets the number of days before the channel is automatically deleted. /// ///
  • /// /// A background process deletes expired channels within 6 hours of expiration. Actual /// deletion times may vary. /// ///
  • /// /// Expired channels that have not yet been deleted appear as active, and you can update /// their expiration settings. The system honors the new settings. /// ///
  • /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// ///
///
/// Container for the necessary parameters to execute the PutChannelExpirationSettings service method. /// /// The response from the PutChannelExpirationSettings service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutChannelExpirationSettings Operation public virtual PutChannelExpirationSettingsResponse PutChannelExpirationSettings(PutChannelExpirationSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelExpirationSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelExpirationSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the number of days before the channel is automatically deleted. /// ///
  • /// /// A background process deletes expired channels within 6 hours of expiration. Actual /// deletion times may vary. /// ///
  • /// /// Expired channels that have not yet been deleted appear as active, and you can update /// their expiration settings. The system honors the new settings. /// ///
  • /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// ///
///
/// Container for the necessary parameters to execute the PutChannelExpirationSettings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutChannelExpirationSettings service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutChannelExpirationSettings Operation public virtual Task PutChannelExpirationSettingsAsync(PutChannelExpirationSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelExpirationSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelExpirationSettingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutChannelMembershipPreferences /// /// Sets the membership preferences of an AppInstanceUser or AppInstanceBot /// for the specified channel. The user or bot must be a member of the channel. Only the /// user or bot who owns the membership can set preferences. Users or bots in the AppInstanceAdmin /// and channel moderator roles can't set preferences for other users. Banned users or /// bots can't set membership preferences for the channel from which they are banned. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of an AppInstanceUser /// or AppInstanceBot that makes the API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the PutChannelMembershipPreferences service method. /// /// The response from the PutChannelMembershipPreferences service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutChannelMembershipPreferences Operation public virtual PutChannelMembershipPreferencesResponse PutChannelMembershipPreferences(PutChannelMembershipPreferencesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelMembershipPreferencesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the membership preferences of an AppInstanceUser or AppInstanceBot /// for the specified channel. The user or bot must be a member of the channel. Only the /// user or bot who owns the membership can set preferences. Users or bots in the AppInstanceAdmin /// and channel moderator roles can't set preferences for other users. Banned users or /// bots can't set membership preferences for the channel from which they are banned. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of an AppInstanceUser /// or AppInstanceBot that makes the API call as the value in the header. /// /// /// /// Container for the necessary parameters to execute the PutChannelMembershipPreferences service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutChannelMembershipPreferences service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutChannelMembershipPreferences Operation public virtual Task PutChannelMembershipPreferencesAsync(PutChannelMembershipPreferencesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelMembershipPreferencesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutMessagingStreamingConfigurations /// /// Sets the data streaming configuration for an AppInstance. For more information, /// see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the PutMessagingStreamingConfigurations service method. /// /// The response from the PutMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutMessagingStreamingConfigurations Operation public virtual PutMessagingStreamingConfigurationsResponse PutMessagingStreamingConfigurations(PutMessagingStreamingConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the data streaming configuration for an AppInstance. For more information, /// see Streaming /// messaging data in the Amazon Chime SDK Developer Guide. /// /// Container for the necessary parameters to execute the PutMessagingStreamingConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutMessagingStreamingConfigurations service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// One or more of the resources in the request does not exist in the system. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for PutMessagingStreamingConfigurations Operation public virtual Task PutMessagingStreamingConfigurationsAsync(PutMessagingStreamingConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RedactChannelMessage /// /// Redacts message content, but not metadata. The message exists in the back end, but /// the action returns null content, and the state shows as redacted. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the RedactChannelMessage service method. /// /// The response from the RedactChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for RedactChannelMessage Operation public virtual RedactChannelMessageResponse RedactChannelMessage(RedactChannelMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RedactChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = RedactChannelMessageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Redacts message content, but not metadata. The message exists in the back end, but /// the action returns null content, and the state shows as redacted. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the RedactChannelMessage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RedactChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for RedactChannelMessage Operation public virtual Task RedactChannelMessageAsync(RedactChannelMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RedactChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = RedactChannelMessageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SearchChannels /// /// Allows the ChimeBearer to search channels by channel members. Users or /// bots can search across the channels that they belong to. Users in the AppInstanceAdmin /// role can search across all channels. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// Container for the necessary parameters to execute the SearchChannels service method. /// /// The response from the SearchChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for SearchChannels Operation public virtual SearchChannelsResponse SearchChannels(SearchChannelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchChannelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Allows the ChimeBearer to search channels by channel members. Users or /// bots can search across the channels that they belong to. Users in the AppInstanceAdmin /// role can search across all channels. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// Container for the necessary parameters to execute the SearchChannels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SearchChannels service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for SearchChannels Operation public virtual Task SearchChannelsAsync(SearchChannelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchChannelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SendChannelMessage /// /// Sends a message to a particular channel that the member is a part of. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Also, STANDARD messages can be up to 4KB in size and contain metadata. /// Metadata is arbitrary, and you can use it in a variety of ways, such as containing /// a link to an attachment. /// /// /// /// CONTROL messages are limited to 30 bytes and do not contain metadata. /// /// /// /// Container for the necessary parameters to execute the SendChannelMessage service method. /// /// The response from the SendChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for SendChannelMessage Operation public virtual SendChannelMessageResponse SendChannelMessage(SendChannelMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SendChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = SendChannelMessageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sends a message to a particular channel that the member is a part of. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Also, STANDARD messages can be up to 4KB in size and contain metadata. /// Metadata is arbitrary, and you can use it in a variety of ways, such as containing /// a link to an attachment. /// /// /// /// CONTROL messages are limited to 30 bytes and do not contain metadata. /// /// /// /// Container for the necessary parameters to execute the SendChannelMessage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SendChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for SendChannelMessage Operation public virtual Task SendChannelMessageAsync(SendChannelMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SendChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = SendChannelMessageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// Applies the specified tags to the specified Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Applies the specified tags to the specified Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The request exceeds the resource limit. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource /// /// Removes the specified tags from the specified Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the specified tags from the specified Amazon Chime SDK messaging resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateChannel /// /// Update a channel's attributes. /// /// /// /// Restriction: You can't change a channel's privacy. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannel service method. /// /// The response from the UpdateChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannel Operation public virtual UpdateChannelResponse UpdateChannel(UpdateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update a channel's attributes. /// /// /// /// Restriction: You can't change a channel's privacy. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateChannel service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannel Operation public virtual Task UpdateChannelAsync(UpdateChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateChannelFlow /// /// Updates channel flow attributes. This is a developer API. /// /// Container for the necessary parameters to execute the UpdateChannelFlow service method. /// /// The response from the UpdateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelFlow Operation public virtual UpdateChannelFlowResponse UpdateChannelFlow(UpdateChannelFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelFlowResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates channel flow attributes. This is a developer API. /// /// Container for the necessary parameters to execute the UpdateChannelFlow service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateChannelFlow service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelFlow Operation public virtual Task UpdateChannelFlowAsync(UpdateChannelFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelFlowResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateChannelMessage /// /// Updates the content of a message. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannelMessage service method. /// /// The response from the UpdateChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelMessage Operation public virtual UpdateChannelMessageResponse UpdateChannelMessage(UpdateChannelMessageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelMessageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the content of a message. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannelMessage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateChannelMessage service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelMessage Operation public virtual Task UpdateChannelMessageAsync(UpdateChannelMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelMessageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateChannelReadMarker /// /// The details of the time when a user last read messages in a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannelReadMarker service method. /// /// The response from the UpdateChannelReadMarker service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelReadMarker Operation public virtual UpdateChannelReadMarkerResponse UpdateChannelReadMarker(UpdateChannelReadMarkerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelReadMarkerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelReadMarkerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The details of the time when a user last read messages in a channel. /// /// /// /// The x-amz-chime-bearer request header is mandatory. Use the ARN of the /// AppInstanceUser or AppInstanceBot that makes the API call /// as the value in the header. /// /// /// /// Container for the necessary parameters to execute the UpdateChannelReadMarker service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateChannelReadMarker service method, as returned by ChimeSDKMessaging. /// /// The input parameters don't match the service's restrictions. /// /// /// The request could not be processed because of conflict in the current state of the /// resource. /// /// /// The client is permanently forbidden from making the request. /// /// /// The service encountered an unexpected error. /// /// /// The service is currently unavailable. /// /// /// The client exceeded its request rate limit. /// /// /// The client is not currently authorized to make the request. /// /// REST API Reference for UpdateChannelReadMarker Operation public virtual Task UpdateChannelReadMarkerAsync(UpdateChannelReadMarkerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelReadMarkerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelReadMarkerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }