Skip to content

VpcServiceRef

Source: src/Cloudflare/VpcService/VpcServiceRef.ts

Reference an existing Cloudflare VPC service without managing its lifecycle.

Reference by ID

const service = yield* Cloudflare.VpcServiceRef({
serviceId: "123e4567-e89b-12d3-a456-426614174000",
});

Reference by name

const service = yield* Cloudflare.VpcServiceRef({
name: "my-vpc-service",
});