All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.appengine.kotlin.FlexibleAppVersionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.appengine.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.FlexibleAppVersionArgs.builder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionApiConfigArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionApiConfigArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionAutomaticScalingArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionAutomaticScalingArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionDeploymentArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionDeploymentArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionEndpointsApiServiceArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionEndpointsApiServiceArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionEntrypointArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionEntrypointArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionHandlerArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionHandlerArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionLivenessCheckArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionLivenessCheckArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionManualScalingArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionManualScalingArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionNetworkArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionNetworkArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionReadinessCheckArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionReadinessCheckArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionResourcesArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionResourcesArgsBuilder
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionVpcAccessConnectorArgs
import com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionVpcAccessConnectorArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Flexible App Version resource to create a new version of flexible GAE Application. Based on Google Compute Engine,
 * the App Engine flexible environment automatically scales your app up and down while also balancing the load.
 * Learn about the differences between the standard environment and the flexible environment
 * at https://cloud.google.com/appengine/docs/the-appengine-environments.
 * > **Note:** The App Engine flexible environment service account uses the member ID `service-[YOUR_PROJECT_NUMBER]@gae-api-prod.google.com.iam.gserviceaccount.com`
 * It should have the App Engine Flexible Environment Service Agent role, which will be applied when the `appengineflex.googleapis.com` service is enabled.
 * To get more information about FlexibleAppVersion, see:
 * * [API documentation](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/appengine/docs/flexible)
 * ## Example Usage
 * ### App Engine Flexible App Version
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const myProject = new gcp.organizations.Project("my_project", {
 *     name: "appeng-flex",
 *     projectId: "appeng-flex",
 *     orgId: "123456789",
 *     billingAccount: "000000-0000000-0000000-000000",
 * });
 * const app = new gcp.appengine.Application("app", {
 *     project: myProject.projectId,
 *     locationId: "us-central",
 * });
 * const service = new gcp.projects.Service("service", {
 *     project: myProject.projectId,
 *     service: "appengineflex.googleapis.com",
 *     disableDependentServices: false,
 * });
 * const customServiceAccount = new gcp.serviceaccount.Account("custom_service_account", {
 *     project: service.project,
 *     accountId: "my-account",
 *     displayName: "Custom Service Account",
 * });
 * const gaeApi = new gcp.projects.IAMMember("gae_api", {
 *     project: service.project,
 *     role: "roles/compute.networkUser",
 *     member: pulumi.interpolate`serviceAccount:${customServiceAccount.email}`,
 * });
 * const logsWriter = new gcp.projects.IAMMember("logs_writer", {
 *     project: service.project,
 *     role: "roles/logging.logWriter",
 *     member: pulumi.interpolate`serviceAccount:${customServiceAccount.email}`,
 * });
 * const storageViewer = new gcp.projects.IAMMember("storage_viewer", {
 *     project: service.project,
 *     role: "roles/storage.objectViewer",
 *     member: pulumi.interpolate`serviceAccount:${customServiceAccount.email}`,
 * });
 * const bucket = new gcp.storage.Bucket("bucket", {
 *     project: myProject.projectId,
 *     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.FlexibleAppVersion("myapp_v1", {
 *     versionId: "v1",
 *     project: gaeApi.project,
 *     service: "default",
 *     runtime: "nodejs",
 *     entrypoint: {
 *         shell: "node ./app.js",
 *     },
 *     deployment: {
 *         zip: {
 *             sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
 *         },
 *     },
 *     livenessCheck: {
 *         path: "/",
 *     },
 *     readinessCheck: {
 *         path: "/",
 *     },
 *     envVariables: {
 *         port: "8080",
 *     },
 *     handlers: [{
 *         urlRegex: ".*\\/my-path\\/*",
 *         securityLevel: "SECURE_ALWAYS",
 *         login: "LOGIN_REQUIRED",
 *         authFailAction: "AUTH_FAIL_ACTION_REDIRECT",
 *         staticFiles: {
 *             path: "my-other-path",
 *             uploadPathRegex: ".*\\/my-path\\/*",
 *         },
 *     }],
 *     automaticScaling: {
 *         coolDownPeriod: "120s",
 *         cpuUtilization: {
 *             targetUtilization: 0.5,
 *         },
 *     },
 *     noopOnDestroy: true,
 *     serviceAccount: customServiceAccount.email,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * my_project = gcp.organizations.Project("my_project",
 *     name="appeng-flex",
 *     project_id="appeng-flex",
 *     org_id="123456789",
 *     billing_account="000000-0000000-0000000-000000")
 * app = gcp.appengine.Application("app",
 *     project=my_project.project_id,
 *     location_id="us-central")
 * service = gcp.projects.Service("service",
 *     project=my_project.project_id,
 *     service="appengineflex.googleapis.com",
 *     disable_dependent_services=False)
 * custom_service_account = gcp.serviceaccount.Account("custom_service_account",
 *     project=service.project,
 *     account_id="my-account",
 *     display_name="Custom Service Account")
 * gae_api = gcp.projects.IAMMember("gae_api",
 *     project=service.project,
 *     role="roles/compute.networkUser",
 *     member=custom_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
 * logs_writer = gcp.projects.IAMMember("logs_writer",
 *     project=service.project,
 *     role="roles/logging.logWriter",
 *     member=custom_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
 * storage_viewer = gcp.projects.IAMMember("storage_viewer",
 *     project=service.project,
 *     role="roles/storage.objectViewer",
 *     member=custom_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
 * bucket = gcp.storage.Bucket("bucket",
 *     project=my_project.project_id,
 *     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.FlexibleAppVersion("myapp_v1",
 *     version_id="v1",
 *     project=gae_api.project,
 *     service="default",
 *     runtime="nodejs",
 *     entrypoint=gcp.appengine.FlexibleAppVersionEntrypointArgs(
 *         shell="node ./app.js",
 *     ),
 *     deployment=gcp.appengine.FlexibleAppVersionDeploymentArgs(
 *         zip=gcp.appengine.FlexibleAppVersionDeploymentZipArgs(
 *             source_url=pulumi.Output.all(bucket.name, object.name).apply(lambda bucketName, objectName: f"https://storage.googleapis.com/{bucket_name}/{object_name}"),
 *         ),
 *     ),
 *     liveness_check=gcp.appengine.FlexibleAppVersionLivenessCheckArgs(
 *         path="/",
 *     ),
 *     readiness_check=gcp.appengine.FlexibleAppVersionReadinessCheckArgs(
 *         path="/",
 *     ),
 *     env_variables={
 *         "port": "8080",
 *     },
 *     handlers=[gcp.appengine.FlexibleAppVersionHandlerArgs(
 *         url_regex=".*\\/my-path\\/*",
 *         security_level="SECURE_ALWAYS",
 *         login="LOGIN_REQUIRED",
 *         auth_fail_action="AUTH_FAIL_ACTION_REDIRECT",
 *         static_files=gcp.appengine.FlexibleAppVersionHandlerStaticFilesArgs(
 *             path="my-other-path",
 *             upload_path_regex=".*\\/my-path\\/*",
 *         ),
 *     )],
 *     automatic_scaling=gcp.appengine.FlexibleAppVersionAutomaticScalingArgs(
 *         cool_down_period="120s",
 *         cpu_utilization=gcp.appengine.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs(
 *             target_utilization=0.5,
 *         ),
 *     ),
 *     noop_on_destroy=True,
 *     service_account=custom_service_account.email)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myProject = new Gcp.Organizations.Project("my_project", new()
 *     {
 *         Name = "appeng-flex",
 *         ProjectId = "appeng-flex",
 *         OrgId = "123456789",
 *         BillingAccount = "000000-0000000-0000000-000000",
 *     });
 *     var app = new Gcp.AppEngine.Application("app", new()
 *     {
 *         Project = myProject.ProjectId,
 *         LocationId = "us-central",
 *     });
 *     var service = new Gcp.Projects.Service("service", new()
 *     {
 *         Project = myProject.ProjectId,
 *         ServiceName = "appengineflex.googleapis.com",
 *         DisableDependentServices = false,
 *     });
 *     var customServiceAccount = new Gcp.ServiceAccount.Account("custom_service_account", new()
 *     {
 *         Project = service.Project,
 *         AccountId = "my-account",
 *         DisplayName = "Custom Service Account",
 *     });
 *     var gaeApi = new Gcp.Projects.IAMMember("gae_api", new()
 *     {
 *         Project = service.Project,
 *         Role = "roles/compute.networkUser",
 *         Member = customServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
 *     });
 *     var logsWriter = new Gcp.Projects.IAMMember("logs_writer", new()
 *     {
 *         Project = service.Project,
 *         Role = "roles/logging.logWriter",
 *         Member = customServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
 *     });
 *     var storageViewer = new Gcp.Projects.IAMMember("storage_viewer", new()
 *     {
 *         Project = service.Project,
 *         Role = "roles/storage.objectViewer",
 *         Member = customServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
 *     });
 *     var bucket = new Gcp.Storage.Bucket("bucket", new()
 *     {
 *         Project = myProject.ProjectId,
 *         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.FlexibleAppVersion("myapp_v1", new()
 *     {
 *         VersionId = "v1",
 *         Project = gaeApi.Project,
 *         Service = "default",
 *         Runtime = "nodejs",
 *         Entrypoint = new Gcp.AppEngine.Inputs.FlexibleAppVersionEntrypointArgs
 *         {
 *             Shell = "node ./app.js",
 *         },
 *         Deployment = new Gcp.AppEngine.Inputs.FlexibleAppVersionDeploymentArgs
 *         {
 *             Zip = new Gcp.AppEngine.Inputs.FlexibleAppVersionDeploymentZipArgs
 *             {
 *                 SourceUrl = Output.Tuple(bucket.Name, @object.Name).Apply(values =>
 *                 {
 *                     var bucketName = values.Item1;
 *                     var objectName = values.Item2;
 *                     return $"https://storage.googleapis.com/{bucketName}/{objectName}";
 *                 }),
 *             },
 *         },
 *         LivenessCheck = new Gcp.AppEngine.Inputs.FlexibleAppVersionLivenessCheckArgs
 *         {
 *             Path = "/",
 *         },
 *         ReadinessCheck = new Gcp.AppEngine.Inputs.FlexibleAppVersionReadinessCheckArgs
 *         {
 *             Path = "/",
 *         },
 *         EnvVariables =
 *         {
 *             { "port", "8080" },
 *         },
 *         Handlers = new[]
 *         {
 *             new Gcp.AppEngine.Inputs.FlexibleAppVersionHandlerArgs
 *             {
 *                 UrlRegex = ".*\\/my-path\\/*",
 *                 SecurityLevel = "SECURE_ALWAYS",
 *                 Login = "LOGIN_REQUIRED",
 *                 AuthFailAction = "AUTH_FAIL_ACTION_REDIRECT",
 *                 StaticFiles = new Gcp.AppEngine.Inputs.FlexibleAppVersionHandlerStaticFilesArgs
 *                 {
 *                     Path = "my-other-path",
 *                     UploadPathRegex = ".*\\/my-path\\/*",
 *                 },
 *             },
 *         },
 *         AutomaticScaling = new Gcp.AppEngine.Inputs.FlexibleAppVersionAutomaticScalingArgs
 *         {
 *             CoolDownPeriod = "120s",
 *             CpuUtilization = new Gcp.AppEngine.Inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs
 *             {
 *                 TargetUtilization = 0.5,
 *             },
 *         },
 *         NoopOnDestroy = true,
 *         ServiceAccount = customServiceAccount.Email,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"fmt"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/appengine"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
 * 	"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 {
 * 		myProject, err := organizations.NewProject(ctx, "my_project", &organizations.ProjectArgs{
 * 			Name:           pulumi.String("appeng-flex"),
 * 			ProjectId:      pulumi.String("appeng-flex"),
 * 			OrgId:          pulumi.String("123456789"),
 * 			BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appengine.NewApplication(ctx, "app", &appengine.ApplicationArgs{
 * 			Project:    myProject.ProjectId,
 * 			LocationId: pulumi.String("us-central"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		service, err := projects.NewService(ctx, "service", &projects.ServiceArgs{
 * 			Project:                  myProject.ProjectId,
 * 			Service:                  pulumi.String("appengineflex.googleapis.com"),
 * 			DisableDependentServices: pulumi.Bool(false),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		customServiceAccount, err := serviceaccount.NewAccount(ctx, "custom_service_account", &serviceaccount.AccountArgs{
 * 			Project:     service.Project,
 * 			AccountId:   pulumi.String("my-account"),
 * 			DisplayName: pulumi.String("Custom Service Account"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		gaeApi, err := projects.NewIAMMember(ctx, "gae_api", &projects.IAMMemberArgs{
 * 			Project: service.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, "logs_writer", &projects.IAMMemberArgs{
 * 			Project: service.Project,
 * 			Role:    pulumi.String("roles/logging.logWriter"),
 * 			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: service.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{
 * 			Project:  myProject.ProjectId,
 * 			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.NewFlexibleAppVersion(ctx, "myapp_v1", &appengine.FlexibleAppVersionArgs{
 * 			VersionId: pulumi.String("v1"),
 * 			Project:   gaeApi.Project,
 * 			Service:   pulumi.String("default"),
 * 			Runtime:   pulumi.String("nodejs"),
 * 			Entrypoint: &appengine.FlexibleAppVersionEntrypointArgs{
 * 				Shell: pulumi.String("node ./app.js"),
 * 			},
 * 			Deployment: &appengine.FlexibleAppVersionDeploymentArgs{
 * 				Zip: &appengine.FlexibleAppVersionDeploymentZipArgs{
 * 					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),
 * 				},
 * 			},
 * 			LivenessCheck: &appengine.FlexibleAppVersionLivenessCheckArgs{
 * 				Path: pulumi.String("/"),
 * 			},
 * 			ReadinessCheck: &appengine.FlexibleAppVersionReadinessCheckArgs{
 * 				Path: pulumi.String("/"),
 * 			},
 * 			EnvVariables: pulumi.StringMap{
 * 				"port": pulumi.String("8080"),
 * 			},
 * 			Handlers: appengine.FlexibleAppVersionHandlerArray{
 * 				&appengine.FlexibleAppVersionHandlerArgs{
 * 					UrlRegex:       pulumi.String(".*\\/my-path\\/*"),
 * 					SecurityLevel:  pulumi.String("SECURE_ALWAYS"),
 * 					Login:          pulumi.String("LOGIN_REQUIRED"),
 * 					AuthFailAction: pulumi.String("AUTH_FAIL_ACTION_REDIRECT"),
 * 					StaticFiles: &appengine.FlexibleAppVersionHandlerStaticFilesArgs{
 * 						Path:            pulumi.String("my-other-path"),
 * 						UploadPathRegex: pulumi.String(".*\\/my-path\\/*"),
 * 					},
 * 				},
 * 			},
 * 			AutomaticScaling: &appengine.FlexibleAppVersionAutomaticScalingArgs{
 * 				CoolDownPeriod: pulumi.String("120s"),
 * 				CpuUtilization: &appengine.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs{
 * 					TargetUtilization: pulumi.Float64(0.5),
 * 				},
 * 			},
 * 			NoopOnDestroy:  pulumi.Bool(true),
 * 			ServiceAccount: customServiceAccount.Email,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.organizations.Project;
 * import com.pulumi.gcp.organizations.ProjectArgs;
 * import com.pulumi.gcp.appengine.Application;
 * import com.pulumi.gcp.appengine.ApplicationArgs;
 * import com.pulumi.gcp.projects.Service;
 * import com.pulumi.gcp.projects.ServiceArgs;
 * 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.FlexibleAppVersion;
 * import com.pulumi.gcp.appengine.FlexibleAppVersionArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionEntrypointArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionDeploymentArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionDeploymentZipArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionLivenessCheckArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionReadinessCheckArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionHandlerArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionHandlerStaticFilesArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionAutomaticScalingArgs;
 * import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs;
 * 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 myProject = new Project("myProject", ProjectArgs.builder()
 *             .name("appeng-flex")
 *             .projectId("appeng-flex")
 *             .orgId("123456789")
 *             .billingAccount("000000-0000000-0000000-000000")
 *             .build());
 *         var app = new Application("app", ApplicationArgs.builder()
 *             .project(myProject.projectId())
 *             .locationId("us-central")
 *             .build());
 *         var service = new Service("service", ServiceArgs.builder()
 *             .project(myProject.projectId())
 *             .service("appengineflex.googleapis.com")
 *             .disableDependentServices(false)
 *             .build());
 *         var customServiceAccount = new Account("customServiceAccount", AccountArgs.builder()
 *             .project(service.project())
 *             .accountId("my-account")
 *             .displayName("Custom Service Account")
 *             .build());
 *         var gaeApi = new IAMMember("gaeApi", IAMMemberArgs.builder()
 *             .project(service.project())
 *             .role("roles/compute.networkUser")
 *             .member(customServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
 *             .build());
 *         var logsWriter = new IAMMember("logsWriter", IAMMemberArgs.builder()
 *             .project(service.project())
 *             .role("roles/logging.logWriter")
 *             .member(customServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
 *             .build());
 *         var storageViewer = new IAMMember("storageViewer", IAMMemberArgs.builder()
 *             .project(service.project())
 *             .role("roles/storage.objectViewer")
 *             .member(customServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
 *             .build());
 *         var bucket = new Bucket("bucket", BucketArgs.builder()
 *             .project(myProject.projectId())
 *             .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 FlexibleAppVersion("myappV1", FlexibleAppVersionArgs.builder()
 *             .versionId("v1")
 *             .project(gaeApi.project())
 *             .service("default")
 *             .runtime("nodejs")
 *             .entrypoint(FlexibleAppVersionEntrypointArgs.builder()
 *                 .shell("node ./app.js")
 *                 .build())
 *             .deployment(FlexibleAppVersionDeploymentArgs.builder()
 *                 .zip(FlexibleAppVersionDeploymentZipArgs.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())
 *             .livenessCheck(FlexibleAppVersionLivenessCheckArgs.builder()
 *                 .path("/")
 *                 .build())
 *             .readinessCheck(FlexibleAppVersionReadinessCheckArgs.builder()
 *                 .path("/")
 *                 .build())
 *             .envVariables(Map.of("port", "8080"))
 *             .handlers(FlexibleAppVersionHandlerArgs.builder()
 *                 .urlRegex(".*\\/my-path\\/*")
 *                 .securityLevel("SECURE_ALWAYS")
 *                 .login("LOGIN_REQUIRED")
 *                 .authFailAction("AUTH_FAIL_ACTION_REDIRECT")
 *                 .staticFiles(FlexibleAppVersionHandlerStaticFilesArgs.builder()
 *                     .path("my-other-path")
 *                     .uploadPathRegex(".*\\/my-path\\/*")
 *                     .build())
 *                 .build())
 *             .automaticScaling(FlexibleAppVersionAutomaticScalingArgs.builder()
 *                 .coolDownPeriod("120s")
 *                 .cpuUtilization(FlexibleAppVersionAutomaticScalingCpuUtilizationArgs.builder()
 *                     .targetUtilization(0.5)
 *                     .build())
 *                 .build())
 *             .noopOnDestroy(true)
 *             .serviceAccount(customServiceAccount.email())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myProject:
 *     type: gcp:organizations:Project
 *     name: my_project
 *     properties:
 *       name: appeng-flex
 *       projectId: appeng-flex
 *       orgId: '123456789'
 *       billingAccount: 000000-0000000-0000000-000000
 *   app:
 *     type: gcp:appengine:Application
 *     properties:
 *       project: ${myProject.projectId}
 *       locationId: us-central
 *   service:
 *     type: gcp:projects:Service
 *     properties:
 *       project: ${myProject.projectId}
 *       service: appengineflex.googleapis.com
 *       disableDependentServices: false
 *   customServiceAccount:
 *     type: gcp:serviceaccount:Account
 *     name: custom_service_account
 *     properties:
 *       project: ${service.project}
 *       accountId: my-account
 *       displayName: Custom Service Account
 *   gaeApi:
 *     type: gcp:projects:IAMMember
 *     name: gae_api
 *     properties:
 *       project: ${service.project}
 *       role: roles/compute.networkUser
 *       member: serviceAccount:${customServiceAccount.email}
 *   logsWriter:
 *     type: gcp:projects:IAMMember
 *     name: logs_writer
 *     properties:
 *       project: ${service.project}
 *       role: roles/logging.logWriter
 *       member: serviceAccount:${customServiceAccount.email}
 *   storageViewer:
 *     type: gcp:projects:IAMMember
 *     name: storage_viewer
 *     properties:
 *       project: ${service.project}
 *       role: roles/storage.objectViewer
 *       member: serviceAccount:${customServiceAccount.email}
 *   myappV1:
 *     type: gcp:appengine:FlexibleAppVersion
 *     name: myapp_v1
 *     properties:
 *       versionId: v1
 *       project: ${gaeApi.project}
 *       service: default
 *       runtime: nodejs
 *       entrypoint:
 *         shell: node ./app.js
 *       deployment:
 *         zip:
 *           sourceUrl: https://storage.googleapis.com/${bucket.name}/${object.name}
 *       livenessCheck:
 *         path: /
 *       readinessCheck:
 *         path: /
 *       envVariables:
 *         port: '8080'
 *       handlers:
 *         - urlRegex: .*\/my-path\/*
 *           securityLevel: SECURE_ALWAYS
 *           login: LOGIN_REQUIRED
 *           authFailAction: AUTH_FAIL_ACTION_REDIRECT
 *           staticFiles:
 *             path: my-other-path
 *             uploadPathRegex: .*\/my-path\/*
 *       automaticScaling:
 *         coolDownPeriod: 120s
 *         cpuUtilization:
 *           targetUtilization: 0.5
 *       noopOnDestroy: true
 *       serviceAccount: ${customServiceAccount.email}
 *   bucket:
 *     type: gcp:storage:Bucket
 *     properties:
 *       project: ${myProject.projectId}
 *       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
 * ```
 * 
 * ## Import
 * FlexibleAppVersion 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, FlexibleAppVersion can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:appengine/flexibleAppVersion:FlexibleAppVersion default apps/{{project}}/services/{{service}}/versions/{{version_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:appengine/flexibleAppVersion:FlexibleAppVersion default {{project}}/{{service}}/{{version_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:appengine/flexibleAppVersion:FlexibleAppVersion default {{service}}/{{version_id}}
 * ```
 * @property apiConfig Serving configuration for Google Cloud Endpoints.
 * @property automaticScaling Automatic scaling is based on request rate, response latencies, and other application metrics.
 * @property betaSettings Metadata settings that are supplied to this version to enable beta runtime features.
 * @property defaultExpiration Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding
 * StaticFilesHandler does not specify its own expiration time.
 * @property deleteServiceOnDestroy If set to 'true', the service will be deleted if it is the last version.
 * @property deployment Code and application artifacts that make up this version.
 * @property endpointsApiService Code and application artifacts that make up this version.
 * @property entrypoint The entrypoint for the application.
 * @property envVariables
 * @property handlers 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.
 * @property inboundServices 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"]
 * @property instanceClass Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1,
 * B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.
 * @property livenessCheck Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
 * Structure is documented below.
 * @property manualScaling A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of
 * its memory over time.
 * @property network Extra network settings
 * @property nobuildFilesRegex Files that match this pattern will not be built into this version. Only applicable for Go runtimes.
 * @property noopOnDestroy If set to 'true', the application version will not be deleted.
 * @property project
 * @property readinessCheck Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.
 * Structure is documented below.
 * @property resources Machine resources for a version.
 * @property runtime Desired runtime. Example python27.
 * @property runtimeApiVersion 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'.
 * @property runtimeChannel The channel of the runtime to use. Only available for some runtimes.
 * @property runtimeMainExecutablePath The path or name of the app's main executable.
 * @property service AppEngine service resource. Can contain numbers, letters, and hyphens.
 * @property serviceAccount 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.
 * @property servingStatus Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.
 * Default value: "SERVING" Possible values: ["SERVING", "STOPPED"]
 * @property versionId Relative name of the version within the service. For example, 'v1'. Version names can contain only lowercase letters,
 * numbers, or hyphens. Reserved names,"default", "latest", and any name with the prefix "ah-".
 * @property vpcAccessConnector Enables VPC connectivity for standard apps.
 * */*/*/*/*/*/*/*/*/*/*/*/
 */
public data class FlexibleAppVersionArgs(
    public val apiConfig: Output? = null,
    public val automaticScaling: Output? = null,
    public val betaSettings: Output>? = null,
    public val defaultExpiration: Output? = null,
    public val deleteServiceOnDestroy: Output? = null,
    public val deployment: Output? = null,
    public val endpointsApiService: Output? = null,
    public val entrypoint: Output? = null,
    public val envVariables: Output>? = null,
    public val handlers: Output>? = null,
    public val inboundServices: Output>? = null,
    public val instanceClass: Output? = null,
    public val livenessCheck: Output? = null,
    public val manualScaling: Output? = null,
    public val network: Output? = null,
    public val nobuildFilesRegex: Output? = null,
    public val noopOnDestroy: Output? = null,
    public val project: Output? = null,
    public val readinessCheck: Output? = null,
    public val resources: Output? = null,
    public val runtime: Output? = null,
    public val runtimeApiVersion: Output? = null,
    public val runtimeChannel: Output? = null,
    public val runtimeMainExecutablePath: Output? = null,
    public val service: Output? = null,
    public val serviceAccount: Output? = null,
    public val servingStatus: Output? = null,
    public val versionId: Output? = null,
    public val vpcAccessConnector: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.FlexibleAppVersionArgs =
        com.pulumi.gcp.appengine.FlexibleAppVersionArgs.builder()
            .apiConfig(apiConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .automaticScaling(automaticScaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .betaSettings(
                betaSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .defaultExpiration(defaultExpiration?.applyValue({ args0 -> args0 }))
            .deleteServiceOnDestroy(deleteServiceOnDestroy?.applyValue({ args0 -> args0 }))
            .deployment(deployment?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .endpointsApiService(
                endpointsApiService?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .entrypoint(entrypoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .envVariables(
                envVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .handlers(
                handlers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .inboundServices(inboundServices?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .instanceClass(instanceClass?.applyValue({ args0 -> args0 }))
            .livenessCheck(livenessCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .manualScaling(manualScaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .network(network?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .nobuildFilesRegex(nobuildFilesRegex?.applyValue({ args0 -> args0 }))
            .noopOnDestroy(noopOnDestroy?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .readinessCheck(readinessCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resources(resources?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .runtime(runtime?.applyValue({ args0 -> args0 }))
            .runtimeApiVersion(runtimeApiVersion?.applyValue({ args0 -> args0 }))
            .runtimeChannel(runtimeChannel?.applyValue({ args0 -> args0 }))
            .runtimeMainExecutablePath(runtimeMainExecutablePath?.applyValue({ args0 -> args0 }))
            .service(service?.applyValue({ args0 -> args0 }))
            .serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
            .servingStatus(servingStatus?.applyValue({ args0 -> args0 }))
            .versionId(versionId?.applyValue({ args0 -> args0 }))
            .vpcAccessConnector(
                vpcAccessConnector?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FlexibleAppVersionArgs].
 */
@PulumiTagMarker
public class FlexibleAppVersionArgsBuilder internal constructor() {
    private var apiConfig: Output? = null

    private var automaticScaling: Output? = null

    private var betaSettings: Output>? = null

    private var defaultExpiration: Output? = null

    private var deleteServiceOnDestroy: Output? = null

    private var deployment: Output? = null

    private var endpointsApiService: Output? = null

    private var entrypoint: Output? = null

    private var envVariables: Output>? = null

    private var handlers: Output>? = null

    private var inboundServices: Output>? = null

    private var instanceClass: Output? = null

    private var livenessCheck: Output? = null

    private var manualScaling: Output? = null

    private var network: Output? = null

    private var nobuildFilesRegex: Output? = null

    private var noopOnDestroy: Output? = null

    private var project: Output? = null

    private var readinessCheck: Output? = null

    private var resources: Output? = null

    private var runtime: Output? = null

    private var runtimeApiVersion: Output? = null

    private var runtimeChannel: Output? = null

    private var runtimeMainExecutablePath: Output? = null

    private var service: Output? = null

    private var serviceAccount: Output? = null

    private var servingStatus: Output? = null

    private var versionId: Output? = null

    private var vpcAccessConnector: Output? = null

    /**
     * @param value Serving configuration for Google Cloud Endpoints.
     */
    @JvmName("dogppnbaljfaoxhr")
    public suspend fun apiConfig(`value`: Output) {
        this.apiConfig = value
    }

    /**
     * @param value Automatic scaling is based on request rate, response latencies, and other application metrics.
     */
    @JvmName("yfufeqkexljbnnfv")
    public suspend fun automaticScaling(`value`: Output) {
        this.automaticScaling = value
    }

    /**
     * @param value Metadata settings that are supplied to this version to enable beta runtime features.
     */
    @JvmName("gryosovlbwuoomue")
    public suspend fun betaSettings(`value`: Output>) {
        this.betaSettings = value
    }

    /**
     * @param value Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding
     * StaticFilesHandler does not specify its own expiration time.
     */
    @JvmName("xsthkgithajgwvyo")
    public suspend fun defaultExpiration(`value`: Output) {
        this.defaultExpiration = value
    }

    /**
     * @param value If set to 'true', the service will be deleted if it is the last version.
     */
    @JvmName("wwltuynjqarpwjij")
    public suspend fun deleteServiceOnDestroy(`value`: Output) {
        this.deleteServiceOnDestroy = value
    }

    /**
     * @param value Code and application artifacts that make up this version.
     */
    @JvmName("rypatolmrhkmpigd")
    public suspend fun deployment(`value`: Output) {
        this.deployment = value
    }

    /**
     * @param value Code and application artifacts that make up this version.
     */
    @JvmName("drvmiufelqquofon")
    public suspend fun endpointsApiService(`value`: Output) {
        this.endpointsApiService = value
    }

    /**
     * @param value The entrypoint for the application.
     */
    @JvmName("eqlayffiaesmufxf")
    public suspend fun entrypoint(`value`: Output) {
        this.entrypoint = value
    }

    /**
     * @param value
     */
    @JvmName("rgjonvdclpjesyxp")
    public suspend fun envVariables(`value`: Output>) {
        this.envVariables = value
    }

    /**
     * @param value 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.
     */
    @JvmName("pfmddlawtpnrbyoj")
    public suspend fun handlers(`value`: Output>) {
        this.handlers = value
    }

    @JvmName("ryciaspkdremrnwm")
    public suspend fun handlers(vararg values: Output) {
        this.handlers = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("dammdvcjgpjaeton")
    public suspend fun handlers(values: List>) {
        this.handlers = Output.all(values)
    }

    /**
     * @param value 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"]
     */
    @JvmName("qajkfobdapiwrrni")
    public suspend fun inboundServices(`value`: Output>) {
        this.inboundServices = value
    }

    @JvmName("oyfrdmhditvdpyqd")
    public suspend fun inboundServices(vararg values: Output) {
        this.inboundServices = Output.all(values.asList())
    }

    /**
     * @param values 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"]
     */
    @JvmName("ughfjhoswhhyjonj")
    public suspend fun inboundServices(values: List>) {
        this.inboundServices = Output.all(values)
    }

    /**
     * @param value Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1,
     * B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.
     */
    @JvmName("gwohsigucnhpvwgf")
    public suspend fun instanceClass(`value`: Output) {
        this.instanceClass = value
    }

    /**
     * @param value Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
     * Structure is documented below.
     */
    @JvmName("wwaebovgdfbccgjt")
    public suspend fun livenessCheck(`value`: Output) {
        this.livenessCheck = value
    }

    /**
     * @param value A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of
     * its memory over time.
     */
    @JvmName("kakjgtskffiyilnv")
    public suspend fun manualScaling(`value`: Output) {
        this.manualScaling = value
    }

    /**
     * @param value Extra network settings
     */
    @JvmName("rpmcwbqhghhotjug")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value Files that match this pattern will not be built into this version. Only applicable for Go runtimes.
     */
    @JvmName("iigpxicybfntgdoa")
    public suspend fun nobuildFilesRegex(`value`: Output) {
        this.nobuildFilesRegex = value
    }

    /**
     * @param value If set to 'true', the application version will not be deleted.
     */
    @JvmName("akhhmwjrvumpmuao")
    public suspend fun noopOnDestroy(`value`: Output) {
        this.noopOnDestroy = value
    }

    /**
     * @param value
     */
    @JvmName("qkcvkpfnepvlrbbf")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.
     * Structure is documented below.
     */
    @JvmName("qjjddhkjjnnstayf")
    public suspend fun readinessCheck(`value`: Output) {
        this.readinessCheck = value
    }

    /**
     * @param value Machine resources for a version.
     */
    @JvmName("dbtvmngckfgctkxb")
    public suspend fun resources(`value`: Output) {
        this.resources = value
    }

    /**
     * @param value Desired runtime. Example python27.
     */
    @JvmName("lphxinaruwarrdqb")
    public suspend fun runtime(`value`: Output) {
        this.runtime = value
    }

    /**
     * @param value 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'.
     */
    @JvmName("agrkhekighpbutig")
    public suspend fun runtimeApiVersion(`value`: Output) {
        this.runtimeApiVersion = value
    }

    /**
     * @param value The channel of the runtime to use. Only available for some runtimes.
     */
    @JvmName("mijahpjfnsecphwq")
    public suspend fun runtimeChannel(`value`: Output) {
        this.runtimeChannel = value
    }

    /**
     * @param value The path or name of the app's main executable.
     */
    @JvmName("ygbaqrormqwnjccd")
    public suspend fun runtimeMainExecutablePath(`value`: Output) {
        this.runtimeMainExecutablePath = value
    }

    /**
     * @param value AppEngine service resource. Can contain numbers, letters, and hyphens.
     */
    @JvmName("xkaifbkuqafmdppt")
    public suspend fun service(`value`: Output) {
        this.service = value
    }

    /**
     * @param value 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.
     */
    @JvmName("krhqfobsmtibccap")
    public suspend fun serviceAccount(`value`: Output) {
        this.serviceAccount = value
    }

    /**
     * @param value Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.
     * Default value: "SERVING" Possible values: ["SERVING", "STOPPED"]
     */
    @JvmName("oxnkmujchkwqkruj")
    public suspend fun servingStatus(`value`: Output) {
        this.servingStatus = value
    }

    /**
     * @param value 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-".
     */
    @JvmName("vxbdtulfspnneicg")
    public suspend fun versionId(`value`: Output) {
        this.versionId = value
    }

    /**
     * @param value Enables VPC connectivity for standard apps.
     */
    @JvmName("mgveympbulanewtx")
    public suspend fun vpcAccessConnector(`value`: Output) {
        this.vpcAccessConnector = value
    }

    /**
     * @param value Serving configuration for Google Cloud Endpoints.
     */
    @JvmName("ooqvjpndbgjbjaux")
    public suspend fun apiConfig(`value`: FlexibleAppVersionApiConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiConfig = mapped
    }

    /**
     * @param argument Serving configuration for Google Cloud Endpoints.
     */
    @JvmName("yrwayfdpvhwupmsf")
    public suspend fun apiConfig(argument: suspend FlexibleAppVersionApiConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionApiConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.apiConfig = mapped
    }

    /**
     * @param value Automatic scaling is based on request rate, response latencies, and other application metrics.
     */
    @JvmName("oyfyqqfgcweihdhb")
    public suspend fun automaticScaling(`value`: FlexibleAppVersionAutomaticScalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticScaling = mapped
    }

    /**
     * @param argument Automatic scaling is based on request rate, response latencies, and other application metrics.
     */
    @JvmName("ovnuefibpajniums")
    public suspend fun automaticScaling(argument: suspend FlexibleAppVersionAutomaticScalingArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionAutomaticScalingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.automaticScaling = mapped
    }

    /**
     * @param value Metadata settings that are supplied to this version to enable beta runtime features.
     */
    @JvmName("xrsncbjsnbihfiqs")
    public suspend fun betaSettings(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.betaSettings = mapped
    }

    /**
     * @param values Metadata settings that are supplied to this version to enable beta runtime features.
     */
    @JvmName("kylbakfqxyiansgf")
    public fun betaSettings(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.betaSettings = mapped
    }

    /**
     * @param value Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding
     * StaticFilesHandler does not specify its own expiration time.
     */
    @JvmName("kwmkfagwkncxfekl")
    public suspend fun defaultExpiration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultExpiration = mapped
    }

    /**
     * @param value If set to 'true', the service will be deleted if it is the last version.
     */
    @JvmName("teuktvkcdhfrccrv")
    public suspend fun deleteServiceOnDestroy(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteServiceOnDestroy = mapped
    }

    /**
     * @param value Code and application artifacts that make up this version.
     */
    @JvmName("giybwbrjfliigddl")
    public suspend fun deployment(`value`: FlexibleAppVersionDeploymentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deployment = mapped
    }

    /**
     * @param argument Code and application artifacts that make up this version.
     */
    @JvmName("ymwoxnpqsowghntu")
    public suspend fun deployment(argument: suspend FlexibleAppVersionDeploymentArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionDeploymentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.deployment = mapped
    }

    /**
     * @param value Code and application artifacts that make up this version.
     */
    @JvmName("sscdqbbagmaqdwot")
    public suspend fun endpointsApiService(`value`: FlexibleAppVersionEndpointsApiServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointsApiService = mapped
    }

    /**
     * @param argument Code and application artifacts that make up this version.
     */
    @JvmName("hwwiyuklfvuahibq")
    public suspend fun endpointsApiService(argument: suspend FlexibleAppVersionEndpointsApiServiceArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionEndpointsApiServiceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.endpointsApiService = mapped
    }

    /**
     * @param value The entrypoint for the application.
     */
    @JvmName("euiywiickevgpivi")
    public suspend fun entrypoint(`value`: FlexibleAppVersionEntrypointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entrypoint = mapped
    }

    /**
     * @param argument The entrypoint for the application.
     */
    @JvmName("kbgalercmodpwdow")
    public suspend fun entrypoint(argument: suspend FlexibleAppVersionEntrypointArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionEntrypointArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.entrypoint = mapped
    }

    /**
     * @param value
     */
    @JvmName("btslwpqkigdibtla")
    public suspend fun envVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.envVariables = mapped
    }

    /**
     * @param values
     */
    @JvmName("arypvudisbbqdyqm")
    public fun envVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.envVariables = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("tbqmlmnmgbrgyave")
    public suspend fun handlers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.handlers = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("svqcsievfcaslkkt")
    public suspend fun handlers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlexibleAppVersionHandlerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.handlers = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("blylnlpsqugnnrff")
    public suspend fun handlers(vararg argument: suspend FlexibleAppVersionHandlerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlexibleAppVersionHandlerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.handlers = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("pbnykhtmawpvrstn")
    public suspend fun handlers(argument: suspend FlexibleAppVersionHandlerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FlexibleAppVersionHandlerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.handlers = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("mjfqeejgoobhqcef")
    public suspend fun handlers(vararg values: FlexibleAppVersionHandlerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.handlers = mapped
    }

    /**
     * @param value 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"]
     */
    @JvmName("qhfeydxujhoupemf")
    public suspend fun inboundServices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inboundServices = mapped
    }

    /**
     * @param values 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"]
     */
    @JvmName("dorgivunlmhftysp")
    public suspend fun inboundServices(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inboundServices = mapped
    }

    /**
     * @param value Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1,
     * B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling.
     */
    @JvmName("bvobqeiikioaxins")
    public suspend fun instanceClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceClass = mapped
    }

    /**
     * @param value Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
     * Structure is documented below.
     */
    @JvmName("tkbnebrcybjafkjg")
    public suspend fun livenessCheck(`value`: FlexibleAppVersionLivenessCheckArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.livenessCheck = mapped
    }

    /**
     * @param argument Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
     * Structure is documented below.
     */
    @JvmName("pfkrhtivojhjmabn")
    public suspend fun livenessCheck(argument: suspend FlexibleAppVersionLivenessCheckArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionLivenessCheckArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.livenessCheck = mapped
    }

    /**
     * @param value A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of
     * its memory over time.
     */
    @JvmName("ebgsypxlrfpxmqqu")
    public suspend fun manualScaling(`value`: FlexibleAppVersionManualScalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualScaling = mapped
    }

    /**
     * @param argument A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of
     * its memory over time.
     */
    @JvmName("sgpojiviqogomnsw")
    public suspend fun manualScaling(argument: suspend FlexibleAppVersionManualScalingArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionManualScalingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.manualScaling = mapped
    }

    /**
     * @param value Extra network settings
     */
    @JvmName("usrggtrxrpnuoaaf")
    public suspend fun network(`value`: FlexibleAppVersionNetworkArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param argument Extra network settings
     */
    @JvmName("girgmquthuqcmrea")
    public suspend fun network(argument: suspend FlexibleAppVersionNetworkArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionNetworkArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.network = mapped
    }

    /**
     * @param value Files that match this pattern will not be built into this version. Only applicable for Go runtimes.
     */
    @JvmName("hqaneufxbskfxrwt")
    public suspend fun nobuildFilesRegex(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nobuildFilesRegex = mapped
    }

    /**
     * @param value If set to 'true', the application version will not be deleted.
     */
    @JvmName("iyrtmososbldidfq")
    public suspend fun noopOnDestroy(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noopOnDestroy = mapped
    }

    /**
     * @param value
     */
    @JvmName("ocvnhjlbjnkmciaq")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.
     * Structure is documented below.
     */
    @JvmName("gllxyeyllfbdskaj")
    public suspend fun readinessCheck(`value`: FlexibleAppVersionReadinessCheckArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readinessCheck = mapped
    }

    /**
     * @param argument Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.
     * Structure is documented below.
     */
    @JvmName("jscsptirtxyvymev")
    public suspend fun readinessCheck(argument: suspend FlexibleAppVersionReadinessCheckArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionReadinessCheckArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.readinessCheck = mapped
    }

    /**
     * @param value Machine resources for a version.
     */
    @JvmName("dghhinfeaattmkfg")
    public suspend fun resources(`value`: FlexibleAppVersionResourcesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param argument Machine resources for a version.
     */
    @JvmName("pebdefeeutwmddei")
    public suspend fun resources(argument: suspend FlexibleAppVersionResourcesArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionResourcesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param value Desired runtime. Example python27.
     */
    @JvmName("lprquhlbontqeggm")
    public suspend fun runtime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtime = mapped
    }

    /**
     * @param value 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'.
     */
    @JvmName("eoiyjyjxbchiwcrq")
    public suspend fun runtimeApiVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeApiVersion = mapped
    }

    /**
     * @param value The channel of the runtime to use. Only available for some runtimes.
     */
    @JvmName("ulymkfvqmlgdjtqc")
    public suspend fun runtimeChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeChannel = mapped
    }

    /**
     * @param value The path or name of the app's main executable.
     */
    @JvmName("qbhoaoxkynyagrou")
    public suspend fun runtimeMainExecutablePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeMainExecutablePath = mapped
    }

    /**
     * @param value AppEngine service resource. Can contain numbers, letters, and hyphens.
     */
    @JvmName("ulckyyehbakaxafh")
    public suspend fun service(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.service = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("nucosvnytaefogor")
    public suspend fun serviceAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccount = mapped
    }

    /**
     * @param value Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.
     * Default value: "SERVING" Possible values: ["SERVING", "STOPPED"]
     */
    @JvmName("gtwdjdpqdhhvayjj")
    public suspend fun servingStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servingStatus = mapped
    }

    /**
     * @param value 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-".
     */
    @JvmName("fjrqfxucpdhtjtdg")
    public suspend fun versionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versionId = mapped
    }

    /**
     * @param value Enables VPC connectivity for standard apps.
     */
    @JvmName("cxbcnoiqphkirptf")
    public suspend fun vpcAccessConnector(`value`: FlexibleAppVersionVpcAccessConnectorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcAccessConnector = mapped
    }

    /**
     * @param argument Enables VPC connectivity for standard apps.
     */
    @JvmName("djffnnjxdptuqkjr")
    public suspend fun vpcAccessConnector(argument: suspend FlexibleAppVersionVpcAccessConnectorArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionVpcAccessConnectorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vpcAccessConnector = mapped
    }

    internal fun build(): FlexibleAppVersionArgs = FlexibleAppVersionArgs(
        apiConfig = apiConfig,
        automaticScaling = automaticScaling,
        betaSettings = betaSettings,
        defaultExpiration = defaultExpiration,
        deleteServiceOnDestroy = deleteServiceOnDestroy,
        deployment = deployment,
        endpointsApiService = endpointsApiService,
        entrypoint = entrypoint,
        envVariables = envVariables,
        handlers = handlers,
        inboundServices = inboundServices,
        instanceClass = instanceClass,
        livenessCheck = livenessCheck,
        manualScaling = manualScaling,
        network = network,
        nobuildFilesRegex = nobuildFilesRegex,
        noopOnDestroy = noopOnDestroy,
        project = project,
        readinessCheck = readinessCheck,
        resources = resources,
        runtime = runtime,
        runtimeApiVersion = runtimeApiVersion,
        runtimeChannel = runtimeChannel,
        runtimeMainExecutablePath = runtimeMainExecutablePath,
        service = service,
        serviceAccount = serviceAccount,
        servingStatus = servingStatus,
        versionId = versionId,
        vpcAccessConnector = vpcAccessConnector,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy