create_direct_connect_gateway_attachment
async
¶
create_direct_connect_gateway_attachment(
core_network_id: CoreNetworkId,
direct_connect_gateway_arn: DirectConnectGatewayArn,
edge_locations: ExternalRegionCodeList,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
routing_policy_label: Optional[ConstrainedString] = None,
nat_gateway_support: Optional[NatGatewaySupportValue] = None,
nat_system_route_support: Optional[BoxedBoolean] = None,
nat_gateway_rules: Optional[NatRuleRequestList] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateDirectConnectGatewayAttachmentResponse
Creates an Amazon Web Services Direct Connect gateway attachment
Parameters:
-
core_network_id(CoreNetworkId) –The ID of the Cloud WAN core network that the Direct Connect gateway attachment should be attached to.
-
direct_connect_gateway_arn(DirectConnectGatewayArn) –The ARN of the Direct Connect gateway attachment.
-
routing_policy_label(Optional[ConstrainedString], default:None) –The routing policy label to apply to the Direct Connect Gateway attachment for traffic routing decisions.
-
edge_locations(ExternalRegionCodeList) –One or more core network edge locations that the Direct Connect gateway attachment is associated with.
-
nat_gateway_support(Optional[NatGatewaySupportValue], default:None) –Specifies whether to enable NAT gateway support on the Direct Connect gateway 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_system_route_support(Optional[BoxedBoolean], default:None) –Specifies whether the core network installs system routes for the NAT CIDR blocks of the attachment's NAT rules. System routes have a route type of
SYSTEM. NAT is applied to traffic whether or not this option is enabled. The default istrue. -
nat_gateway_rules(Optional[NatRuleRequestList], default:None) –The NAT rules for the Direct Connect gateway attachment, up to 50 rules.
-
tags(Optional[TagList], default:None) –The key value tags to apply to the Direct Connect gateway attachment during creation.
-
client_token(Optional[ClientToken], default:None) –client token
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
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 | |