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
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 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 | |