create_site_to_site_vpn_attachment
async
¶
create_site_to_site_vpn_attachment(
core_network_id: CoreNetworkId,
vpn_connection_arn: VpnConnectionArn,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
routing_policy_label: Optional[ConstrainedString] = None,
nat_gateway_support: Optional[NatGatewaySupportValue] = None,
nat_system_route_support: Optional[BoxedBoolean] = None,
nat_gateway_rules: Optional[NatRuleRequestList] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateSiteToSiteVpnAttachmentResponse
Creates an Amazon Web Services site-to-site VPN attachment on an edge location of a core network.
Parameters:
-
core_network_id(CoreNetworkId) –The ID of a core network where you're creating a site-to-site VPN attachment.
-
vpn_connection_arn(VpnConnectionArn) –The ARN identifying the VPN attachment.
-
routing_policy_label(Optional[ConstrainedString], default:None) –The routing policy label to apply to the Site-to-Site VPN attachment for traffic routing decisions.
-
nat_gateway_support(Optional[NatGatewaySupportValue], default:None) –Specifies whether to enable NAT gateway support on the Site-to-Site VPN attachment. To enable NAT gateway support, you must also specify at least one NAT rule. If you don't specify a value, NAT gateway support is disabled. Only the core network owner can configure NAT on an attachment.
-
nat_system_route_support(Optional[BoxedBoolean], default:None) –Specifies whether the core network installs system routes for the NAT CIDR blocks of the attachment's NAT rules. System routes have a route type of
SYSTEM. NAT is applied to traffic whether or not this option is enabled. The default istruefor VPN connections that use BGP andfalsefor VPN connections that use static routing. If the VPN connection uses static routing, you must specifyfalseor omit this parameter. -
nat_gateway_rules(Optional[NatRuleRequestList], default:None) –The NAT rules for the Site-to-Site VPN attachment, up to 50 rules.
-
tags(Optional[TagList], default:None) –The tags associated with the request.
-
client_token(Optional[ClientToken], default:None) –The client token associated with the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
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 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 | |