create_vpc_attachment
¶
create_vpc_attachment(
core_network_id: CoreNetworkId,
vpc_arn: VpcArn,
subnet_arns: SubnetArnList,
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
options: Optional[VpcOptions] = None,
routing_policy_label: Optional[ConstrainedString] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateVpcAttachmentResponse
Creates a VPC attachment on an edge location of a core network.
Parameters:
-
core_network_id(CoreNetworkId) –The ID of a core network for the VPC attachment.
-
vpc_arn(VpcArn) –The ARN of the VPC.
-
subnet_arns(SubnetArnList) –The subnet ARN of the VPC attachment.
-
options(Optional[VpcOptions], default:None) –Options for the VPC attachment.
-
routing_policy_label(Optional[ConstrainedString], default:None) –The routing policy label to apply to the VPC attachment for traffic routing decisions.
-
tags(Optional[TagList], default:None) –The 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/network_manager.py
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 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 | |