/* * 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.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(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IChimeSDKMessagingPaginatorFactory _paginators; /// /// Paginators for the service /// public IChimeSDKMessagingPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ChimeSDKMessagingPaginatorFactory(this); } return this._paginators; } } #endif #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); } /// /// Initiates the asynchronous execution of the AssociateChannelFlow operation. /// /// /// Container for the necessary parameters to execute the AssociateChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateChannelFlow /// operation. /// REST API Reference for AssociateChannelFlow Operation public virtual IAsyncResult BeginAssociateChannelFlow(AssociateChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AssociateChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginAssociateChannelFlow. /// /// Returns a AssociateChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for AssociateChannelFlow Operation public virtual AssociateChannelFlowResponse EndAssociateChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the BatchCreateChannelMembership operation. /// /// /// Container for the necessary parameters to execute the BatchCreateChannelMembership operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchCreateChannelMembership /// operation. /// REST API Reference for BatchCreateChannelMembership Operation public virtual IAsyncResult BeginBatchCreateChannelMembership(BatchCreateChannelMembershipRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCreateChannelMembershipResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchCreateChannelMembership operation. /// /// /// The IAsyncResult returned by the call to BeginBatchCreateChannelMembership. /// /// Returns a BatchCreateChannelMembershipResult from ChimeSDKMessaging. /// REST API Reference for BatchCreateChannelMembership Operation public virtual BatchCreateChannelMembershipResponse EndBatchCreateChannelMembership(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ChannelFlowCallback operation. /// /// /// Container for the necessary parameters to execute the ChannelFlowCallback operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndChannelFlowCallback /// operation. /// REST API Reference for ChannelFlowCallback Operation public virtual IAsyncResult BeginChannelFlowCallback(ChannelFlowCallbackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ChannelFlowCallbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ChannelFlowCallbackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ChannelFlowCallback operation. /// /// /// The IAsyncResult returned by the call to BeginChannelFlowCallback. /// /// Returns a ChannelFlowCallbackResult from ChimeSDKMessaging. /// REST API Reference for ChannelFlowCallback Operation public virtual ChannelFlowCallbackResponse EndChannelFlowCallback(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateChannel operation. /// /// /// Container for the necessary parameters to execute the CreateChannel operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannel /// operation. /// REST API Reference for CreateChannel Operation public virtual IAsyncResult BeginCreateChannel(CreateChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannel operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannel. /// /// Returns a CreateChannelResult from ChimeSDKMessaging. /// REST API Reference for CreateChannel Operation public virtual CreateChannelResponse EndCreateChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateChannelBan operation. /// /// /// Container for the necessary parameters to execute the CreateChannelBan operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannelBan /// operation. /// REST API Reference for CreateChannelBan Operation public virtual IAsyncResult BeginCreateChannelBan(CreateChannelBanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelBanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannelBan operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannelBan. /// /// Returns a CreateChannelBanResult from ChimeSDKMessaging. /// REST API Reference for CreateChannelBan Operation public virtual CreateChannelBanResponse EndCreateChannelBan(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateChannelFlow operation. /// /// /// Container for the necessary parameters to execute the CreateChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannelFlow /// operation. /// REST API Reference for CreateChannelFlow Operation public virtual IAsyncResult BeginCreateChannelFlow(CreateChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannelFlow. /// /// Returns a CreateChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for CreateChannelFlow Operation public virtual CreateChannelFlowResponse EndCreateChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateChannelMembership operation. /// /// /// Container for the necessary parameters to execute the CreateChannelMembership operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannelMembership /// operation. /// REST API Reference for CreateChannelMembership Operation public virtual IAsyncResult BeginCreateChannelMembership(CreateChannelMembershipRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelMembershipResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannelMembership operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannelMembership. /// /// Returns a CreateChannelMembershipResult from ChimeSDKMessaging. /// REST API Reference for CreateChannelMembership Operation public virtual CreateChannelMembershipResponse EndCreateChannelMembership(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateChannelModerator operation. /// /// /// Container for the necessary parameters to execute the CreateChannelModerator operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannelModerator /// operation. /// REST API Reference for CreateChannelModerator Operation public virtual IAsyncResult BeginCreateChannelModerator(CreateChannelModeratorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelModeratorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannelModerator operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannelModerator. /// /// Returns a CreateChannelModeratorResult from ChimeSDKMessaging. /// REST API Reference for CreateChannelModerator Operation public virtual CreateChannelModeratorResponse EndCreateChannelModerator(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannel operation. /// /// /// Container for the necessary parameters to execute the DeleteChannel operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannel /// operation. /// REST API Reference for DeleteChannel Operation public virtual IAsyncResult BeginDeleteChannel(DeleteChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannel operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannel. /// /// Returns a DeleteChannelResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannel Operation public virtual DeleteChannelResponse EndDeleteChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannelBan operation. /// /// /// Container for the necessary parameters to execute the DeleteChannelBan operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannelBan /// operation. /// REST API Reference for DeleteChannelBan Operation public virtual IAsyncResult BeginDeleteChannelBan(DeleteChannelBanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelBanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannelBan operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannelBan. /// /// Returns a DeleteChannelBanResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannelBan Operation public virtual DeleteChannelBanResponse EndDeleteChannelBan(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannelFlow operation. /// /// /// Container for the necessary parameters to execute the DeleteChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannelFlow /// operation. /// REST API Reference for DeleteChannelFlow Operation public virtual IAsyncResult BeginDeleteChannelFlow(DeleteChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannelFlow. /// /// Returns a DeleteChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannelFlow Operation public virtual DeleteChannelFlowResponse EndDeleteChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannelMembership operation. /// /// /// Container for the necessary parameters to execute the DeleteChannelMembership operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannelMembership /// operation. /// REST API Reference for DeleteChannelMembership Operation public virtual IAsyncResult BeginDeleteChannelMembership(DeleteChannelMembershipRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMembershipResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannelMembership operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannelMembership. /// /// Returns a DeleteChannelMembershipResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannelMembership Operation public virtual DeleteChannelMembershipResponse EndDeleteChannelMembership(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannelMessage operation. /// /// /// Container for the necessary parameters to execute the DeleteChannelMessage operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannelMessage /// operation. /// REST API Reference for DeleteChannelMessage Operation public virtual IAsyncResult BeginDeleteChannelMessage(DeleteChannelMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannelMessage operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannelMessage. /// /// Returns a DeleteChannelMessageResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannelMessage Operation public virtual DeleteChannelMessageResponse EndDeleteChannelMessage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteChannelModerator operation. /// /// /// Container for the necessary parameters to execute the DeleteChannelModerator operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannelModerator /// operation. /// REST API Reference for DeleteChannelModerator Operation public virtual IAsyncResult BeginDeleteChannelModerator(DeleteChannelModeratorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelModeratorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannelModerator operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannelModerator. /// /// Returns a DeleteChannelModeratorResult from ChimeSDKMessaging. /// REST API Reference for DeleteChannelModerator Operation public virtual DeleteChannelModeratorResponse EndDeleteChannelModerator(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteMessagingStreamingConfigurations operation. /// /// /// Container for the necessary parameters to execute the DeleteMessagingStreamingConfigurations operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMessagingStreamingConfigurations /// operation. /// REST API Reference for DeleteMessagingStreamingConfigurations Operation public virtual IAsyncResult BeginDeleteMessagingStreamingConfigurations(DeleteMessagingStreamingConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteMessagingStreamingConfigurations operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteMessagingStreamingConfigurations. /// /// Returns a DeleteMessagingStreamingConfigurationsResult from ChimeSDKMessaging. /// REST API Reference for DeleteMessagingStreamingConfigurations Operation public virtual DeleteMessagingStreamingConfigurationsResponse EndDeleteMessagingStreamingConfigurations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannel operation. /// /// /// Container for the necessary parameters to execute the DescribeChannel operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannel /// operation. /// REST API Reference for DescribeChannel Operation public virtual IAsyncResult BeginDescribeChannel(DescribeChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannel operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannel. /// /// Returns a DescribeChannelResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannel Operation public virtual DescribeChannelResponse EndDescribeChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelBan operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelBan operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelBan /// operation. /// REST API Reference for DescribeChannelBan Operation public virtual IAsyncResult BeginDescribeChannelBan(DescribeChannelBanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelBanRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelBanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelBan operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelBan. /// /// Returns a DescribeChannelBanResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelBan Operation public virtual DescribeChannelBanResponse EndDescribeChannelBan(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelFlow operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelFlow /// operation. /// REST API Reference for DescribeChannelFlow Operation public virtual IAsyncResult BeginDescribeChannelFlow(DescribeChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelFlow. /// /// Returns a DescribeChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelFlow Operation public virtual DescribeChannelFlowResponse EndDescribeChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelMembership operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelMembership operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelMembership /// operation. /// REST API Reference for DescribeChannelMembership Operation public virtual IAsyncResult BeginDescribeChannelMembership(DescribeChannelMembershipRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelMembership operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelMembership. /// /// Returns a DescribeChannelMembershipResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelMembership Operation public virtual DescribeChannelMembershipResponse EndDescribeChannelMembership(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelMembershipForAppInstanceUser operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelMembershipForAppInstanceUser operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelMembershipForAppInstanceUser /// operation. /// REST API Reference for DescribeChannelMembershipForAppInstanceUser Operation public virtual IAsyncResult BeginDescribeChannelMembershipForAppInstanceUser(DescribeChannelMembershipForAppInstanceUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelMembershipForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelMembershipForAppInstanceUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelMembershipForAppInstanceUser operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelMembershipForAppInstanceUser. /// /// Returns a DescribeChannelMembershipForAppInstanceUserResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelMembershipForAppInstanceUser Operation public virtual DescribeChannelMembershipForAppInstanceUserResponse EndDescribeChannelMembershipForAppInstanceUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelModeratedByAppInstanceUser operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelModeratedByAppInstanceUser operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelModeratedByAppInstanceUser /// operation. /// REST API Reference for DescribeChannelModeratedByAppInstanceUser Operation public virtual IAsyncResult BeginDescribeChannelModeratedByAppInstanceUser(DescribeChannelModeratedByAppInstanceUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratedByAppInstanceUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelModeratedByAppInstanceUser operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelModeratedByAppInstanceUser. /// /// Returns a DescribeChannelModeratedByAppInstanceUserResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelModeratedByAppInstanceUser Operation public virtual DescribeChannelModeratedByAppInstanceUserResponse EndDescribeChannelModeratedByAppInstanceUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeChannelModerator operation. /// /// /// Container for the necessary parameters to execute the DescribeChannelModerator operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannelModerator /// operation. /// REST API Reference for DescribeChannelModerator Operation public virtual IAsyncResult BeginDescribeChannelModerator(DescribeChannelModeratorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelModeratorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelModeratorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannelModerator operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannelModerator. /// /// Returns a DescribeChannelModeratorResult from ChimeSDKMessaging. /// REST API Reference for DescribeChannelModerator Operation public virtual DescribeChannelModeratorResponse EndDescribeChannelModerator(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DisassociateChannelFlow operation. /// /// /// Container for the necessary parameters to execute the DisassociateChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateChannelFlow /// operation. /// REST API Reference for DisassociateChannelFlow Operation public virtual IAsyncResult BeginDisassociateChannelFlow(DisassociateChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DisassociateChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginDisassociateChannelFlow. /// /// Returns a DisassociateChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for DisassociateChannelFlow Operation public virtual DisassociateChannelFlowResponse EndDisassociateChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the GetChannelMembershipPreferences operation. /// /// /// Container for the necessary parameters to execute the GetChannelMembershipPreferences operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetChannelMembershipPreferences /// operation. /// REST API Reference for GetChannelMembershipPreferences Operation public virtual IAsyncResult BeginGetChannelMembershipPreferences(GetChannelMembershipPreferencesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMembershipPreferencesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetChannelMembershipPreferences operation. /// /// /// The IAsyncResult returned by the call to BeginGetChannelMembershipPreferences. /// /// Returns a GetChannelMembershipPreferencesResult from ChimeSDKMessaging. /// REST API Reference for GetChannelMembershipPreferences Operation public virtual GetChannelMembershipPreferencesResponse EndGetChannelMembershipPreferences(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the GetChannelMessage operation. /// /// /// Container for the necessary parameters to execute the GetChannelMessage operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetChannelMessage /// operation. /// REST API Reference for GetChannelMessage Operation public virtual IAsyncResult BeginGetChannelMessage(GetChannelMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetChannelMessage operation. /// /// /// The IAsyncResult returned by the call to BeginGetChannelMessage. /// /// Returns a GetChannelMessageResult from ChimeSDKMessaging. /// REST API Reference for GetChannelMessage Operation public virtual GetChannelMessageResponse EndGetChannelMessage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the GetChannelMessageStatus operation. /// /// /// Container for the necessary parameters to execute the GetChannelMessageStatus operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetChannelMessageStatus /// operation. /// REST API Reference for GetChannelMessageStatus Operation public virtual IAsyncResult BeginGetChannelMessageStatus(GetChannelMessageStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelMessageStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelMessageStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetChannelMessageStatus operation. /// /// /// The IAsyncResult returned by the call to BeginGetChannelMessageStatus. /// /// Returns a GetChannelMessageStatusResult from ChimeSDKMessaging. /// REST API Reference for GetChannelMessageStatus Operation public virtual GetChannelMessageStatusResponse EndGetChannelMessageStatus(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the GetMessagingSessionEndpoint operation. /// /// /// Container for the necessary parameters to execute the GetMessagingSessionEndpoint operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMessagingSessionEndpoint /// operation. /// REST API Reference for GetMessagingSessionEndpoint Operation public virtual IAsyncResult BeginGetMessagingSessionEndpoint(GetMessagingSessionEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingSessionEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingSessionEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetMessagingSessionEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginGetMessagingSessionEndpoint. /// /// Returns a GetMessagingSessionEndpointResult from ChimeSDKMessaging. /// REST API Reference for GetMessagingSessionEndpoint Operation public virtual GetMessagingSessionEndpointResponse EndGetMessagingSessionEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the GetMessagingStreamingConfigurations operation. /// /// /// Container for the necessary parameters to execute the GetMessagingStreamingConfigurations operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMessagingStreamingConfigurations /// operation. /// REST API Reference for GetMessagingStreamingConfigurations Operation public virtual IAsyncResult BeginGetMessagingStreamingConfigurations(GetMessagingStreamingConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetMessagingStreamingConfigurations operation. /// /// /// The IAsyncResult returned by the call to BeginGetMessagingStreamingConfigurations. /// /// Returns a GetMessagingStreamingConfigurationsResult from ChimeSDKMessaging. /// REST API Reference for GetMessagingStreamingConfigurations Operation public virtual GetMessagingStreamingConfigurationsResponse EndGetMessagingStreamingConfigurations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelBans operation. /// /// /// Container for the necessary parameters to execute the ListChannelBans operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelBans /// operation. /// REST API Reference for ListChannelBans Operation public virtual IAsyncResult BeginListChannelBans(ListChannelBansRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelBansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelBansResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelBans operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelBans. /// /// Returns a ListChannelBansResult from ChimeSDKMessaging. /// REST API Reference for ListChannelBans Operation public virtual ListChannelBansResponse EndListChannelBans(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelFlows operation. /// /// /// Container for the necessary parameters to execute the ListChannelFlows operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelFlows /// operation. /// REST API Reference for ListChannelFlows Operation public virtual IAsyncResult BeginListChannelFlows(ListChannelFlowsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelFlowsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelFlows operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelFlows. /// /// Returns a ListChannelFlowsResult from ChimeSDKMessaging. /// REST API Reference for ListChannelFlows Operation public virtual ListChannelFlowsResponse EndListChannelFlows(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelMemberships operation. /// /// /// Container for the necessary parameters to execute the ListChannelMemberships operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelMemberships /// operation. /// REST API Reference for ListChannelMemberships Operation public virtual IAsyncResult BeginListChannelMemberships(ListChannelMembershipsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelMemberships operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelMemberships. /// /// Returns a ListChannelMembershipsResult from ChimeSDKMessaging. /// REST API Reference for ListChannelMemberships Operation public virtual ListChannelMembershipsResponse EndListChannelMemberships(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelMembershipsForAppInstanceUser operation. /// /// /// Container for the necessary parameters to execute the ListChannelMembershipsForAppInstanceUser operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelMembershipsForAppInstanceUser /// operation. /// REST API Reference for ListChannelMembershipsForAppInstanceUser Operation public virtual IAsyncResult BeginListChannelMembershipsForAppInstanceUser(ListChannelMembershipsForAppInstanceUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMembershipsForAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMembershipsForAppInstanceUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelMembershipsForAppInstanceUser operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelMembershipsForAppInstanceUser. /// /// Returns a ListChannelMembershipsForAppInstanceUserResult from ChimeSDKMessaging. /// REST API Reference for ListChannelMembershipsForAppInstanceUser Operation public virtual ListChannelMembershipsForAppInstanceUserResponse EndListChannelMembershipsForAppInstanceUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelMessages operation. /// /// /// Container for the necessary parameters to execute the ListChannelMessages operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelMessages /// operation. /// REST API Reference for ListChannelMessages Operation public virtual IAsyncResult BeginListChannelMessages(ListChannelMessagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelMessagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelMessagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelMessages operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelMessages. /// /// Returns a ListChannelMessagesResult from ChimeSDKMessaging. /// REST API Reference for ListChannelMessages Operation public virtual ListChannelMessagesResponse EndListChannelMessages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelModerators operation. /// /// /// Container for the necessary parameters to execute the ListChannelModerators operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelModerators /// operation. /// REST API Reference for ListChannelModerators Operation public virtual IAsyncResult BeginListChannelModerators(ListChannelModeratorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelModeratorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelModeratorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelModerators operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelModerators. /// /// Returns a ListChannelModeratorsResult from ChimeSDKMessaging. /// REST API Reference for ListChannelModerators Operation public virtual ListChannelModeratorsResponse EndListChannelModerators(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannels operation. /// /// /// Container for the necessary parameters to execute the ListChannels operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannels /// operation. /// REST API Reference for ListChannels Operation public virtual IAsyncResult BeginListChannels(ListChannelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannels operation. /// /// /// The IAsyncResult returned by the call to BeginListChannels. /// /// Returns a ListChannelsResult from ChimeSDKMessaging. /// REST API Reference for ListChannels Operation public virtual ListChannelsResponse EndListChannels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelsAssociatedWithChannelFlow operation. /// /// /// Container for the necessary parameters to execute the ListChannelsAssociatedWithChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelsAssociatedWithChannelFlow /// operation. /// REST API Reference for ListChannelsAssociatedWithChannelFlow Operation public virtual IAsyncResult BeginListChannelsAssociatedWithChannelFlow(ListChannelsAssociatedWithChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsAssociatedWithChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsAssociatedWithChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelsAssociatedWithChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelsAssociatedWithChannelFlow. /// /// Returns a ListChannelsAssociatedWithChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for ListChannelsAssociatedWithChannelFlow Operation public virtual ListChannelsAssociatedWithChannelFlowResponse EndListChannelsAssociatedWithChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListChannelsModeratedByAppInstanceUser operation. /// /// /// Container for the necessary parameters to execute the ListChannelsModeratedByAppInstanceUser operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannelsModeratedByAppInstanceUser /// operation. /// REST API Reference for ListChannelsModeratedByAppInstanceUser Operation public virtual IAsyncResult BeginListChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsModeratedByAppInstanceUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsModeratedByAppInstanceUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannelsModeratedByAppInstanceUser operation. /// /// /// The IAsyncResult returned by the call to BeginListChannelsModeratedByAppInstanceUser. /// /// Returns a ListChannelsModeratedByAppInstanceUserResult from ChimeSDKMessaging. /// REST API Reference for ListChannelsModeratedByAppInstanceUser Operation public virtual ListChannelsModeratedByAppInstanceUserResponse EndListChannelsModeratedByAppInstanceUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListSubChannels operation. /// /// /// Container for the necessary parameters to execute the ListSubChannels operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubChannels /// operation. /// REST API Reference for ListSubChannels Operation public virtual IAsyncResult BeginListSubChannels(ListSubChannelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSubChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSubChannelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListSubChannels operation. /// /// /// The IAsyncResult returned by the call to BeginListSubChannels. /// /// Returns a ListSubChannelsResult from ChimeSDKMessaging. /// REST API Reference for ListSubChannels Operation public virtual ListSubChannelsResponse EndListSubChannels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from ChimeSDKMessaging. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the PutChannelExpirationSettings operation. /// /// /// Container for the necessary parameters to execute the PutChannelExpirationSettings operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutChannelExpirationSettings /// operation. /// REST API Reference for PutChannelExpirationSettings Operation public virtual IAsyncResult BeginPutChannelExpirationSettings(PutChannelExpirationSettingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelExpirationSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelExpirationSettingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutChannelExpirationSettings operation. /// /// /// The IAsyncResult returned by the call to BeginPutChannelExpirationSettings. /// /// Returns a PutChannelExpirationSettingsResult from ChimeSDKMessaging. /// REST API Reference for PutChannelExpirationSettings Operation public virtual PutChannelExpirationSettingsResponse EndPutChannelExpirationSettings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the PutChannelMembershipPreferences operation. /// /// /// Container for the necessary parameters to execute the PutChannelMembershipPreferences operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutChannelMembershipPreferences /// operation. /// REST API Reference for PutChannelMembershipPreferences Operation public virtual IAsyncResult BeginPutChannelMembershipPreferences(PutChannelMembershipPreferencesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelMembershipPreferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelMembershipPreferencesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutChannelMembershipPreferences operation. /// /// /// The IAsyncResult returned by the call to BeginPutChannelMembershipPreferences. /// /// Returns a PutChannelMembershipPreferencesResult from ChimeSDKMessaging. /// REST API Reference for PutChannelMembershipPreferences Operation public virtual PutChannelMembershipPreferencesResponse EndPutChannelMembershipPreferences(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the PutMessagingStreamingConfigurations operation. /// /// /// Container for the necessary parameters to execute the PutMessagingStreamingConfigurations operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMessagingStreamingConfigurations /// operation. /// REST API Reference for PutMessagingStreamingConfigurations Operation public virtual IAsyncResult BeginPutMessagingStreamingConfigurations(PutMessagingStreamingConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMessagingStreamingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMessagingStreamingConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutMessagingStreamingConfigurations operation. /// /// /// The IAsyncResult returned by the call to BeginPutMessagingStreamingConfigurations. /// /// Returns a PutMessagingStreamingConfigurationsResult from ChimeSDKMessaging. /// REST API Reference for PutMessagingStreamingConfigurations Operation public virtual PutMessagingStreamingConfigurationsResponse EndPutMessagingStreamingConfigurations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the RedactChannelMessage operation. /// /// /// Container for the necessary parameters to execute the RedactChannelMessage operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRedactChannelMessage /// operation. /// REST API Reference for RedactChannelMessage Operation public virtual IAsyncResult BeginRedactChannelMessage(RedactChannelMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RedactChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = RedactChannelMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RedactChannelMessage operation. /// /// /// The IAsyncResult returned by the call to BeginRedactChannelMessage. /// /// Returns a RedactChannelMessageResult from ChimeSDKMessaging. /// REST API Reference for RedactChannelMessage Operation public virtual RedactChannelMessageResponse EndRedactChannelMessage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the SearchChannels operation. /// /// /// Container for the necessary parameters to execute the SearchChannels operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchChannels /// operation. /// REST API Reference for SearchChannels Operation public virtual IAsyncResult BeginSearchChannels(SearchChannelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchChannelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchChannels operation. /// /// /// The IAsyncResult returned by the call to BeginSearchChannels. /// /// Returns a SearchChannelsResult from ChimeSDKMessaging. /// REST API Reference for SearchChannels Operation public virtual SearchChannelsResponse EndSearchChannels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the SendChannelMessage operation. /// /// /// Container for the necessary parameters to execute the SendChannelMessage operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSendChannelMessage /// operation. /// REST API Reference for SendChannelMessage Operation public virtual IAsyncResult BeginSendChannelMessage(SendChannelMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SendChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = SendChannelMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SendChannelMessage operation. /// /// /// The IAsyncResult returned by the call to BeginSendChannelMessage. /// /// Returns a SendChannelMessageResult from ChimeSDKMessaging. /// REST API Reference for SendChannelMessage Operation public virtual SendChannelMessageResponse EndSendChannelMessage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from ChimeSDKMessaging. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from ChimeSDKMessaging. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateChannel operation. /// /// /// Container for the necessary parameters to execute the UpdateChannel operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateChannel /// operation. /// REST API Reference for UpdateChannel Operation public virtual IAsyncResult BeginUpdateChannel(UpdateChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateChannel operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateChannel. /// /// Returns a UpdateChannelResult from ChimeSDKMessaging. /// REST API Reference for UpdateChannel Operation public virtual UpdateChannelResponse EndUpdateChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateChannelFlow operation. /// /// /// Container for the necessary parameters to execute the UpdateChannelFlow operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateChannelFlow /// operation. /// REST API Reference for UpdateChannelFlow Operation public virtual IAsyncResult BeginUpdateChannelFlow(UpdateChannelFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateChannelFlow operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateChannelFlow. /// /// Returns a UpdateChannelFlowResult from ChimeSDKMessaging. /// REST API Reference for UpdateChannelFlow Operation public virtual UpdateChannelFlowResponse EndUpdateChannelFlow(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateChannelMessage operation. /// /// /// Container for the necessary parameters to execute the UpdateChannelMessage operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateChannelMessage /// operation. /// REST API Reference for UpdateChannelMessage Operation public virtual IAsyncResult BeginUpdateChannelMessage(UpdateChannelMessageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelMessageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelMessageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateChannelMessage operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateChannelMessage. /// /// Returns a UpdateChannelMessageResult from ChimeSDKMessaging. /// REST API Reference for UpdateChannelMessage Operation public virtual UpdateChannelMessageResponse EndUpdateChannelMessage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateChannelReadMarker operation. /// /// /// Container for the necessary parameters to execute the UpdateChannelReadMarker operation on AmazonChimeSDKMessagingClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateChannelReadMarker /// operation. /// REST API Reference for UpdateChannelReadMarker Operation public virtual IAsyncResult BeginUpdateChannelReadMarker(UpdateChannelReadMarkerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelReadMarkerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelReadMarkerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateChannelReadMarker operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateChannelReadMarker. /// /// Returns a UpdateChannelReadMarkerResult from ChimeSDKMessaging. /// REST API Reference for UpdateChannelReadMarker Operation public virtual UpdateChannelReadMarkerResponse EndUpdateChannelReadMarker(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }