create_outbound_external_link
¶
create_outbound_external_link(
client_token: str,
gateway_id: GatewayId,
public_endpoint: URL,
log_settings: LinkLogSettings,
*,
config_overrides: Optional[RTBFabricClientConfig] = None,
attributes: Optional[LinkAttributes] = None,
tags: Optional[TagsMap] = None,
) -> CreateOutboundExternalLinkResponse
Creates an outbound external link.
Parameters:
-
client_token(str) –Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
clientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror. -
gateway_id(GatewayId) –The unique identifier of the gateway.
-
attributes(Optional[LinkAttributes], default:None) –Attributes of the link.
-
public_endpoint(URL) –The public endpoint of the link.
-
log_settings(LinkLogSettings) –Settings for the application logs.
-
tags(Optional[TagsMap], default:None) –A map of the key-value pairs of the tag or tags to assign to the resource.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ServiceQuotaExceededException–The request could not be completed because you exceeded a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create an outbound external link Create an outbound external link for a requester gateway to connect to external public responder endpoints
>>> client.create_outbound_external_link(gateway_id='rtb-gw-12345678', public_endpoint='https://external-responder.example.com', client_token='12345678-1234-1234-1234-123456789012', log_settings={'applicationLogs': {'sampling': {'errorLog': 100.0, 'filterLog': 0.0}}})
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 | |