// GENERATED FILE — do not edit. // Service: directconnect (5 functions) import type { MockCtx } from "../helpers.js"; import * as h from "../helpers.js"; import * as T_directconnect from "../types/directconnect.js"; // aws:directconnect/getConnection:getConnection export function getConnection(ctx: MockCtx): Record { const depth = 0; const i: Record = (ctx.inputs ?? {}) as any; const out: Record = {}; out.arn = h.arn(ctx); out.awsDevice = ""; out.bandwidth = ""; out.id = h.id(ctx, "id"); out.location = ""; out.name = (i.name !== undefined ? i.name : ctx.name); out.ownerAccountId = h.id(ctx, "ownerAccountId"); out.partnerName = ""; out.providerName = ""; out.state = "active"; out.tags = (i.tags !== undefined ? i.tags : {}); out.vlanId = 0; return out; } // aws:directconnect/getGateway:getGateway export function getGateway(ctx: MockCtx): Record { const depth = 0; const i: Record = (ctx.inputs ?? {}) as any; const out: Record = {}; out.amazonSideAsn = ""; out.arn = h.arn(ctx); out.id = h.id(ctx, "id"); out.name = (i.name !== undefined ? i.name : ctx.name); out.ownerAccountId = h.id(ctx, "ownerAccountId"); return out; } // aws:directconnect/getLocation:getLocation export function getLocation(ctx: MockCtx): Record { const depth = 0; const i: Record = (ctx.inputs ?? {}) as any; const out: Record = {}; out.availableMacsecPortSpeeds = (depth > 4 ? [] : [""]); out.availablePortSpeeds = (depth > 4 ? [] : [""]); out.availableProviders = (depth > 4 ? [] : [""]); out.id = h.id(ctx, "id"); out.locationCode = (i.locationCode !== undefined ? i.locationCode : ""); out.locationName = ""; return out; } // aws:directconnect/getLocations:getLocations export function getLocations(ctx: MockCtx): Record { const depth = 0; const i: Record = (ctx.inputs ?? {}) as any; const out: Record = {}; out.id = h.id(ctx, "id"); out.locationCodes = (depth > 4 ? [] : [""]); return out; } // aws:directconnect/getRouterConfiguration:getRouterConfiguration export function getRouterConfiguration(ctx: MockCtx): Record { const depth = 0; const i: Record = (ctx.inputs ?? {}) as any; const out: Record = {}; out.customerRouterConfig = ""; out.id = h.id(ctx, "id"); out.routerTypeIdentifier = (i.routerTypeIdentifier !== undefined ? i.routerTypeIdentifier : ""); out.routers = (depth > 4 ? [] : [(depth > 4 ? {} : T_directconnect.directconnect_getRouterConfigurationRouter(ctx, depth + 1))]); out.virtualInterfaceId = (i.virtualInterfaceId !== undefined ? i.virtualInterfaceId : h.id(ctx, "virtualInterfaceId")); out.virtualInterfaceName = ""; return out; }