Skip to main content

Deployment

Manages an Api Gateway V2 Deployment.

Sample code#

const api = provider.ApiGatewayV2.makeApi({
name: "my-api",
properties: () => ({}),
});
const stage = provider.ApiGatewayV2.makeStage({
name: "my-api-stage-dev",
dependencies: { api },
properties: () => ({}),
});
provider.ApiGatewayV2.makeDeployment({
name: "my-api-deployment",
dependencies: { api, stage },
properties: () => ({}),
});

Properties#

Dependencies#

Full Examples#

List#

The Deployments can be filtered with the Deployment type:

gc l -t Deployment