Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/function-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ export const VPC_EGRESS_SETTINGS_OPTIONS = [
'ALL_TRAFFIC',
] as const;

/**
* List of available options for IngressSettings.
*/
export const INGRESS_SETTINGS_OPTIONS = [
'INGRESS_SETTINGS_UNSPECIFIED',
'ALLOW_ALL',
'ALLOW_INTERNAL_ONLY',
'ALLOW_INTERNAL_AND_GCLB',
] as const;

/**
* Scheduler retry options. Applies only to scheduled functions.
*/
Expand Down Expand Up @@ -111,6 +121,11 @@ export interface RuntimeOptions {
* Egress settings for VPC connector
*/
vpcConnectorEgressSettings?: typeof VPC_EGRESS_SETTINGS_OPTIONS[number];

/**
* Ingress settings
*/
ingressSettings?: typeof INGRESS_SETTINGS_OPTIONS[number];
}

export interface DeploymentOptions extends RuntimeOptions {
Expand Down