create_ai_agent
async
¶
create_ai_agent(
assistant_id: UuidOrArn,
name: Name,
type: AIAgentType,
configuration: AIAgentConfiguration,
visibility_status: VisibilityStatus,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[Tags] = None,
description: Optional[Description] = None,
) -> CreateAIAgentResponse
Creates an Amazon Q in Connect AI Agent.
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.
-
name(Name) –The name of the AI Agent.
-
type(AIAgentType) –The type of the AI Agent.
-
configuration(AIAgentConfiguration) –The configuration of the AI Agent.
-
visibility_status(VisibilityStatus) –The visibility status of the AI Agent.
-
tags(Optional[Tags], default:None) –The tags used to organize, track, or control access for this resource.
-
description(Optional[Description], default:None) –The description of the AI Agent.
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.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
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/async_q_connect.py
1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 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 | |