update_ai_guardrail
¶
update_ai_guardrail(
assistant_id: UuidOrArn,
ai_guardrail_id: UuidOrArnOrEitherWithQualifier,
visibility_status: VisibilityStatus,
blocked_input_messaging: AIGuardrailBlockedMessaging,
blocked_outputs_messaging: AIGuardrailBlockedMessaging,
*,
config_overrides: Optional[QConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[AIGuardrailDescription] = None,
topic_policy_config: Optional[AIGuardrailTopicPolicyConfig] = None,
content_policy_config: Optional[AIGuardrailContentPolicyConfig] = None,
word_policy_config: Optional[AIGuardrailWordPolicyConfig] = None,
sensitive_information_policy_config: Optional[
AIGuardrailSensitiveInformationPolicyConfig
] = None,
contextual_grounding_policy_config: Optional[
AIGuardrailContextualGroundingPolicyConfig
] = None,
) -> UpdateAIGuardrailResponse
Updates an AI Guardrail.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..
-
assistant_id(UuidOrArn) –The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
ai_guardrail_id(UuidOrArnOrEitherWithQualifier) –The identifier of the Amazon Q in Connect AI Guardrail.
-
visibility_status(VisibilityStatus) –The visibility status of the Amazon Q in Connect AI Guardrail.
-
blocked_input_messaging(AIGuardrailBlockedMessaging) –The message to return when the AI Guardrail blocks a prompt.
-
blocked_outputs_messaging(AIGuardrailBlockedMessaging) –The message to return when the AI Guardrail blocks a model response.
-
description(Optional[AIGuardrailDescription], default:None) –A description of the AI Guardrail.
-
topic_policy_config(Optional[AIGuardrailTopicPolicyConfig], default:None) –The topic policies to configure for the AI Guardrail.
-
content_policy_config(Optional[AIGuardrailContentPolicyConfig], default:None) –The content filter policies to configure for the AI Guardrail.
-
word_policy_config(Optional[AIGuardrailWordPolicyConfig], default:None) –The word policy you configure for the AI Guardrail.
-
sensitive_information_policy_config(Optional[AIGuardrailSensitiveInformationPolicyConfig], default:None) –The sensitive information policy to configure for the AI Guardrail.
-
contextual_grounding_policy_config(Optional[AIGuardrailContextualGroundingPolicyConfig], default:None) –The contextual grounding policy configuration used to create an AI Guardrail.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 | |