Versions in this module Expand all Collapse all v1 v1.3.0 Aug 3, 2026 v1.2.0 Aug 3, 2026 Changes in this version + const AddressFamilyIPv4 + const AddressFamilyIPv6 + const AssociationStateAssociated + const AssociationStateAssociating + const AssociationStateDisassociated + const AssociationStateDisassociating + const AssociationStateUpdating + const AttachmentStateAttached + const AttachmentStateAttaching + const AttachmentStateDetached + const AttachmentStateDetaching + const AttachmentTypePrivate + const AttachmentTypeTransit + const BGPPeerStateAvailable + const BGPPeerStateDeleted + const BGPPeerStateDeleting + const BGPPeerStatePending + const BGPPeerStateVerifying + const BGPStatusDown + const BGPStatusUnknown + const BGPStatusUp + const ConnectionStateAvailable + const ConnectionStateDeleted + const ConnectionStateDeleting + const ConnectionStateDown + const ConnectionStateOrdering + const ConnectionStatePending + const ConnectionStateRejected + const ConnectionStateRequested + const ConnectionStateUnknown + const EncryptionModeMustEncrypt + const EncryptionModeNoEncrypt + const EncryptionModeShouldEncrypt + const GatewayStateAvailable + const GatewayStateDeleted + const GatewayStateDeleting + const GatewayStatePending + const GatewayTypeTransitGateway + const GatewayTypeVirtualPrivateGateway + const HasLogicalRedundancyNo + const HasLogicalRedundancyUnknown + const HasLogicalRedundancyYes + const InterconnectStateAvailable + const InterconnectStateDeleted + const InterconnectStateDeleting + const InterconnectStateDown + const InterconnectStatePending + const InterconnectStateRequested + const InterconnectStateUnknown + const LagStateAvailable + const LagStateDeleted + const LagStateDeleting + const LagStateDown + const LagStatePending + const LagStateRequested + const LagStateUnknown + const LoaContentTypePdf + const MacSecStateAssociated + const MacSecStateAssociating + const MacSecStateDisassociated + const MacSecStateDisassociating + const NniPartnerTypeNonPartner + const NniPartnerTypeV1 + const NniPartnerTypeV2 + const PortEncryptionDown + const PortEncryptionUp + const ProposalStateAccepted + const ProposalStateDeleted + const ProposalStateRequested + const VifStateAvailable + const VifStateConfirming + const VifStateDeleted + const VifStateDeleting + const VifStateDown + const VifStatePending + const VifStateRejected + const VifStateTesting + const VifStateUnknown + const VifStateVerifying + const VifTypePrivate + const VifTypePublic + const VifTypeTransit + var ErrNilAppContext = errors.New("AppContext is required") + type BGPPeer struct + AddressFamily string + AmazonAddress string + AsnProvided bool + AsnValue int64 + AuthKey string + AwsDeviceV2 string + AwsLogicalDeviceID string + BgpPeerID string + BgpPeerState string + BgpStatus string + CustomerAddress string + type Connection struct + AwsDeviceV2 string + AwsLogicalDeviceID string + Bandwidth string + ConnectionID string + ConnectionName string + ConnectionState string + EncryptionMode string + HasLogicalRedundancy string + InterconnectID string + JumboFrameCapable bool + LagID string + LoaIssueTime *time.Time + Location string + MacSecCapable bool + MacSecKeys []*MacSecKey + OwnerAccount string + ParentConnectionID string + PartnerInterconnectMacSecCapable bool + PartnerName string + PortEncryptionStatus string + ProviderName string + RateLimiterStatus *RateLimiterStatus + Region string + Tags *tags.Tags + Vlan int32 + type DirectConnectGateway struct + AmazonSideAsn int64 + DirectConnectGatewayID string + DirectConnectGatewayName string + DirectConnectGatewayState string + OwnerAccount string + StateChangeError string + Tags *tags.Tags + type EC2GatewayResolver interface + ResolveTransitGateway func(id string) bool + ResolveVpnGateway func(id string) bool + VirtualGateways func() []string + type GatewayAssociation struct + AllowedPrefixes []RouteFilterPrefix + AssociationID string + AssociationState string + DirectConnectGatewayID string + DirectConnectGatewayOwnerAccount string + GatewayID string + GatewayOwnerAccount string + GatewayRegion string + GatewayType string + StateChangeError string + type GatewayAssociationProposal struct + DirectConnectGatewayID string + DirectConnectGatewayOwnerAccount string + ExistingAllowedPrefixes []RouteFilterPrefix + GatewayID string + GatewayOwnerAccount string + GatewayRegion string + GatewayType string + ProposalID string + ProposalState string + RequestedAllowedPrefixes []RouteFilterPrefix + type Handler struct + Backend *InMemoryBackend + func NewHandler(backend *InMemoryBackend) *Handler + func (h *Handler) ChaosOperations() []string + func (h *Handler) ChaosRegions() []string + func (h *Handler) ChaosServiceName() string + func (h *Handler) ExtractOperation(c *echo.Context) string + func (h *Handler) ExtractResource(c *echo.Context) string + func (h *Handler) GetSupportedOperations() []string + func (h *Handler) Handler() echo.HandlerFunc + func (h *Handler) MatchPriority() int + func (h *Handler) Name() string + func (h *Handler) Reset() + func (h *Handler) Restore(ctx context.Context, data []byte) error + func (h *Handler) RouteMatcher() service.Matcher + func (h *Handler) Snapshot(ctx context.Context) []byte + type InMemoryBackend struct + func NewInMemoryBackend(ctx context.Context, accountID, region string) *InMemoryBackend + func (b *InMemoryBackend) AcceptDirectConnectGatewayAssociationProposal(req *acceptGatewayAssociationProposalRequest) (*GatewayAssociation, error) + func (b *InMemoryBackend) AccountID() string + func (b *InMemoryBackend) AllocateConnectionOnInterconnect(req *allocateConnectionOnInterconnectRequest) (*Connection, error) + func (b *InMemoryBackend) AllocateHostedConnection(req *allocateHostedConnectionRequest) (*Connection, error) + func (b *InMemoryBackend) AllocatePrivateVirtualInterface(connectionID, ownerAccount string, n *newPrivateVifAllocationWire) (*VirtualInterface, error) + func (b *InMemoryBackend) AllocatePublicVirtualInterface(connectionID, ownerAccount string, n *newPublicVifAllocationWire) (*VirtualInterface, error) + func (b *InMemoryBackend) AllocateTransitVirtualInterface(connectionID, ownerAccount string, n *newTransitVifAllocationWire) (*VirtualInterface, error) + func (b *InMemoryBackend) AssociateConnectionWithLag(connectionID, lagID string) (*Connection, error) + func (b *InMemoryBackend) AssociateHostedConnection(req *associateHostedConnectionRequest) (*Connection, error) + func (b *InMemoryBackend) AssociateMacSecKey(req *associateMacSecKeyRequest) (string, []*MacSecKey, error) + func (b *InMemoryBackend) AssociateVirtualInterface(vifID, targetID string) (*VirtualInterface, error) + func (b *InMemoryBackend) Close() + func (b *InMemoryBackend) ConfirmConnection(connectionID string) (string, error) + func (b *InMemoryBackend) ConfirmPrivateVirtualInterface(vifID, directConnectGatewayID, virtualGatewayID string) (string, error) + func (b *InMemoryBackend) ConfirmPublicVirtualInterface(vifID string) (string, error) + func (b *InMemoryBackend) ConfirmTransitVirtualInterface(vifID, directConnectGatewayID string) (string, error) + func (b *InMemoryBackend) ConnectionARN(id string) string + func (b *InMemoryBackend) CreateBGPPeer(vifID string, n *newBGPPeerWire) (*VirtualInterface, error) + func (b *InMemoryBackend) CreateConnection(req *createConnectionRequest) (*Connection, error) + func (b *InMemoryBackend) CreateDirectConnectGateway(req *createDirectConnectGatewayRequest) (*DirectConnectGateway, error) + func (b *InMemoryBackend) CreateDirectConnectGatewayAssociation(req *createGatewayAssociationRequest) (*GatewayAssociation, error) + func (b *InMemoryBackend) CreateDirectConnectGatewayAssociationProposal(req *createGatewayAssociationProposalRequest) (*GatewayAssociationProposal, error) + func (b *InMemoryBackend) CreateInterconnect(req *createInterconnectRequest) (*Interconnect, error) + func (b *InMemoryBackend) CreateLag(req *createLagRequest) (*Lag, error) + func (b *InMemoryBackend) CreatePrivateVirtualInterface(connectionID string, n *newPrivateVifWire) (*VirtualInterface, error) + func (b *InMemoryBackend) CreatePublicVirtualInterface(connectionID string, n *newPublicVifWire) (*VirtualInterface, error) + func (b *InMemoryBackend) CreateTransitVirtualInterface(connectionID string, n *newTransitVifWire) (*VirtualInterface, error) + func (b *InMemoryBackend) DeleteBGPPeer(req *deleteBGPPeerRequest) (*VirtualInterface, error) + func (b *InMemoryBackend) DeleteConnection(connectionID string) (*Connection, error) + func (b *InMemoryBackend) DeleteDirectConnectGateway(gatewayID string) (*DirectConnectGateway, error) + func (b *InMemoryBackend) DeleteDirectConnectGatewayAssociation(req *deleteGatewayAssociationRequest) (*GatewayAssociation, error) + func (b *InMemoryBackend) DeleteDirectConnectGatewayAssociationProposal(proposalID string) (*GatewayAssociationProposal, error) + func (b *InMemoryBackend) DeleteInterconnect(interconnectID string) (string, error) + func (b *InMemoryBackend) DeleteLag(lagID string) (*Lag, error) + func (b *InMemoryBackend) DeleteVirtualInterface(vifID string) (string, error) + func (b *InMemoryBackend) DescribeConnectionLoa(connectionID string) ([]byte, error) + func (b *InMemoryBackend) DescribeConnections(connectionID string) []*Connection + func (b *InMemoryBackend) DescribeConnectionsOnInterconnect(interconnectID string) []*Connection + func (b *InMemoryBackend) DescribeCustomerMetadata() describeCustomerMetadataResponse + func (b *InMemoryBackend) DescribeDirectConnectGatewayAssociationProposals(associatedGatewayID, gatewayID, proposalID string) []*GatewayAssociationProposal + func (b *InMemoryBackend) DescribeDirectConnectGatewayAssociations(associatedGatewayID, associationID, gatewayID, virtualGatewayID string) []*GatewayAssociation + func (b *InMemoryBackend) DescribeDirectConnectGatewayAttachments(gatewayID, vifID string) []gatewayAttachmentWire + func (b *InMemoryBackend) DescribeDirectConnectGateways(gatewayID string) []*DirectConnectGateway + func (b *InMemoryBackend) DescribeHostedConnections(hostID string) []*Connection + func (b *InMemoryBackend) DescribeInterconnectLoa(interconnectID string) ([]byte, error) + func (b *InMemoryBackend) DescribeInterconnects(interconnectID string) []*Interconnect + func (b *InMemoryBackend) DescribeLags(lagID string) []*Lag + func (b *InMemoryBackend) DescribeLoa(connectionID string) ([]byte, error) + func (b *InMemoryBackend) DescribeLocations() []locationWire + func (b *InMemoryBackend) DescribeRouterConfiguration(vifID, routerTypeIdentifier string) (*routerConfigurationResponse, error) + func (b *InMemoryBackend) DescribeTags(resourceArns []string) []resourceTagWire + func (b *InMemoryBackend) DescribeVirtualGateways() []VirtualGatewayInfo + func (b *InMemoryBackend) DescribeVirtualInterfaces(connectionID, vifID string) []*VirtualInterface + func (b *InMemoryBackend) DisassociateConnectionFromLag(connectionID, lagID string) (*Connection, error) + func (b *InMemoryBackend) DisassociateMacSecKey(connectionID, secretARN string) (string, []*MacSecKey, error) + func (b *InMemoryBackend) GatewayARN(id string) string + func (b *InMemoryBackend) GatewayAmazonSideAsn(gatewayID string) *int64 + func (b *InMemoryBackend) InterconnectARN(id string) string + func (b *InMemoryBackend) LagARN(id string) string + func (b *InMemoryBackend) ListVirtualInterfaceTestHistory(vifID, testID, status string, bgpPeers []string) []*VifTestHistory + func (b *InMemoryBackend) Region() string + func (b *InMemoryBackend) Reset() + func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error + func (b *InMemoryBackend) SetEC2GatewayResolver(r EC2GatewayResolver) + func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte + func (b *InMemoryBackend) StartBgpFailoverTest(vifID string, bgpPeers []string, durationMinutes *int32) (*VifTestHistory, error) + func (b *InMemoryBackend) StopBgpFailoverTest(vifID string) (*VifTestHistory, error) + func (b *InMemoryBackend) TagResource(_ context.Context, resourceArn string, newTags map[string]string) error + func (b *InMemoryBackend) TaggedResources() []TaggedEntry + func (b *InMemoryBackend) UntagResource(_ context.Context, resourceArn string, tagKeys []string) error + func (b *InMemoryBackend) UpdateConnection(req *updateConnectionRequest) (*Connection, error) + func (b *InMemoryBackend) UpdateDirectConnectGateway(gatewayID, newName string) (*DirectConnectGateway, error) + func (b *InMemoryBackend) UpdateDirectConnectGatewayAssociation(req *updateGatewayAssociationRequest) (*GatewayAssociation, error) + func (b *InMemoryBackend) UpdateLag(req *updateLagRequest) (*Lag, error) + func (b *InMemoryBackend) UpdateVirtualInterfaceAttributes(req *updateVifAttributesRequest) (*VirtualInterface, error) + func (b *InMemoryBackend) VifARN(id string) string + type Interconnect struct + AwsDeviceV2 string + AwsLogicalDeviceID string + Bandwidth string + EncryptionMode string + HasLogicalRedundancy string + InterconnectID string + InterconnectName string + InterconnectState string + JumboFrameCapable bool + LagID string + Location string + MacSecCapable bool + MacSecKeys []*MacSecKey + PortEncryptionStatus string + ProviderName string + Region string + Tags *tags.Tags + type Lag struct + AllowsHostedConnections bool + AwsDeviceV2 string + AwsLogicalDeviceID string + ConnectionsBandwidth string + EncryptionMode string + HasLogicalRedundancy string + JumboFrameCapable bool + LagID string + LagName string + LagState string + Location string + MacSecCapable bool + MacSecKeys []*MacSecKey + MinimumLinks int32 + NumberOfConnections int32 + OwnerAccount string + ProviderName string + RateLimiterStatus *RateLimiterStatus + Region string + Tags *tags.Tags + type MacSecKey struct + Ckn string + SecretARN string + StartOn string + State string + type Provider struct + func (p *Provider) Init(ctx *service.AppContext) (service.Registerable, error) + func (p *Provider) Name() string + type RateLimiterStatus struct + InUse int32 + MaxAllowed int32 + Remaining int32 + TotalBandwidth string + type RouteFilterPrefix struct + Cidr string + type TaggedEntry struct + ARN string + Tags map[string]string + type VifTestHistory struct + BgpPeers []string + EndTime *time.Time + OwnerAccount string + StartTime *time.Time + Status string + TestDurationInMinutes int32 + TestID string + VirtualInterfaceID string + type VirtualGatewayInfo struct + VirtualGatewayID string + VirtualGatewayState string + type VirtualInterface struct + AddressFamily string + AmazonAddress string + AsnProvided bool + AsnValue int64 + AuthKey string + AwsDeviceV2 string + AwsLogicalDeviceID string + BgpPeers []*BGPPeer + ConnectionID string + CustomerAddress string + CustomerRouterConfig string + DirectConnectGatewayID string + JumboFrameCapable bool + Location string + Mtu int32 + OwnerAccount string + RateLimit string + Region string + RouteFilterPrefixes []RouteFilterPrefix + SiteLinkEnabled bool + Tags *tags.Tags + VirtualGatewayID string + VirtualInterfaceID string + VirtualInterfaceName string + VirtualInterfaceState string + VirtualInterfaceType string + Vlan int32