create_connect_attachment
async
¶
create_connect_attachment(
core_network_id: CoreNetworkId,
edge_location: ExternalRegionCode,
transport_attachment_id: AttachmentId,
options: ConnectAttachmentOptions,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
routing_policy_label: Optional[ConstrainedString] = None,
nat_gateway_support: Optional[NatGatewaySupportValue] = None,
nat_gateway_rules: Optional[NatRuleRequestList] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateConnectAttachmentResponse
Creates a core network Connect attachment from a specified core network attachment.
A core network Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a core network and an appliance. A core network Connect attachment uses an existing VPC attachment as the underlying transport mechanism.
Parameters:
-
core_network_id(CoreNetworkId) –The ID of a core network where you want to create the attachment.
-
edge_location(ExternalRegionCode) –The Region where the edge is located.
-
transport_attachment_id(AttachmentId) –The ID of the attachment between the two connections.
-
routing_policy_label(Optional[ConstrainedString], default:None) –The routing policy label to apply to the Connect attachment for traffic routing decisions.
-
nat_gateway_support(Optional[NatGatewaySupportValue], default:None) –Specifies whether to enable NAT gateway support on the Connect attachment. NAT is supported only on Connect attachments that use the GRE tunnel protocol. Tunnel-less Connect attachments aren't supported. 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_gateway_rules(Optional[NatRuleRequestList], default:None) –The NAT rules for the Connect attachment, up to 50 rules.
-
options(ConnectAttachmentOptions) –Options for creating an attachment.
-
tags(Optional[TagList], default:None) –The list of key-value 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
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 | |