1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. RegionNetworkEndpointGroup
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

gcp.compute.RegionNetworkEndpointGroup

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

    A regional NEG that can support Serverless Products.

    To get more information about RegionNetworkEndpointGroup, see:

    Example Usage

    Region Network Endpoint Group Functions

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var bucket = new Gcp.Storage.Bucket("bucket", new()
        {
            Location = "US",
        });
    
        var archive = new Gcp.Storage.BucketObject("archive", new()
        {
            Bucket = bucket.Name,
            Source = new FileAsset("path/to/index.zip"),
        });
    
        var functionNegFunction = new Gcp.CloudFunctions.Function("functionNegFunction", new()
        {
            Description = "My function",
            Runtime = "nodejs10",
            AvailableMemoryMb = 128,
            SourceArchiveBucket = bucket.Name,
            SourceArchiveObject = archive.Name,
            TriggerHttp = true,
            Timeout = 60,
            EntryPoint = "helloGET",
        });
    
        // Cloud Functions Example
        var functionNegRegionNetworkEndpointGroup = new Gcp.Compute.RegionNetworkEndpointGroup("functionNegRegionNetworkEndpointGroup", new()
        {
            NetworkEndpointType = "SERVERLESS",
            Region = "us-central1",
            CloudFunction = new Gcp.Compute.Inputs.RegionNetworkEndpointGroupCloudFunctionArgs
            {
                Function = functionNegFunction.Name,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudfunctions"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"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 {
    		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
    			Location: pulumi.String("US"),
    		})
    		if err != nil {
    			return err
    		}
    		archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{
    			Bucket: bucket.Name,
    			Source: pulumi.NewFileAsset("path/to/index.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		functionNegFunction, err := cloudfunctions.NewFunction(ctx, "functionNegFunction", &cloudfunctions.FunctionArgs{
    			Description:         pulumi.String("My function"),
    			Runtime:             pulumi.String("nodejs10"),
    			AvailableMemoryMb:   pulumi.Int(128),
    			SourceArchiveBucket: bucket.Name,
    			SourceArchiveObject: archive.Name,
    			TriggerHttp:         pulumi.Bool(true),
    			Timeout:             pulumi.Int(60),
    			EntryPoint:          pulumi.String("helloGET"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionNetworkEndpointGroup(ctx, "functionNegRegionNetworkEndpointGroup", &compute.RegionNetworkEndpointGroupArgs{
    			NetworkEndpointType: pulumi.String("SERVERLESS"),
    			Region:              pulumi.String("us-central1"),
    			CloudFunction: &compute.RegionNetworkEndpointGroupCloudFunctionArgs{
    				Function: functionNegFunction.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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.cloudfunctions.Function;
    import com.pulumi.gcp.cloudfunctions.FunctionArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    import com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupCloudFunctionArgs;
    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 bucket = new Bucket("bucket", BucketArgs.builder()        
                .location("US")
                .build());
    
            var archive = new BucketObject("archive", BucketObjectArgs.builder()        
                .bucket(bucket.name())
                .source(new FileAsset("path/to/index.zip"))
                .build());
    
            var functionNegFunction = new Function("functionNegFunction", FunctionArgs.builder()        
                .description("My function")
                .runtime("nodejs10")
                .availableMemoryMb(128)
                .sourceArchiveBucket(bucket.name())
                .sourceArchiveObject(archive.name())
                .triggerHttp(true)
                .timeout(60)
                .entryPoint("helloGET")
                .build());
    
            var functionNegRegionNetworkEndpointGroup = new RegionNetworkEndpointGroup("functionNegRegionNetworkEndpointGroup", RegionNetworkEndpointGroupArgs.builder()        
                .networkEndpointType("SERVERLESS")
                .region("us-central1")
                .cloudFunction(RegionNetworkEndpointGroupCloudFunctionArgs.builder()
                    .function(functionNegFunction.name())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    bucket = gcp.storage.Bucket("bucket", location="US")
    archive = gcp.storage.BucketObject("archive",
        bucket=bucket.name,
        source=pulumi.FileAsset("path/to/index.zip"))
    function_neg_function = gcp.cloudfunctions.Function("functionNegFunction",
        description="My function",
        runtime="nodejs10",
        available_memory_mb=128,
        source_archive_bucket=bucket.name,
        source_archive_object=archive.name,
        trigger_http=True,
        timeout=60,
        entry_point="helloGET")
    # Cloud Functions Example
    function_neg_region_network_endpoint_group = gcp.compute.RegionNetworkEndpointGroup("functionNegRegionNetworkEndpointGroup",
        network_endpoint_type="SERVERLESS",
        region="us-central1",
        cloud_function=gcp.compute.RegionNetworkEndpointGroupCloudFunctionArgs(
            function=function_neg_function.name,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const bucket = new gcp.storage.Bucket("bucket", {location: "US"});
    const archive = new gcp.storage.BucketObject("archive", {
        bucket: bucket.name,
        source: new pulumi.asset.FileAsset("path/to/index.zip"),
    });
    const functionNegFunction = new gcp.cloudfunctions.Function("functionNegFunction", {
        description: "My function",
        runtime: "nodejs10",
        availableMemoryMb: 128,
        sourceArchiveBucket: bucket.name,
        sourceArchiveObject: archive.name,
        triggerHttp: true,
        timeout: 60,
        entryPoint: "helloGET",
    });
    // Cloud Functions Example
    const functionNegRegionNetworkEndpointGroup = new gcp.compute.RegionNetworkEndpointGroup("functionNegRegionNetworkEndpointGroup", {
        networkEndpointType: "SERVERLESS",
        region: "us-central1",
        cloudFunction: {
            "function": functionNegFunction.name,
        },
    });
    
    resources:
      # Cloud Functions Example
      functionNegRegionNetworkEndpointGroup:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          networkEndpointType: SERVERLESS
          region: us-central1
          cloudFunction:
            function: ${functionNegFunction.name}
      functionNegFunction:
        type: gcp:cloudfunctions:Function
        properties:
          description: My function
          runtime: nodejs10
          availableMemoryMb: 128
          sourceArchiveBucket: ${bucket.name}
          sourceArchiveObject: ${archive.name}
          triggerHttp: true
          timeout: 60
          entryPoint: helloGET
      bucket:
        type: gcp:storage:Bucket
        properties:
          location: US
      archive:
        type: gcp:storage:BucketObject
        properties:
          bucket: ${bucket.name}
          source:
            fn::FileAsset: path/to/index.zip
    

    Region Network Endpoint Group Cloudrun

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudrunNegService = new Gcp.CloudRun.Service("cloudrunNegService", new()
        {
            Location = "us-central1",
            Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
            {
                Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/hello",
                        },
                    },
                },
            },
            Traffics = new[]
            {
                new Gcp.CloudRun.Inputs.ServiceTrafficArgs
                {
                    Percent = 100,
                    LatestRevision = true,
                },
            },
        });
    
        // Cloud Run Example
        var cloudrunNegRegionNetworkEndpointGroup = new Gcp.Compute.RegionNetworkEndpointGroup("cloudrunNegRegionNetworkEndpointGroup", new()
        {
            NetworkEndpointType = "SERVERLESS",
            Region = "us-central1",
            CloudRun = new Gcp.Compute.Inputs.RegionNetworkEndpointGroupCloudRunArgs
            {
                Service = cloudrunNegService.Name,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudrun"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cloudrunNegService, err := cloudrun.NewService(ctx, "cloudrunNegService", &cloudrun.ServiceArgs{
    			Location: pulumi.String("us-central1"),
    			Template: &cloudrun.ServiceTemplateArgs{
    				Spec: &cloudrun.ServiceTemplateSpecArgs{
    					Containers: cloudrun.ServiceTemplateSpecContainerArray{
    						&cloudrun.ServiceTemplateSpecContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
    						},
    					},
    				},
    			},
    			Traffics: cloudrun.ServiceTrafficArray{
    				&cloudrun.ServiceTrafficArgs{
    					Percent:        pulumi.Int(100),
    					LatestRevision: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionNetworkEndpointGroup(ctx, "cloudrunNegRegionNetworkEndpointGroup", &compute.RegionNetworkEndpointGroupArgs{
    			NetworkEndpointType: pulumi.String("SERVERLESS"),
    			Region:              pulumi.String("us-central1"),
    			CloudRun: &compute.RegionNetworkEndpointGroupCloudRunArgs{
    				Service: cloudrunNegService.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrun.Service;
    import com.pulumi.gcp.cloudrun.ServiceArgs;
    import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
    import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
    import com.pulumi.gcp.cloudrun.inputs.ServiceTrafficArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    import com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupCloudRunArgs;
    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 cloudrunNegService = new Service("cloudrunNegService", ServiceArgs.builder()        
                .location("us-central1")
                .template(ServiceTemplateArgs.builder()
                    .spec(ServiceTemplateSpecArgs.builder()
                        .containers(ServiceTemplateSpecContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/hello")
                            .build())
                        .build())
                    .build())
                .traffics(ServiceTrafficArgs.builder()
                    .percent(100)
                    .latestRevision(true)
                    .build())
                .build());
    
            var cloudrunNegRegionNetworkEndpointGroup = new RegionNetworkEndpointGroup("cloudrunNegRegionNetworkEndpointGroup", RegionNetworkEndpointGroupArgs.builder()        
                .networkEndpointType("SERVERLESS")
                .region("us-central1")
                .cloudRun(RegionNetworkEndpointGroupCloudRunArgs.builder()
                    .service(cloudrunNegService.name())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    cloudrun_neg_service = gcp.cloudrun.Service("cloudrunNegService",
        location="us-central1",
        template=gcp.cloudrun.ServiceTemplateArgs(
            spec=gcp.cloudrun.ServiceTemplateSpecArgs(
                containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                )],
            ),
        ),
        traffics=[gcp.cloudrun.ServiceTrafficArgs(
            percent=100,
            latest_revision=True,
        )])
    # Cloud Run Example
    cloudrun_neg_region_network_endpoint_group = gcp.compute.RegionNetworkEndpointGroup("cloudrunNegRegionNetworkEndpointGroup",
        network_endpoint_type="SERVERLESS",
        region="us-central1",
        cloud_run=gcp.compute.RegionNetworkEndpointGroupCloudRunArgs(
            service=cloudrun_neg_service.name,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const cloudrunNegService = new gcp.cloudrun.Service("cloudrunNegService", {
        location: "us-central1",
        template: {
            spec: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                }],
            },
        },
        traffics: [{
            percent: 100,
            latestRevision: true,
        }],
    });
    // Cloud Run Example
    const cloudrunNegRegionNetworkEndpointGroup = new gcp.compute.RegionNetworkEndpointGroup("cloudrunNegRegionNetworkEndpointGroup", {
        networkEndpointType: "SERVERLESS",
        region: "us-central1",
        cloudRun: {
            service: cloudrunNegService.name,
        },
    });
    
    resources:
      # Cloud Run Example
      cloudrunNegRegionNetworkEndpointGroup:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          networkEndpointType: SERVERLESS
          region: us-central1
          cloudRun:
            service: ${cloudrunNegService.name}
      cloudrunNegService:
        type: gcp:cloudrun:Service
        properties:
          location: us-central1
          template:
            spec:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
          traffics:
            - percent: 100
              latestRevision: true
    

    Region Network Endpoint Group Appengine

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var appengineNegBucket = new Gcp.Storage.Bucket("appengineNegBucket", new()
        {
            Location = "US",
        });
    
        var appengineNegBucketObject = new Gcp.Storage.BucketObject("appengineNegBucketObject", new()
        {
            Bucket = appengineNegBucket.Name,
            Source = new FileAsset("./test-fixtures/hello-world.zip"),
        });
    
        var appengineNegFlexibleAppVersion = new Gcp.AppEngine.FlexibleAppVersion("appengineNegFlexibleAppVersion", new()
        {
            VersionId = "v1",
            Service = "appengine-network-endpoint-group",
            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(appengineNegBucket.Name, appengineNegBucketObject.Name).Apply(values =>
                    {
                        var appengineNegBucketName = values.Item1;
                        var appengineNegBucketObjectName = values.Item2;
                        return $"https://storage.googleapis.com/{appengineNegBucketName}/{appengineNegBucketObjectName}";
                    }),
                },
            },
            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,
                },
            },
            DeleteServiceOnDestroy = true,
        });
    
        // App Engine Example
        var appengineNegRegionNetworkEndpointGroup = new Gcp.Compute.RegionNetworkEndpointGroup("appengineNegRegionNetworkEndpointGroup", new()
        {
            NetworkEndpointType = "SERVERLESS",
            Region = "us-central1",
            AppEngine = new Gcp.Compute.Inputs.RegionNetworkEndpointGroupAppEngineArgs
            {
                Service = appengineNegFlexibleAppVersion.Service,
                Version = appengineNegFlexibleAppVersion.VersionId,
            },
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/appengine"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"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 {
    		appengineNegBucket, err := storage.NewBucket(ctx, "appengineNegBucket", &storage.BucketArgs{
    			Location: pulumi.String("US"),
    		})
    		if err != nil {
    			return err
    		}
    		appengineNegBucketObject, err := storage.NewBucketObject(ctx, "appengineNegBucketObject", &storage.BucketObjectArgs{
    			Bucket: appengineNegBucket.Name,
    			Source: pulumi.NewFileAsset("./test-fixtures/hello-world.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		appengineNegFlexibleAppVersion, err := appengine.NewFlexibleAppVersion(ctx, "appengineNegFlexibleAppVersion", &appengine.FlexibleAppVersionArgs{
    			VersionId: pulumi.String("v1"),
    			Service:   pulumi.String("appengine-network-endpoint-group"),
    			Runtime:   pulumi.String("nodejs"),
    			Entrypoint: &appengine.FlexibleAppVersionEntrypointArgs{
    				Shell: pulumi.String("node ./app.js"),
    			},
    			Deployment: &appengine.FlexibleAppVersionDeploymentArgs{
    				Zip: &appengine.FlexibleAppVersionDeploymentZipArgs{
    					SourceUrl: pulumi.All(appengineNegBucket.Name, appengineNegBucketObject.Name).ApplyT(func(_args []interface{}) (string, error) {
    						appengineNegBucketName := _args[0].(string)
    						appengineNegBucketObjectName := _args[1].(string)
    						return fmt.Sprintf("https://storage.googleapis.com/%v/%v", appengineNegBucketName, appengineNegBucketObjectName), 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),
    				},
    			},
    			DeleteServiceOnDestroy: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionNetworkEndpointGroup(ctx, "appengineNegRegionNetworkEndpointGroup", &compute.RegionNetworkEndpointGroupArgs{
    			NetworkEndpointType: pulumi.String("SERVERLESS"),
    			Region:              pulumi.String("us-central1"),
    			AppEngine: &compute.RegionNetworkEndpointGroupAppEngineArgs{
    				Service: appengineNegFlexibleAppVersion.Service,
    				Version: appengineNegFlexibleAppVersion.VersionId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    import com.pulumi.gcp.compute.inputs.RegionNetworkEndpointGroupAppEngineArgs;
    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 appengineNegBucket = new Bucket("appengineNegBucket", BucketArgs.builder()        
                .location("US")
                .build());
    
            var appengineNegBucketObject = new BucketObject("appengineNegBucketObject", BucketObjectArgs.builder()        
                .bucket(appengineNegBucket.name())
                .source(new FileAsset("./test-fixtures/hello-world.zip"))
                .build());
    
            var appengineNegFlexibleAppVersion = new FlexibleAppVersion("appengineNegFlexibleAppVersion", FlexibleAppVersionArgs.builder()        
                .versionId("v1")
                .service("appengine-network-endpoint-group")
                .runtime("nodejs")
                .entrypoint(FlexibleAppVersionEntrypointArgs.builder()
                    .shell("node ./app.js")
                    .build())
                .deployment(FlexibleAppVersionDeploymentArgs.builder()
                    .zip(FlexibleAppVersionDeploymentZipArgs.builder()
                        .sourceUrl(Output.tuple(appengineNegBucket.name(), appengineNegBucketObject.name()).applyValue(values -> {
                            var appengineNegBucketName = values.t1;
                            var appengineNegBucketObjectName = values.t2;
                            return String.format("https://storage.googleapis.com/%s/%s", appengineNegBucketName,appengineNegBucketObjectName);
                        }))
                        .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())
                .deleteServiceOnDestroy(true)
                .build());
    
            var appengineNegRegionNetworkEndpointGroup = new RegionNetworkEndpointGroup("appengineNegRegionNetworkEndpointGroup", RegionNetworkEndpointGroupArgs.builder()        
                .networkEndpointType("SERVERLESS")
                .region("us-central1")
                .appEngine(RegionNetworkEndpointGroupAppEngineArgs.builder()
                    .service(appengineNegFlexibleAppVersion.service())
                    .version(appengineNegFlexibleAppVersion.versionId())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    appengine_neg_bucket = gcp.storage.Bucket("appengineNegBucket", location="US")
    appengine_neg_bucket_object = gcp.storage.BucketObject("appengineNegBucketObject",
        bucket=appengine_neg_bucket.name,
        source=pulumi.FileAsset("./test-fixtures/hello-world.zip"))
    appengine_neg_flexible_app_version = gcp.appengine.FlexibleAppVersion("appengineNegFlexibleAppVersion",
        version_id="v1",
        service="appengine-network-endpoint-group",
        runtime="nodejs",
        entrypoint=gcp.appengine.FlexibleAppVersionEntrypointArgs(
            shell="node ./app.js",
        ),
        deployment=gcp.appengine.FlexibleAppVersionDeploymentArgs(
            zip=gcp.appengine.FlexibleAppVersionDeploymentZipArgs(
                source_url=pulumi.Output.all(appengine_neg_bucket.name, appengine_neg_bucket_object.name).apply(lambda appengineNegBucketName, appengineNegBucketObjectName: f"https://storage.googleapis.com/{appengine_neg_bucket_name}/{appengine_neg_bucket_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,
            ),
        ),
        delete_service_on_destroy=True)
    # App Engine Example
    appengine_neg_region_network_endpoint_group = gcp.compute.RegionNetworkEndpointGroup("appengineNegRegionNetworkEndpointGroup",
        network_endpoint_type="SERVERLESS",
        region="us-central1",
        app_engine=gcp.compute.RegionNetworkEndpointGroupAppEngineArgs(
            service=appengine_neg_flexible_app_version.service,
            version=appengine_neg_flexible_app_version.version_id,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const appengineNegBucket = new gcp.storage.Bucket("appengineNegBucket", {location: "US"});
    const appengineNegBucketObject = new gcp.storage.BucketObject("appengineNegBucketObject", {
        bucket: appengineNegBucket.name,
        source: new pulumi.asset.FileAsset("./test-fixtures/hello-world.zip"),
    });
    const appengineNegFlexibleAppVersion = new gcp.appengine.FlexibleAppVersion("appengineNegFlexibleAppVersion", {
        versionId: "v1",
        service: "appengine-network-endpoint-group",
        runtime: "nodejs",
        entrypoint: {
            shell: "node ./app.js",
        },
        deployment: {
            zip: {
                sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${appengineNegBucket.name}/${appengineNegBucketObject.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,
            },
        },
        deleteServiceOnDestroy: true,
    });
    // App Engine Example
    const appengineNegRegionNetworkEndpointGroup = new gcp.compute.RegionNetworkEndpointGroup("appengineNegRegionNetworkEndpointGroup", {
        networkEndpointType: "SERVERLESS",
        region: "us-central1",
        appEngine: {
            service: appengineNegFlexibleAppVersion.service,
            version: appengineNegFlexibleAppVersion.versionId,
        },
    });
    
    resources:
      # App Engine Example
      appengineNegRegionNetworkEndpointGroup:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          networkEndpointType: SERVERLESS
          region: us-central1
          appEngine:
            service: ${appengineNegFlexibleAppVersion.service}
            version: ${appengineNegFlexibleAppVersion.versionId}
      appengineNegFlexibleAppVersion:
        type: gcp:appengine:FlexibleAppVersion
        properties:
          versionId: v1
          service: appengine-network-endpoint-group
          runtime: nodejs
          entrypoint:
            shell: node ./app.js
          deployment:
            zip:
              sourceUrl: https://storage.googleapis.com/${appengineNegBucket.name}/${appengineNegBucketObject.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
          deleteServiceOnDestroy: true
      appengineNegBucket:
        type: gcp:storage:Bucket
        properties:
          location: US
      appengineNegBucketObject:
        type: gcp:storage:BucketObject
        properties:
          bucket: ${appengineNegBucket.name}
          source:
            fn::FileAsset: ./test-fixtures/hello-world.zip
    

    Region Network Endpoint Group Psc

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var pscNeg = new Gcp.Compute.RegionNetworkEndpointGroup("pscNeg", new()
        {
            NetworkEndpointType = "PRIVATE_SERVICE_CONNECT",
            PscTargetService = "asia-northeast3-cloudkms.googleapis.com",
            Region = "asia-northeast3",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewRegionNetworkEndpointGroup(ctx, "pscNeg", &compute.RegionNetworkEndpointGroupArgs{
    			NetworkEndpointType: pulumi.String("PRIVATE_SERVICE_CONNECT"),
    			PscTargetService:    pulumi.String("asia-northeast3-cloudkms.googleapis.com"),
    			Region:              pulumi.String("asia-northeast3"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    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 pscNeg = new RegionNetworkEndpointGroup("pscNeg", RegionNetworkEndpointGroupArgs.builder()        
                .networkEndpointType("PRIVATE_SERVICE_CONNECT")
                .pscTargetService("asia-northeast3-cloudkms.googleapis.com")
                .region("asia-northeast3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    psc_neg = gcp.compute.RegionNetworkEndpointGroup("pscNeg",
        network_endpoint_type="PRIVATE_SERVICE_CONNECT",
        psc_target_service="asia-northeast3-cloudkms.googleapis.com",
        region="asia-northeast3")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const pscNeg = new gcp.compute.RegionNetworkEndpointGroup("pscNeg", {
        networkEndpointType: "PRIVATE_SERVICE_CONNECT",
        pscTargetService: "asia-northeast3-cloudkms.googleapis.com",
        region: "asia-northeast3",
    });
    
    resources:
      pscNeg:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          networkEndpointType: PRIVATE_SERVICE_CONNECT
          pscTargetService: asia-northeast3-cloudkms.googleapis.com
          region: asia-northeast3
    

    Region Network Endpoint Group Psc Service Attachment

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.ServiceAttachment;
    import com.pulumi.gcp.compute.ServiceAttachmentArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    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 defaultNetwork = new Network("defaultNetwork");
    
            var defaultSubnetwork = new Subnetwork("defaultSubnetwork", SubnetworkArgs.builder()        
                .ipCidrRange("10.0.0.0/16")
                .region("europe-west4")
                .network(defaultNetwork.id())
                .build());
    
            var pscSubnetwork = new Subnetwork("pscSubnetwork", SubnetworkArgs.builder()        
                .ipCidrRange("10.1.0.0/16")
                .region("europe-west4")
                .purpose("PRIVATE_SERVICE_CONNECT")
                .network(defaultNetwork.id())
                .build());
    
            var defaultHealthCheck = new HealthCheck("defaultHealthCheck", HealthCheckArgs.builder()        
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port("80")
                    .build())
                .build());
    
            var defaultRegionBackendService = new RegionBackendService("defaultRegionBackendService", RegionBackendServiceArgs.builder()        
                .region("europe-west4")
                .healthChecks(defaultHealthCheck.id())
                .build());
    
            var defaultForwardingRule = new ForwardingRule("defaultForwardingRule", ForwardingRuleArgs.builder()        
                .region("europe-west4")
                .loadBalancingScheme("INTERNAL")
                .backendService(defaultRegionBackendService.id())
                .allPorts(true)
                .network(defaultNetwork.name())
                .subnetwork(defaultSubnetwork.name())
                .build());
    
            var defaultServiceAttachment = new ServiceAttachment("defaultServiceAttachment", ServiceAttachmentArgs.builder()        
                .region("europe-west4")
                .description("A service attachment configured with Terraform")
                .enableProxyProtocol(false)
                .connectionPreference("ACCEPT_AUTOMATIC")
                .natSubnets(pscSubnetwork.selfLink())
                .targetService(defaultForwardingRule.selfLink())
                .build());
    
            var pscNegServiceAttachment = new RegionNetworkEndpointGroup("pscNegServiceAttachment", RegionNetworkEndpointGroupArgs.builder()        
                .region("europe-west4")
                .networkEndpointType("PRIVATE_SERVICE_CONNECT")
                .pscTargetService(defaultServiceAttachment.selfLink())
                .network(defaultNetwork.selfLink())
                .subnetwork(defaultSubnetwork.selfLink())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      defaultNetwork:
        type: gcp:compute:Network
      defaultSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          ipCidrRange: 10.0.0.0/16
          region: europe-west4
          network: ${defaultNetwork.id}
      pscSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          ipCidrRange: 10.1.0.0/16
          region: europe-west4
          purpose: PRIVATE_SERVICE_CONNECT
          network: ${defaultNetwork.id}
      defaultHealthCheck:
        type: gcp:compute:HealthCheck
        properties:
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
      defaultRegionBackendService:
        type: gcp:compute:RegionBackendService
        properties:
          region: europe-west4
          healthChecks:
            - ${defaultHealthCheck.id}
      defaultForwardingRule:
        type: gcp:compute:ForwardingRule
        properties:
          region: europe-west4
          loadBalancingScheme: INTERNAL
          backendService: ${defaultRegionBackendService.id}
          allPorts: true
          network: ${defaultNetwork.name}
          subnetwork: ${defaultSubnetwork.name}
      defaultServiceAttachment:
        type: gcp:compute:ServiceAttachment
        properties:
          region: europe-west4
          description: A service attachment configured with Terraform
          enableProxyProtocol: false
          connectionPreference: ACCEPT_AUTOMATIC
          natSubnets:
            - ${pscSubnetwork.selfLink}
          targetService: ${defaultForwardingRule.selfLink}
      pscNegServiceAttachment:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          region: europe-west4
          networkEndpointType: PRIVATE_SERVICE_CONNECT
          pscTargetService: ${defaultServiceAttachment.selfLink}
          network: ${defaultNetwork.selfLink}
          subnetwork: ${defaultSubnetwork.selfLink}
    

    Create RegionNetworkEndpointGroup Resource

    new RegionNetworkEndpointGroup(name: string, args: RegionNetworkEndpointGroupArgs, opts?: CustomResourceOptions);
    @overload
    def RegionNetworkEndpointGroup(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   app_engine: Optional[RegionNetworkEndpointGroupAppEngineArgs] = None,
                                   cloud_function: Optional[RegionNetworkEndpointGroupCloudFunctionArgs] = None,
                                   cloud_run: Optional[RegionNetworkEndpointGroupCloudRunArgs] = None,
                                   description: Optional[str] = None,
                                   name: Optional[str] = None,
                                   network: Optional[str] = None,
                                   network_endpoint_type: Optional[str] = None,
                                   project: Optional[str] = None,
                                   psc_target_service: Optional[str] = None,
                                   region: Optional[str] = None,
                                   serverless_deployment: Optional[RegionNetworkEndpointGroupServerlessDeploymentArgs] = None,
                                   subnetwork: Optional[str] = None)
    @overload
    def RegionNetworkEndpointGroup(resource_name: str,
                                   args: RegionNetworkEndpointGroupArgs,
                                   opts: Optional[ResourceOptions] = None)
    func NewRegionNetworkEndpointGroup(ctx *Context, name string, args RegionNetworkEndpointGroupArgs, opts ...ResourceOption) (*RegionNetworkEndpointGroup, error)
    public RegionNetworkEndpointGroup(string name, RegionNetworkEndpointGroupArgs args, CustomResourceOptions? opts = null)
    public RegionNetworkEndpointGroup(String name, RegionNetworkEndpointGroupArgs args)
    public RegionNetworkEndpointGroup(String name, RegionNetworkEndpointGroupArgs args, CustomResourceOptions options)
    
    type: gcp:compute:RegionNetworkEndpointGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RegionNetworkEndpointGroupArgs
    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 RegionNetworkEndpointGroupArgs
    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 RegionNetworkEndpointGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegionNetworkEndpointGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegionNetworkEndpointGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RegionNetworkEndpointGroup 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 RegionNetworkEndpointGroup resource accepts the following input properties:

    Region string

    A reference to the region where the Serverless NEGs Reside.


    AppEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    Description string

    An optional description of this resource. Provide this property when you create the resource.

    Name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    Project string

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

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    ServerlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    Subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    Region string

    A reference to the region where the Serverless NEGs Reside.


    AppEngine RegionNetworkEndpointGroupAppEngineArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudFunction RegionNetworkEndpointGroupCloudFunctionArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudRun RegionNetworkEndpointGroupCloudRunArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    Description string

    An optional description of this resource. Provide this property when you create the resource.

    Name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    Project string

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

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    ServerlessDeployment RegionNetworkEndpointGroupServerlessDeploymentArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    Subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    region String

    A reference to the region where the Serverless NEGs Reside.


    appEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description String

    An optional description of this resource. Provide this property when you create the resource.

    name String

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network String

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType String

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project String

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

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork String

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    region string

    A reference to the region where the Serverless NEGs Reside.


    appEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description string

    An optional description of this resource. Provide this property when you create the resource.

    name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project string

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

    pscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    region str

    A reference to the region where the Serverless NEGs Reside.


    app_engine RegionNetworkEndpointGroupAppEngineArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloud_function RegionNetworkEndpointGroupCloudFunctionArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloud_run RegionNetworkEndpointGroupCloudRunArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description str

    An optional description of this resource. Provide this property when you create the resource.

    name str

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network str

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    network_endpoint_type str

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project str

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

    psc_target_service str

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverless_deployment RegionNetworkEndpointGroupServerlessDeploymentArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork str

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    region String

    A reference to the region where the Serverless NEGs Reside.


    appEngine Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description String

    An optional description of this resource. Provide this property when you create the resource.

    name String

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network String

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType String

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project String

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

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployment Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork String

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RegionNetworkEndpointGroup resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    SelfLink string

    The URI of the created resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    SelfLink string

    The URI of the created resource.

    id String

    The provider-assigned unique ID for this managed resource.

    selfLink String

    The URI of the created resource.

    id string

    The provider-assigned unique ID for this managed resource.

    selfLink string

    The URI of the created resource.

    id str

    The provider-assigned unique ID for this managed resource.

    self_link str

    The URI of the created resource.

    id String

    The provider-assigned unique ID for this managed resource.

    selfLink String

    The URI of the created resource.

    Look up Existing RegionNetworkEndpointGroup Resource

    Get an existing RegionNetworkEndpointGroup 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?: RegionNetworkEndpointGroupState, opts?: CustomResourceOptions): RegionNetworkEndpointGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_engine: Optional[RegionNetworkEndpointGroupAppEngineArgs] = None,
            cloud_function: Optional[RegionNetworkEndpointGroupCloudFunctionArgs] = None,
            cloud_run: Optional[RegionNetworkEndpointGroupCloudRunArgs] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            network: Optional[str] = None,
            network_endpoint_type: Optional[str] = None,
            project: Optional[str] = None,
            psc_target_service: Optional[str] = None,
            region: Optional[str] = None,
            self_link: Optional[str] = None,
            serverless_deployment: Optional[RegionNetworkEndpointGroupServerlessDeploymentArgs] = None,
            subnetwork: Optional[str] = None) -> RegionNetworkEndpointGroup
    func GetRegionNetworkEndpointGroup(ctx *Context, name string, id IDInput, state *RegionNetworkEndpointGroupState, opts ...ResourceOption) (*RegionNetworkEndpointGroup, error)
    public static RegionNetworkEndpointGroup Get(string name, Input<string> id, RegionNetworkEndpointGroupState? state, CustomResourceOptions? opts = null)
    public static RegionNetworkEndpointGroup get(String name, Output<String> id, RegionNetworkEndpointGroupState 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.
    The following state arguments are supported:
    AppEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    Description string

    An optional description of this resource. Provide this property when you create the resource.

    Name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    Project string

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

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    Region string

    A reference to the region where the Serverless NEGs Reside.


    SelfLink string

    The URI of the created resource.

    ServerlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    Subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    AppEngine RegionNetworkEndpointGroupAppEngineArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudFunction RegionNetworkEndpointGroupCloudFunctionArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    CloudRun RegionNetworkEndpointGroupCloudRunArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    Description string

    An optional description of this resource. Provide this property when you create the resource.

    Name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    Project string

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

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    Region string

    A reference to the region where the Serverless NEGs Reside.


    SelfLink string

    The URI of the created resource.

    ServerlessDeployment RegionNetworkEndpointGroupServerlessDeploymentArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    Subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    appEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description String

    An optional description of this resource. Provide this property when you create the resource.

    name String

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network String

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType String

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project String

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

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    region String

    A reference to the region where the Serverless NEGs Reside.


    selfLink String

    The URI of the created resource.

    serverlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork String

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    appEngine RegionNetworkEndpointGroupAppEngine

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction RegionNetworkEndpointGroupCloudFunction

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun RegionNetworkEndpointGroupCloudRun

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description string

    An optional description of this resource. Provide this property when you create the resource.

    name string

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network string

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType string

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project string

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

    pscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    region string

    A reference to the region where the Serverless NEGs Reside.


    selfLink string

    The URI of the created resource.

    serverlessDeployment RegionNetworkEndpointGroupServerlessDeployment

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork string

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    app_engine RegionNetworkEndpointGroupAppEngineArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloud_function RegionNetworkEndpointGroupCloudFunctionArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloud_run RegionNetworkEndpointGroupCloudRunArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description str

    An optional description of this resource. Provide this property when you create the resource.

    name str

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network str

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    network_endpoint_type str

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project str

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

    psc_target_service str

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    region str

    A reference to the region where the Serverless NEGs Reside.


    self_link str

    The URI of the created resource.

    serverless_deployment RegionNetworkEndpointGroupServerlessDeploymentArgs

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork str

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    appEngine Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudFunction Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    cloudRun Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set. Structure is documented below.

    description String

    An optional description of this resource. Provide this property when you create the resource.

    name String

    Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    network String

    This field is only used for PSC. The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.

    networkEndpointType String

    Type of network endpoints in this network endpoint group. Defaults to SERVERLESS Default value is SERVERLESS. Possible values are: SERVERLESS, PRIVATE_SERVICE_CONNECT.

    project String

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

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    region String

    A reference to the region where the Serverless NEGs Reside.


    selfLink String

    The URI of the created resource.

    serverlessDeployment Property Map

    Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.

    subnetwork String

    This field is only used for PSC. Optional URL of the subnetwork to which all network endpoints in the NEG belong.

    Supporting Types

    RegionNetworkEndpointGroupAppEngine, RegionNetworkEndpointGroupAppEngineArgs

    Service string

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    UrlMask string

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    Version string

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    Service string

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    UrlMask string

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    Version string

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    service String

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    urlMask String

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    version String

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    service string

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    urlMask string

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    version string

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    service str

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    url_mask str

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    version str

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    service String

    Optional serving service. The service name must be 1-63 characters long, and comply with RFC1035. Example value: "default", "my-service".

    urlMask String

    A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively.

    version String

    Optional serving version. The version must be 1-63 characters long, and comply with RFC1035. Example value: "v1", "v2".

    RegionNetworkEndpointGroupCloudFunction, RegionNetworkEndpointGroupCloudFunctionArgs

    Function string

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    UrlMask string

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    Function string

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    UrlMask string

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    function String

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    urlMask String

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    function string

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    urlMask string

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    function str

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    url_mask str

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    function String

    A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".

    urlMask String

    A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.

    RegionNetworkEndpointGroupCloudRun, RegionNetworkEndpointGroupCloudRunArgs

    Service string

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    Tag string

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    UrlMask string

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    Service string

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    Tag string

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    UrlMask string

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    service String

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    tag String

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    urlMask String

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    service string

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    tag string

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    urlMask string

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    service str

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    tag str

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    url_mask str

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    service String

    Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".

    tag String

    Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".

    urlMask String

    A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" an be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.

    RegionNetworkEndpointGroupServerlessDeployment, RegionNetworkEndpointGroupServerlessDeploymentArgs

    Platform string

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    Resource string

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    UrlMask string

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    Version string

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    Platform string

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    Resource string

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    UrlMask string

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    Version string

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    platform String

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    resource String

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    urlMask String

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    version String

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    platform string

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    resource string

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    urlMask string

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    version string

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    platform str

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    resource str

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    url_mask str

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    version str

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    platform String

    The platform of the NEG backend target(s). Possible values: API Gateway: apigateway.googleapis.com

    resource String

    The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: API Gateway: The gateway ID, App Engine: The service name, Cloud Functions: The function name, Cloud Run: The service name

    urlMask String

    A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: API Gateway: The gateway ID, App Engine: The service and version, Cloud Functions: The function name, Cloud Run: The service and tag

    version String

    The optional resource version. The version identified by this value is platform-specific and is follows: API Gateway: Unused, App Engine: The service version, Cloud Functions: Unused, Cloud Run: The service tag

    Import

    RegionNetworkEndpointGroup can be imported using any of these accepted formats* projects/{{project}}/regions/{{region}}/networkEndpointGroups/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import RegionNetworkEndpointGroup using one of the formats above. For exampletf import {

    id = “projects/{{project}}/regions/{{region}}/networkEndpointGroups/{{name}}”

    to = google_compute_region_network_endpoint_group.default }

     $ pulumi import gcp:compute/regionNetworkEndpointGroup:RegionNetworkEndpointGroup When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), RegionNetworkEndpointGroup can be imported using one of the formats above. For example
    
     $ pulumi import gcp:compute/regionNetworkEndpointGroup:RegionNetworkEndpointGroup default projects/{{project}}/regions/{{region}}/networkEndpointGroups/{{name}}
    
     $ pulumi import gcp:compute/regionNetworkEndpointGroup:RegionNetworkEndpointGroup default {{project}}/{{region}}/{{name}}
    
     $ pulumi import gcp:compute/regionNetworkEndpointGroup:RegionNetworkEndpointGroup default {{region}}/{{name}}
    
     $ pulumi import gcp:compute/regionNetworkEndpointGroup:RegionNetworkEndpointGroup default {{name}}
    

    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.

    gcp logo
    Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi