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
19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 | |