create_connection
¶
create_connection(
domain_identifier: DomainId,
name: ConnectionName,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
aws_location: Optional[AwsLocation] = None,
client_token: Optional[str] = None,
configurations: Optional[Configurations] = None,
description: Optional[Description] = None,
environment_identifier: Optional[EnvironmentId] = None,
props: Optional[ConnectionPropertiesInput] = None,
enable_trusted_identity_propagation: Optional[bool] = None,
scope: Optional[ConnectionScope] = None,
) -> CreateConnectionOutput
Creates a new connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
Parameters:
-
aws_location(Optional[AwsLocation], default:None) –The location where the connection is created.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
-
configurations(Optional[Configurations], default:None) –The configurations of the connection.
-
description(Optional[Description], default:None) –A connection description.
-
domain_identifier(DomainId) –The ID of the domain where the connection is created.
-
environment_identifier(Optional[EnvironmentId], default:None) –The ID of the environment where the connection is created.
-
name(ConnectionName) –The connection name.
-
props(Optional[ConnectionPropertiesInput], default:None) –The connection props.
-
enable_trusted_identity_propagation(Optional[bool], default:None) –Specifies whether the trusted identity propagation is enabled.
-
scope(Optional[ConnectionScope], default:None) –The scope of the connection.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/data_zone.py
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 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 | |