create_vpc_attachment
async
¶
create_vpc_attachment(
core_network_id: CoreNetworkId,
vpc_arn: VpcArn,
subnet_arns: SubnetArnList,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = 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/async_network_manager.py
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 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 | |