update_slack_channel_configuration
async
¶
update_slack_channel_configuration(
chat_configuration_arn: ChatConfigurationArn,
slack_channel_id: SlackChannelId,
*,
config_overrides: Optional[AsyncchatbotClientConfig] = None,
slack_channel_name: Optional[SlackChannelDisplayName] = None,
sns_topic_arns: Optional[SnsTopicArnList] = None,
iam_role_arn: Optional[Arn] = None,
logging_level: Optional[CustomerCwLogLevel] = None,
guardrail_policy_arns: Optional[GuardrailPolicyArnList] = None,
user_authorization_required: Optional[BooleanAccountPreference] = None,
) -> UpdateSlackChannelConfigurationResult
Updates a Slack channel configuration.
Parameters:
-
chat_configuration_arn(ChatConfigurationArn) –The Amazon Resource Name (ARN) of the SlackChannelConfiguration to update.
-
slack_channel_id(SlackChannelId) –The ID of the Slack channel.
To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
-
slack_channel_name(Optional[SlackChannelDisplayName], default:None) –The name of the Slack channel.
-
sns_topic_arns(Optional[SnsTopicArnList], default:None) –The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.
-
iam_role_arn(Optional[Arn], default:None) –A user-defined role that AWS Chatbot assumes. This is not the service-linked role.
For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide.
-
logging_level(Optional[CustomerCwLogLevel], default:None) –Logging levels include
ERROR,INFO, orNONE. -
guardrail_policy_arns(Optional[GuardrailPolicyArnList], default:None) –The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed
AdministratorAccesspolicy is applied by default if this is not set. -
user_authorization_required(Optional[BooleanAccountPreference], default:None) –Enables use of a user role requirement in your chat configuration.
Raises:
-
InvalidParameterException–Your request input doesn't meet the constraints required by AWS Chatbot.
-
InvalidRequestException–Your request input doesn't meet the constraints required by AWS Chatbot.
-
ResourceNotFoundException–We were unable to find the resource for your request
-
UpdateSlackChannelConfigurationException–We can’t process your request right now because of a server issue. Try again later.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chatbot/_services/async_chatbot.py
2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 | |