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 + var ErrNilAppContext = errors.New("AppContext is required") + type AWSLocation struct + SubnetArn string + Zone string + type Attachment struct + AttachmentID string + AttachmentPolicyRuleNumber int32 + AttachmentType string + ConnectOptions *ConnectAttachmentOptions + CoreNetworkArn string + CoreNetworkID string + CreatedAt time.Time + DirectConnectGatewayArn string + EdgeLocation string + EdgeLocations []string + LastModificationErrors []AttachmentError + NetworkFunctionGroupName string + OwnerAccountID string + PeeringID string + ResourceArn string + RoutingPolicyLabel string + SegmentName string + State string + SubnetArns []string + Tags *tags.Tags + TransitGatewayRouteTableArn string + TransportAttachmentID string + UpdatedAt time.Time + VpcArn string + VpcOptions *VpcOptions + VpnConnectionArn string + type AttachmentError struct + Code string + Message string + RequestID string + ResourceArn string + type AttachmentKind string + type AttachmentRoutingPolicyLabel struct + AttachmentID string + CoreNetworkID string + RoutingPolicyLabel string + type Bandwidth struct + DownloadSpeed int32 + UploadSpeed int32 + type BgpOptions struct + PeerAsn int64 + type ConnectAttachmentOptions struct + Protocol string + type ConnectPeer struct + Configuration *ConnectPeerConfiguration + ConnectAttachmentID string + ConnectPeerID string + CoreNetworkID string + CreatedAt time.Time + EdgeLocation string + State string + SubnetArn string + Tags *tags.Tags + type ConnectPeerAssociation struct + ConnectPeerID string + DeviceID string + GlobalNetworkID string + LinkID string + State string + type ConnectPeerBgpConfiguration struct + CoreNetworkAddress string + CoreNetworkAsn int64 + PeerAddress string + PeerAsn int64 + type ConnectPeerConfiguration struct + BgpConfigurations []ConnectPeerBgpConfiguration + CoreNetworkAddress string + InsideCidrBlocks []string + PeerAddress string + Protocol string + type Connection struct + ConnectedDeviceID string + ConnectedLinkID string + ConnectionArn string + ConnectionID string + CreatedAt time.Time + Description string + DeviceID string + GlobalNetworkID string + LinkID string + State string + Tags *tags.Tags + type CoreNetwork struct + CoreNetworkArn string + CoreNetworkID string + CreatedAt time.Time + Description string + GlobalNetworkID string + State string + Tags *tags.Tags + type CoreNetworkPolicyError struct + ErrorCode string + Message string + Path string + type CoreNetworkPolicyHistory struct + LatestID int32 + LiveID int32 + NextID int32 + Versions map[int32]*CoreNetworkPolicyVersion + type CoreNetworkPolicyVersion struct + ChangeSetState string + CoreNetworkID string + CreatedAt time.Time + Description string + PolicyDocument string + PolicyVersionID int32 + type CoreNetworkPrefixListAssociation struct + CoreNetworkID string + PrefixListAlias string + PrefixListArn string + type CustomerGatewayAssociation struct + CustomerGatewayArn string + DeviceID string + GlobalNetworkID string + LinkID string + State string + type Device struct + AWSLocation *AWSLocation + CreatedAt time.Time + Description string + DeviceArn string + DeviceID string + GlobalNetworkID string + Location *Location + Model string + SerialNumber string + SiteID string + State string + Tags *tags.Tags + Type string + Vendor string + type GlobalNetwork struct + CreatedAt time.Time + Description string + GlobalNetworkArn string + GlobalNetworkID string + State string + Tags *tags.Tags + type Handler struct + AccountID string + Backend *InMemoryBackend + Region string + 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) Shutdown(_ context.Context) + func (h *Handler) Snapshot(ctx context.Context) []byte + type InMemoryBackend struct + func NewInMemoryBackend(ctx context.Context, accountID, region string) *InMemoryBackend + func (b *InMemoryBackend) AcceptAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) AccountID() string + func (b *InMemoryBackend) AssociateConnectPeer(globalNetworkID, connectPeerID, deviceID, linkID string) (*ConnectPeerAssociation, error) + func (b *InMemoryBackend) AssociateCustomerGateway(globalNetworkID, customerGatewayArn, deviceID, linkID string) (*CustomerGatewayAssociation, error) + func (b *InMemoryBackend) AssociateLink(globalNetworkID, deviceID, linkID string) (*LinkAssociation, error) + func (b *InMemoryBackend) AssociateTransitGatewayConnectPeer(globalNetworkID, deviceID, transitGatewayConnectPeerArn, linkID string) (*TransitGatewayConnectPeerAssociation, error) + func (b *InMemoryBackend) Close() + func (b *InMemoryBackend) CreateConnectAttachment(coreNetworkID, edgeLocation, transportAttachmentID, protocol, ... string, ...) (*Attachment, error) + func (b *InMemoryBackend) CreateConnectPeer(connectAttachmentID, peerAddress string, bgp *BgpOptions, ...) (*ConnectPeer, error) + func (b *InMemoryBackend) CreateConnection(...) (*Connection, error) + func (b *InMemoryBackend) CreateCoreNetwork(globalNetworkID, description, policyDocument string, tagMap map[string]string) (*CoreNetwork, error) + func (b *InMemoryBackend) CreateCoreNetworkPrefixListAssociation(coreNetworkID, prefixListAlias, prefixListArn string) (*CoreNetworkPrefixListAssociation, error) + func (b *InMemoryBackend) CreateDevice(globalNetworkID string, awsLoc *AWSLocation, loc *Location, ...) (*Device, error) + func (b *InMemoryBackend) CreateDirectConnectGatewayAttachment(coreNetworkID, directConnectGatewayArn string, edgeLocations []string, ...) (*Attachment, error) + func (b *InMemoryBackend) CreateGlobalNetwork(description string, tagMap map[string]string) *GlobalNetwork + func (b *InMemoryBackend) CreateLink(globalNetworkID, siteID string, bw *Bandwidth, ...) (*Link, error) + func (b *InMemoryBackend) CreateSite(globalNetworkID, description string, loc *Location, tagMap map[string]string) (*Site, error) + func (b *InMemoryBackend) CreateSiteToSiteVpnAttachment(coreNetworkID, vpnConnectionArn, routingPolicyLabel string, ...) (*Attachment, error) + func (b *InMemoryBackend) CreateTransitGatewayPeering(coreNetworkID, transitGatewayArn string, tagMap map[string]string) (*Peering, error) + func (b *InMemoryBackend) CreateTransitGatewayRouteTableAttachment(peeringID, transitGatewayRouteTableArn, routingPolicyLabel string, ...) (*Attachment, error) + func (b *InMemoryBackend) CreateVpcAttachment(coreNetworkID, vpcArn string, subnetArns []string, opts *VpcOptions, ...) (*Attachment, error) + func (b *InMemoryBackend) DeleteAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) DeleteConnectPeer(id string) (*ConnectPeer, error) + func (b *InMemoryBackend) DeleteConnection(globalNetworkID, id string) (*Connection, error) + func (b *InMemoryBackend) DeleteCoreNetwork(id string) (*CoreNetwork, error) + func (b *InMemoryBackend) DeleteCoreNetworkPolicyVersion(coreNetworkID string, policyVersionID int32) (*CoreNetworkPolicyVersion, string, error) + func (b *InMemoryBackend) DeleteCoreNetworkPrefixListAssociation(coreNetworkID, prefixListArn string) (*CoreNetworkPrefixListAssociation, error) + func (b *InMemoryBackend) DeleteDevice(globalNetworkID, id string) (*Device, error) + func (b *InMemoryBackend) DeleteGlobalNetwork(id string) (*GlobalNetwork, error) + func (b *InMemoryBackend) DeleteLink(globalNetworkID, id string) (*Link, error) + func (b *InMemoryBackend) DeletePeering(id string) (*Peering, error) + func (b *InMemoryBackend) DeleteResourcePolicy(resourceArn string) error + func (b *InMemoryBackend) DeleteSite(globalNetworkID, id string) (*Site, error) + func (b *InMemoryBackend) DeregisterTransitGateway(globalNetworkID, transitGatewayArn string) (*TransitGatewayRegistration, error) + func (b *InMemoryBackend) DescribeGlobalNetworks(ids []string, token string, limit int) (page.Page[*GlobalNetwork], error) + func (b *InMemoryBackend) DisassociateConnectPeer(globalNetworkID, connectPeerID string) (*ConnectPeerAssociation, error) + func (b *InMemoryBackend) DisassociateCustomerGateway(globalNetworkID, customerGatewayArn string) (*CustomerGatewayAssociation, error) + func (b *InMemoryBackend) DisassociateLink(globalNetworkID, deviceID, linkID string) (*LinkAssociation, error) + func (b *InMemoryBackend) DisassociateTransitGatewayConnectPeer(globalNetworkID, transitGatewayConnectPeerArn string) (*TransitGatewayConnectPeerAssociation, error) + func (b *InMemoryBackend) ExecuteCoreNetworkChangeSet(coreNetworkID string, policyVersionID int32) error + func (b *InMemoryBackend) GetConnectAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) GetConnectPeer(id string) (*ConnectPeer, error) + func (b *InMemoryBackend) GetConnectPeerAssociations(globalNetworkID string, ids []string, token string, limit int) (page.Page[*ConnectPeerAssociation], error) + func (b *InMemoryBackend) GetConnections(globalNetworkID string, ids []string, deviceID, token string, limit int) (page.Page[*Connection], error) + func (b *InMemoryBackend) GetCoreNetwork(id string) (*CoreNetwork, error) + func (b *InMemoryBackend) GetCoreNetworkChangeEvents(coreNetworkID string, policyVersionID int32) error + func (b *InMemoryBackend) GetCoreNetworkChangeSet(coreNetworkID string, policyVersionID int32) error + func (b *InMemoryBackend) GetCoreNetworkPolicy(coreNetworkID, alias string, policyVersionID int32) (*CoreNetworkPolicyVersion, string, error) + func (b *InMemoryBackend) GetCustomerGatewayAssociations(globalNetworkID string, arns []string, token string, limit int) (page.Page[*CustomerGatewayAssociation], error) + func (b *InMemoryBackend) GetDevices(globalNetworkID string, ids []string, siteID, token string, limit int) (page.Page[*Device], error) + func (b *InMemoryBackend) GetDirectConnectGatewayAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) GetLinkAssociations(globalNetworkID, deviceID, linkID, token string, limit int) (page.Page[*LinkAssociation], error) + func (b *InMemoryBackend) GetLinks(globalNetworkID string, ids []string, provider, siteID, linkType, token string, ...) (page.Page[*Link], error) + func (b *InMemoryBackend) GetNetworkResourceCounts(globalNetworkID, resourceType string) map[string]int32 + func (b *InMemoryBackend) GetNetworkResourceRelationships(globalNetworkID string, filter networkResourceFilter, token string, limit int) (page.Page[networkRelationship], error) + func (b *InMemoryBackend) GetNetworkResources(globalNetworkID string, filter networkResourceFilter, token string, limit int) (page.Page[networkResourceItem], error) + func (b *InMemoryBackend) GetNetworkRoutes(globalNetworkID, transitGatewayRouteTableArn string, ...) (string, string, error) + func (b *InMemoryBackend) GetNetworkTelemetry(globalNetworkID string, filter networkResourceFilter, token string, limit int) (page.Page[networkTelemetryWire], error) + func (b *InMemoryBackend) GetResourcePolicy(resourceArn string) string + func (b *InMemoryBackend) GetRouteAnalysis(globalNetworkID, id string) (*RouteAnalysis, error) + func (b *InMemoryBackend) GetSiteToSiteVpnAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) GetSites(globalNetworkID string, ids []string, token string, limit int) (page.Page[*Site], error) + func (b *InMemoryBackend) GetTransitGatewayConnectPeerAssociations(globalNetworkID string, arns []string, token string, limit int) (page.Page[*TransitGatewayConnectPeerAssociation], error) + func (b *InMemoryBackend) GetTransitGatewayPeering(id string) (*Peering, error) + func (b *InMemoryBackend) GetTransitGatewayRegistrations(globalNetworkID string, arns []string, token string, limit int) (page.Page[*TransitGatewayRegistration], error) + func (b *InMemoryBackend) GetTransitGatewayRouteTableAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) GetVpcAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) ListAttachmentRoutingPolicyAssociations(coreNetworkID, attachmentID, token string, limit int) (page.Page[*AttachmentRoutingPolicyLabel], error) + func (b *InMemoryBackend) ListAttachments(attachmentType, coreNetworkID, edgeLocation, state, token string, limit int) page.Page[*Attachment] + func (b *InMemoryBackend) ListConnectPeers(connectAttachmentID, coreNetworkID, token string, limit int) (page.Page[*ConnectPeer], error) + func (b *InMemoryBackend) ListCoreNetworkPolicyVersions(coreNetworkID, token string, limit int) (page.Page[*CoreNetworkPolicyVersion], map[int32]string, error) + func (b *InMemoryBackend) ListCoreNetworkPrefixListAssociations(coreNetworkID, prefixListArn, token string, limit int) (page.Page[*CoreNetworkPrefixListAssociation], error) + func (b *InMemoryBackend) ListCoreNetworkRoutingInformation(coreNetworkID, edgeLocation, segmentName string) error + func (b *InMemoryBackend) ListCoreNetworks(token string, limit int) page.Page[*CoreNetwork] + func (b *InMemoryBackend) ListOrganizationServiceAccessStatus() *organizationStatus + func (b *InMemoryBackend) ListPeerings(coreNetworkID, edgeLocation, peeringType, state, token string, limit int) page.Page[*Peering] + func (b *InMemoryBackend) ListTagsForResource(resourceArn string) (map[string]string, error) + func (b *InMemoryBackend) PutAttachmentRoutingPolicyLabel(coreNetworkID, attachmentID, label string) (*AttachmentRoutingPolicyLabel, error) + func (b *InMemoryBackend) PutCoreNetworkPolicy(coreNetworkID, policyDocument, description string, latestVersionID int32) (*CoreNetworkPolicyHistory, *CoreNetworkPolicyVersion, error) + func (b *InMemoryBackend) PutResourcePolicy(resourceArn, policyDocument string) error + func (b *InMemoryBackend) Region() string + func (b *InMemoryBackend) RegisterTransitGateway(globalNetworkID, transitGatewayArn string) (*TransitGatewayRegistration, error) + func (b *InMemoryBackend) RejectAttachment(id string) (*Attachment, error) + func (b *InMemoryBackend) RemoveAttachmentRoutingPolicyLabel(coreNetworkID, attachmentID string) (*AttachmentRoutingPolicyLabel, error) + func (b *InMemoryBackend) Reset() + func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error + func (b *InMemoryBackend) RestoreCoreNetworkPolicyVersion(coreNetworkID string, policyVersionID int32) (*CoreNetworkPolicyVersion, error) + func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte + func (b *InMemoryBackend) StartOrganizationServiceAccessUpdate(action string) *organizationStatus + func (b *InMemoryBackend) StartRouteAnalysis(globalNetworkID string, source, destination *RouteAnalysisEndpoint, ...) (*RouteAnalysis, error) + func (b *InMemoryBackend) TagResource(resourceArn string, tagMap map[string]string) error + func (b *InMemoryBackend) TaggedResources() []TaggedResource + func (b *InMemoryBackend) UntagResource(resourceArn string, tagKeys []string) error + func (b *InMemoryBackend) UpdateConnection(globalNetworkID, id, connectedLinkID, description, linkID string) (*Connection, error) + func (b *InMemoryBackend) UpdateCoreNetwork(id, description string) (*CoreNetwork, error) + func (b *InMemoryBackend) UpdateDevice(globalNetworkID, id string, awsLoc *AWSLocation, loc *Location, ...) (*Device, error) + func (b *InMemoryBackend) UpdateDirectConnectGatewayAttachment(id string, edgeLocations []string) (*Attachment, error) + func (b *InMemoryBackend) UpdateGlobalNetwork(id, description string) (*GlobalNetwork, error) + func (b *InMemoryBackend) UpdateLink(globalNetworkID, id string, bw *Bandwidth, ...) (*Link, error) + func (b *InMemoryBackend) UpdateNetworkResourceMetadata(globalNetworkID, resourceArn string, metadata map[string]string) (map[string]string, error) + func (b *InMemoryBackend) UpdateSite(globalNetworkID, id, description string, loc *Location) (*Site, error) + func (b *InMemoryBackend) UpdateVpcAttachment(id string, addSubnetArns, removeSubnetArns []string, opts *VpcOptions) (*Attachment, error) + type Link struct + Bandwidth *Bandwidth + CreatedAt time.Time + Description string + GlobalNetworkID string + LinkArn string + LinkID string + Provider string + SiteID string + State string + Tags *tags.Tags + Type string + type LinkAssociation struct + DeviceID string + GlobalNetworkID string + LinkAssociationState string + LinkID string + type Location struct + Address string + Latitude string + Longitude string + type Peering struct + CoreNetworkArn string + CoreNetworkID string + CreatedAt time.Time + EdgeLocation string + LastModificationErrors []PeeringError + OwnerAccountID string + PeeringID string + PeeringType string + ResourceArn string + State string + Tags *tags.Tags + TransitGatewayArn string + TransitGatewayPeeringAttachmentID string + type PeeringError struct + Code string + Message string + RequestID string + type Provider struct + func (p *Provider) Init(ctx *service.AppContext) (service.Registerable, error) + func (p *Provider) Name() string + type RouteAnalysis struct + Destination *RouteAnalysisEndpoint + ForwardPath *RouteAnalysisPath + GlobalNetworkID string + IncludeReturnPath bool + OwnerAccountID string + ReturnPath *RouteAnalysisPath + RouteAnalysisID string + Source *RouteAnalysisEndpoint + Status string + type RouteAnalysisCompletion struct + ReasonCode string + ResultCode string + type RouteAnalysisEndpoint struct + IPAddress string + TransitGatewayArn string + TransitGatewayAttachmentArn string + type RouteAnalysisPath struct + CompletionStatus *RouteAnalysisCompletion + type Site struct + CreatedAt time.Time + Description string + GlobalNetworkID string + Location *Location + SiteArn string + SiteID string + State string + Tags *tags.Tags + type TaggedResource struct + ARN string + Tags map[string]string + type TransitGatewayConnectPeerAssociation struct + DeviceID string + GlobalNetworkID string + LinkID string + State string + TransitGatewayConnectPeerArn string + type TransitGatewayRegistration struct + GlobalNetworkID string + State *TransitGatewayRegistrationStateReason + TransitGatewayArn string + type TransitGatewayRegistrationStateReason struct + Code string + Message string + type VpcOptions struct + ApplianceModeSupport bool + DNSSupport bool + Ipv6Support bool + SecurityGroupReferencingSupport bool