create_agent
¶
create_agent(
aws_account_id: AwsAccountId,
agent_id: AgentId,
name: AgentName,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
spaces: Optional[CreateAgentRequestSpacesList] = None,
action_connectors: Optional[CreateAgentRequestActionConnectorsList] = None,
description: Optional[AgentDescription] = None,
icon_id: Optional[IconId] = None,
starter_prompts: Optional[StarterPromptList] = None,
welcome_message: Optional[WelcomeMessage] = None,
agent_lifecycle: Optional[AgentLifecycle] = None,
custom_prompt_input: Optional[CustomPromptInput] = None,
) -> CreateAgentResponse
Creates an agent in Amazon QuickSight.
Parameters:
-
spaces(Optional[CreateAgentRequestSpacesList], default:None) –The Amazon Resource Names (ARNs) of the spaces to attach to the agent.
-
action_connectors(Optional[CreateAgentRequestActionConnectorsList], default:None) –The Amazon Resource Names (ARNs) of the action connectors to attach to the agent.
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the agent.
-
agent_id(AgentId) –A unique identifier for 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.
-
agent_lifecycle(Optional[AgentLifecycle], default:None) –The lifecycle state of the agent. Valid values are
PREVIEWandPUBLISHED. -
custom_prompt_input(Optional[CustomPromptInput], default:None) –The custom prompt configuration for 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.
-
ResourceExistsException–The resource specified already exists.
-
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
1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 | |