create_direct_connect_gateway_association
¶
create_direct_connect_gateway_association(
direct_connect_gateway_id: DirectConnectGatewayId,
*,
config_overrides: Optional[DirectConnectClientConfig] = None,
gateway_id: Optional[GatewayIdToAssociate] = None,
add_allowed_prefixes_to_direct_connect_gateway: Optional[
RouteFilterPrefixList
] = None,
virtual_gateway_id: Optional[VirtualGatewayId] = None,
) -> CreateDirectConnectGatewayAssociationResult
Creates an association between a Direct Connect gateway and a virtual private gateway. The virtual private gateway must be attached to a VPC and must not be associated with another Direct Connect gateway.
Parameters:
-
direct_connect_gateway_id(DirectConnectGatewayId) –The ID of the Direct Connect gateway.
-
gateway_id(Optional[GatewayIdToAssociate], default:None) –The ID of the virtual private gateway or transit gateway.
-
add_allowed_prefixes_to_direct_connect_gateway(Optional[RouteFilterPrefixList], default:None) –The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
-
virtual_gateway_id(Optional[VirtualGatewayId], default:None) –The ID of the virtual private gateway.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/direct_connect.py
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 | |