Module appengine

This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

Resources

Others

Resources

Resource Application

class Application extends CustomResource

Allows creation and management of an App Engine application.

App Engine applications cannot be deleted once they’re created; you have to delete the entire project to delete the application. This provider will report the application has been successfully deleted; this is a limitation of the provider, and will go away in the future. This provider is not able to delete App Engine applications.

Warning: All arguments including iap.oauth2_client_secret will be stored in the raw state as plain-text. Read more about sensitive data in state.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const myProject = new gcp.organizations.Project("myProject", {
    projectId: "your-project-id",
    orgId: "1234567",
});
const app = new gcp.appengine.Application("app", {
    project: myProject.projectId,
    locationId: "us-central",
});

constructor

new Application(name: string, args: ApplicationArgs, opts?: pulumi.CustomResourceOptions)

Create a Application resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApplicationState, opts?: pulumi.CustomResourceOptions): Application

Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Application

Returns true if the given object is an instance of Application. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property appId

public appId: pulumi.Output<string>;

Identifier of the app, usually {PROJECT_ID}

property authDomain

public authDomain: pulumi.Output<string>;

The domain to authenticate users with when using App Engine’s User API.

property codeBucket

public codeBucket: pulumi.Output<string>;

The GCS bucket code is being stored in for this app.

property defaultBucket

public defaultBucket: pulumi.Output<string>;

The GCS bucket content is being stored in for this app.

property defaultHostname

public defaultHostname: pulumi.Output<string>;

The default hostname for this app.

property featureSettings

public featureSettings: pulumi.Output<ApplicationFeatureSettings>;

A block of optional settings to configure specific App Engine features:

property gcrDomain

public gcrDomain: pulumi.Output<string>;

The GCR domain used for storing managed Docker images for this app.

property iap

public iap: pulumi.Output<ApplicationIap | undefined>;

Settings for enabling Cloud Identity Aware Proxy

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property locationId

public locationId: pulumi.Output<string>;

The location to serve the app from.

property name

public name: pulumi.Output<string>;

Unique name of the app, usually apps/{PROJECT_ID}

property project

public project: pulumi.Output<string>;

The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a “Permission denied” error.

property servingStatus

public servingStatus: pulumi.Output<string>;

The serving status of the app.

property urlDispatchRules

public urlDispatchRules: pulumi.Output<ApplicationUrlDispatchRule[]>;

A list of dispatch rule blocks. Each block has a domain, path, and service field.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource ApplicationUrlDispatchRules

class ApplicationUrlDispatchRules extends CustomResource

Rules to match an HTTP request and dispatch that request to a service.

To get more information about ApplicationUrlDispatchRules, see:

Example Usage - App Engine Application Url Dispatch Rules Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const bucket = new gcp.storage.Bucket("bucket", {});
const object = new gcp.storage.BucketObject("object", {
    bucket: bucket.name,
    source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
});
const adminV3 = new gcp.appengine.StandardAppVersion("adminV3", {
    versionId: "v3",
    service: "admin",
    runtime: "nodejs10",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    envVariables: {
        port: "8080",
    },
    noopOnDestroy: true,
});
const webService = new gcp.appengine.ApplicationUrlDispatchRules("webService", {dispatch_rules: [
    {
        domain: "*",
        path: "/*",
        service: "default",
    },
    {
        domain: "*",
        path: "/admin/*",
        service: adminV3.service,
    },
]});

constructor

new ApplicationUrlDispatchRules(name: string, args: ApplicationUrlDispatchRulesArgs, opts?: pulumi.CustomResourceOptions)

Create a ApplicationUrlDispatchRules resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApplicationUrlDispatchRulesState, opts?: pulumi.CustomResourceOptions): ApplicationUrlDispatchRules

Get an existing ApplicationUrlDispatchRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is ApplicationUrlDispatchRules

Returns true if the given object is an instance of ApplicationUrlDispatchRules. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property dispatchRules

public dispatchRules: pulumi.Output<ApplicationUrlDispatchRulesDispatchRule[]>;

Rules to match an HTTP request and dispatch that request to a service. Structure is documented below.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource DomainMapping

class DomainMapping extends CustomResource

A domain serving an App Engine application.

To get more information about DomainMapping, see:

Example Usage - App Engine Domain Mapping Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const domainMapping = new gcp.appengine.DomainMapping("domainMapping", {
    domainName: "verified-domain.com",
    sslSettings: {
        sslManagementType: "AUTOMATIC",
    },
});

constructor

new DomainMapping(name: string, args: DomainMappingArgs, opts?: pulumi.CustomResourceOptions)

Create a DomainMapping resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainMappingState, opts?: pulumi.CustomResourceOptions): DomainMapping

Get an existing DomainMapping resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is DomainMapping

Returns true if the given object is an instance of DomainMapping. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property domainName

public domainName: pulumi.Output<string>;

Relative name of the domain serving the application. Example: example.com.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.

property overrideStrategy

public overrideStrategy: pulumi.Output<string | undefined>;

Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property resourceRecords

public resourceRecords: pulumi.Output<DomainMappingResourceRecord[]>;

The resource records required to configure this domain mapping. These records must be added to the domain’s DNS configuration in order to serve the application via this domain mapping.

property sslSettings

public sslSettings: pulumi.Output<DomainMappingSslSettings | undefined>;

SSL configuration for this domain. If unconfigured, this domain will not serve with SSL. Structure is documented below.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource EngineSplitTraffic

class EngineSplitTraffic extends CustomResource

Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service is assigned to versions.

To get more information about ServiceSplitTraffic, see:

Example Usage - App Engine Service Split Traffic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const bucket = new gcp.storage.Bucket("bucket", {});
const object = new gcp.storage.BucketObject("object", {
    bucket: bucket.name,
    source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
});
const liveappV1 = new gcp.appengine.StandardAppVersion("liveappV1", {
    versionId: "v1",
    service: "liveapp",
    deleteServiceOnDestroy: true,
    runtime: "nodejs10",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    envVariables: {
        port: "8080",
    },
});
const liveappV2 = new gcp.appengine.StandardAppVersion("liveappV2", {
    versionId: "v2",
    service: "liveapp",
    noopOnDestroy: true,
    runtime: "nodejs10",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    envVariables: {
        port: "8080",
    },
});
const liveapp = new gcp.appengine.EngineSplitTraffic("liveapp", {
    service: liveappV2.service,
    migrateTraffic: false,
    split: {
        shardBy: "IP",
        allocations: pulumi.all([liveappV1.versionId, liveappV2.versionId]).apply(([liveappV1VersionId, liveappV2VersionId]) => {
            [liveappV1VersionId]: 0.75,
            [liveappV2VersionId]: 0.25,
        }),
    },
});

constructor

new EngineSplitTraffic(name: string, args: EngineSplitTrafficArgs, opts?: pulumi.CustomResourceOptions)

Create a EngineSplitTraffic resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EngineSplitTrafficState, opts?: pulumi.CustomResourceOptions): EngineSplitTraffic

Get an existing EngineSplitTraffic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is EngineSplitTraffic

Returns true if the given object is an instance of EngineSplitTraffic. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property migrateTraffic

public migrateTraffic: pulumi.Output<boolean | undefined>;

If set to true traffic will be migrated to this version.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property service

public service: pulumi.Output<string>;

The name of the service these settings apply to.

property split

public split: pulumi.Output<EngineSplitTrafficSplit>;

Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource FirewallRule

class FirewallRule extends CustomResource

A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.

To get more information about FirewallRule, see:

Example Usage - App Engine Firewall Rule Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const myProject = new gcp.organizations.Project("myProject", {
    projectId: "ae-project",
    orgId: "123456789",
});
const app = new gcp.appengine.Application("app", {
    project: myProject.projectId,
    locationId: "us-central",
});
const rule = new gcp.appengine.FirewallRule("rule", {
    project: app.project,
    priority: 1000,
    action: "ALLOW",
    sourceRange: "*",
});

constructor

new FirewallRule(name: string, args: FirewallRuleArgs, opts?: pulumi.CustomResourceOptions)

Create a FirewallRule resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FirewallRuleState, opts?: pulumi.CustomResourceOptions): FirewallRule

Get an existing FirewallRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is FirewallRule

Returns true if the given object is an instance of FirewallRule. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property action

public action: pulumi.Output<string>;

The action to take if this rule matches.

property description

public description: pulumi.Output<string | undefined>;

An optional string description of this rule.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property priority

public priority: pulumi.Output<number | undefined>;

A positive integer that defines the order of rule evaluation. Rules with the lowest priority are evaluated first. A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property sourceRange

public sourceRange: pulumi.Output<string>;

IP address or range, defined using CIDR notation, of requests that this rule applies to.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource FlexibleAppVersion

class FlexibleAppVersion extends CustomResource

Flexible App Version resource to create a new version of flexible GAE Application. Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while also balancing the load. Learn about the differences between the standard environment and the flexible environment at https://cloud.google.com/appengine/docs/the-appengine-environments.

Note: The App Engine flexible environment service account uses the member ID service-[YOUR_PROJECT_NUMBER]@gae-api-prod.google.com.iam.gserviceaccount.com It should have the App Engine Flexible Environment Service Agent role, which will be applied when the appengineflex.googleapis.com service is enabled.

To get more information about FlexibleAppVersion, see:

Example Usage - App Engine Flexible App Version

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const myProject = new gcp.organizations.Project("myProject", {
    projectId: "appeng-flex",
    orgId: "123456789",
    billingAccount: "000000-0000000-0000000-000000",
});
const app = new gcp.appengine.Application("app", {
    project: myProject.projectId,
    locationId: "us-central",
});
const service = new gcp.projects.Service("service", {
    project: myProject.projectId,
    service: "appengineflex.googleapis.com",
    disableDependentServices: false,
});
const gaeApi = new gcp.projects.IAMMember("gaeApi", {
    project: service.project,
    role: "roles/compute.networkUser",
    member: pulumi.interpolate`serviceAccount:service-${myProject.number}@gae-api-prod.google.com.iam.gserviceaccount.com`,
});
const bucket = new gcp.storage.Bucket("bucket", {project: myProject.projectId});
const object = new gcp.storage.BucketObject("object", {
    bucket: bucket.name,
    source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
});
const myappV1 = new gcp.appengine.FlexibleAppVersion("myappV1", {
    versionId: "v1",
    project: gaeApi.project,
    service: "default",
    runtime: "nodejs",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    liveness_check: {
        path: "/",
    },
    readiness_check: {
        path: "/",
    },
    envVariables: {
        port: "8080",
    },
    handlers: [{
        urlRegex: ".*\\/my-path\\/*",
        securityLevel: "SECURE_ALWAYS",
        login: "LOGIN_REQUIRED",
        authFailAction: "AUTH_FAIL_ACTION_REDIRECT",
        static_files: {
            path: "my-other-path",
            uploadPathRegex: ".*\\/my-path\\/*",
        },
    }],
    automatic_scaling: {
        coolDownPeriod: "120s",
        cpu_utilization: {
            targetUtilization: 0.5,
        },
    },
    noopOnDestroy: true,
});

constructor

new FlexibleAppVersion(name: string, args: FlexibleAppVersionArgs, opts?: pulumi.CustomResourceOptions)

Create a FlexibleAppVersion resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FlexibleAppVersionState, opts?: pulumi.CustomResourceOptions): FlexibleAppVersion

Get an existing FlexibleAppVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is FlexibleAppVersion

Returns true if the given object is an instance of FlexibleAppVersion. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiConfig

public apiConfig: pulumi.Output<FlexibleAppVersionApiConfig | undefined>;

Serving configuration for Google Cloud Endpoints. Structure is documented below.

property automaticScaling

public automaticScaling: pulumi.Output<FlexibleAppVersionAutomaticScaling | undefined>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property betaSettings

public betaSettings: pulumi.Output<{[key: string]: string} | undefined>;

Metadata settings that are supplied to this version to enable beta runtime features.

property defaultExpiration

public defaultExpiration: pulumi.Output<string | undefined>;

Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler does not specify its own expiration time.

property deleteServiceOnDestroy

public deleteServiceOnDestroy: pulumi.Output<boolean | undefined>;

If set to true, the service will be deleted if it is the last version.

property deployment

public deployment: pulumi.Output<FlexibleAppVersionDeployment | undefined>;

Code and application artifacts that make up this version. Structure is documented below.

property endpointsApiService

public endpointsApiService: pulumi.Output<FlexibleAppVersionEndpointsApiService | undefined>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

public entrypoint: pulumi.Output<FlexibleAppVersionEntrypoint | undefined>;

The entrypoint for the application. Structure is documented below.

property envVariables

public envVariables: pulumi.Output<{[key: string]: string} | undefined>;

Environment variables available to the application. As these are not returned in the API request, the provider will not detect any changes made outside of the config.

property handlers

public handlers: pulumi.Output<FlexibleAppVersionHandler[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property inboundServices

public inboundServices: pulumi.Output<string[] | undefined>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

public instanceClass: pulumi.Output<string | undefined>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1, B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.

property livenessCheck

public livenessCheck: pulumi.Output<FlexibleAppVersionLivenessCheck>;

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Structure is documented below.

property manualScaling

public manualScaling: pulumi.Output<FlexibleAppVersionManualScaling | undefined>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property name

public name: pulumi.Output<string>;

Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.

property network

public network: pulumi.Output<FlexibleAppVersionNetwork | undefined>;

Extra network settings Structure is documented below.

property nobuildFilesRegex

public nobuildFilesRegex: pulumi.Output<string | undefined>;

Files that match this pattern will not be built into this version. Only applicable for Go runtimes.

property noopOnDestroy

public noopOnDestroy: pulumi.Output<boolean | undefined>;

If set to true, the application version will not be deleted.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property readinessCheck

public readinessCheck: pulumi.Output<FlexibleAppVersionReadinessCheck>;

Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. Structure is documented below.

property resources

public resources: pulumi.Output<FlexibleAppVersionResources | undefined>;

Machine resources for a version. Structure is documented below.

property runtime

public runtime: pulumi.Output<string>;

Desired runtime. Example python27.

property runtimeApiVersion

public runtimeApiVersion: pulumi.Output<string>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property runtimeChannel

public runtimeChannel: pulumi.Output<string | undefined>;

The channel of the runtime to use. Only available for some runtimes.

property runtimeMainExecutablePath

public runtimeMainExecutablePath: pulumi.Output<string | undefined>;

The path or name of the app’s main executable.

property service

public service: pulumi.Output<string | undefined>;

AppEngine service resource

property servingStatus

public servingStatus: pulumi.Output<string | undefined>;

Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property versionId

public versionId: pulumi.Output<string | undefined>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.

property vpcAccessConnector

public vpcAccessConnector: pulumi.Output<FlexibleAppVersionVpcAccessConnector | undefined>;

Enables VPC connectivity for standard apps. Structure is documented below.

Resource StandardAppVersion

class StandardAppVersion extends CustomResource

Standard App Version resource to create a new version of standard GAE Application. Learn about the differences between the standard environment and the flexible environment at https://cloud.google.com/appengine/docs/the-appengine-environments. Currently supporting Zip and File Containers.

To get more information about StandardAppVersion, see:

Example Usage - App Engine Standard App Version

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const bucket = new gcp.storage.Bucket("bucket", {});
const object = new gcp.storage.BucketObject("object", {
    bucket: bucket.name,
    source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
});
const myappV1 = new gcp.appengine.StandardAppVersion("myappV1", {
    versionId: "v1",
    service: "myapp",
    runtime: "nodejs10",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    envVariables: {
        port: "8080",
    },
    automatic_scaling: {
        maxConcurrentRequests: 10,
        minIdleInstances: 1,
        maxIdleInstances: 3,
        minPendingLatency: "1s",
        maxPendingLatency: "5s",
        standard_scheduler_settings: {
            targetCpuUtilization: 0.5,
            targetThroughputUtilization: 0.75,
            minInstances: 2,
            maxInstances: 10,
        },
    },
    deleteServiceOnDestroy: true,
});
const myappV2 = new gcp.appengine.StandardAppVersion("myappV2", {
    versionId: "v2",
    service: "myapp",
    runtime: "nodejs10",
    entrypoint: {
        shell: "node ./app.js",
    },
    deployment: {
        zip: {
            sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
        },
    },
    envVariables: {
        port: "8080",
    },
    basic_scaling: {
        maxInstances: 5,
    },
    noopOnDestroy: true,
});

constructor

new StandardAppVersion(name: string, args: StandardAppVersionArgs, opts?: pulumi.CustomResourceOptions)

Create a StandardAppVersion resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StandardAppVersionState, opts?: pulumi.CustomResourceOptions): StandardAppVersion

Get an existing StandardAppVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is StandardAppVersion

Returns true if the given object is an instance of StandardAppVersion. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property automaticScaling

public automaticScaling: pulumi.Output<StandardAppVersionAutomaticScaling | undefined>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property basicScaling

public basicScaling: pulumi.Output<StandardAppVersionBasicScaling | undefined>;

Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. Structure is documented below.

property deleteServiceOnDestroy

public deleteServiceOnDestroy: pulumi.Output<boolean | undefined>;

If set to true, the service will be deleted if it is the last version.

property deployment

public deployment: pulumi.Output<StandardAppVersionDeployment>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

public entrypoint: pulumi.Output<StandardAppVersionEntrypoint | undefined>;

The entrypoint for the application. Structure is documented below.

property envVariables

public envVariables: pulumi.Output<{[key: string]: string} | undefined>;

Environment variables available to the application.

property handlers

public handlers: pulumi.Output<StandardAppVersionHandler[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property inboundServices

public inboundServices: pulumi.Output<string[] | undefined>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

public instanceClass: pulumi.Output<string>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8 Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.

property libraries

public libraries: pulumi.Output<StandardAppVersionLibrary[] | undefined>;

Configuration for third-party Python runtime libraries that are required by the application. Structure is documented below.

property manualScaling

public manualScaling: pulumi.Output<StandardAppVersionManualScaling | undefined>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property name

public name: pulumi.Output<string>;

Name of the library. Example “django”.

property noopOnDestroy

public noopOnDestroy: pulumi.Output<boolean | undefined>;

If set to true, the application version will not be deleted.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property runtime

public runtime: pulumi.Output<string>;

Desired runtime. Example python27.

property runtimeApiVersion

public runtimeApiVersion: pulumi.Output<string | undefined>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property service

public service: pulumi.Output<string | undefined>;

AppEngine service resource

property threadsafe

public threadsafe: pulumi.Output<boolean | undefined>;

Whether multiple requests can be dispatched to this version at once.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property versionId

public versionId: pulumi.Output<string | undefined>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.

Others

interface ApplicationArgs

interface ApplicationArgs

The set of arguments for constructing a Application resource.

property authDomain

authDomain?: pulumi.Input<string>;

The domain to authenticate users with when using App Engine’s User API.

property featureSettings

featureSettings?: pulumi.Input<ApplicationFeatureSettings>;

A block of optional settings to configure specific App Engine features:

property iap

iap?: pulumi.Input<ApplicationIap>;

Settings for enabling Cloud Identity Aware Proxy

property locationId

locationId: pulumi.Input<string>;

The location to serve the app from.

property project

project?: pulumi.Input<string>;

The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a “Permission denied” error.

property servingStatus

servingStatus?: pulumi.Input<string>;

The serving status of the app.

interface ApplicationState

interface ApplicationState

Input properties used for looking up and filtering Application resources.

property appId

appId?: pulumi.Input<string>;

Identifier of the app, usually {PROJECT_ID}

property authDomain

authDomain?: pulumi.Input<string>;

The domain to authenticate users with when using App Engine’s User API.

property codeBucket

codeBucket?: pulumi.Input<string>;

The GCS bucket code is being stored in for this app.

property defaultBucket

defaultBucket?: pulumi.Input<string>;

The GCS bucket content is being stored in for this app.

property defaultHostname

defaultHostname?: pulumi.Input<string>;

The default hostname for this app.

property featureSettings

featureSettings?: pulumi.Input<ApplicationFeatureSettings>;

A block of optional settings to configure specific App Engine features:

property gcrDomain

gcrDomain?: pulumi.Input<string>;

The GCR domain used for storing managed Docker images for this app.

property iap

iap?: pulumi.Input<ApplicationIap>;

Settings for enabling Cloud Identity Aware Proxy

property locationId

locationId?: pulumi.Input<string>;

The location to serve the app from.

property name

name?: pulumi.Input<string>;

Unique name of the app, usually apps/{PROJECT_ID}

property project

project?: pulumi.Input<string>;

The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a “Permission denied” error.

property servingStatus

servingStatus?: pulumi.Input<string>;

The serving status of the app.

property urlDispatchRules

urlDispatchRules?: pulumi.Input<pulumi.Input<ApplicationUrlDispatchRule>[]>;

A list of dispatch rule blocks. Each block has a domain, path, and service field.

interface ApplicationUrlDispatchRulesArgs

interface ApplicationUrlDispatchRulesArgs

The set of arguments for constructing a ApplicationUrlDispatchRules resource.

property dispatchRules

dispatchRules: pulumi.Input<pulumi.Input<ApplicationUrlDispatchRulesDispatchRule>[]>;

Rules to match an HTTP request and dispatch that request to a service. Structure is documented below.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

interface ApplicationUrlDispatchRulesState

interface ApplicationUrlDispatchRulesState

Input properties used for looking up and filtering ApplicationUrlDispatchRules resources.

property dispatchRules

dispatchRules?: pulumi.Input<pulumi.Input<ApplicationUrlDispatchRulesDispatchRule>[]>;

Rules to match an HTTP request and dispatch that request to a service. Structure is documented below.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

interface DomainMappingArgs

interface DomainMappingArgs

The set of arguments for constructing a DomainMapping resource.

property domainName

domainName: pulumi.Input<string>;

Relative name of the domain serving the application. Example: example.com.

property overrideStrategy

overrideStrategy?: pulumi.Input<string>;

Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property sslSettings

sslSettings?: pulumi.Input<DomainMappingSslSettings>;

SSL configuration for this domain. If unconfigured, this domain will not serve with SSL. Structure is documented below.

interface DomainMappingState

interface DomainMappingState

Input properties used for looking up and filtering DomainMapping resources.

property domainName

domainName?: pulumi.Input<string>;

Relative name of the domain serving the application. Example: example.com.

property name

name?: pulumi.Input<string>;

Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.

property overrideStrategy

overrideStrategy?: pulumi.Input<string>;

Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property resourceRecords

resourceRecords?: pulumi.Input<pulumi.Input<DomainMappingResourceRecord>[]>;

The resource records required to configure this domain mapping. These records must be added to the domain’s DNS configuration in order to serve the application via this domain mapping.

property sslSettings

sslSettings?: pulumi.Input<DomainMappingSslSettings>;

SSL configuration for this domain. If unconfigured, this domain will not serve with SSL. Structure is documented below.

interface EngineSplitTrafficArgs

interface EngineSplitTrafficArgs

The set of arguments for constructing a EngineSplitTraffic resource.

property migrateTraffic

migrateTraffic?: pulumi.Input<boolean>;

If set to true traffic will be migrated to this version.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property service

service: pulumi.Input<string>;

The name of the service these settings apply to.

property split

split: pulumi.Input<EngineSplitTrafficSplit>;

Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.

interface EngineSplitTrafficState

interface EngineSplitTrafficState

Input properties used for looking up and filtering EngineSplitTraffic resources.

property migrateTraffic

migrateTraffic?: pulumi.Input<boolean>;

If set to true traffic will be migrated to this version.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property service

service?: pulumi.Input<string>;

The name of the service these settings apply to.

property split

split?: pulumi.Input<EngineSplitTrafficSplit>;

Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.

interface FirewallRuleArgs

interface FirewallRuleArgs

The set of arguments for constructing a FirewallRule resource.

property action

action: pulumi.Input<string>;

The action to take if this rule matches.

property description

description?: pulumi.Input<string>;

An optional string description of this rule.

property priority

priority?: pulumi.Input<number>;

A positive integer that defines the order of rule evaluation. Rules with the lowest priority are evaluated first. A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property sourceRange

sourceRange: pulumi.Input<string>;

IP address or range, defined using CIDR notation, of requests that this rule applies to.

interface FirewallRuleState

interface FirewallRuleState

Input properties used for looking up and filtering FirewallRule resources.

property action

action?: pulumi.Input<string>;

The action to take if this rule matches.

property description

description?: pulumi.Input<string>;

An optional string description of this rule.

property priority

priority?: pulumi.Input<number>;

A positive integer that defines the order of rule evaluation. Rules with the lowest priority are evaluated first. A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property sourceRange

sourceRange?: pulumi.Input<string>;

IP address or range, defined using CIDR notation, of requests that this rule applies to.

interface FlexibleAppVersionArgs

interface FlexibleAppVersionArgs

The set of arguments for constructing a FlexibleAppVersion resource.

property apiConfig

apiConfig?: pulumi.Input<FlexibleAppVersionApiConfig>;

Serving configuration for Google Cloud Endpoints. Structure is documented below.

property automaticScaling

automaticScaling?: pulumi.Input<FlexibleAppVersionAutomaticScaling>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property betaSettings

betaSettings?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Metadata settings that are supplied to this version to enable beta runtime features.

property defaultExpiration

defaultExpiration?: pulumi.Input<string>;

Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler does not specify its own expiration time.

property deleteServiceOnDestroy

deleteServiceOnDestroy?: pulumi.Input<boolean>;

If set to true, the service will be deleted if it is the last version.

property deployment

deployment?: pulumi.Input<FlexibleAppVersionDeployment>;

Code and application artifacts that make up this version. Structure is documented below.

property endpointsApiService

endpointsApiService?: pulumi.Input<FlexibleAppVersionEndpointsApiService>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

entrypoint?: pulumi.Input<FlexibleAppVersionEntrypoint>;

The entrypoint for the application. Structure is documented below.

property envVariables

envVariables?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Environment variables available to the application. As these are not returned in the API request, the provider will not detect any changes made outside of the config.

property handlers

handlers?: pulumi.Input<pulumi.Input<FlexibleAppVersionHandler>[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property inboundServices

inboundServices?: pulumi.Input<pulumi.Input<string>[]>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

instanceClass?: pulumi.Input<string>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1, B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.

property livenessCheck

livenessCheck: pulumi.Input<FlexibleAppVersionLivenessCheck>;

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Structure is documented below.

property manualScaling

manualScaling?: pulumi.Input<FlexibleAppVersionManualScaling>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property network

network?: pulumi.Input<FlexibleAppVersionNetwork>;

Extra network settings Structure is documented below.

property nobuildFilesRegex

nobuildFilesRegex?: pulumi.Input<string>;

Files that match this pattern will not be built into this version. Only applicable for Go runtimes.

property noopOnDestroy

noopOnDestroy?: pulumi.Input<boolean>;

If set to true, the application version will not be deleted.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property readinessCheck

readinessCheck: pulumi.Input<FlexibleAppVersionReadinessCheck>;

Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. Structure is documented below.

property resources

resources?: pulumi.Input<FlexibleAppVersionResources>;

Machine resources for a version. Structure is documented below.

property runtime

runtime: pulumi.Input<string>;

Desired runtime. Example python27.

property runtimeApiVersion

runtimeApiVersion?: pulumi.Input<string>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property runtimeChannel

runtimeChannel?: pulumi.Input<string>;

The channel of the runtime to use. Only available for some runtimes.

property runtimeMainExecutablePath

runtimeMainExecutablePath?: pulumi.Input<string>;

The path or name of the app’s main executable.

property service

service?: pulumi.Input<string>;

AppEngine service resource

property servingStatus

servingStatus?: pulumi.Input<string>;

Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.

property versionId

versionId?: pulumi.Input<string>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.

property vpcAccessConnector

vpcAccessConnector?: pulumi.Input<FlexibleAppVersionVpcAccessConnector>;

Enables VPC connectivity for standard apps. Structure is documented below.

interface FlexibleAppVersionState

interface FlexibleAppVersionState

Input properties used for looking up and filtering FlexibleAppVersion resources.

property apiConfig

apiConfig?: pulumi.Input<FlexibleAppVersionApiConfig>;

Serving configuration for Google Cloud Endpoints. Structure is documented below.

property automaticScaling

automaticScaling?: pulumi.Input<FlexibleAppVersionAutomaticScaling>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property betaSettings

betaSettings?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Metadata settings that are supplied to this version to enable beta runtime features.

property defaultExpiration

defaultExpiration?: pulumi.Input<string>;

Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler does not specify its own expiration time.

property deleteServiceOnDestroy

deleteServiceOnDestroy?: pulumi.Input<boolean>;

If set to true, the service will be deleted if it is the last version.

property deployment

deployment?: pulumi.Input<FlexibleAppVersionDeployment>;

Code and application artifacts that make up this version. Structure is documented below.

property endpointsApiService

endpointsApiService?: pulumi.Input<FlexibleAppVersionEndpointsApiService>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

entrypoint?: pulumi.Input<FlexibleAppVersionEntrypoint>;

The entrypoint for the application. Structure is documented below.

property envVariables

envVariables?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Environment variables available to the application. As these are not returned in the API request, the provider will not detect any changes made outside of the config.

property handlers

handlers?: pulumi.Input<pulumi.Input<FlexibleAppVersionHandler>[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property inboundServices

inboundServices?: pulumi.Input<pulumi.Input<string>[]>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

instanceClass?: pulumi.Input<string>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1, B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.

property livenessCheck

livenessCheck?: pulumi.Input<FlexibleAppVersionLivenessCheck>;

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Structure is documented below.

property manualScaling

manualScaling?: pulumi.Input<FlexibleAppVersionManualScaling>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property name

name?: pulumi.Input<string>;

Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.

property network

network?: pulumi.Input<FlexibleAppVersionNetwork>;

Extra network settings Structure is documented below.

property nobuildFilesRegex

nobuildFilesRegex?: pulumi.Input<string>;

Files that match this pattern will not be built into this version. Only applicable for Go runtimes.

property noopOnDestroy

noopOnDestroy?: pulumi.Input<boolean>;

If set to true, the application version will not be deleted.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property readinessCheck

readinessCheck?: pulumi.Input<FlexibleAppVersionReadinessCheck>;

Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. Structure is documented below.

property resources

resources?: pulumi.Input<FlexibleAppVersionResources>;

Machine resources for a version. Structure is documented below.

property runtime

runtime?: pulumi.Input<string>;

Desired runtime. Example python27.

property runtimeApiVersion

runtimeApiVersion?: pulumi.Input<string>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property runtimeChannel

runtimeChannel?: pulumi.Input<string>;

The channel of the runtime to use. Only available for some runtimes.

property runtimeMainExecutablePath

runtimeMainExecutablePath?: pulumi.Input<string>;

The path or name of the app’s main executable.

property service

service?: pulumi.Input<string>;

AppEngine service resource

property servingStatus

servingStatus?: pulumi.Input<string>;

Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.

property versionId

versionId?: pulumi.Input<string>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.

property vpcAccessConnector

vpcAccessConnector?: pulumi.Input<FlexibleAppVersionVpcAccessConnector>;

Enables VPC connectivity for standard apps. Structure is documented below.

interface StandardAppVersionArgs

interface StandardAppVersionArgs

The set of arguments for constructing a StandardAppVersion resource.

property automaticScaling

automaticScaling?: pulumi.Input<StandardAppVersionAutomaticScaling>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property basicScaling

basicScaling?: pulumi.Input<StandardAppVersionBasicScaling>;

Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. Structure is documented below.

property deleteServiceOnDestroy

deleteServiceOnDestroy?: pulumi.Input<boolean>;

If set to true, the service will be deleted if it is the last version.

property deployment

deployment: pulumi.Input<StandardAppVersionDeployment>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

entrypoint?: pulumi.Input<StandardAppVersionEntrypoint>;

The entrypoint for the application. Structure is documented below.

property envVariables

envVariables?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Environment variables available to the application.

property handlers

handlers?: pulumi.Input<pulumi.Input<StandardAppVersionHandler>[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property inboundServices

inboundServices?: pulumi.Input<pulumi.Input<string>[]>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

instanceClass?: pulumi.Input<string>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8 Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.

property libraries

libraries?: pulumi.Input<pulumi.Input<StandardAppVersionLibrary>[]>;

Configuration for third-party Python runtime libraries that are required by the application. Structure is documented below.

property manualScaling

manualScaling?: pulumi.Input<StandardAppVersionManualScaling>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property noopOnDestroy

noopOnDestroy?: pulumi.Input<boolean>;

If set to true, the application version will not be deleted.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property runtime

runtime: pulumi.Input<string>;

Desired runtime. Example python27.

property runtimeApiVersion

runtimeApiVersion?: pulumi.Input<string>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property service

service?: pulumi.Input<string>;

AppEngine service resource

property threadsafe

threadsafe?: pulumi.Input<boolean>;

Whether multiple requests can be dispatched to this version at once.

property versionId

versionId?: pulumi.Input<string>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.

interface StandardAppVersionState

interface StandardAppVersionState

Input properties used for looking up and filtering StandardAppVersion resources.

property automaticScaling

automaticScaling?: pulumi.Input<StandardAppVersionAutomaticScaling>;

Automatic scaling is based on request rate, response latencies, and other application metrics. Structure is documented below.

property basicScaling

basicScaling?: pulumi.Input<StandardAppVersionBasicScaling>;

Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. Structure is documented below.

property deleteServiceOnDestroy

deleteServiceOnDestroy?: pulumi.Input<boolean>;

If set to true, the service will be deleted if it is the last version.

property deployment

deployment?: pulumi.Input<StandardAppVersionDeployment>;

Code and application artifacts that make up this version. Structure is documented below.

property entrypoint

entrypoint?: pulumi.Input<StandardAppVersionEntrypoint>;

The entrypoint for the application. Structure is documented below.

property envVariables

envVariables?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Environment variables available to the application.

property handlers

handlers?: pulumi.Input<pulumi.Input<StandardAppVersionHandler>[]>;

An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted. Structure is documented below.

property inboundServices

inboundServices?: pulumi.Input<pulumi.Input<string>[]>;

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

property instanceClass

instanceClass?: pulumi.Input<string>;

Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8 Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.

property libraries

libraries?: pulumi.Input<pulumi.Input<StandardAppVersionLibrary>[]>;

Configuration for third-party Python runtime libraries that are required by the application. Structure is documented below.

property manualScaling

manualScaling?: pulumi.Input<StandardAppVersionManualScaling>;

A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Structure is documented below.

property name

name?: pulumi.Input<string>;

Name of the library. Example “django”.

property noopOnDestroy

noopOnDestroy?: pulumi.Input<boolean>;

If set to true, the application version will not be deleted.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property runtime

runtime?: pulumi.Input<string>;

Desired runtime. Example python27.

property runtimeApiVersion

runtimeApiVersion?: pulumi.Input<string>;

The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref

property service

service?: pulumi.Input<string>;

AppEngine service resource

property threadsafe

threadsafe?: pulumi.Input<boolean>;

Whether multiple requests can be dispatched to this version at once.

property versionId

versionId?: pulumi.Input<string>;

Relative name of the version within the service. For example, v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,“default”, “latest”, and any name with the prefix “ah-”.