AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Links a resource (for example, a custom action) to a channel configuration.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to AssociateToConfigurationAsync.

Namespace: Amazon.Chatbot
Assembly: AWSSDK.Chatbot.dll
Version: 3.x.y.z

Syntax

C#
public virtual AssociateToConfigurationResponse AssociateToConfiguration(
         AssociateToConfigurationRequest request
)

Parameters

request
Type: Amazon.Chatbot.Model.AssociateToConfigurationRequest

Container for the necessary parameters to execute the AssociateToConfiguration service method.

Return Value


The response from the AssociateToConfiguration service method, as returned by Chatbot.

Exceptions

ExceptionCondition
InternalServiceErrorException Unexpected error during processing of request.
InvalidRequestException Your request input doesn't meet the constraints required by AWS Chatbot.
UnauthorizedException The request was rejected because it doesn't have valid credentials for the target resource.

Examples

Associate a custom action to a channel configuration, allowing it to be used in that channel

Associate a custom action to a configuration


var client = new AmazonChatbotClient();
var response = client.AssociateToConfiguration(new AssociateToConfigurationRequest 
{
    ChatConfiguration = "arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-channel",
    Resource = "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
});


            

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also