UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

116 lines 3.73 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Metadata about any AWS Route53 Hosted Zones associated with the Network. */ export type HostedZones = { /** * The number of AWS Route53 Hosted Zones associated with the Network. */ count: number; }; /** * Metadata about any AWS Route53 Hosted Zones associated with the Network. */ export type PeeringConnections = { /** * The number of AWS Route53 Hosted Zones associated with the Network. */ count: number; }; /** * Metadata about any projects associated with the Network. */ export type Projects = { count: number; ids: Array<string>; }; /** * The status of the Network. */ export declare const Status: { readonly CreateInProgress: "create_in_progress"; readonly DeleteInProgress: "delete_in_progress"; readonly Error: "error"; readonly Ready: "ready"; }; /** * The status of the Network. */ export type Status = ClosedEnum<typeof Status>; export type Network = { /** * The ID of the AWS Account in which the network exists. */ awsAccountId: string; /** * The IDs of the AWS Availability Zones in which the network exists, if specified during creation. */ awsAvailabilityZoneIds?: Array<string> | undefined; /** * The AWS Region in which the network exists. */ awsRegion: string; /** * The CIDR range of the Network. */ cidr: string; /** * The date at which the Network was created, represented as a UNIX timestamp since EPOCH. */ createdAt: number; egressIpAddresses?: Array<string> | undefined; /** * Metadata about any AWS Route53 Hosted Zones associated with the Network. */ hostedZones?: HostedZones | undefined; /** * The unique identifier of the Network. */ id: string; /** * The name of the network. */ name: string; /** * Metadata about any AWS Route53 Hosted Zones associated with the Network. */ peeringConnections?: PeeringConnections | undefined; /** * Metadata about any projects associated with the Network. */ projects?: Projects | undefined; /** * The Vercel region in which the Network exists. */ region?: string | undefined; /** * The status of the Network. */ status: Status; /** * The unique identifier of the Team that owns the Network. */ teamId: string; /** * The ID of the VPC which hosts the network. */ vpcId?: string | undefined; }; /** @internal */ export declare const HostedZones$inboundSchema: z.ZodType<HostedZones, z.ZodTypeDef, unknown>; export declare function hostedZonesFromJSON(jsonString: string): SafeParseResult<HostedZones, SDKValidationError>; /** @internal */ export declare const PeeringConnections$inboundSchema: z.ZodType<PeeringConnections, z.ZodTypeDef, unknown>; export declare function peeringConnectionsFromJSON(jsonString: string): SafeParseResult<PeeringConnections, SDKValidationError>; /** @internal */ export declare const Projects$inboundSchema: z.ZodType<Projects, z.ZodTypeDef, unknown>; export declare function projectsFromJSON(jsonString: string): SafeParseResult<Projects, SDKValidationError>; /** @internal */ export declare const Status$inboundSchema: z.ZodNativeEnum<typeof Status>; /** @internal */ export declare const Network$inboundSchema: z.ZodType<Network, z.ZodTypeDef, unknown>; export declare function networkFromJSON(jsonString: string): SafeParseResult<Network, SDKValidationError>; //# sourceMappingURL=network.d.ts.map