Directconnect
Parity grade: A · SDK aws-sdk-go-v2/service/directconnect@v1.55.0 · last audited 2026-10-11 (22b4f068c)
Category: Other · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 73 (72 ok, 1 partial) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 8 |
| Deferred items | 1 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- Interconnect/hosted-connection/reseller (partner) flow (CreateInterconnect, AllocateConnectionOnInterconnect, AllocateHostedConnection, ConfirmConnection, DescribeConnectionsOnInterconnect, DescribeHostedConnections): real Direct Connect Partners own physical cross-connect infrastructure at colocation facilities. There is no physical link for an emulator to have or lack -- 'is this physically cross-connected' cannot be made real by any amount of implementation effort. Full state bookkeeping (Interconnect/Connection creation, ordering->confirm->available transitions, parent/child relationships) IS implemented and IS the honest ceiling.
- LOA-CFA (Letter of Authorization - Connecting Facility Assignment) content (DescribeLoa/DescribeConnectionLoa/DescribeInterconnectLoa): a real LOA-CFA is an authentic AWS-issued document authorizing physical cross-connect work at a named colocation facility. No implementation can produce a genuine one without real physical infrastructure and a real issuing authority. loa.go's placeholderLoaContent (a minimal, well-formed PDF labeled 'PLACEHOLDER - NOT A REAL AUTHORIZATION') is the honest ceiling, never a fabricated real-looking document.
- DescribeLocations/DescribeRouterConfiguration (static_data.go's seedLocations/seedRouterTypes): AWS's true, currently-accurate Direct Connect colocation-facility and router-vendor/OS catalogs are proprietary, change over time, and are not distributed anywhere in the SDK -- an emulator cannot maintain a live-accurate copy. The small, explicitly-labeled seed lists already implemented are the honest ceiling, not a claim to be AWS's authoritative catalog.
- DescribeCustomerMetadata (CustomerAgreement/NniPartnerType): reflects real signed legal agreements and NNI partner-tier status between a specific customer and AWS/partners. No implementation can honestly derive agreement content that doesn't exist. The empty Agreements list + NniPartnerType 'nonPartner' default already implemented is the honest ceiling.
- MACsec traffic encryption (as opposed to key-association STATE, which IS implemented): requires physical port-level encryption hardware in real AWS. Simulating MacSecKeys/associating-associated-disassociating-disassociated state and EncryptionMode enforcement is honest bookkeeping; actually encrypting traffic is meaningless in an emulator with no traffic to encrypt.
- BGP peering / router-config / route-exchange realism, including ListVirtualInterfaceRoutes' always-empty Routes list (2026-08-05, SDK v1.44.1): real BGP session establishment and route exchange happen between AWS and the customer's own physical router over the physical link. bgp.go's BGPPeer records track configuration only (ASN, auth key, address family) and STATE transitions (BgpPeerState/BGPStatus, including StartBgpFailoverTest forcing peers down) -- both already implemented and the honest ceiling; no real routing protocol can run here, so ListVirtualInterfaceRoutes correctly validates the VIF exists and returns an honest empty list rather than fabricating CIDRs/AS-paths.
- Partner/reseller billing distinction (AllocateConnectionOnInterconnect/AllocateHostedConnection/AssociateHostedConnection/DescribeHostedConnections/DescribeConnectionsOnInterconnect): a hosted connection is billed differently from and owned separately by the interconnect owner in real AWS. No billing/settlement system exists anywhere in this repo to simulate that distinction meaningfully -- these ops are real state bookkeeping (who owns what, which state), already implemented, and should not claim to be more.
- AssociatedCoreNetwork (Cloud WAN core-network attachment on DirectConnectGatewayAssociation): no services/cloudwan or equivalent backend exists anywhere in this repo to resolve a core-network id against. The field correctly stays nil/unpopulated rather than fabricating a Cloud WAN integration that has nothing real to attach to.
Deferred Items
- Per-op AWS-published tag-count/rate-limiter quota numbers for TooManyTagsException/LimitExceededException: no such numbers exist in the SDK to derive; this pass uses a defensible, documented 50-tag cap (maxTagsPerResource, errors.go) and a real, derivable LAG-capacity trigger for LimitExceededException (see AssociateConnectionWithLag), but does not fabricate a VIF-rate-limiter quota number for the 6 Allocate*/Create*VirtualInterface ops' own LimitExceededException (wired and error-mapped correctly, just not reachable via a fabricated trigger).
Audited Operations
73 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
AcceptDirectConnectGatewayAssociationProposal | ok | ok | ok | ok |
AllocateConnectionOnInterconnect | ok | ok | ok | ok |
AllocateHostedConnection | ok | ok | ok | ok |
AllocatePrivateVirtualInterface | ok | ok | ok | ok |
AllocatePublicVirtualInterface | ok | ok | ok | ok |
AllocateTransitVirtualInterface | ok | ok | ok | ok |
AssociateConnectionWithLag | ok | ok | ok | ok |
AssociateHostedConnection | ok | ok | ok | ok |
AssociateMacSecKey | ok | ok | ok | ok |
AssociateVirtualInterface | ok | ok | ok | ok |
ConfirmConnection | ok | ok | ok | ok |
ConfirmCustomerAgreement | ok | ok | ok | ok |
ConfirmPrivateVirtualInterface | ok | ok | ok | ok |
ConfirmPublicVirtualInterface | ok | ok | ok | ok |
ConfirmTransitVirtualInterface | ok | ok | ok | ok |
CreateBGPPeer | ok | ok | ok | ok |
CreateConnection | ok | ok | ok | ok |
CreateDirectConnectGateway | ok | ok | ok | ok |
CreateDirectConnectGatewayAssociation | ok | ok | ok | ok |
CreateDirectConnectGatewayAssociationProposal | ok | ok | ok | ok |
CreateInterconnect | ok | ok | ok | ok |
CreateLag | ok | ok | ok | ok |
CreatePrivateVirtualInterface | ok | ok | ok | ok |
CreatePublicVirtualInterface | ok | ok | ok | ok |
CreateTransitVirtualInterface | ok | ok | ok | ok |
DeleteBGPPeer | ok | ok | ok | ok |
DeleteConnection | ok | ok | ok | ok |
DeleteDirectConnectGateway | ok | ok | ok | ok |
DeleteDirectConnectGatewayAssociation | ok | ok | ok | ok |
DeleteDirectConnectGatewayAssociationProposal | ok | ok | ok | ok |
DeleteInterconnect | ok | ok | ok | ok |
DeleteLag | ok | ok | ok | ok |
DeleteVirtualInterface | ok | ok | ok | ok |
DescribeConnectionLoa | ok | ok | ok | ok |
DescribeConnections | ok | ok | ok | ok |
DescribeConnectionsOnInterconnect | ok | ok | ok | ok |
DescribeCustomerMetadata | ok | ok | ok | ok |
DescribeDirectConnectGatewayAssociationProposals | ok | ok | ok | ok |
DescribeDirectConnectGatewayAssociations | ok | ok | ok | ok |
DescribeDirectConnectGatewayAttachments | ok | ok | ok | ok |
DescribeDirectConnectGateways | ok | ok | ok | ok |
DescribeHostedConnections | ok | ok | ok | ok |
DescribeInterconnectLoa | ok | ok | ok | ok |
DescribeInterconnects | ok | ok | ok | ok |
DescribeLags | ok | ok | ok | ok |
DescribeLoa | ok | ok | ok | ok |
DescribeLocations | ok | ok | ok | ok |
DescribeRouterConfiguration | ok | ok | ok | ok |
DescribeTags | ok | ok | ok | ok |
DescribeVirtualGateways | ok | ok | ok | ok |
DescribeVirtualInterfaces | ok | ok | ok | ok |
DisassociateConnectionFromLag | ok | ok | ok | ok |
DisassociateMacSecKey | ok | ok | ok | ok |
ListVirtualInterfaceRoutes | ok | ok | partial | n/a |
ListVirtualInterfaceTestHistory | ok | ok | ok | ok |
StartBgpFailoverTest | ok | ok | ok | ok |
StopBgpFailoverTest | ok | ok | ok | ok |
TagResource | ok | ok | ok | ok |
UntagResource | ok | ok | ok | ok |
UpdateConnection | ok | ok | ok | ok |
UpdateDirectConnectGateway | ok | ok | ok | ok |
UpdateDirectConnectGatewayAssociation | ok | ok | ok | ok |
CreateResiliencyGroup | ok | ok | ok | ok |
GetResiliencyGroup | ok | ok | ok | ok |
ListResiliencyGroups | ok | ok | ok | ok |
UpdateResiliencyGroup | ok | ok | ok | ok |
DeleteResiliencyGroup | ok | ok | ok | ok |
AssociateConnectionsToResiliencyGroup | ok | ok | ok | ok |
DisassociateConnectionsFromResiliencyGroup | ok | ok | ok | ok |
ListResiliencyGroupAssociations | ok | ok | ok | ok |
UpdateConnectionsBillingMode | ok | ok | ok | ok |
UpdateLag | ok | ok | ok | ok |
UpdateVirtualInterfaceAttributes | ok | ok | ok | ok |
