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,
nat_gateway_support: Optional[NatGatewaySupportValue] = None,
nat_gateway_rules: Optional[NatRuleRequestList] = 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.
-
nat_gateway_support(Optional[NatGatewaySupportValue], default:None) –Specifies whether to enable NAT gateway support on the VPC 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_gateway_rules(Optional[NatRuleRequestList], default:None) –The NAT rules for the VPC attachment, up to 50 rules.
-
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
2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 | |