gcp.appengine.StandardAppVersion
Explore with Pulumi AI
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:
- API documentation
- How-to Guides
Example Usage
App Engine Standard App Version
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const customServiceAccount = new gcp.serviceaccount.Account("custom_service_account", {
accountId: "my-account",
displayName: "Custom Service Account",
});
const gaeApi = new gcp.projects.IAMMember("gae_api", {
project: customServiceAccount.project,
role: "roles/compute.networkUser",
member: pulumi.interpolate`serviceAccount:${customServiceAccount.email}`,
});
const storageViewer = new gcp.projects.IAMMember("storage_viewer", {
project: customServiceAccount.project,
role: "roles/storage.objectViewer",
member: pulumi.interpolate`serviceAccount:${customServiceAccount.email}`,
});
const bucket = new gcp.storage.Bucket("bucket", {
name: "appengine-static-content",
location: "US",
});
const object = new gcp.storage.BucketObject("object", {
name: "hello-world.zip",
bucket: bucket.name,
source: new pulumi.asset.FileAsset("./test-fixtures/hello-world.zip"),
});
const myappV1 = new gcp.appengine.StandardAppVersion("myapp_v1", {
versionId: "v1",
service: "myapp",
runtime: "nodejs20",
entrypoint: {
shell: "node ./app.js",
},
deployment: {
zip: {
sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
},
},
envVariables: {
port: "8080",
},
automaticScaling: {
maxConcurrentRequests: 10,
minIdleInstances: 1,
maxIdleInstances: 3,
minPendingLatency: "1s",
maxPendingLatency: "5s",
standardSchedulerSettings: {
targetCpuUtilization: 0.5,
targetThroughputUtilization: 0.75,
minInstances: 2,
maxInstances: 10,
},
},
deleteServiceOnDestroy: true,
serviceAccount: customServiceAccount.email,
});
const myappV2 = new gcp.appengine.StandardAppVersion("myapp_v2", {
versionId: "v2",
service: "myapp",
runtime: "nodejs20",
appEngineApis: true,
entrypoint: {
shell: "node ./app.js",
},
deployment: {
zip: {
sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
},
},
envVariables: {
port: "8080",
},
basicScaling: {
maxInstances: 5,
},
noopOnDestroy: true,
serviceAccount: customServiceAccount.email,
});
import pulumi
import pulumi_gcp as gcp
custom_service_account = gcp.serviceaccount.Account("custom_service_account",
account_id="my-account",
display_name="Custom Service Account")
gae_api = gcp.projects.IAMMember("gae_api",
project=custom_service_account.project,
role="roles/compute.networkUser",
member=custom_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
storage_viewer = gcp.projects.IAMMember("storage_viewer",
project=custom_service_account.project,
role="roles/storage.objectViewer",
member=custom_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
bucket = gcp.storage.Bucket("bucket",
name="appengine-static-content",
location="US")
object = gcp.storage.BucketObject("object",
name="hello-world.zip",
bucket=bucket.name,
source=pulumi.FileAsset("./test-fixtures/hello-world.zip"))
myapp_v1 = gcp.appengine.StandardAppVersion("myapp_v1",
version_id="v1",
service="myapp",
runtime="nodejs20",
entrypoint=gcp.appengine.StandardAppVersionEntrypointArgs(
shell="node ./app.js",
),
deployment=gcp.appengine.StandardAppVersionDeploymentArgs(
zip=gcp.appengine.StandardAppVersionDeploymentZipArgs(
source_url=pulumi.Output.all(bucket.name, object.name).apply(lambda bucketName, objectName: f"https://storage.googleapis.com/{bucket_name}/{object_name}"),
),
),
env_variables={
"port": "8080",
},
automatic_scaling=gcp.appengine.StandardAppVersionAutomaticScalingArgs(
max_concurrent_requests=10,
min_idle_instances=1,
max_idle_instances=3,
min_pending_latency="1s",
max_pending_latency="5s",
standard_scheduler_settings=gcp.appengine.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs(
target_cpu_utilization=0.5,
target_throughput_utilization=0.75,
min_instances=2,
max_instances=10,
),
),
delete_service_on_destroy=True,
service_account=custom_service_account.email)
myapp_v2 = gcp.appengine.StandardAppVersion("myapp_v2",
version_id="v2",
service="myapp",
runtime="nodejs20",
app_engine_apis=True,
entrypoint=gcp.appengine.StandardAppVersionEntrypointArgs(
shell="node ./app.js",
),
deployment=gcp.appengine.StandardAppVersionDeploymentArgs(
zip=gcp.appengine.StandardAppVersionDeploymentZipArgs(
source_url=pulumi.Output.all(bucket.name, object.name).apply(lambda bucketName, objectName: f"https://storage.googleapis.com/{bucket_name}/{object_name}"),
),
),
env_variables={
"port": "8080",
},
basic_scaling=gcp.appengine.StandardAppVersionBasicScalingArgs(
max_instances=5,
),
noop_on_destroy=True,
service_account=custom_service_account.email)
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/projects"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/serviceaccount"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
customServiceAccount, err := serviceaccount.NewAccount(ctx, "custom_service_account", &serviceaccount.AccountArgs{
AccountId: pulumi.String("my-account"),
DisplayName: pulumi.String("Custom Service Account"),
})
if err != nil {
return err
}
_, err = projects.NewIAMMember(ctx, "gae_api", &projects.IAMMemberArgs{
Project: customServiceAccount.Project,
Role: pulumi.String("roles/compute.networkUser"),
Member: customServiceAccount.Email.ApplyT(func(email string) (string, error) {
return fmt.Sprintf("serviceAccount:%v", email), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
_, err = projects.NewIAMMember(ctx, "storage_viewer", &projects.IAMMemberArgs{
Project: customServiceAccount.Project,
Role: pulumi.String("roles/storage.objectViewer"),
Member: customServiceAccount.Email.ApplyT(func(email string) (string, error) {
return fmt.Sprintf("serviceAccount:%v", email), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("appengine-static-content"),
Location: pulumi.String("US"),
})
if err != nil {
return err
}
object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
Name: pulumi.String("hello-world.zip"),
Bucket: bucket.Name,
Source: pulumi.NewFileAsset("./test-fixtures/hello-world.zip"),
})
if err != nil {
return err
}
_, err = appengine.NewStandardAppVersion(ctx, "myapp_v1", &appengine.StandardAppVersionArgs{
VersionId: pulumi.String("v1"),
Service: pulumi.String("myapp"),
Runtime: pulumi.String("nodejs20"),
Entrypoint: &appengine.StandardAppVersionEntrypointArgs{
Shell: pulumi.String("node ./app.js"),
},
Deployment: &appengine.StandardAppVersionDeploymentArgs{
Zip: &appengine.StandardAppVersionDeploymentZipArgs{
SourceUrl: pulumi.All(bucket.Name, object.Name).ApplyT(func(_args []interface{}) (string, error) {
bucketName := _args[0].(string)
objectName := _args[1].(string)
return fmt.Sprintf("https://storage.googleapis.com/%v/%v", bucketName, objectName), nil
}).(pulumi.StringOutput),
},
},
EnvVariables: pulumi.StringMap{
"port": pulumi.String("8080"),
},
AutomaticScaling: &appengine.StandardAppVersionAutomaticScalingArgs{
MaxConcurrentRequests: pulumi.Int(10),
MinIdleInstances: pulumi.Int(1),
MaxIdleInstances: pulumi.Int(3),
MinPendingLatency: pulumi.String("1s"),
MaxPendingLatency: pulumi.String("5s"),
StandardSchedulerSettings: &appengine.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs{
TargetCpuUtilization: pulumi.Float64(0.5),
TargetThroughputUtilization: pulumi.Float64(0.75),
MinInstances: pulumi.Int(2),
MaxInstances: pulumi.Int(10),
},
},
DeleteServiceOnDestroy: pulumi.Bool(true),
ServiceAccount: customServiceAccount.Email,
})
if err != nil {
return err
}
_, err = appengine.NewStandardAppVersion(ctx, "myapp_v2", &appengine.StandardAppVersionArgs{
VersionId: pulumi.String("v2"),
Service: pulumi.String("myapp"),
Runtime: pulumi.String("nodejs20"),
AppEngineApis: pulumi.Bool(true),
Entrypoint: &appengine.StandardAppVersionEntrypointArgs{
Shell: pulumi.String("node ./app.js"),
},
Deployment: &appengine.StandardAppVersionDeploymentArgs{
Zip: &appengine.StandardAppVersionDeploymentZipArgs{
SourceUrl: pulumi.All(bucket.Name, object.Name).ApplyT(func(_args []interface{}) (string, error) {
bucketName := _args[0].(string)
objectName := _args[1].(string)
return fmt.Sprintf("https://storage.googleapis.com/%v/%v", bucketName, objectName), nil
}).(pulumi.StringOutput),
},
},
EnvVariables: pulumi.StringMap{
"port": pulumi.String("8080"),
},
BasicScaling: &appengine.StandardAppVersionBasicScalingArgs{
MaxInstances: pulumi.Int(5),
},
NoopOnDestroy: pulumi.Bool(true),
ServiceAccount: customServiceAccount.Email,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var customServiceAccount = new Gcp.ServiceAccount.Account("custom_service_account", new()
{
AccountId = "my-account",
DisplayName = "Custom Service Account",
});
var gaeApi = new Gcp.Projects.IAMMember("gae_api", new()
{
Project = customServiceAccount.Project,
Role = "roles/compute.networkUser",
Member = customServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
});
var storageViewer = new Gcp.Projects.IAMMember("storage_viewer", new()
{
Project = customServiceAccount.Project,
Role = "roles/storage.objectViewer",
Member = customServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
});
var bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "appengine-static-content",
Location = "US",
});
var @object = new Gcp.Storage.BucketObject("object", new()
{
Name = "hello-world.zip",
Bucket = bucket.Name,
Source = new FileAsset("./test-fixtures/hello-world.zip"),
});
var myappV1 = new Gcp.AppEngine.StandardAppVersion("myapp_v1", new()
{
VersionId = "v1",
Service = "myapp",
Runtime = "nodejs20",
Entrypoint = new Gcp.AppEngine.Inputs.StandardAppVersionEntrypointArgs
{
Shell = "node ./app.js",
},
Deployment = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentArgs
{
Zip = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentZipArgs
{
SourceUrl = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
{
var bucketName = values.Item1;
var objectName = values.Item2;
return $"https://storage.googleapis.com/{bucketName}/{objectName}";
}),
},
},
EnvVariables =
{
{ "port", "8080" },
},
AutomaticScaling = new Gcp.AppEngine.Inputs.StandardAppVersionAutomaticScalingArgs
{
MaxConcurrentRequests = 10,
MinIdleInstances = 1,
MaxIdleInstances = 3,
MinPendingLatency = "1s",
MaxPendingLatency = "5s",
StandardSchedulerSettings = new Gcp.AppEngine.Inputs.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs
{
TargetCpuUtilization = 0.5,
TargetThroughputUtilization = 0.75,
MinInstances = 2,
MaxInstances = 10,
},
},
DeleteServiceOnDestroy = true,
ServiceAccount = customServiceAccount.Email,
});
var myappV2 = new Gcp.AppEngine.StandardAppVersion("myapp_v2", new()
{
VersionId = "v2",
Service = "myapp",
Runtime = "nodejs20",
AppEngineApis = true,
Entrypoint = new Gcp.AppEngine.Inputs.StandardAppVersionEntrypointArgs
{
Shell = "node ./app.js",
},
Deployment = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentArgs
{
Zip = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentZipArgs
{
SourceUrl = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
{
var bucketName = values.Item1;
var objectName = values.Item2;
return $"https://storage.googleapis.com/{bucketName}/{objectName}";
}),
},
},
EnvVariables =
{
{ "port", "8080" },
},
BasicScaling = new Gcp.AppEngine.Inputs.StandardAppVersionBasicScalingArgs
{
MaxInstances = 5,
},
NoopOnDestroy = true,
ServiceAccount = customServiceAccount.Email,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.projects.IAMMember;
import com.pulumi.gcp.projects.IAMMemberArgs;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.storage.BucketObject;
import com.pulumi.gcp.storage.BucketObjectArgs;
import com.pulumi.gcp.appengine.StandardAppVersion;
import com.pulumi.gcp.appengine.StandardAppVersionArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionEntrypointArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentZipArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionAutomaticScalingArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs;
import com.pulumi.gcp.appengine.inputs.StandardAppVersionBasicScalingArgs;
import com.pulumi.asset.FileAsset;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customServiceAccount = new Account("customServiceAccount", AccountArgs.builder()
.accountId("my-account")
.displayName("Custom Service Account")
.build());
var gaeApi = new IAMMember("gaeApi", IAMMemberArgs.builder()
.project(customServiceAccount.project())
.role("roles/compute.networkUser")
.member(customServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
.build());
var storageViewer = new IAMMember("storageViewer", IAMMemberArgs.builder()
.project(customServiceAccount.project())
.role("roles/storage.objectViewer")
.member(customServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
.build());
var bucket = new Bucket("bucket", BucketArgs.builder()
.name("appengine-static-content")
.location("US")
.build());
var object = new BucketObject("object", BucketObjectArgs.builder()
.name("hello-world.zip")
.bucket(bucket.name())
.source(new FileAsset("./test-fixtures/hello-world.zip"))
.build());
var myappV1 = new StandardAppVersion("myappV1", StandardAppVersionArgs.builder()
.versionId("v1")
.service("myapp")
.runtime("nodejs20")
.entrypoint(StandardAppVersionEntrypointArgs.builder()
.shell("node ./app.js")
.build())
.deployment(StandardAppVersionDeploymentArgs.builder()
.zip(StandardAppVersionDeploymentZipArgs.builder()
.sourceUrl(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
var bucketName = values.t1;
var objectName = values.t2;
return String.format("https://storage.googleapis.com/%s/%s", bucketName,objectName);
}))
.build())
.build())
.envVariables(Map.of("port", "8080"))
.automaticScaling(StandardAppVersionAutomaticScalingArgs.builder()
.maxConcurrentRequests(10)
.minIdleInstances(1)
.maxIdleInstances(3)
.minPendingLatency("1s")
.maxPendingLatency("5s")
.standardSchedulerSettings(StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs.builder()
.targetCpuUtilization(0.5)
.targetThroughputUtilization(0.75)
.minInstances(2)
.maxInstances(10)
.build())
.build())
.deleteServiceOnDestroy(true)
.serviceAccount(customServiceAccount.email())
.build());
var myappV2 = new StandardAppVersion("myappV2", StandardAppVersionArgs.builder()
.versionId("v2")
.service("myapp")
.runtime("nodejs20")
.appEngineApis(true)
.entrypoint(StandardAppVersionEntrypointArgs.builder()
.shell("node ./app.js")
.build())
.deployment(StandardAppVersionDeploymentArgs.builder()
.zip(StandardAppVersionDeploymentZipArgs.builder()
.sourceUrl(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
var bucketName = values.t1;
var objectName = values.t2;
return String.format("https://storage.googleapis.com/%s/%s", bucketName,objectName);
}))
.build())
.build())
.envVariables(Map.of("port", "8080"))
.basicScaling(StandardAppVersionBasicScalingArgs.builder()
.maxInstances(5)
.build())
.noopOnDestroy(true)
.serviceAccount(customServiceAccount.email())
.build());
}
}
resources:
customServiceAccount:
type: gcp:serviceaccount:Account
name: custom_service_account
properties:
accountId: my-account
displayName: Custom Service Account
gaeApi:
type: gcp:projects:IAMMember
name: gae_api
properties:
project: ${customServiceAccount.project}
role: roles/compute.networkUser
member: serviceAccount:${customServiceAccount.email}
storageViewer:
type: gcp:projects:IAMMember
name: storage_viewer
properties:
project: ${customServiceAccount.project}
role: roles/storage.objectViewer
member: serviceAccount:${customServiceAccount.email}
myappV1:
type: gcp:appengine:StandardAppVersion
name: myapp_v1
properties:
versionId: v1
service: myapp
runtime: nodejs20
entrypoint:
shell: node ./app.js
deployment:
zip:
sourceUrl: https://storage.googleapis.com/${bucket.name}/${object.name}
envVariables:
port: '8080'
automaticScaling:
maxConcurrentRequests: 10
minIdleInstances: 1
maxIdleInstances: 3
minPendingLatency: 1s
maxPendingLatency: 5s
standardSchedulerSettings:
targetCpuUtilization: 0.5
targetThroughputUtilization: 0.75
minInstances: 2
maxInstances: 10
deleteServiceOnDestroy: true
serviceAccount: ${customServiceAccount.email}
myappV2:
type: gcp:appengine:StandardAppVersion
name: myapp_v2
properties:
versionId: v2
service: myapp
runtime: nodejs20
appEngineApis: true
entrypoint:
shell: node ./app.js
deployment:
zip:
sourceUrl: https://storage.googleapis.com/${bucket.name}/${object.name}
envVariables:
port: '8080'
basicScaling:
maxInstances: 5
noopOnDestroy: true
serviceAccount: ${customServiceAccount.email}
bucket:
type: gcp:storage:Bucket
properties:
name: appengine-static-content
location: US
object:
type: gcp:storage:BucketObject
properties:
name: hello-world.zip
bucket: ${bucket.name}
source:
fn::FileAsset: ./test-fixtures/hello-world.zip
Create StandardAppVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StandardAppVersion(name: string, args: StandardAppVersionArgs, opts?: CustomResourceOptions);
@overload
def StandardAppVersion(resource_name: str,
args: StandardAppVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StandardAppVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
deployment: Optional[StandardAppVersionDeploymentArgs] = None,
service: Optional[str] = None,
runtime: Optional[str] = None,
entrypoint: Optional[StandardAppVersionEntrypointArgs] = None,
libraries: Optional[Sequence[StandardAppVersionLibraryArgs]] = None,
project: Optional[str] = None,
env_variables: Optional[Mapping[str, str]] = None,
handlers: Optional[Sequence[StandardAppVersionHandlerArgs]] = None,
inbound_services: Optional[Sequence[str]] = None,
instance_class: Optional[str] = None,
app_engine_apis: Optional[bool] = None,
manual_scaling: Optional[StandardAppVersionManualScalingArgs] = None,
noop_on_destroy: Optional[bool] = None,
delete_service_on_destroy: Optional[bool] = None,
basic_scaling: Optional[StandardAppVersionBasicScalingArgs] = None,
runtime_api_version: Optional[str] = None,
automatic_scaling: Optional[StandardAppVersionAutomaticScalingArgs] = None,
service_account: Optional[str] = None,
threadsafe: Optional[bool] = None,
version_id: Optional[str] = None,
vpc_access_connector: Optional[StandardAppVersionVpcAccessConnectorArgs] = None)
func NewStandardAppVersion(ctx *Context, name string, args StandardAppVersionArgs, opts ...ResourceOption) (*StandardAppVersion, error)
public StandardAppVersion(string name, StandardAppVersionArgs args, CustomResourceOptions? opts = null)
public StandardAppVersion(String name, StandardAppVersionArgs args)
public StandardAppVersion(String name, StandardAppVersionArgs args, CustomResourceOptions options)
type: gcp:appengine:StandardAppVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StandardAppVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StandardAppVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StandardAppVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StandardAppVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StandardAppVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var standardAppVersionResource = new Gcp.AppEngine.StandardAppVersion("standardAppVersionResource", new()
{
Deployment = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentArgs
{
Files = new[]
{
new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentFileArgs
{
Name = "string",
SourceUrl = "string",
Sha1Sum = "string",
},
},
Zip = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentZipArgs
{
SourceUrl = "string",
FilesCount = 0,
},
},
Service = "string",
Runtime = "string",
Entrypoint = new Gcp.AppEngine.Inputs.StandardAppVersionEntrypointArgs
{
Shell = "string",
},
Libraries = new[]
{
new Gcp.AppEngine.Inputs.StandardAppVersionLibraryArgs
{
Name = "string",
Version = "string",
},
},
Project = "string",
EnvVariables =
{
{ "string", "string" },
},
Handlers = new[]
{
new Gcp.AppEngine.Inputs.StandardAppVersionHandlerArgs
{
AuthFailAction = "string",
Login = "string",
RedirectHttpResponseCode = "string",
Script = new Gcp.AppEngine.Inputs.StandardAppVersionHandlerScriptArgs
{
ScriptPath = "string",
},
SecurityLevel = "string",
StaticFiles = new Gcp.AppEngine.Inputs.StandardAppVersionHandlerStaticFilesArgs
{
ApplicationReadable = false,
Expiration = "string",
HttpHeaders =
{
{ "string", "string" },
},
MimeType = "string",
Path = "string",
RequireMatchingFile = false,
UploadPathRegex = "string",
},
UrlRegex = "string",
},
},
InboundServices = new[]
{
"string",
},
InstanceClass = "string",
AppEngineApis = false,
ManualScaling = new Gcp.AppEngine.Inputs.StandardAppVersionManualScalingArgs
{
Instances = 0,
},
NoopOnDestroy = false,
DeleteServiceOnDestroy = false,
BasicScaling = new Gcp.AppEngine.Inputs.StandardAppVersionBasicScalingArgs
{
MaxInstances = 0,
IdleTimeout = "string",
},
RuntimeApiVersion = "string",
AutomaticScaling = new Gcp.AppEngine.Inputs.StandardAppVersionAutomaticScalingArgs
{
MaxConcurrentRequests = 0,
MaxIdleInstances = 0,
MaxPendingLatency = "string",
MinIdleInstances = 0,
MinPendingLatency = "string",
StandardSchedulerSettings = new Gcp.AppEngine.Inputs.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs
{
MaxInstances = 0,
MinInstances = 0,
TargetCpuUtilization = 0,
TargetThroughputUtilization = 0,
},
},
ServiceAccount = "string",
Threadsafe = false,
VersionId = "string",
VpcAccessConnector = new Gcp.AppEngine.Inputs.StandardAppVersionVpcAccessConnectorArgs
{
Name = "string",
EgressSetting = "string",
},
});
example, err := appengine.NewStandardAppVersion(ctx, "standardAppVersionResource", &appengine.StandardAppVersionArgs{
Deployment: &appengine.StandardAppVersionDeploymentArgs{
Files: appengine.StandardAppVersionDeploymentFileArray{
&appengine.StandardAppVersionDeploymentFileArgs{
Name: pulumi.String("string"),
SourceUrl: pulumi.String("string"),
Sha1Sum: pulumi.String("string"),
},
},
Zip: &appengine.StandardAppVersionDeploymentZipArgs{
SourceUrl: pulumi.String("string"),
FilesCount: pulumi.Int(0),
},
},
Service: pulumi.String("string"),
Runtime: pulumi.String("string"),
Entrypoint: &appengine.StandardAppVersionEntrypointArgs{
Shell: pulumi.String("string"),
},
Libraries: appengine.StandardAppVersionLibraryArray{
&appengine.StandardAppVersionLibraryArgs{
Name: pulumi.String("string"),
Version: pulumi.String("string"),
},
},
Project: pulumi.String("string"),
EnvVariables: pulumi.StringMap{
"string": pulumi.String("string"),
},
Handlers: appengine.StandardAppVersionHandlerArray{
&appengine.StandardAppVersionHandlerArgs{
AuthFailAction: pulumi.String("string"),
Login: pulumi.String("string"),
RedirectHttpResponseCode: pulumi.String("string"),
Script: &appengine.StandardAppVersionHandlerScriptArgs{
ScriptPath: pulumi.String("string"),
},
SecurityLevel: pulumi.String("string"),
StaticFiles: &appengine.StandardAppVersionHandlerStaticFilesArgs{
ApplicationReadable: pulumi.Bool(false),
Expiration: pulumi.String("string"),
HttpHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
MimeType: pulumi.String("string"),
Path: pulumi.String("string"),
RequireMatchingFile: pulumi.Bool(false),
UploadPathRegex: pulumi.String("string"),
},
UrlRegex: pulumi.String("string"),
},
},
InboundServices: pulumi.StringArray{
pulumi.String("string"),
},
InstanceClass: pulumi.String("string"),
AppEngineApis: pulumi.Bool(false),
ManualScaling: &appengine.StandardAppVersionManualScalingArgs{
Instances: pulumi.Int(0),
},
NoopOnDestroy: pulumi.Bool(false),
DeleteServiceOnDestroy: pulumi.Bool(false),
BasicScaling: &appengine.StandardAppVersionBasicScalingArgs{
MaxInstances: pulumi.Int(0),
IdleTimeout: pulumi.String("string"),
},
RuntimeApiVersion: pulumi.String("string"),
AutomaticScaling: &appengine.StandardAppVersionAutomaticScalingArgs{
MaxConcurrentRequests: pulumi.Int(0),
MaxIdleInstances: pulumi.Int(0),
MaxPendingLatency: pulumi.String("string"),
MinIdleInstances: pulumi.Int(0),
MinPendingLatency: pulumi.String("string"),
StandardSchedulerSettings: &appengine.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs{
MaxInstances: pulumi.Int(0),
MinInstances: pulumi.Int(0),
TargetCpuUtilization: pulumi.Float64(0),
TargetThroughputUtilization: pulumi.Float64(0),
},
},
ServiceAccount: pulumi.String("string"),
Threadsafe: pulumi.Bool(false),
VersionId: pulumi.String("string"),
VpcAccessConnector: &appengine.StandardAppVersionVpcAccessConnectorArgs{
Name: pulumi.String("string"),
EgressSetting: pulumi.String("string"),
},
})
var standardAppVersionResource = new StandardAppVersion("standardAppVersionResource", StandardAppVersionArgs.builder()
.deployment(StandardAppVersionDeploymentArgs.builder()
.files(StandardAppVersionDeploymentFileArgs.builder()
.name("string")
.sourceUrl("string")
.sha1Sum("string")
.build())
.zip(StandardAppVersionDeploymentZipArgs.builder()
.sourceUrl("string")
.filesCount(0)
.build())
.build())
.service("string")
.runtime("string")
.entrypoint(StandardAppVersionEntrypointArgs.builder()
.shell("string")
.build())
.libraries(StandardAppVersionLibraryArgs.builder()
.name("string")
.version("string")
.build())
.project("string")
.envVariables(Map.of("string", "string"))
.handlers(StandardAppVersionHandlerArgs.builder()
.authFailAction("string")
.login("string")
.redirectHttpResponseCode("string")
.script(StandardAppVersionHandlerScriptArgs.builder()
.scriptPath("string")
.build())
.securityLevel("string")
.staticFiles(StandardAppVersionHandlerStaticFilesArgs.builder()
.applicationReadable(false)
.expiration("string")
.httpHeaders(Map.of("string", "string"))
.mimeType("string")
.path("string")
.requireMatchingFile(false)
.uploadPathRegex("string")
.build())
.urlRegex("string")
.build())
.inboundServices("string")
.instanceClass("string")
.appEngineApis(false)
.manualScaling(StandardAppVersionManualScalingArgs.builder()
.instances(0)
.build())
.noopOnDestroy(false)
.deleteServiceOnDestroy(false)
.basicScaling(StandardAppVersionBasicScalingArgs.builder()
.maxInstances(0)
.idleTimeout("string")
.build())
.runtimeApiVersion("string")
.automaticScaling(StandardAppVersionAutomaticScalingArgs.builder()
.maxConcurrentRequests(0)
.maxIdleInstances(0)
.maxPendingLatency("string")
.minIdleInstances(0)
.minPendingLatency("string")
.standardSchedulerSettings(StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs.builder()
.maxInstances(0)
.minInstances(0)
.targetCpuUtilization(0)
.targetThroughputUtilization(0)
.build())
.build())
.serviceAccount("string")
.threadsafe(false)
.versionId("string")
.vpcAccessConnector(StandardAppVersionVpcAccessConnectorArgs.builder()
.name("string")
.egressSetting("string")
.build())
.build());
standard_app_version_resource = gcp.appengine.StandardAppVersion("standardAppVersionResource",
deployment=gcp.appengine.StandardAppVersionDeploymentArgs(
files=[gcp.appengine.StandardAppVersionDeploymentFileArgs(
name="string",
source_url="string",
sha1_sum="string",
)],
zip=gcp.appengine.StandardAppVersionDeploymentZipArgs(
source_url="string",
files_count=0,
),
),
service="string",
runtime="string",
entrypoint=gcp.appengine.StandardAppVersionEntrypointArgs(
shell="string",
),
libraries=[gcp.appengine.StandardAppVersionLibraryArgs(
name="string",
version="string",
)],
project="string",
env_variables={
"string": "string",
},
handlers=[gcp.appengine.StandardAppVersionHandlerArgs(
auth_fail_action="string",
login="string",
redirect_http_response_code="string",
script=gcp.appengine.StandardAppVersionHandlerScriptArgs(
script_path="string",
),
security_level="string",
static_files=gcp.appengine.StandardAppVersionHandlerStaticFilesArgs(
application_readable=False,
expiration="string",
http_headers={
"string": "string",
},
mime_type="string",
path="string",
require_matching_file=False,
upload_path_regex="string",
),
url_regex="string",
)],
inbound_services=["string"],
instance_class="string",
app_engine_apis=False,
manual_scaling=gcp.appengine.StandardAppVersionManualScalingArgs(
instances=0,
),
noop_on_destroy=False,
delete_service_on_destroy=False,
basic_scaling=gcp.appengine.StandardAppVersionBasicScalingArgs(
max_instances=0,
idle_timeout="string",
),
runtime_api_version="string",
automatic_scaling=gcp.appengine.StandardAppVersionAutomaticScalingArgs(
max_concurrent_requests=0,
max_idle_instances=0,
max_pending_latency="string",
min_idle_instances=0,
min_pending_latency="string",
standard_scheduler_settings=gcp.appengine.StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs(
max_instances=0,
min_instances=0,
target_cpu_utilization=0,
target_throughput_utilization=0,
),
),
service_account="string",
threadsafe=False,
version_id="string",
vpc_access_connector=gcp.appengine.StandardAppVersionVpcAccessConnectorArgs(
name="string",
egress_setting="string",
))
const standardAppVersionResource = new gcp.appengine.StandardAppVersion("standardAppVersionResource", {
deployment: {
files: [{
name: "string",
sourceUrl: "string",
sha1Sum: "string",
}],
zip: {
sourceUrl: "string",
filesCount: 0,
},
},
service: "string",
runtime: "string",
entrypoint: {
shell: "string",
},
libraries: [{
name: "string",
version: "string",
}],
project: "string",
envVariables: {
string: "string",
},
handlers: [{
authFailAction: "string",
login: "string",
redirectHttpResponseCode: "string",
script: {
scriptPath: "string",
},
securityLevel: "string",
staticFiles: {
applicationReadable: false,
expiration: "string",
httpHeaders: {
string: "string",
},
mimeType: "string",
path: "string",
requireMatchingFile: false,
uploadPathRegex: "string",
},
urlRegex: "string",
}],
inboundServices: ["string"],
instanceClass: "string",
appEngineApis: false,
manualScaling: {
instances: 0,
},
noopOnDestroy: false,
deleteServiceOnDestroy: false,
basicScaling: {
maxInstances: 0,
idleTimeout: "string",
},
runtimeApiVersion: "string",
automaticScaling: {
maxConcurrentRequests: 0,
maxIdleInstances: 0,
maxPendingLatency: "string",
minIdleInstances: 0,
minPendingLatency: "string",
standardSchedulerSettings: {
maxInstances: 0,
minInstances: 0,
targetCpuUtilization: 0,
targetThroughputUtilization: 0,
},
},
serviceAccount: "string",
threadsafe: false,
versionId: "string",
vpcAccessConnector: {
name: "string",
egressSetting: "string",
},
});
type: gcp:appengine:StandardAppVersion
properties:
appEngineApis: false
automaticScaling:
maxConcurrentRequests: 0
maxIdleInstances: 0
maxPendingLatency: string
minIdleInstances: 0
minPendingLatency: string
standardSchedulerSettings:
maxInstances: 0
minInstances: 0
targetCpuUtilization: 0
targetThroughputUtilization: 0
basicScaling:
idleTimeout: string
maxInstances: 0
deleteServiceOnDestroy: false
deployment:
files:
- name: string
sha1Sum: string
sourceUrl: string
zip:
filesCount: 0
sourceUrl: string
entrypoint:
shell: string
envVariables:
string: string
handlers:
- authFailAction: string
login: string
redirectHttpResponseCode: string
script:
scriptPath: string
securityLevel: string
staticFiles:
applicationReadable: false
expiration: string
httpHeaders:
string: string
mimeType: string
path: string
requireMatchingFile: false
uploadPathRegex: string
urlRegex: string
inboundServices:
- string
instanceClass: string
libraries:
- name: string
version: string
manualScaling:
instances: 0
noopOnDestroy: false
project: string
runtime: string
runtimeApiVersion: string
service: string
serviceAccount: string
threadsafe: false
versionId: string
vpcAccessConnector:
egressSetting: string
name: string
StandardAppVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The StandardAppVersion resource accepts the following input properties:
- Deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- Entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- Runtime string
- Desired runtime. Example python27.
- Service string
- AppEngine service resource
- App
Engine boolApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- Automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- Basic
Scaling StandardApp Version Basic Scaling - 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.
- Delete
Service boolOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- Env
Variables Dictionary<string, string> - Environment variables available to the application.
- Handlers
List<Standard
App Version Handler> - 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.
- Inbound
Services List<string> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- Instance
Class 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.
- Libraries
List<Standard
App Version Library> - Configuration for third-party Python runtime libraries that are required by the application.
- Manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- Noop
On boolDestroy - If set to 'true', the application version will not be deleted.
- Project string
- Runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- Service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- Threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- Version
Id 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-".
- Vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- Deployment
Standard
App Version Deployment Args - Code and application artifacts that make up this version. Structure is documented below.
- Entrypoint
Standard
App Version Entrypoint Args - The entrypoint for the application. Structure is documented below.
- Runtime string
- Desired runtime. Example python27.
- Service string
- AppEngine service resource
- App
Engine boolApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- Automatic
Scaling StandardApp Version Automatic Scaling Args - Automatic scaling is based on request rate, response latencies, and other application metrics.
- Basic
Scaling StandardApp Version Basic Scaling Args - 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.
- Delete
Service boolOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- Env
Variables map[string]string - Environment variables available to the application.
- Handlers
[]Standard
App Version Handler Args - 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.
- Inbound
Services []string - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- Instance
Class 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.
- Libraries
[]Standard
App Version Library Args - Configuration for third-party Python runtime libraries that are required by the application.
- Manual
Scaling StandardApp Version Manual Scaling Args - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- Noop
On boolDestroy - If set to 'true', the application version will not be deleted.
- Project string
- Runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- Service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- Threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- Version
Id 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-".
- Vpc
Access StandardConnector App Version Vpc Access Connector Args - Enables VPC connectivity for standard apps.
- deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- runtime String
- Desired runtime. Example python27.
- service String
- AppEngine service resource
- app
Engine BooleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling StandardApp Version Basic Scaling - 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.
- delete
Service BooleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- env
Variables Map<String,String> - Environment variables available to the application.
- handlers
List<Standard
App Version Handler> - 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.
- inbound
Services List<String> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries
List<Standard
App Version Library> - Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- noop
On BooleanDestroy - If set to 'true', the application version will not be deleted.
- project String
- runtime
Api StringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service
Account String - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe Boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- runtime string
- Desired runtime. Example python27.
- service string
- AppEngine service resource
- app
Engine booleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling StandardApp Version Basic Scaling - 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.
- delete
Service booleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- env
Variables {[key: string]: string} - Environment variables available to the application.
- handlers
Standard
App Version Handler[] - 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.
- inbound
Services string[] - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries
Standard
App Version Library[] - Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- noop
On booleanDestroy - If set to 'true', the application version will not be deleted.
- project string
- runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- deployment
Standard
App Version Deployment Args - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint Args - The entrypoint for the application. Structure is documented below.
- runtime str
- Desired runtime. Example python27.
- service str
- AppEngine service resource
- app_
engine_ boolapis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic_
scaling StandardApp Version Automatic Scaling Args - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic_
scaling StandardApp Version Basic Scaling Args - 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.
- delete_
service_ boolon_ destroy - If set to 'true', the service will be deleted if it is the last version.
- env_
variables Mapping[str, str] - Environment variables available to the application.
- handlers
Sequence[Standard
App Version Handler Args] - 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.
- inbound_
services Sequence[str] - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance_
class str - 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.
- libraries
Sequence[Standard
App Version Library Args] - Configuration for third-party Python runtime libraries that are required by the application.
- manual_
scaling StandardApp Version Manual Scaling Args - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- noop_
on_ booldestroy - If set to 'true', the application version will not be deleted.
- project str
- runtime_
api_ strversion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service_
account str - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- version_
id str - 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-".
- vpc_
access_ Standardconnector App Version Vpc Access Connector Args - Enables VPC connectivity for standard apps.
- deployment Property Map
- Code and application artifacts that make up this version. Structure is documented below.
- entrypoint Property Map
- The entrypoint for the application. Structure is documented below.
- runtime String
- Desired runtime. Example python27.
- service String
- AppEngine service resource
- app
Engine BooleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling Property Map - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling Property Map - 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.
- delete
Service BooleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- env
Variables Map<String> - Environment variables available to the application.
- handlers List<Property Map>
- 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.
- inbound
Services List<String> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries List<Property Map>
- Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling Property Map - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- noop
On BooleanDestroy - If set to 'true', the application version will not be deleted.
- project String
- runtime
Api StringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service
Account String - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe Boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access Property MapConnector - Enables VPC connectivity for standard apps.
Outputs
All input properties are implicitly available as output properties. Additionally, the StandardAppVersion resource produces the following output properties:
Look up Existing StandardAppVersion Resource
Get an existing StandardAppVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StandardAppVersionState, opts?: CustomResourceOptions): StandardAppVersion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_engine_apis: Optional[bool] = None,
automatic_scaling: Optional[StandardAppVersionAutomaticScalingArgs] = None,
basic_scaling: Optional[StandardAppVersionBasicScalingArgs] = None,
delete_service_on_destroy: Optional[bool] = None,
deployment: Optional[StandardAppVersionDeploymentArgs] = None,
entrypoint: Optional[StandardAppVersionEntrypointArgs] = None,
env_variables: Optional[Mapping[str, str]] = None,
handlers: Optional[Sequence[StandardAppVersionHandlerArgs]] = None,
inbound_services: Optional[Sequence[str]] = None,
instance_class: Optional[str] = None,
libraries: Optional[Sequence[StandardAppVersionLibraryArgs]] = None,
manual_scaling: Optional[StandardAppVersionManualScalingArgs] = None,
name: Optional[str] = None,
noop_on_destroy: Optional[bool] = None,
project: Optional[str] = None,
runtime: Optional[str] = None,
runtime_api_version: Optional[str] = None,
service: Optional[str] = None,
service_account: Optional[str] = None,
threadsafe: Optional[bool] = None,
version_id: Optional[str] = None,
vpc_access_connector: Optional[StandardAppVersionVpcAccessConnectorArgs] = None) -> StandardAppVersion
func GetStandardAppVersion(ctx *Context, name string, id IDInput, state *StandardAppVersionState, opts ...ResourceOption) (*StandardAppVersion, error)
public static StandardAppVersion Get(string name, Input<string> id, StandardAppVersionState? state, CustomResourceOptions? opts = null)
public static StandardAppVersion get(String name, Output<String> id, StandardAppVersionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Engine boolApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- Automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- Basic
Scaling StandardApp Version Basic Scaling - 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.
- Delete
Service boolOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- Deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- Entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- Env
Variables Dictionary<string, string> - Environment variables available to the application.
- Handlers
List<Standard
App Version Handler> - 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.
- Inbound
Services List<string> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- Instance
Class 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.
- Libraries
List<Standard
App Version Library> - Configuration for third-party Python runtime libraries that are required by the application.
- Manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- Name string
- Full path to the Version resource in the API. Example, "v1".
- Noop
On boolDestroy - If set to 'true', the application version will not be deleted.
- Project string
- Runtime string
- Desired runtime. Example python27.
- Runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- Service string
- AppEngine service resource
- Service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- Threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- Version
Id 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-".
- Vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- App
Engine boolApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- Automatic
Scaling StandardApp Version Automatic Scaling Args - Automatic scaling is based on request rate, response latencies, and other application metrics.
- Basic
Scaling StandardApp Version Basic Scaling Args - 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.
- Delete
Service boolOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- Deployment
Standard
App Version Deployment Args - Code and application artifacts that make up this version. Structure is documented below.
- Entrypoint
Standard
App Version Entrypoint Args - The entrypoint for the application. Structure is documented below.
- Env
Variables map[string]string - Environment variables available to the application.
- Handlers
[]Standard
App Version Handler Args - 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.
- Inbound
Services []string - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- Instance
Class 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.
- Libraries
[]Standard
App Version Library Args - Configuration for third-party Python runtime libraries that are required by the application.
- Manual
Scaling StandardApp Version Manual Scaling Args - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- Name string
- Full path to the Version resource in the API. Example, "v1".
- Noop
On boolDestroy - If set to 'true', the application version will not be deleted.
- Project string
- Runtime string
- Desired runtime. Example python27.
- Runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- Service string
- AppEngine service resource
- Service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- Threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- Version
Id 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-".
- Vpc
Access StandardConnector App Version Vpc Access Connector Args - Enables VPC connectivity for standard apps.
- app
Engine BooleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling StandardApp Version Basic Scaling - 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.
- delete
Service BooleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- env
Variables Map<String,String> - Environment variables available to the application.
- handlers
List<Standard
App Version Handler> - 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.
- inbound
Services List<String> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries
List<Standard
App Version Library> - Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- name String
- Full path to the Version resource in the API. Example, "v1".
- noop
On BooleanDestroy - If set to 'true', the application version will not be deleted.
- project String
- runtime String
- Desired runtime. Example python27.
- runtime
Api StringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service String
- AppEngine service resource
- service
Account String - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe Boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- app
Engine booleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling StandardApp Version Automatic Scaling - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling StandardApp Version Basic Scaling - 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.
- delete
Service booleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- deployment
Standard
App Version Deployment - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint - The entrypoint for the application. Structure is documented below.
- env
Variables {[key: string]: string} - Environment variables available to the application.
- handlers
Standard
App Version Handler[] - 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.
- inbound
Services string[] - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries
Standard
App Version Library[] - Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling StandardApp Version Manual Scaling - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- name string
- Full path to the Version resource in the API. Example, "v1".
- noop
On booleanDestroy - If set to 'true', the application version will not be deleted.
- project string
- runtime string
- Desired runtime. Example python27.
- runtime
Api stringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service string
- AppEngine service resource
- service
Account string - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access StandardConnector App Version Vpc Access Connector - Enables VPC connectivity for standard apps.
- app_
engine_ boolapis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic_
scaling StandardApp Version Automatic Scaling Args - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic_
scaling StandardApp Version Basic Scaling Args - 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.
- delete_
service_ boolon_ destroy - If set to 'true', the service will be deleted if it is the last version.
- deployment
Standard
App Version Deployment Args - Code and application artifacts that make up this version. Structure is documented below.
- entrypoint
Standard
App Version Entrypoint Args - The entrypoint for the application. Structure is documented below.
- env_
variables Mapping[str, str] - Environment variables available to the application.
- handlers
Sequence[Standard
App Version Handler Args] - 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.
- inbound_
services Sequence[str] - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance_
class str - 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.
- libraries
Sequence[Standard
App Version Library Args] - Configuration for third-party Python runtime libraries that are required by the application.
- manual_
scaling StandardApp Version Manual Scaling Args - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- name str
- Full path to the Version resource in the API. Example, "v1".
- noop_
on_ booldestroy - If set to 'true', the application version will not be deleted.
- project str
- runtime str
- Desired runtime. Example python27.
- runtime_
api_ strversion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service str
- AppEngine service resource
- service_
account str - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe bool
- Whether multiple requests can be dispatched to this version at once.
- version_
id str - 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-".
- vpc_
access_ Standardconnector App Version Vpc Access Connector Args - Enables VPC connectivity for standard apps.
- app
Engine BooleanApis - Allows App Engine second generation runtimes to access the legacy bundled services.
- automatic
Scaling Property Map - Automatic scaling is based on request rate, response latencies, and other application metrics.
- basic
Scaling Property Map - 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.
- delete
Service BooleanOn Destroy - If set to 'true', the service will be deleted if it is the last version.
- deployment Property Map
- Code and application artifacts that make up this version. Structure is documented below.
- entrypoint Property Map
- The entrypoint for the application. Structure is documented below.
- env
Variables Map<String> - Environment variables available to the application.
- handlers List<Property Map>
- 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.
- inbound
Services List<String> - A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]
- instance
Class 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.
- libraries List<Property Map>
- Configuration for third-party Python runtime libraries that are required by the application.
- manual
Scaling Property Map - A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
- name String
- Full path to the Version resource in the API. Example, "v1".
- noop
On BooleanDestroy - If set to 'true', the application version will not be deleted.
- project String
- runtime String
- Desired runtime. Example python27.
- runtime
Api StringVersion - 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'\ Substitute '' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'.
- service String
- AppEngine service resource
- service
Account String - The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
- threadsafe Boolean
- Whether multiple requests can be dispatched to this version at once.
- version
Id 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-".
- vpc
Access Property MapConnector - Enables VPC connectivity for standard apps.
Supporting Types
StandardAppVersionAutomaticScaling, StandardAppVersionAutomaticScalingArgs
- Max
Concurrent intRequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- Max
Idle intInstances - Maximum number of idle instances that should be maintained for this version.
- Max
Pending stringLatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Min
Idle intInstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- Min
Pending stringLatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Standard
Scheduler StandardSettings App Version Automatic Scaling Standard Scheduler Settings - Scheduler settings for standard environment. Structure is documented below.
- Max
Concurrent intRequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- Max
Idle intInstances - Maximum number of idle instances that should be maintained for this version.
- Max
Pending stringLatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Min
Idle intInstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- Min
Pending stringLatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Standard
Scheduler StandardSettings App Version Automatic Scaling Standard Scheduler Settings - Scheduler settings for standard environment. Structure is documented below.
- max
Concurrent IntegerRequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- max
Idle IntegerInstances - Maximum number of idle instances that should be maintained for this version.
- max
Pending StringLatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- min
Idle IntegerInstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- min
Pending StringLatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- standard
Scheduler StandardSettings App Version Automatic Scaling Standard Scheduler Settings - Scheduler settings for standard environment. Structure is documented below.
- max
Concurrent numberRequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- max
Idle numberInstances - Maximum number of idle instances that should be maintained for this version.
- max
Pending stringLatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- min
Idle numberInstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- min
Pending stringLatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- standard
Scheduler StandardSettings App Version Automatic Scaling Standard Scheduler Settings - Scheduler settings for standard environment. Structure is documented below.
- max_
concurrent_ intrequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- max_
idle_ intinstances - Maximum number of idle instances that should be maintained for this version.
- max_
pending_ strlatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- min_
idle_ intinstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- min_
pending_ strlatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- standard_
scheduler_ Standardsettings App Version Automatic Scaling Standard Scheduler Settings - Scheduler settings for standard environment. Structure is documented below.
- max
Concurrent NumberRequests - Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.
- max
Idle NumberInstances - Maximum number of idle instances that should be maintained for this version.
- max
Pending StringLatency - Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- min
Idle NumberInstances - Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
- min
Pending StringLatency - Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- standard
Scheduler Property MapSettings - Scheduler settings for standard environment. Structure is documented below.
StandardAppVersionAutomaticScalingStandardSchedulerSettings, StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs
- Max
Instances int - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- Min
Instances int - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- Target
Cpu doubleUtilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- Target
Throughput doubleUtilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- Max
Instances int - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- Min
Instances int - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- Target
Cpu float64Utilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- Target
Throughput float64Utilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- max
Instances Integer - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- min
Instances Integer - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- target
Cpu DoubleUtilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- target
Throughput DoubleUtilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- max
Instances number - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- min
Instances number - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- target
Cpu numberUtilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- target
Throughput numberUtilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- max_
instances int - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- min_
instances int - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- target_
cpu_ floatutilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- target_
throughput_ floatutilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- max
Instances Number - Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
- min
Instances Number - Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
- target
Cpu NumberUtilization - Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
- target
Throughput NumberUtilization - Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
StandardAppVersionBasicScaling, StandardAppVersionBasicScalingArgs
- Max
Instances int - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- Idle
Timeout string - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
- Max
Instances int - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- Idle
Timeout string - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
- max
Instances Integer - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- idle
Timeout String - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
- max
Instances number - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- idle
Timeout string - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
- max_
instances int - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- idle_
timeout str - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
- max
Instances Number - Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
- idle
Timeout String - Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
StandardAppVersionDeployment, StandardAppVersionDeploymentArgs
- Files
List<Standard
App Version Deployment File> - Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- Zip
Standard
App Version Deployment Zip - Zip File Structure is documented below.
- Files
[]Standard
App Version Deployment File - Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- Zip
Standard
App Version Deployment Zip - Zip File Structure is documented below.
- files
List<Standard
App Version Deployment File> - Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- zip
Standard
App Version Deployment Zip - Zip File Structure is documented below.
- files
Standard
App Version Deployment File[] - Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- zip
Standard
App Version Deployment Zip - Zip File Structure is documented below.
- files
Sequence[Standard
App Version Deployment File] - Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- zip
Standard
App Version Deployment Zip - Zip File Structure is documented below.
- files List<Property Map>
- Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. Structure is documented below.
- zip Property Map
- Zip File Structure is documented below.
StandardAppVersionDeploymentFile, StandardAppVersionDeploymentFileArgs
- name str
- The identifier for this object. Format specified above.
- source_
url str - Source URL
- sha1_
sum str - SHA1 checksum of the file
StandardAppVersionDeploymentZip, StandardAppVersionDeploymentZipArgs
- Source
Url string - Source URL
- Files
Count int - files count
- Source
Url string - Source URL
- Files
Count int - files count
- source
Url String - Source URL
- files
Count Integer - files count
- source
Url string - Source URL
- files
Count number - files count
- source_
url str - Source URL
- files_
count int - files count
- source
Url String - Source URL
- files
Count Number - files count
StandardAppVersionEntrypoint, StandardAppVersionEntrypointArgs
- Shell string
- The format should be a shell command that can be fed to bash -c.
- Shell string
- The format should be a shell command that can be fed to bash -c.
- shell String
- The format should be a shell command that can be fed to bash -c.
- shell string
- The format should be a shell command that can be fed to bash -c.
- shell str
- The format should be a shell command that can be fed to bash -c.
- shell String
- The format should be a shell command that can be fed to bash -c.
StandardAppVersionHandler, StandardAppVersionHandlerArgs
- Auth
Fail stringAction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - Login string
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - Redirect
Http stringResponse Code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - Script
Standard
App Version Handler Script - Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- Security
Level string - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - Static
Files StandardApp Version Handler Static Files - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- Url
Regex string - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
- Auth
Fail stringAction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - Login string
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - Redirect
Http stringResponse Code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - Script
Standard
App Version Handler Script - Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- Security
Level string - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - Static
Files StandardApp Version Handler Static Files - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- Url
Regex string - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
- auth
Fail StringAction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - login String
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - redirect
Http StringResponse Code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - script
Standard
App Version Handler Script - Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- security
Level String - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - static
Files StandardApp Version Handler Static Files - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- url
Regex String - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
- auth
Fail stringAction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - login string
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - redirect
Http stringResponse Code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - script
Standard
App Version Handler Script - Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- security
Level string - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - static
Files StandardApp Version Handler Static Files - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- url
Regex string - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
- auth_
fail_ straction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - login str
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - redirect_
http_ strresponse_ code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - script
Standard
App Version Handler Script - Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- security_
level str - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - static_
files StandardApp Version Handler Static Files - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- url_
regex str - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
- auth
Fail StringAction - Actions to take when the user is not logged in.
Possible values are:
AUTH_FAIL_ACTION_REDIRECT
,AUTH_FAIL_ACTION_UNAUTHORIZED
. - login String
- Methods to restrict access to a URL based on login status.
Possible values are:
LOGIN_OPTIONAL
,LOGIN_ADMIN
,LOGIN_REQUIRED
. - redirect
Http StringResponse Code - 30x code to use when performing redirects for the secure field.
Possible values are:
REDIRECT_HTTP_RESPONSE_CODE_301
,REDIRECT_HTTP_RESPONSE_CODE_302
,REDIRECT_HTTP_RESPONSE_CODE_303
,REDIRECT_HTTP_RESPONSE_CODE_307
. - script Property Map
- Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto". Structure is documented below.
- security
Level String - Security (HTTPS) enforcement for this URL.
Possible values are:
SECURE_DEFAULT
,SECURE_NEVER
,SECURE_OPTIONAL
,SECURE_ALWAYS
. - static
Files Property Map - Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. Structure is documented below.
- url
Regex String - URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
StandardAppVersionHandlerScript, StandardAppVersionHandlerScriptArgs
- Script
Path string - Path to the script from the application root directory.
- Script
Path string - Path to the script from the application root directory.
- script
Path String - Path to the script from the application root directory.
- script
Path string - Path to the script from the application root directory.
- script_
path str - Path to the script from the application root directory.
- script
Path String - Path to the script from the application root directory.
StandardAppVersionHandlerStaticFiles, StandardAppVersionHandlerStaticFilesArgs
- Application
Readable bool - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- Expiration string
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- Http
Headers Dictionary<string, string> - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- Mime
Type string - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- Path string
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- Require
Matching boolFile - Whether this handler should match the request if the file referenced by the handler does not exist.
- Upload
Path stringRegex - Regular expression that matches the file paths for all files that should be referenced by this handler.
- Application
Readable bool - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- Expiration string
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- Http
Headers map[string]string - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- Mime
Type string - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- Path string
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- Require
Matching boolFile - Whether this handler should match the request if the file referenced by the handler does not exist.
- Upload
Path stringRegex - Regular expression that matches the file paths for all files that should be referenced by this handler.
- application
Readable Boolean - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- expiration String
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- http
Headers Map<String,String> - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- mime
Type String - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- path String
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- require
Matching BooleanFile - Whether this handler should match the request if the file referenced by the handler does not exist.
- upload
Path StringRegex - Regular expression that matches the file paths for all files that should be referenced by this handler.
- application
Readable boolean - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- expiration string
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- http
Headers {[key: string]: string} - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- mime
Type string - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- path string
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- require
Matching booleanFile - Whether this handler should match the request if the file referenced by the handler does not exist.
- upload
Path stringRegex - Regular expression that matches the file paths for all files that should be referenced by this handler.
- application_
readable bool - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- expiration str
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- http_
headers Mapping[str, str] - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- mime_
type str - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- path str
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- require_
matching_ boolfile - Whether this handler should match the request if the file referenced by the handler does not exist.
- upload_
path_ strregex - Regular expression that matches the file paths for all files that should be referenced by this handler.
- application
Readable Boolean - Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
- expiration String
- Time a static file served by this handler should be cached by web proxies and browsers. A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
- http
Headers Map<String> - HTTP headers to use for all responses from these URLs. An object containing a list of "key:value" value pairs.".
- mime
Type String - MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
- path String
- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
- require
Matching BooleanFile - Whether this handler should match the request if the file referenced by the handler does not exist.
- upload
Path StringRegex - Regular expression that matches the file paths for all files that should be referenced by this handler.
StandardAppVersionLibrary, StandardAppVersionLibraryArgs
StandardAppVersionManualScaling, StandardAppVersionManualScalingArgs
- Instances int
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
- Instances int
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
- instances Integer
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
- instances number
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
- instances int
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
- instances Number
- Number of instances to assign to the service at the start.
Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
Modules API set_num_instances() you must use
lifecycle.ignore_changes = ["manual_scaling"[0].instances]
to prevent drift detection.
StandardAppVersionVpcAccessConnector, StandardAppVersionVpcAccessConnectorArgs
- Name string
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- Egress
Setting string - The egress setting for the connector, controlling what traffic is diverted through it.
- Name string
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- Egress
Setting string - The egress setting for the connector, controlling what traffic is diverted through it.
- name String
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- egress
Setting String - The egress setting for the connector, controlling what traffic is diverted through it.
- name string
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- egress
Setting string - The egress setting for the connector, controlling what traffic is diverted through it.
- name str
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- egress_
setting str - The egress setting for the connector, controlling what traffic is diverted through it.
- name String
- Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
- egress
Setting String - The egress setting for the connector, controlling what traffic is diverted through it.
Import
StandardAppVersion can be imported using any of these accepted formats:
apps/{{project}}/services/{{service}}/versions/{{version_id}}
{{project}}/{{service}}/{{version_id}}
{{service}}/{{version_id}}
When using the pulumi import
command, StandardAppVersion can be imported using one of the formats above. For example:
$ pulumi import gcp:appengine/standardAppVersion:StandardAppVersion default apps/{{project}}/services/{{service}}/versions/{{version_id}}
$ pulumi import gcp:appengine/standardAppVersion:StandardAppVersion default {{project}}/{{service}}/{{version_id}}
$ pulumi import gcp:appengine/standardAppVersion:StandardAppVersion default {{service}}/{{version_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.