create_agent
async
¶
create_agent(
aws_account_id: AwsAccountId,
agent_id: AgentId,
name: AgentName,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 | |