update_agent
¶
update_agent(
agent_id: AgentId,
aws_account_id: AwsAccountId,
name: AgentName,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
description: Optional[AgentDescription] = None,
icon_id: Optional[IconId] = None,
starter_prompts: Optional[StarterPromptList] = None,
welcome_message: Optional[WelcomeMessage] = None,
custom_prompt_input: Optional[CustomPromptInput] = None,
spaces_to_add: Optional[UpdateAgentRequestSpacesToAddList] = None,
spaces_to_remove: Optional[UpdateAgentRequestSpacesToRemoveList] = None,
action_connectors_to_add: Optional[
UpdateAgentRequestActionConnectorsToAddList
] = None,
action_connectors_to_remove: Optional[
UpdateAgentRequestActionConnectorsToRemoveList
] = None,
) -> UpdateAgentResponse
Updates an existing agent.
Parameters:
-
agent_id(AgentId) –The unique identifier for the agent to update.
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the agent.
-
name(AgentName) –The name of the agent.
-
description(Optional[AgentDescription], default:None) –A description of the agent.
-
icon_id(Optional[IconId], default:None) –The icon identifier for the agent.
-
starter_prompts(Optional[StarterPromptList], default:None) –A list of starter prompts that are displayed to users when they begin interacting with the agent.
-
welcome_message(Optional[WelcomeMessage], default:None) –The welcome message that is displayed when a user starts a conversation with the agent.
-
custom_prompt_input(Optional[CustomPromptInput], default:None) –The custom prompt configuration for the agent.
-
spaces_to_add(Optional[UpdateAgentRequestSpacesToAddList], default:None) –The Amazon Resource Names (ARNs) of the spaces to attach to the agent.
-
spaces_to_remove(Optional[UpdateAgentRequestSpacesToRemoveList], default:None) –The Amazon Resource Names (ARNs) of the spaces to detach from the agent.
-
action_connectors_to_add(Optional[UpdateAgentRequestActionConnectorsToAddList], default:None) –The Amazon Resource Names (ARNs) of the action connectors to attach to the agent.
-
action_connectors_to_remove(Optional[UpdateAgentRequestActionConnectorsToRemoveList], default:None) –The Amazon Resource Names (ARNs) of the action connectors to detach from the agent.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 | |