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.
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
public virtual AssociateToConfigurationResponse AssociateToConfiguration( AssociateToConfigurationRequest request )
Container for the necessary parameters to execute the AssociateToConfiguration service method.
| Exception | Condition |
|---|---|
| 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. |
Associate a custom action to a channel configuration, allowing it to be used in that channel
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"
});
.NET Framework:
Supported in: 4.7.2 and newer