1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. cloudrunv2
  5. Job
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.cloudrunv2.Job

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    A Cloud Run Job resource that references a container image which is run to completion.

    To get more information about Job, see:

    Example Usage

    Cloudrunv2 Job Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                }],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    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 default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
    

    Cloudrunv2 Job Limits

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                    resources: {
                        limits: {
                            cpu: "2",
                            memory: "1024Mi",
                        },
                    },
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                    "resources": {
                        "limits": {
                            "cpu": "2",
                            "memory": "1024Mi",
                        },
                    },
                }],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    							Resources: &cloudrunv2.JobTemplateTemplateContainerResourcesArgs{
    								Limits: pulumi.StringMap{
    									"cpu":    pulumi.String("2"),
    									"memory": pulumi.String("1024Mi"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                            Resources = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerResourcesArgs
                            {
                                Limits = 
                                {
                                    { "cpu", "2" },
                                    { "memory", "1024Mi" },
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    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 default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .resources(JobTemplateTemplateContainerResourcesArgs.builder()
                                .limits(Map.ofEntries(
                                    Map.entry("cpu", "2"),
                                    Map.entry("memory", "1024Mi")
                                ))
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
                  resources:
                    limits:
                      cpu: '2'
                      memory: 1024Mi
    

    Cloudrunv2 Job Sql

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const secret = new gcp.secretmanager.Secret("secret", {
        secretId: "secret",
        replication: {
            auto: {},
        },
    });
    const instance = new gcp.sql.DatabaseInstance("instance", {
        name: "cloudrun-sql",
        region: "us-central1",
        databaseVersion: "MYSQL_5_7",
        settings: {
            tier: "db-f1-micro",
        },
        deletionProtection: true,
    });
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                volumes: [{
                    name: "cloudsql",
                    cloudSqlInstance: {
                        instances: [instance.connectionName],
                    },
                }],
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                    envs: [
                        {
                            name: "FOO",
                            value: "bar",
                        },
                        {
                            name: "latestdclsecret",
                            valueSource: {
                                secretKeyRef: {
                                    secret: secret.secretId,
                                    version: "1",
                                },
                            },
                        },
                    ],
                    volumeMounts: [{
                        name: "cloudsql",
                        mountPath: "/cloudsql",
                    }],
                }],
            },
        },
    });
    const project = gcp.organizations.getProject({});
    const secret_version_data = new gcp.secretmanager.SecretVersion("secret-version-data", {
        secret: secret.name,
        secretData: "secret-data",
    });
    const secret_access = new gcp.secretmanager.SecretIamMember("secret-access", {
        secretId: secret.id,
        role: "roles/secretmanager.secretAccessor",
        member: project.then(project => `serviceAccount:${project.number}-compute@developer.gserviceaccount.com`),
    }, {
        dependsOn: [secret],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    secret = gcp.secretmanager.Secret("secret",
        secret_id="secret",
        replication={
            "auto": {},
        })
    instance = gcp.sql.DatabaseInstance("instance",
        name="cloudrun-sql",
        region="us-central1",
        database_version="MYSQL_5_7",
        settings={
            "tier": "db-f1-micro",
        },
        deletion_protection=True)
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "volumes": [{
                    "name": "cloudsql",
                    "cloud_sql_instance": {
                        "instances": [instance.connection_name],
                    },
                }],
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                    "envs": [
                        {
                            "name": "FOO",
                            "value": "bar",
                        },
                        {
                            "name": "latestdclsecret",
                            "value_source": {
                                "secret_key_ref": {
                                    "secret": secret.secret_id,
                                    "version": "1",
                                },
                            },
                        },
                    ],
                    "volume_mounts": [{
                        "name": "cloudsql",
                        "mount_path": "/cloudsql",
                    }],
                }],
            },
        })
    project = gcp.organizations.get_project()
    secret_version_data = gcp.secretmanager.SecretVersion("secret-version-data",
        secret=secret.name,
        secret_data="secret-data")
    secret_access = gcp.secretmanager.SecretIamMember("secret-access",
        secret_id=secret.id,
        role="roles/secretmanager.secretAccessor",
        member=f"serviceAccount:{project.number}-compute@developer.gserviceaccount.com",
        opts = pulumi.ResourceOptions(depends_on=[secret]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/sql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("secret"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		instance, err := sql.NewDatabaseInstance(ctx, "instance", &sql.DatabaseInstanceArgs{
    			Name:            pulumi.String("cloudrun-sql"),
    			Region:          pulumi.String("us-central1"),
    			DatabaseVersion: pulumi.String("MYSQL_5_7"),
    			Settings: &sql.DatabaseInstanceSettingsArgs{
    				Tier: pulumi.String("db-f1-micro"),
    			},
    			DeletionProtection: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
    						&cloudrunv2.JobTemplateTemplateVolumeArgs{
    							Name: pulumi.String("cloudsql"),
    							CloudSqlInstance: &cloudrunv2.JobTemplateTemplateVolumeCloudSqlInstanceArgs{
    								Instances: pulumi.StringArray{
    									instance.ConnectionName,
    								},
    							},
    						},
    					},
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    							Envs: cloudrunv2.JobTemplateTemplateContainerEnvArray{
    								&cloudrunv2.JobTemplateTemplateContainerEnvArgs{
    									Name:  pulumi.String("FOO"),
    									Value: pulumi.String("bar"),
    								},
    								&cloudrunv2.JobTemplateTemplateContainerEnvArgs{
    									Name: pulumi.String("latestdclsecret"),
    									ValueSource: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceArgs{
    										SecretKeyRef: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs{
    											Secret:  secret.SecretId,
    											Version: pulumi.String("1"),
    										},
    									},
    								},
    							},
    							VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
    								&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
    									Name:      pulumi.String("cloudsql"),
    									MountPath: pulumi.String("/cloudsql"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = secretmanager.NewSecretVersion(ctx, "secret-version-data", &secretmanager.SecretVersionArgs{
    			Secret:     secret.Name,
    			SecretData: pulumi.String("secret-data"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = secretmanager.NewSecretIamMember(ctx, "secret-access", &secretmanager.SecretIamMemberArgs{
    			SecretId: secret.ID(),
    			Role:     pulumi.String("roles/secretmanager.secretAccessor"),
    			Member:   pulumi.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			secret,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var secret = new Gcp.SecretManager.Secret("secret", new()
        {
            SecretId = "secret",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var instance = new Gcp.Sql.DatabaseInstance("instance", new()
        {
            Name = "cloudrun-sql",
            Region = "us-central1",
            DatabaseVersion = "MYSQL_5_7",
            Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs
            {
                Tier = "db-f1-micro",
            },
            DeletionProtection = true,
        });
    
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Volumes = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
                        {
                            Name = "cloudsql",
                            CloudSqlInstance = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeCloudSqlInstanceArgs
                            {
                                Instances = new[]
                                {
                                    instance.ConnectionName,
                                },
                            },
                        },
                    },
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                            Envs = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvArgs
                                {
                                    Name = "FOO",
                                    Value = "bar",
                                },
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvArgs
                                {
                                    Name = "latestdclsecret",
                                    ValueSource = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceArgs
                                    {
                                        SecretKeyRef = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs
                                        {
                                            Secret = secret.SecretId,
                                            Version = "1",
                                        },
                                    },
                                },
                            },
                            VolumeMounts = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
                                {
                                    Name = "cloudsql",
                                    MountPath = "/cloudsql",
                                },
                            },
                        },
                    },
                },
            },
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var secret_version_data = new Gcp.SecretManager.SecretVersion("secret-version-data", new()
        {
            Secret = secret.Name,
            SecretData = "secret-data",
        });
    
        var secret_access = new Gcp.SecretManager.SecretIamMember("secret-access", new()
        {
            SecretId = secret.Id,
            Role = "roles/secretmanager.secretAccessor",
            Member = $"serviceAccount:{project.Apply(getProjectResult => getProjectResult.Number)}-compute@developer.gserviceaccount.com",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                secret,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.secretmanager.Secret;
    import com.pulumi.gcp.secretmanager.SecretArgs;
    import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
    import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
    import com.pulumi.gcp.sql.DatabaseInstance;
    import com.pulumi.gcp.sql.DatabaseInstanceArgs;
    import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsArgs;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.secretmanager.SecretVersion;
    import com.pulumi.gcp.secretmanager.SecretVersionArgs;
    import com.pulumi.gcp.secretmanager.SecretIamMember;
    import com.pulumi.gcp.secretmanager.SecretIamMemberArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 secret = new Secret("secret", SecretArgs.builder()
                .secretId("secret")
                .replication(SecretReplicationArgs.builder()
                    .auto()
                    .build())
                .build());
    
            var instance = new DatabaseInstance("instance", DatabaseInstanceArgs.builder()
                .name("cloudrun-sql")
                .region("us-central1")
                .databaseVersion("MYSQL_5_7")
                .settings(DatabaseInstanceSettingsArgs.builder()
                    .tier("db-f1-micro")
                    .build())
                .deletionProtection(true)
                .build());
    
            var default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .volumes(JobTemplateTemplateVolumeArgs.builder()
                            .name("cloudsql")
                            .cloudSqlInstance(JobTemplateTemplateVolumeCloudSqlInstanceArgs.builder()
                                .instances(instance.connectionName())
                                .build())
                            .build())
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .envs(                        
                                JobTemplateTemplateContainerEnvArgs.builder()
                                    .name("FOO")
                                    .value("bar")
                                    .build(),
                                JobTemplateTemplateContainerEnvArgs.builder()
                                    .name("latestdclsecret")
                                    .valueSource(JobTemplateTemplateContainerEnvValueSourceArgs.builder()
                                        .secretKeyRef(JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.builder()
                                            .secret(secret.secretId())
                                            .version("1")
                                            .build())
                                        .build())
                                    .build())
                            .volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
                                .name("cloudsql")
                                .mountPath("/cloudsql")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var secret_version_data = new SecretVersion("secret-version-data", SecretVersionArgs.builder()
                .secret(secret.name())
                .secretData("secret-data")
                .build());
    
            var secret_access = new SecretIamMember("secret-access", SecretIamMemberArgs.builder()
                .secretId(secret.id())
                .role("roles/secretmanager.secretAccessor")
                .member(String.format("serviceAccount:%s-compute@developer.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(secret)
                    .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              volumes:
                - name: cloudsql
                  cloudSqlInstance:
                    instances:
                      - ${instance.connectionName}
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
                  envs:
                    - name: FOO
                      value: bar
                    - name: latestdclsecret
                      valueSource:
                        secretKeyRef:
                          secret: ${secret.secretId}
                          version: '1'
                  volumeMounts:
                    - name: cloudsql
                      mountPath: /cloudsql
      secret:
        type: gcp:secretmanager:Secret
        properties:
          secretId: secret
          replication:
            auto: {}
      secret-version-data:
        type: gcp:secretmanager:SecretVersion
        properties:
          secret: ${secret.name}
          secretData: secret-data
      secret-access:
        type: gcp:secretmanager:SecretIamMember
        properties:
          secretId: ${secret.id}
          role: roles/secretmanager.secretAccessor
          member: serviceAccount:${project.number}-compute@developer.gserviceaccount.com
        options:
          dependson:
            - ${secret}
      instance:
        type: gcp:sql:DatabaseInstance
        properties:
          name: cloudrun-sql
          region: us-central1
          databaseVersion: MYSQL_5_7
          settings:
            tier: db-f1-micro
          deletionProtection: true
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    Cloudrunv2 Job Vpcaccess

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const customTestNetwork = new gcp.compute.Network("custom_test", {
        name: "run-network",
        autoCreateSubnetworks: false,
    });
    const customTest = new gcp.compute.Subnetwork("custom_test", {
        name: "run-subnetwork",
        ipCidrRange: "10.2.0.0/28",
        region: "us-central1",
        network: customTestNetwork.id,
    });
    const connector = new gcp.vpcaccess.Connector("connector", {
        name: "run-vpc",
        subnet: {
            name: customTest.name,
        },
        machineType: "e2-standard-4",
        minInstances: 2,
        maxInstances: 3,
        region: "us-central1",
    });
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                }],
                vpcAccess: {
                    connector: connector.id,
                    egress: "ALL_TRAFFIC",
                },
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_test_network = gcp.compute.Network("custom_test",
        name="run-network",
        auto_create_subnetworks=False)
    custom_test = gcp.compute.Subnetwork("custom_test",
        name="run-subnetwork",
        ip_cidr_range="10.2.0.0/28",
        region="us-central1",
        network=custom_test_network.id)
    connector = gcp.vpcaccess.Connector("connector",
        name="run-vpc",
        subnet={
            "name": custom_test.name,
        },
        machine_type="e2-standard-4",
        min_instances=2,
        max_instances=3,
        region="us-central1")
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                }],
                "vpc_access": {
                    "connector": connector.id,
                    "egress": "ALL_TRAFFIC",
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vpcaccess"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		customTestNetwork, err := compute.NewNetwork(ctx, "custom_test", &compute.NetworkArgs{
    			Name:                  pulumi.String("run-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		customTest, err := compute.NewSubnetwork(ctx, "custom_test", &compute.SubnetworkArgs{
    			Name:        pulumi.String("run-subnetwork"),
    			IpCidrRange: pulumi.String("10.2.0.0/28"),
    			Region:      pulumi.String("us-central1"),
    			Network:     customTestNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		connector, err := vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
    			Name: pulumi.String("run-vpc"),
    			Subnet: &vpcaccess.ConnectorSubnetArgs{
    				Name: customTest.Name,
    			},
    			MachineType:  pulumi.String("e2-standard-4"),
    			MinInstances: pulumi.Int(2),
    			MaxInstances: pulumi.Int(3),
    			Region:       pulumi.String("us-central1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    						},
    					},
    					VpcAccess: &cloudrunv2.JobTemplateTemplateVpcAccessArgs{
    						Connector: connector.ID(),
    						Egress:    pulumi.String("ALL_TRAFFIC"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var customTestNetwork = new Gcp.Compute.Network("custom_test", new()
        {
            Name = "run-network",
            AutoCreateSubnetworks = false,
        });
    
        var customTest = new Gcp.Compute.Subnetwork("custom_test", new()
        {
            Name = "run-subnetwork",
            IpCidrRange = "10.2.0.0/28",
            Region = "us-central1",
            Network = customTestNetwork.Id,
        });
    
        var connector = new Gcp.VpcAccess.Connector("connector", new()
        {
            Name = "run-vpc",
            Subnet = new Gcp.VpcAccess.Inputs.ConnectorSubnetArgs
            {
                Name = customTest.Name,
            },
            MachineType = "e2-standard-4",
            MinInstances = 2,
            MaxInstances = 3,
            Region = "us-central1",
        });
    
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                        },
                    },
                    VpcAccess = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessArgs
                    {
                        Connector = connector.Id,
                        Egress = "ALL_TRAFFIC",
                    },
                },
            },
        });
    
    });
    
    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.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.vpcaccess.Connector;
    import com.pulumi.gcp.vpcaccess.ConnectorArgs;
    import com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs;
    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 customTestNetwork = new Network("customTestNetwork", NetworkArgs.builder()
                .name("run-network")
                .autoCreateSubnetworks(false)
                .build());
    
            var customTest = new Subnetwork("customTest", SubnetworkArgs.builder()
                .name("run-subnetwork")
                .ipCidrRange("10.2.0.0/28")
                .region("us-central1")
                .network(customTestNetwork.id())
                .build());
    
            var connector = new Connector("connector", ConnectorArgs.builder()
                .name("run-vpc")
                .subnet(ConnectorSubnetArgs.builder()
                    .name(customTest.name())
                    .build())
                .machineType("e2-standard-4")
                .minInstances(2)
                .maxInstances(3)
                .region("us-central1")
                .build());
    
            var default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .build())
                        .vpcAccess(JobTemplateTemplateVpcAccessArgs.builder()
                            .connector(connector.id())
                            .egress("ALL_TRAFFIC")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
              vpcAccess:
                connector: ${connector.id}
                egress: ALL_TRAFFIC
      connector:
        type: gcp:vpcaccess:Connector
        properties:
          name: run-vpc
          subnet:
            name: ${customTest.name}
          machineType: e2-standard-4
          minInstances: 2
          maxInstances: 3
          region: us-central1
      customTest:
        type: gcp:compute:Subnetwork
        name: custom_test
        properties:
          name: run-subnetwork
          ipCidrRange: 10.2.0.0/28
          region: us-central1
          network: ${customTestNetwork.id}
      customTestNetwork:
        type: gcp:compute:Network
        name: custom_test
        properties:
          name: run-network
          autoCreateSubnetworks: false
    

    Cloudrunv2 Job Directvpc

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        launchStage: "GA",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                }],
                vpcAccess: {
                    networkInterfaces: [{
                        network: "default",
                        subnetwork: "default",
                        tags: [
                            "tag1",
                            "tag2",
                            "tag3",
                        ],
                    }],
                },
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        launch_stage="GA",
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                }],
                "vpc_access": {
                    "network_interfaces": [{
                        "network": "default",
                        "subnetwork": "default",
                        "tags": [
                            "tag1",
                            "tag2",
                            "tag3",
                        ],
                    }],
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			LaunchStage:        pulumi.String("GA"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    						},
    					},
    					VpcAccess: &cloudrunv2.JobTemplateTemplateVpcAccessArgs{
    						NetworkInterfaces: cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArray{
    							&cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArgs{
    								Network:    pulumi.String("default"),
    								Subnetwork: pulumi.String("default"),
    								Tags: pulumi.StringArray{
    									pulumi.String("tag1"),
    									pulumi.String("tag2"),
    									pulumi.String("tag3"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            LaunchStage = "GA",
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                        },
                    },
                    VpcAccess = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessArgs
                    {
                        NetworkInterfaces = new[]
                        {
                            new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs
                            {
                                Network = "default",
                                Subnetwork = "default",
                                Tags = new[]
                                {
                                    "tag1",
                                    "tag2",
                                    "tag3",
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs;
    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 default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .launchStage("GA")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .build())
                        .vpcAccess(JobTemplateTemplateVpcAccessArgs.builder()
                            .networkInterfaces(JobTemplateTemplateVpcAccessNetworkInterfaceArgs.builder()
                                .network("default")
                                .subnetwork("default")
                                .tags(                            
                                    "tag1",
                                    "tag2",
                                    "tag3")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          launchStage: GA
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
              vpcAccess:
                networkInterfaces:
                  - network: default
                    subnetwork: default
                    tags:
                      - tag1
                      - tag2
                      - tag3
    

    Cloudrunv2 Job Secret

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const secret = new gcp.secretmanager.Secret("secret", {
        secretId: "secret",
        replication: {
            auto: {},
        },
    });
    const secret_version_data = new gcp.secretmanager.SecretVersion("secret-version-data", {
        secret: secret.name,
        secretData: "secret-data",
    });
    const project = gcp.organizations.getProject({});
    const secret_access = new gcp.secretmanager.SecretIamMember("secret-access", {
        secretId: secret.id,
        role: "roles/secretmanager.secretAccessor",
        member: project.then(project => `serviceAccount:${project.number}-compute@developer.gserviceaccount.com`),
    }, {
        dependsOn: [secret],
    });
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                volumes: [{
                    name: "a-volume",
                    secret: {
                        secret: secret.secretId,
                        defaultMode: 292,
                        items: [{
                            version: "1",
                            path: "my-secret",
                            mode: 256,
                        }],
                    },
                }],
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                    volumeMounts: [{
                        name: "a-volume",
                        mountPath: "/secrets",
                    }],
                }],
            },
        },
    }, {
        dependsOn: [
            secret_version_data,
            secret_access,
        ],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    secret = gcp.secretmanager.Secret("secret",
        secret_id="secret",
        replication={
            "auto": {},
        })
    secret_version_data = gcp.secretmanager.SecretVersion("secret-version-data",
        secret=secret.name,
        secret_data="secret-data")
    project = gcp.organizations.get_project()
    secret_access = gcp.secretmanager.SecretIamMember("secret-access",
        secret_id=secret.id,
        role="roles/secretmanager.secretAccessor",
        member=f"serviceAccount:{project.number}-compute@developer.gserviceaccount.com",
        opts = pulumi.ResourceOptions(depends_on=[secret]))
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "volumes": [{
                    "name": "a-volume",
                    "secret": {
                        "secret": secret.secret_id,
                        "default_mode": 292,
                        "items": [{
                            "version": "1",
                            "path": "my-secret",
                            "mode": 256,
                        }],
                    },
                }],
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                    "volume_mounts": [{
                        "name": "a-volume",
                        "mount_path": "/secrets",
                    }],
                }],
            },
        },
        opts = pulumi.ResourceOptions(depends_on=[
                secret_version_data,
                secret_access,
            ]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
    			SecretId: pulumi.String("secret"),
    			Replication: &secretmanager.SecretReplicationArgs{
    				Auto: &secretmanager.SecretReplicationAutoArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = secretmanager.NewSecretVersion(ctx, "secret-version-data", &secretmanager.SecretVersionArgs{
    			Secret:     secret.Name,
    			SecretData: pulumi.String("secret-data"),
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = secretmanager.NewSecretIamMember(ctx, "secret-access", &secretmanager.SecretIamMemberArgs{
    			SecretId: secret.ID(),
    			Role:     pulumi.String("roles/secretmanager.secretAccessor"),
    			Member:   pulumi.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			secret,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
    						&cloudrunv2.JobTemplateTemplateVolumeArgs{
    							Name: pulumi.String("a-volume"),
    							Secret: &cloudrunv2.JobTemplateTemplateVolumeSecretArgs{
    								Secret:      secret.SecretId,
    								DefaultMode: pulumi.Int(292),
    								Items: cloudrunv2.JobTemplateTemplateVolumeSecretItemArray{
    									&cloudrunv2.JobTemplateTemplateVolumeSecretItemArgs{
    										Version: pulumi.String("1"),
    										Path:    pulumi.String("my-secret"),
    										Mode:    pulumi.Int(256),
    									},
    								},
    							},
    						},
    					},
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    							VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
    								&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
    									Name:      pulumi.String("a-volume"),
    									MountPath: pulumi.String("/secrets"),
    								},
    							},
    						},
    					},
    				},
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			secret_version_data,
    			secret_access,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var secret = new Gcp.SecretManager.Secret("secret", new()
        {
            SecretId = "secret",
            Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
            {
                Auto = null,
            },
        });
    
        var secret_version_data = new Gcp.SecretManager.SecretVersion("secret-version-data", new()
        {
            Secret = secret.Name,
            SecretData = "secret-data",
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var secret_access = new Gcp.SecretManager.SecretIamMember("secret-access", new()
        {
            SecretId = secret.Id,
            Role = "roles/secretmanager.secretAccessor",
            Member = $"serviceAccount:{project.Apply(getProjectResult => getProjectResult.Number)}-compute@developer.gserviceaccount.com",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                secret,
            },
        });
    
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Volumes = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
                        {
                            Name = "a-volume",
                            Secret = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretArgs
                            {
                                Secret = secret.SecretId,
                                DefaultMode = 292,
                                Items = new[]
                                {
                                    new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretItemArgs
                                    {
                                        Version = "1",
                                        Path = "my-secret",
                                        Mode = 256,
                                    },
                                },
                            },
                        },
                    },
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                            VolumeMounts = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
                                {
                                    Name = "a-volume",
                                    MountPath = "/secrets",
                                },
                            },
                        },
                    },
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                secret_version_data,
                secret_access,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.secretmanager.Secret;
    import com.pulumi.gcp.secretmanager.SecretArgs;
    import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
    import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
    import com.pulumi.gcp.secretmanager.SecretVersion;
    import com.pulumi.gcp.secretmanager.SecretVersionArgs;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.secretmanager.SecretIamMember;
    import com.pulumi.gcp.secretmanager.SecretIamMemberArgs;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 secret = new Secret("secret", SecretArgs.builder()
                .secretId("secret")
                .replication(SecretReplicationArgs.builder()
                    .auto()
                    .build())
                .build());
    
            var secret_version_data = new SecretVersion("secret-version-data", SecretVersionArgs.builder()
                .secret(secret.name())
                .secretData("secret-data")
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var secret_access = new SecretIamMember("secret-access", SecretIamMemberArgs.builder()
                .secretId(secret.id())
                .role("roles/secretmanager.secretAccessor")
                .member(String.format("serviceAccount:%s-compute@developer.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(secret)
                    .build());
    
            var default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .volumes(JobTemplateTemplateVolumeArgs.builder()
                            .name("a-volume")
                            .secret(JobTemplateTemplateVolumeSecretArgs.builder()
                                .secret(secret.secretId())
                                .defaultMode(292)
                                .items(JobTemplateTemplateVolumeSecretItemArgs.builder()
                                    .version("1")
                                    .path("my-secret")
                                    .mode(256)
                                    .build())
                                .build())
                            .build())
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
                                .name("a-volume")
                                .mountPath("/secrets")
                                .build())
                            .build())
                        .build())
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        secret_version_data,
                        secret_access)
                    .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              volumes:
                - name: a-volume
                  secret:
                    secret: ${secret.secretId}
                    defaultMode: 292
                    items:
                      - version: '1'
                        path: my-secret
                        mode: 256
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
                  volumeMounts:
                    - name: a-volume
                      mountPath: /secrets
        options:
          dependson:
            - ${["secret-version-data"]}
            - ${["secret-access"]}
      secret:
        type: gcp:secretmanager:Secret
        properties:
          secretId: secret
          replication:
            auto: {}
      secret-version-data:
        type: gcp:secretmanager:SecretVersion
        properties:
          secret: ${secret.name}
          secretData: secret-data
      secret-access:
        type: gcp:secretmanager:SecretIamMember
        properties:
          secretId: ${secret.id}
          role: roles/secretmanager.secretAccessor
          member: serviceAccount:${project.number}-compute@developer.gserviceaccount.com
        options:
          dependson:
            - ${secret}
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    Cloudrunv2 Job Emptydir

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                    volumeMounts: [{
                        name: "empty-dir-volume",
                        mountPath: "/mnt",
                    }],
                }],
                volumes: [{
                    name: "empty-dir-volume",
                    emptyDir: {
                        medium: "MEMORY",
                        sizeLimit: "128Mi",
                    },
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                    "volume_mounts": [{
                        "name": "empty-dir-volume",
                        "mount_path": "/mnt",
                    }],
                }],
                "volumes": [{
                    "name": "empty-dir-volume",
                    "empty_dir": {
                        "medium": "MEMORY",
                        "size_limit": "128Mi",
                    },
                }],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:               pulumi.String("cloudrun-job"),
    			Location:           pulumi.String("us-central1"),
    			DeletionProtection: pulumi.Bool(false),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    							VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
    								&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
    									Name:      pulumi.String("empty-dir-volume"),
    									MountPath: pulumi.String("/mnt"),
    								},
    							},
    						},
    					},
    					Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
    						&cloudrunv2.JobTemplateTemplateVolumeArgs{
    							Name: pulumi.String("empty-dir-volume"),
    							EmptyDir: &cloudrunv2.JobTemplateTemplateVolumeEmptyDirArgs{
    								Medium:    pulumi.String("MEMORY"),
    								SizeLimit: pulumi.String("128Mi"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                            VolumeMounts = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
                                {
                                    Name = "empty-dir-volume",
                                    MountPath = "/mnt",
                                },
                            },
                        },
                    },
                    Volumes = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
                        {
                            Name = "empty-dir-volume",
                            EmptyDir = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeEmptyDirArgs
                            {
                                Medium = "MEMORY",
                                SizeLimit = "128Mi",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    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 default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
                                .name("empty-dir-volume")
                                .mountPath("/mnt")
                                .build())
                            .build())
                        .volumes(JobTemplateTemplateVolumeArgs.builder()
                            .name("empty-dir-volume")
                            .emptyDir(JobTemplateTemplateVolumeEmptyDirArgs.builder()
                                .medium("MEMORY")
                                .sizeLimit("128Mi")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
                  volumeMounts:
                    - name: empty-dir-volume
                      mountPath: /mnt
              volumes:
                - name: empty-dir-volume
                  emptyDir:
                    medium: MEMORY
                    sizeLimit: 128Mi
    

    Cloudrunv2 Job Run Job

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        deletionProtection: false,
        startExecutionToken: "start-once-created",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        deletion_protection=False,
        start_execution_token="start-once-created",
        template={
            "template": {
                "containers": [{
                    "image": "us-docker.pkg.dev/cloudrun/container/job",
                }],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:                pulumi.String("cloudrun-job"),
    			Location:            pulumi.String("us-central1"),
    			DeletionProtection:  pulumi.Bool(false),
    			StartExecutionToken: pulumi.String("start-once-created"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            DeletionProtection = false,
            StartExecutionToken = "start-once-created",
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
            {
                Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
                {
                    Containers = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                        {
                            Image = "us-docker.pkg.dev/cloudrun/container/job",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudrunv2.Job;
    import com.pulumi.gcp.cloudrunv2.JobArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
    import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
    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 default_ = new Job("default", JobArgs.builder()
                .name("cloudrun-job")
                .location("us-central1")
                .deletionProtection(false)
                .startExecutionToken("start-once-created")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/job")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          deletionProtection: false
          startExecutionToken: start-once-created
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
    

    Create Job Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
    @overload
    def Job(resource_name: str,
            args: JobArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Job(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            template: Optional[JobTemplateArgs] = None,
            launch_stage: Optional[str] = None,
            client_version: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            labels: Optional[Mapping[str, str]] = None,
            annotations: Optional[Mapping[str, str]] = None,
            client: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            run_execution_token: Optional[str] = None,
            start_execution_token: Optional[str] = None,
            binary_authorization: Optional[JobBinaryAuthorizationArgs] = None)
    func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)
    public Job(string name, JobArgs args, CustomResourceOptions? opts = null)
    public Job(String name, JobArgs args)
    public Job(String name, JobArgs args, CustomResourceOptions options)
    
    type: gcp:cloudrunv2:Job
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args JobArgs
    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 JobArgs
    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 JobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gcpJobResource = new Gcp.CloudRunV2.Job("gcpJobResource", new()
    {
        Location = "string",
        Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
        {
            Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
            {
                Containers = new[]
                {
                    new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
                    {
                        Image = "string",
                        Args = new[]
                        {
                            "string",
                        },
                        Commands = new[]
                        {
                            "string",
                        },
                        Envs = new[]
                        {
                            new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvArgs
                            {
                                Name = "string",
                                Value = "string",
                                ValueSource = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceArgs
                                {
                                    SecretKeyRef = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs
                                    {
                                        Secret = "string",
                                        Version = "string",
                                    },
                                },
                            },
                        },
                        Name = "string",
                        Ports = new[]
                        {
                            new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerPortArgs
                            {
                                ContainerPort = 0,
                                Name = "string",
                            },
                        },
                        Resources = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerResourcesArgs
                        {
                            Limits = 
                            {
                                { "string", "string" },
                            },
                        },
                        VolumeMounts = new[]
                        {
                            new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
                            {
                                MountPath = "string",
                                Name = "string",
                            },
                        },
                        WorkingDir = "string",
                    },
                },
                EncryptionKey = "string",
                ExecutionEnvironment = "string",
                MaxRetries = 0,
                ServiceAccount = "string",
                Timeout = "string",
                Volumes = new[]
                {
                    new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
                    {
                        Name = "string",
                        CloudSqlInstance = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeCloudSqlInstanceArgs
                        {
                            Instances = new[]
                            {
                                "string",
                            },
                        },
                        EmptyDir = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeEmptyDirArgs
                        {
                            Medium = "string",
                            SizeLimit = "string",
                        },
                        Gcs = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeGcsArgs
                        {
                            Bucket = "string",
                            MountOptions = new[]
                            {
                                "string",
                            },
                            ReadOnly = false,
                        },
                        Nfs = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeNfsArgs
                        {
                            Server = "string",
                            Path = "string",
                            ReadOnly = false,
                        },
                        Secret = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretArgs
                        {
                            Secret = "string",
                            DefaultMode = 0,
                            Items = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretItemArgs
                                {
                                    Path = "string",
                                    Version = "string",
                                    Mode = 0,
                                },
                            },
                        },
                    },
                },
                VpcAccess = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessArgs
                {
                    Connector = "string",
                    Egress = "string",
                    NetworkInterfaces = new[]
                    {
                        new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs
                        {
                            Network = "string",
                            Subnetwork = "string",
                            Tags = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
            },
            Annotations = 
            {
                { "string", "string" },
            },
            Labels = 
            {
                { "string", "string" },
            },
            Parallelism = 0,
            TaskCount = 0,
        },
        LaunchStage = "string",
        ClientVersion = "string",
        DeletionProtection = false,
        Labels = 
        {
            { "string", "string" },
        },
        Annotations = 
        {
            { "string", "string" },
        },
        Client = "string",
        Name = "string",
        Project = "string",
        RunExecutionToken = "string",
        StartExecutionToken = "string",
        BinaryAuthorization = new Gcp.CloudRunV2.Inputs.JobBinaryAuthorizationArgs
        {
            BreakglassJustification = "string",
            Policy = "string",
            UseDefault = false,
        },
    });
    
    example, err := cloudrunv2.NewJob(ctx, "gcpJobResource", &cloudrunv2.JobArgs{
    	Location: pulumi.String("string"),
    	Template: &cloudrunv2.JobTemplateArgs{
    		Template: &cloudrunv2.JobTemplateTemplateArgs{
    			Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    				&cloudrunv2.JobTemplateTemplateContainerArgs{
    					Image: pulumi.String("string"),
    					Args: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Commands: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Envs: cloudrunv2.JobTemplateTemplateContainerEnvArray{
    						&cloudrunv2.JobTemplateTemplateContainerEnvArgs{
    							Name:  pulumi.String("string"),
    							Value: pulumi.String("string"),
    							ValueSource: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceArgs{
    								SecretKeyRef: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs{
    									Secret:  pulumi.String("string"),
    									Version: pulumi.String("string"),
    								},
    							},
    						},
    					},
    					Name: pulumi.String("string"),
    					Ports: cloudrunv2.JobTemplateTemplateContainerPortArray{
    						&cloudrunv2.JobTemplateTemplateContainerPortArgs{
    							ContainerPort: pulumi.Int(0),
    							Name:          pulumi.String("string"),
    						},
    					},
    					Resources: &cloudrunv2.JobTemplateTemplateContainerResourcesArgs{
    						Limits: pulumi.StringMap{
    							"string": pulumi.String("string"),
    						},
    					},
    					VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
    						&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
    							MountPath: pulumi.String("string"),
    							Name:      pulumi.String("string"),
    						},
    					},
    					WorkingDir: pulumi.String("string"),
    				},
    			},
    			EncryptionKey:        pulumi.String("string"),
    			ExecutionEnvironment: pulumi.String("string"),
    			MaxRetries:           pulumi.Int(0),
    			ServiceAccount:       pulumi.String("string"),
    			Timeout:              pulumi.String("string"),
    			Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
    				&cloudrunv2.JobTemplateTemplateVolumeArgs{
    					Name: pulumi.String("string"),
    					CloudSqlInstance: &cloudrunv2.JobTemplateTemplateVolumeCloudSqlInstanceArgs{
    						Instances: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    					EmptyDir: &cloudrunv2.JobTemplateTemplateVolumeEmptyDirArgs{
    						Medium:    pulumi.String("string"),
    						SizeLimit: pulumi.String("string"),
    					},
    					Gcs: &cloudrunv2.JobTemplateTemplateVolumeGcsArgs{
    						Bucket: pulumi.String("string"),
    						MountOptions: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						ReadOnly: pulumi.Bool(false),
    					},
    					Nfs: &cloudrunv2.JobTemplateTemplateVolumeNfsArgs{
    						Server:   pulumi.String("string"),
    						Path:     pulumi.String("string"),
    						ReadOnly: pulumi.Bool(false),
    					},
    					Secret: &cloudrunv2.JobTemplateTemplateVolumeSecretArgs{
    						Secret:      pulumi.String("string"),
    						DefaultMode: pulumi.Int(0),
    						Items: cloudrunv2.JobTemplateTemplateVolumeSecretItemArray{
    							&cloudrunv2.JobTemplateTemplateVolumeSecretItemArgs{
    								Path:    pulumi.String("string"),
    								Version: pulumi.String("string"),
    								Mode:    pulumi.Int(0),
    							},
    						},
    					},
    				},
    			},
    			VpcAccess: &cloudrunv2.JobTemplateTemplateVpcAccessArgs{
    				Connector: pulumi.String("string"),
    				Egress:    pulumi.String("string"),
    				NetworkInterfaces: cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArray{
    					&cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArgs{
    						Network:    pulumi.String("string"),
    						Subnetwork: pulumi.String("string"),
    						Tags: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    		Annotations: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		Labels: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		Parallelism: pulumi.Int(0),
    		TaskCount:   pulumi.Int(0),
    	},
    	LaunchStage:        pulumi.String("string"),
    	ClientVersion:      pulumi.String("string"),
    	DeletionProtection: pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Client:              pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Project:             pulumi.String("string"),
    	RunExecutionToken:   pulumi.String("string"),
    	StartExecutionToken: pulumi.String("string"),
    	BinaryAuthorization: &cloudrunv2.JobBinaryAuthorizationArgs{
    		BreakglassJustification: pulumi.String("string"),
    		Policy:                  pulumi.String("string"),
    		UseDefault:              pulumi.Bool(false),
    	},
    })
    
    var gcpJobResource = new Job("gcpJobResource", JobArgs.builder()
        .location("string")
        .template(JobTemplateArgs.builder()
            .template(JobTemplateTemplateArgs.builder()
                .containers(JobTemplateTemplateContainerArgs.builder()
                    .image("string")
                    .args("string")
                    .commands("string")
                    .envs(JobTemplateTemplateContainerEnvArgs.builder()
                        .name("string")
                        .value("string")
                        .valueSource(JobTemplateTemplateContainerEnvValueSourceArgs.builder()
                            .secretKeyRef(JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.builder()
                                .secret("string")
                                .version("string")
                                .build())
                            .build())
                        .build())
                    .name("string")
                    .ports(JobTemplateTemplateContainerPortArgs.builder()
                        .containerPort(0)
                        .name("string")
                        .build())
                    .resources(JobTemplateTemplateContainerResourcesArgs.builder()
                        .limits(Map.of("string", "string"))
                        .build())
                    .volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
                        .mountPath("string")
                        .name("string")
                        .build())
                    .workingDir("string")
                    .build())
                .encryptionKey("string")
                .executionEnvironment("string")
                .maxRetries(0)
                .serviceAccount("string")
                .timeout("string")
                .volumes(JobTemplateTemplateVolumeArgs.builder()
                    .name("string")
                    .cloudSqlInstance(JobTemplateTemplateVolumeCloudSqlInstanceArgs.builder()
                        .instances("string")
                        .build())
                    .emptyDir(JobTemplateTemplateVolumeEmptyDirArgs.builder()
                        .medium("string")
                        .sizeLimit("string")
                        .build())
                    .gcs(JobTemplateTemplateVolumeGcsArgs.builder()
                        .bucket("string")
                        .mountOptions("string")
                        .readOnly(false)
                        .build())
                    .nfs(JobTemplateTemplateVolumeNfsArgs.builder()
                        .server("string")
                        .path("string")
                        .readOnly(false)
                        .build())
                    .secret(JobTemplateTemplateVolumeSecretArgs.builder()
                        .secret("string")
                        .defaultMode(0)
                        .items(JobTemplateTemplateVolumeSecretItemArgs.builder()
                            .path("string")
                            .version("string")
                            .mode(0)
                            .build())
                        .build())
                    .build())
                .vpcAccess(JobTemplateTemplateVpcAccessArgs.builder()
                    .connector("string")
                    .egress("string")
                    .networkInterfaces(JobTemplateTemplateVpcAccessNetworkInterfaceArgs.builder()
                        .network("string")
                        .subnetwork("string")
                        .tags("string")
                        .build())
                    .build())
                .build())
            .annotations(Map.of("string", "string"))
            .labels(Map.of("string", "string"))
            .parallelism(0)
            .taskCount(0)
            .build())
        .launchStage("string")
        .clientVersion("string")
        .deletionProtection(false)
        .labels(Map.of("string", "string"))
        .annotations(Map.of("string", "string"))
        .client("string")
        .name("string")
        .project("string")
        .runExecutionToken("string")
        .startExecutionToken("string")
        .binaryAuthorization(JobBinaryAuthorizationArgs.builder()
            .breakglassJustification("string")
            .policy("string")
            .useDefault(false)
            .build())
        .build());
    
    gcp_job_resource = gcp.cloudrunv2.Job("gcpJobResource",
        location="string",
        template={
            "template": {
                "containers": [{
                    "image": "string",
                    "args": ["string"],
                    "commands": ["string"],
                    "envs": [{
                        "name": "string",
                        "value": "string",
                        "value_source": {
                            "secret_key_ref": {
                                "secret": "string",
                                "version": "string",
                            },
                        },
                    }],
                    "name": "string",
                    "ports": [{
                        "container_port": 0,
                        "name": "string",
                    }],
                    "resources": {
                        "limits": {
                            "string": "string",
                        },
                    },
                    "volume_mounts": [{
                        "mount_path": "string",
                        "name": "string",
                    }],
                    "working_dir": "string",
                }],
                "encryption_key": "string",
                "execution_environment": "string",
                "max_retries": 0,
                "service_account": "string",
                "timeout": "string",
                "volumes": [{
                    "name": "string",
                    "cloud_sql_instance": {
                        "instances": ["string"],
                    },
                    "empty_dir": {
                        "medium": "string",
                        "size_limit": "string",
                    },
                    "gcs": {
                        "bucket": "string",
                        "mount_options": ["string"],
                        "read_only": False,
                    },
                    "nfs": {
                        "server": "string",
                        "path": "string",
                        "read_only": False,
                    },
                    "secret": {
                        "secret": "string",
                        "default_mode": 0,
                        "items": [{
                            "path": "string",
                            "version": "string",
                            "mode": 0,
                        }],
                    },
                }],
                "vpc_access": {
                    "connector": "string",
                    "egress": "string",
                    "network_interfaces": [{
                        "network": "string",
                        "subnetwork": "string",
                        "tags": ["string"],
                    }],
                },
            },
            "annotations": {
                "string": "string",
            },
            "labels": {
                "string": "string",
            },
            "parallelism": 0,
            "task_count": 0,
        },
        launch_stage="string",
        client_version="string",
        deletion_protection=False,
        labels={
            "string": "string",
        },
        annotations={
            "string": "string",
        },
        client="string",
        name="string",
        project="string",
        run_execution_token="string",
        start_execution_token="string",
        binary_authorization={
            "breakglass_justification": "string",
            "policy": "string",
            "use_default": False,
        })
    
    const gcpJobResource = new gcp.cloudrunv2.Job("gcpJobResource", {
        location: "string",
        template: {
            template: {
                containers: [{
                    image: "string",
                    args: ["string"],
                    commands: ["string"],
                    envs: [{
                        name: "string",
                        value: "string",
                        valueSource: {
                            secretKeyRef: {
                                secret: "string",
                                version: "string",
                            },
                        },
                    }],
                    name: "string",
                    ports: [{
                        containerPort: 0,
                        name: "string",
                    }],
                    resources: {
                        limits: {
                            string: "string",
                        },
                    },
                    volumeMounts: [{
                        mountPath: "string",
                        name: "string",
                    }],
                    workingDir: "string",
                }],
                encryptionKey: "string",
                executionEnvironment: "string",
                maxRetries: 0,
                serviceAccount: "string",
                timeout: "string",
                volumes: [{
                    name: "string",
                    cloudSqlInstance: {
                        instances: ["string"],
                    },
                    emptyDir: {
                        medium: "string",
                        sizeLimit: "string",
                    },
                    gcs: {
                        bucket: "string",
                        mountOptions: ["string"],
                        readOnly: false,
                    },
                    nfs: {
                        server: "string",
                        path: "string",
                        readOnly: false,
                    },
                    secret: {
                        secret: "string",
                        defaultMode: 0,
                        items: [{
                            path: "string",
                            version: "string",
                            mode: 0,
                        }],
                    },
                }],
                vpcAccess: {
                    connector: "string",
                    egress: "string",
                    networkInterfaces: [{
                        network: "string",
                        subnetwork: "string",
                        tags: ["string"],
                    }],
                },
            },
            annotations: {
                string: "string",
            },
            labels: {
                string: "string",
            },
            parallelism: 0,
            taskCount: 0,
        },
        launchStage: "string",
        clientVersion: "string",
        deletionProtection: false,
        labels: {
            string: "string",
        },
        annotations: {
            string: "string",
        },
        client: "string",
        name: "string",
        project: "string",
        runExecutionToken: "string",
        startExecutionToken: "string",
        binaryAuthorization: {
            breakglassJustification: "string",
            policy: "string",
            useDefault: false,
        },
    });
    
    type: gcp:cloudrunv2:Job
    properties:
        annotations:
            string: string
        binaryAuthorization:
            breakglassJustification: string
            policy: string
            useDefault: false
        client: string
        clientVersion: string
        deletionProtection: false
        labels:
            string: string
        launchStage: string
        location: string
        name: string
        project: string
        runExecutionToken: string
        startExecutionToken: string
        template:
            annotations:
                string: string
            labels:
                string: string
            parallelism: 0
            taskCount: 0
            template:
                containers:
                    - args:
                        - string
                      commands:
                        - string
                      envs:
                        - name: string
                          value: string
                          valueSource:
                            secretKeyRef:
                                secret: string
                                version: string
                      image: string
                      name: string
                      ports:
                        - containerPort: 0
                          name: string
                      resources:
                        limits:
                            string: string
                      volumeMounts:
                        - mountPath: string
                          name: string
                      workingDir: string
                encryptionKey: string
                executionEnvironment: string
                maxRetries: 0
                serviceAccount: string
                timeout: string
                volumes:
                    - cloudSqlInstance:
                        instances:
                            - string
                      emptyDir:
                        medium: string
                        sizeLimit: string
                      gcs:
                        bucket: string
                        mountOptions:
                            - string
                        readOnly: false
                      name: string
                      nfs:
                        path: string
                        readOnly: false
                        server: string
                      secret:
                        defaultMode: 0
                        items:
                            - mode: 0
                              path: string
                              version: string
                        secret: string
                vpcAccess:
                    connector: string
                    egress: string
                    networkInterfaces:
                        - network: string
                          subnetwork: string
                          tags:
                            - string
    

    Job Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Job resource accepts the following input properties:

    Location string
    The location of the cloud run job
    Template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    Annotations Dictionary<string, string>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    BinaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    DeletionProtection bool
    Labels Dictionary<string, string>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    LaunchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    Name string
    Name of the Job.
    Project string
    RunExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    StartExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    Location string
    The location of the cloud run job
    Template JobTemplateArgs
    The template used to create executions for this Job. Structure is documented below.
    Annotations map[string]string
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    BinaryAuthorization JobBinaryAuthorizationArgs
    Settings for the Binary Authorization feature.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    DeletionProtection bool
    Labels map[string]string
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    LaunchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    Name string
    Name of the Job.
    Project string
    RunExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    StartExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    location String
    The location of the cloud run job
    template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    annotations Map<String,String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    deletionProtection Boolean
    labels Map<String,String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    launchStage String
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    name String
    Name of the Job.
    project String
    runExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    location string
    The location of the cloud run job
    template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    annotations {[key: string]: string}
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    client string
    Arbitrary identifier for the API client.
    clientVersion string
    Arbitrary version identifier for the API client.
    deletionProtection boolean
    labels {[key: string]: string}
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    launchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    name string
    Name of the Job.
    project string
    runExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    location str
    The location of the cloud run job
    template JobTemplateArgs
    The template used to create executions for this Job. Structure is documented below.
    annotations Mapping[str, str]
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binary_authorization JobBinaryAuthorizationArgs
    Settings for the Binary Authorization feature.
    client str
    Arbitrary identifier for the API client.
    client_version str
    Arbitrary version identifier for the API client.
    deletion_protection bool
    labels Mapping[str, str]
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    launch_stage str
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    name str
    Name of the Job.
    project str
    run_execution_token str
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    start_execution_token str
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    location String
    The location of the cloud run job
    template Property Map
    The template used to create executions for this Job. Structure is documented below.
    annotations Map<String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization Property Map
    Settings for the Binary Authorization feature.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    deletionProtection Boolean
    labels Map<String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    launchStage String
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    name String
    Name of the Job.
    project String
    runExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.

    Outputs

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

    Conditions List<JobCondition>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Creator string
    Email address of the authenticated creator.
    DeleteTime string
    The deletion time.
    EffectiveAnnotations Dictionary<string, string>
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    ExecutionCount int
    Number of executions created for this job.
    ExpireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    Generation string
    A number that monotonically increases every time the user modifies the desired state.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifier string
    Email address of the last authenticated modifier.
    LatestCreatedExecutions List<JobLatestCreatedExecution>
    Name of the last created execution. Structure is documented below.
    ObservedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    TerminalConditions List<JobTerminalCondition>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    Uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    UpdateTime string
    The last-modified time.
    Conditions []JobCondition
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Creator string
    Email address of the authenticated creator.
    DeleteTime string
    The deletion time.
    EffectiveAnnotations map[string]string
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    ExecutionCount int
    Number of executions created for this job.
    ExpireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    Generation string
    A number that monotonically increases every time the user modifies the desired state.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifier string
    Email address of the last authenticated modifier.
    LatestCreatedExecutions []JobLatestCreatedExecution
    Name of the last created execution. Structure is documented below.
    ObservedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    TerminalConditions []JobTerminalCondition
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    Uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    UpdateTime string
    The last-modified time.
    conditions List<JobCondition>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator String
    Email address of the authenticated creator.
    deleteTime String
    The deletion time.
    effectiveAnnotations Map<String,String>
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag String
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount Integer
    Number of executions created for this job.
    expireTime String
    For a deleted resource, the time after which it will be permamently deleted.
    generation String
    A number that monotonically increases every time the user modifies the desired state.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifier String
    Email address of the last authenticated modifier.
    latestCreatedExecutions List<JobLatestCreatedExecution>
    Name of the last created execution. Structure is documented below.
    observedGeneration String
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    terminalConditions List<JobTerminalCondition>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid String
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime String
    The last-modified time.
    conditions JobCondition[]
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator string
    Email address of the authenticated creator.
    deleteTime string
    The deletion time.
    effectiveAnnotations {[key: string]: string}
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount number
    Number of executions created for this job.
    expireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    generation string
    A number that monotonically increases every time the user modifies the desired state.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifier string
    Email address of the last authenticated modifier.
    latestCreatedExecutions JobLatestCreatedExecution[]
    Name of the last created execution. Structure is documented below.
    observedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    terminalConditions JobTerminalCondition[]
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime string
    The last-modified time.
    conditions Sequence[JobCondition]
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    create_time str
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator str
    Email address of the authenticated creator.
    delete_time str
    The deletion time.
    effective_annotations Mapping[str, str]
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag str
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    execution_count int
    Number of executions created for this job.
    expire_time str
    For a deleted resource, the time after which it will be permamently deleted.
    generation str
    A number that monotonically increases every time the user modifies the desired state.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modifier str
    Email address of the last authenticated modifier.
    latest_created_executions Sequence[JobLatestCreatedExecution]
    Name of the last created execution. Structure is documented below.
    observed_generation str
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    terminal_conditions Sequence[JobTerminalCondition]
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid str
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    update_time str
    The last-modified time.
    conditions List<Property Map>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator String
    Email address of the authenticated creator.
    deleteTime String
    The deletion time.
    effectiveAnnotations Map<String>
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag String
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount Number
    Number of executions created for this job.
    expireTime String
    For a deleted resource, the time after which it will be permamently deleted.
    generation String
    A number that monotonically increases every time the user modifies the desired state.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifier String
    Email address of the last authenticated modifier.
    latestCreatedExecutions List<Property Map>
    Name of the last created execution. Structure is documented below.
    observedGeneration String
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    terminalConditions List<Property Map>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid String
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime String
    The last-modified time.

    Look up Existing Job Resource

    Get an existing Job 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?: JobState, opts?: CustomResourceOptions): Job
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            binary_authorization: Optional[JobBinaryAuthorizationArgs] = None,
            client: Optional[str] = None,
            client_version: Optional[str] = None,
            conditions: Optional[Sequence[JobConditionArgs]] = None,
            create_time: Optional[str] = None,
            creator: Optional[str] = None,
            delete_time: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            effective_annotations: Optional[Mapping[str, str]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            etag: Optional[str] = None,
            execution_count: Optional[int] = None,
            expire_time: Optional[str] = None,
            generation: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            last_modifier: Optional[str] = None,
            latest_created_executions: Optional[Sequence[JobLatestCreatedExecutionArgs]] = None,
            launch_stage: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            observed_generation: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            reconciling: Optional[bool] = None,
            run_execution_token: Optional[str] = None,
            start_execution_token: Optional[str] = None,
            template: Optional[JobTemplateArgs] = None,
            terminal_conditions: Optional[Sequence[JobTerminalConditionArgs]] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None) -> Job
    func GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)
    public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)
    public static Job get(String name, Output<String> id, JobState 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:
    Annotations Dictionary<string, string>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    BinaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    Conditions List<JobCondition>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Creator string
    Email address of the authenticated creator.
    DeleteTime string
    The deletion time.
    DeletionProtection bool
    EffectiveAnnotations Dictionary<string, string>
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    ExecutionCount int
    Number of executions created for this job.
    ExpireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    Generation string
    A number that monotonically increases every time the user modifies the desired state.
    Labels Dictionary<string, string>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    LastModifier string
    Email address of the last authenticated modifier.
    LatestCreatedExecutions List<JobLatestCreatedExecution>
    Name of the last created execution. Structure is documented below.
    LaunchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    Location string
    The location of the cloud run job
    Name string
    Name of the Job.
    ObservedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    Project string
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    RunExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    StartExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    Template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    TerminalConditions List<JobTerminalCondition>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    Uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    UpdateTime string
    The last-modified time.
    Annotations map[string]string
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    BinaryAuthorization JobBinaryAuthorizationArgs
    Settings for the Binary Authorization feature.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    Conditions []JobConditionArgs
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Creator string
    Email address of the authenticated creator.
    DeleteTime string
    The deletion time.
    DeletionProtection bool
    EffectiveAnnotations map[string]string
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    ExecutionCount int
    Number of executions created for this job.
    ExpireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    Generation string
    A number that monotonically increases every time the user modifies the desired state.
    Labels map[string]string
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    LastModifier string
    Email address of the last authenticated modifier.
    LatestCreatedExecutions []JobLatestCreatedExecutionArgs
    Name of the last created execution. Structure is documented below.
    LaunchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    Location string
    The location of the cloud run job
    Name string
    Name of the Job.
    ObservedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    Project string
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    RunExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    StartExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    Template JobTemplateArgs
    The template used to create executions for this Job. Structure is documented below.
    TerminalConditions []JobTerminalConditionArgs
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    Uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    UpdateTime string
    The last-modified time.
    annotations Map<String,String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    conditions List<JobCondition>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator String
    Email address of the authenticated creator.
    deleteTime String
    The deletion time.
    deletionProtection Boolean
    effectiveAnnotations Map<String,String>
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag String
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount Integer
    Number of executions created for this job.
    expireTime String
    For a deleted resource, the time after which it will be permamently deleted.
    generation String
    A number that monotonically increases every time the user modifies the desired state.
    labels Map<String,String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    lastModifier String
    Email address of the last authenticated modifier.
    latestCreatedExecutions List<JobLatestCreatedExecution>
    Name of the last created execution. Structure is documented below.
    launchStage String
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    location String
    The location of the cloud run job
    name String
    Name of the Job.
    observedGeneration String
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    project String
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    runExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    terminalConditions List<JobTerminalCondition>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid String
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime String
    The last-modified time.
    annotations {[key: string]: string}
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization JobBinaryAuthorization
    Settings for the Binary Authorization feature.
    client string
    Arbitrary identifier for the API client.
    clientVersion string
    Arbitrary version identifier for the API client.
    conditions JobCondition[]
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator string
    Email address of the authenticated creator.
    deleteTime string
    The deletion time.
    deletionProtection boolean
    effectiveAnnotations {[key: string]: string}
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag string
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount number
    Number of executions created for this job.
    expireTime string
    For a deleted resource, the time after which it will be permamently deleted.
    generation string
    A number that monotonically increases every time the user modifies the desired state.
    labels {[key: string]: string}
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    lastModifier string
    Email address of the last authenticated modifier.
    latestCreatedExecutions JobLatestCreatedExecution[]
    Name of the last created execution. Structure is documented below.
    launchStage string
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    location string
    The location of the cloud run job
    name string
    Name of the Job.
    observedGeneration string
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    project string
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    runExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken string
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    template JobTemplate
    The template used to create executions for this Job. Structure is documented below.
    terminalConditions JobTerminalCondition[]
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid string
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime string
    The last-modified time.
    annotations Mapping[str, str]
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binary_authorization JobBinaryAuthorizationArgs
    Settings for the Binary Authorization feature.
    client str
    Arbitrary identifier for the API client.
    client_version str
    Arbitrary version identifier for the API client.
    conditions Sequence[JobConditionArgs]
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    create_time str
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator str
    Email address of the authenticated creator.
    delete_time str
    The deletion time.
    deletion_protection bool
    effective_annotations Mapping[str, str]
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag str
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    execution_count int
    Number of executions created for this job.
    expire_time str
    For a deleted resource, the time after which it will be permamently deleted.
    generation str
    A number that monotonically increases every time the user modifies the desired state.
    labels Mapping[str, str]
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    last_modifier str
    Email address of the last authenticated modifier.
    latest_created_executions Sequence[JobLatestCreatedExecutionArgs]
    Name of the last created execution. Structure is documented below.
    launch_stage str
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    location str
    The location of the cloud run job
    name str
    Name of the Job.
    observed_generation str
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    project str
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling bool
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    run_execution_token str
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    start_execution_token str
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    template JobTemplateArgs
    The template used to create executions for this Job. Structure is documented below.
    terminal_conditions Sequence[JobTerminalConditionArgs]
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid str
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    update_time str
    The last-modified time.
    annotations Map<String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
    binaryAuthorization Property Map
    Settings for the Binary Authorization feature.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    conditions List<Property Map>
    The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run. Structure is documented below.
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    creator String
    Email address of the authenticated creator.
    deleteTime String
    The deletion time.
    deletionProtection Boolean
    effectiveAnnotations Map<String>
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    etag String
    A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
    executionCount Number
    Number of executions created for this job.
    expireTime String
    For a deleted resource, the time after which it will be permamently deleted.
    generation String
    A number that monotonically increases every time the user modifies the desired state.
    labels Map<String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
    lastModifier String
    Email address of the last authenticated modifier.
    latestCreatedExecutions List<Property Map>
    Name of the last created execution. Structure is documented below.
    launchStage String
    The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
    location String
    The location of the cloud run job
    name String
    Name of the Job.
    observedGeneration String
    The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
    project String
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    reconciling Boolean
    Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
    runExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
    startExecutionToken String
    A unique string used as a suffix creating a new execution upon job create or update. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
    template Property Map
    The template used to create executions for this Job. Structure is documented below.
    terminalConditions List<Property Map>
    The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
    uid String
    Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
    updateTime String
    The last-modified time.

    Supporting Types

    JobBinaryAuthorization, JobBinaryAuthorizationArgs

    BreakglassJustification string
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    Policy string
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    UseDefault bool
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
    BreakglassJustification string
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    Policy string
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    UseDefault bool
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
    breakglassJustification String
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    policy String
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    useDefault Boolean
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
    breakglassJustification string
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    policy string
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    useDefault boolean
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
    breakglass_justification str
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    policy str
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    use_default bool
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
    breakglassJustification String
    If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
    policy String
    The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
    useDefault Boolean
    If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

    JobCondition, JobConditionArgs

    ExecutionReason string
    (Output) A reason for the execution condition.
    LastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Message string
    (Output) Human readable message indicating details about the current status.
    Reason string
    (Output) A common (service-level) reason for this condition.
    RevisionReason string
    (Output) A reason for the revision condition.
    Severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    State string
    (Output) State of the condition.
    Type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    ExecutionReason string
    (Output) A reason for the execution condition.
    LastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Message string
    (Output) Human readable message indicating details about the current status.
    Reason string
    (Output) A common (service-level) reason for this condition.
    RevisionReason string
    (Output) A reason for the revision condition.
    Severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    State string
    (Output) State of the condition.
    Type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason String
    (Output) A reason for the execution condition.
    lastTransitionTime String
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message String
    (Output) Human readable message indicating details about the current status.
    reason String
    (Output) A common (service-level) reason for this condition.
    revisionReason String
    (Output) A reason for the revision condition.
    severity String
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state String
    (Output) State of the condition.
    type String
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason string
    (Output) A reason for the execution condition.
    lastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message string
    (Output) Human readable message indicating details about the current status.
    reason string
    (Output) A common (service-level) reason for this condition.
    revisionReason string
    (Output) A reason for the revision condition.
    severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state string
    (Output) State of the condition.
    type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    execution_reason str
    (Output) A reason for the execution condition.
    last_transition_time str
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message str
    (Output) Human readable message indicating details about the current status.
    reason str
    (Output) A common (service-level) reason for this condition.
    revision_reason str
    (Output) A reason for the revision condition.
    severity str
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state str
    (Output) State of the condition.
    type str
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason String
    (Output) A reason for the execution condition.
    lastTransitionTime String
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message String
    (Output) Human readable message indicating details about the current status.
    reason String
    (Output) A common (service-level) reason for this condition.
    revisionReason String
    (Output) A reason for the revision condition.
    severity String
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state String
    (Output) State of the condition.
    type String
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.

    JobLatestCreatedExecution, JobLatestCreatedExecutionArgs

    CompletionTime string
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Name string
    Name of the Job.
    CompletionTime string
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    CreateTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Name string
    Name of the Job.
    completionTime String
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    name String
    Name of the Job.
    completionTime string
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime string
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    name string
    Name of the Job.
    completion_time str
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    create_time str
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    name str
    Name of the Job.
    completionTime String
    (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    createTime String
    (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    name String
    Name of the Job.

    JobTemplate, JobTemplateArgs

    Template JobTemplateTemplate
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    Annotations Dictionary<string, string>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    Labels Dictionary<string, string>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    Parallelism int
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    TaskCount int
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
    Template JobTemplateTemplate
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    Annotations map[string]string
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    Labels map[string]string
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    Parallelism int
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    TaskCount int
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
    template JobTemplateTemplate
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    annotations Map<String,String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    labels Map<String,String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    parallelism Integer
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    taskCount Integer
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
    template JobTemplateTemplate
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    annotations {[key: string]: string}
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    labels {[key: string]: string}
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    parallelism number
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    taskCount number
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
    template JobTemplateTemplate
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    annotations Mapping[str, str]
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    labels Mapping[str, str]
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    parallelism int
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    task_count int
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
    template Property Map
    Describes the task(s) that will be created when executing an execution Structure is documented below.
    annotations Map<String>
    Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
    labels Map<String>
    Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.
    parallelism Number
    Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
    taskCount Number
    Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

    JobTemplateTemplate, JobTemplateTemplateArgs

    Containers List<JobTemplateTemplateContainer>
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    EncryptionKey string
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    ExecutionEnvironment string
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    MaxRetries int
    Number of retries allowed per Task, before marking this Task failed.
    ServiceAccount string
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    Timeout string
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    Volumes List<JobTemplateTemplateVolume>
    A list of Volumes to make available to containers. Structure is documented below.
    VpcAccess JobTemplateTemplateVpcAccess
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
    Containers []JobTemplateTemplateContainer
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    EncryptionKey string
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    ExecutionEnvironment string
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    MaxRetries int
    Number of retries allowed per Task, before marking this Task failed.
    ServiceAccount string
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    Timeout string
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    Volumes []JobTemplateTemplateVolume
    A list of Volumes to make available to containers. Structure is documented below.
    VpcAccess JobTemplateTemplateVpcAccess
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
    containers List<JobTemplateTemplateContainer>
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    encryptionKey String
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    executionEnvironment String
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    maxRetries Integer
    Number of retries allowed per Task, before marking this Task failed.
    serviceAccount String
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    timeout String
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    volumes List<JobTemplateTemplateVolume>
    A list of Volumes to make available to containers. Structure is documented below.
    vpcAccess JobTemplateTemplateVpcAccess
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
    containers JobTemplateTemplateContainer[]
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    encryptionKey string
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    executionEnvironment string
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    maxRetries number
    Number of retries allowed per Task, before marking this Task failed.
    serviceAccount string
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    timeout string
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    volumes JobTemplateTemplateVolume[]
    A list of Volumes to make available to containers. Structure is documented below.
    vpcAccess JobTemplateTemplateVpcAccess
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
    containers Sequence[JobTemplateTemplateContainer]
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    encryption_key str
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    execution_environment str
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    max_retries int
    Number of retries allowed per Task, before marking this Task failed.
    service_account str
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    timeout str
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    volumes Sequence[JobTemplateTemplateVolume]
    A list of Volumes to make available to containers. Structure is documented below.
    vpc_access JobTemplateTemplateVpcAccess
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
    containers List<Property Map>
    Holds the single container that defines the unit of execution for this task. Structure is documented below.
    encryptionKey String
    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
    executionEnvironment String
    The execution environment being used to host this Task. Possible values are: EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2.
    maxRetries Number
    Number of retries allowed per Task, before marking this Task failed.
    serviceAccount String
    Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
    timeout String
    Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    volumes List<Property Map>
    A list of Volumes to make available to containers. Structure is documented below.
    vpcAccess Property Map
    VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.

    JobTemplateTemplateContainer, JobTemplateTemplateContainerArgs

    Image string
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    Args List<string>
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    Commands List<string>
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    Envs List<JobTemplateTemplateContainerEnv>
    List of environment variables to set in the container. Structure is documented below.
    Name string
    Name of the container specified as a DNS_LABEL.
    Ports List<JobTemplateTemplateContainerPort>
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    Resources JobTemplateTemplateContainerResources
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    VolumeMounts List<JobTemplateTemplateContainerVolumeMount>
    Volume to mount into the container's filesystem. Structure is documented below.
    WorkingDir string
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
    Image string
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    Args []string
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    Commands []string
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    Envs []JobTemplateTemplateContainerEnv
    List of environment variables to set in the container. Structure is documented below.
    Name string
    Name of the container specified as a DNS_LABEL.
    Ports []JobTemplateTemplateContainerPort
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    Resources JobTemplateTemplateContainerResources
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    VolumeMounts []JobTemplateTemplateContainerVolumeMount
    Volume to mount into the container's filesystem. Structure is documented below.
    WorkingDir string
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
    image String
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    args List<String>
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    commands List<String>
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    envs List<JobTemplateTemplateContainerEnv>
    List of environment variables to set in the container. Structure is documented below.
    name String
    Name of the container specified as a DNS_LABEL.
    ports List<JobTemplateTemplateContainerPort>
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    resources JobTemplateTemplateContainerResources
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    volumeMounts List<JobTemplateTemplateContainerVolumeMount>
    Volume to mount into the container's filesystem. Structure is documented below.
    workingDir String
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
    image string
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    args string[]
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    commands string[]
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    envs JobTemplateTemplateContainerEnv[]
    List of environment variables to set in the container. Structure is documented below.
    name string
    Name of the container specified as a DNS_LABEL.
    ports JobTemplateTemplateContainerPort[]
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    resources JobTemplateTemplateContainerResources
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    volumeMounts JobTemplateTemplateContainerVolumeMount[]
    Volume to mount into the container's filesystem. Structure is documented below.
    workingDir string
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
    image str
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    args Sequence[str]
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    commands Sequence[str]
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    envs Sequence[JobTemplateTemplateContainerEnv]
    List of environment variables to set in the container. Structure is documented below.
    name str
    Name of the container specified as a DNS_LABEL.
    ports Sequence[JobTemplateTemplateContainerPort]
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    resources JobTemplateTemplateContainerResources
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    volume_mounts Sequence[JobTemplateTemplateContainerVolumeMount]
    Volume to mount into the container's filesystem. Structure is documented below.
    working_dir str
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
    image String
    URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    args List<String>
    Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
    commands List<String>
    Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    envs List<Property Map>
    List of environment variables to set in the container. Structure is documented below.
    name String
    Name of the container specified as a DNS_LABEL.
    ports List<Property Map>
    List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
    resources Property Map
    Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
    volumeMounts List<Property Map>
    Volume to mount into the container's filesystem. Structure is documented below.
    workingDir String
    Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

    JobTemplateTemplateContainerEnv, JobTemplateTemplateContainerEnvArgs

    Name string
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    Value string
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    ValueSource JobTemplateTemplateContainerEnvValueSource
    Source for the environment variable's value. Structure is documented below.
    Name string
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    Value string
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    ValueSource JobTemplateTemplateContainerEnvValueSource
    Source for the environment variable's value. Structure is documented below.
    name String
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    value String
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    valueSource JobTemplateTemplateContainerEnvValueSource
    Source for the environment variable's value. Structure is documented below.
    name string
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    value string
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    valueSource JobTemplateTemplateContainerEnvValueSource
    Source for the environment variable's value. Structure is documented below.
    name str
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    value str
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    value_source JobTemplateTemplateContainerEnvValueSource
    Source for the environment variable's value. Structure is documented below.
    name String
    Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
    value String
    Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
    valueSource Property Map
    Source for the environment variable's value. Structure is documented below.

    JobTemplateTemplateContainerEnvValueSource, JobTemplateTemplateContainerEnvValueSourceArgs

    SecretKeyRef JobTemplateTemplateContainerEnvValueSourceSecretKeyRef
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
    SecretKeyRef JobTemplateTemplateContainerEnvValueSourceSecretKeyRef
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
    secretKeyRef JobTemplateTemplateContainerEnvValueSourceSecretKeyRef
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
    secretKeyRef JobTemplateTemplateContainerEnvValueSourceSecretKeyRef
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
    secret_key_ref JobTemplateTemplateContainerEnvValueSourceSecretKeyRef
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
    secretKeyRef Property Map
    Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.

    JobTemplateTemplateContainerEnvValueSourceSecretKeyRef, JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs

    Secret string
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    Version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
    Secret string
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    Version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
    secret String
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    version String
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
    secret string
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
    secret str
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    version str
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
    secret String
    The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
    version String
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

    JobTemplateTemplateContainerPort, JobTemplateTemplateContainerPortArgs

    ContainerPort int
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    Name string
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
    ContainerPort int
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    Name string
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
    containerPort Integer
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    name String
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
    containerPort number
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    name string
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
    container_port int
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    name str
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
    containerPort Number
    Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
    name String
    If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".

    JobTemplateTemplateContainerResources, JobTemplateTemplateContainerResourcesArgs

    Limits Dictionary<string, string>
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
    Limits map[string]string
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
    limits Map<String,String>
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
    limits {[key: string]: string}
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
    limits Mapping[str, str]
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
    limits Map<String>
    Only memory and CPU are supported. Use key cpu for CPU limit and memory for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    JobTemplateTemplateContainerVolumeMount, JobTemplateTemplateContainerVolumeMountArgs

    MountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    Name string
    This must match the Name of a Volume.
    MountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    Name string
    This must match the Name of a Volume.
    mountPath String
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    name String
    This must match the Name of a Volume.
    mountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    name string
    This must match the Name of a Volume.
    mount_path str
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    name str
    This must match the Name of a Volume.
    mountPath String
    Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
    name String
    This must match the Name of a Volume.

    JobTemplateTemplateVolume, JobTemplateTemplateVolumeArgs

    Name string
    Volume's name.
    CloudSqlInstance JobTemplateTemplateVolumeCloudSqlInstance
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    EmptyDir JobTemplateTemplateVolumeEmptyDir
    Ephemeral storage used as a shared volume. Structure is documented below.
    Gcs JobTemplateTemplateVolumeGcs
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    Nfs JobTemplateTemplateVolumeNfs
    NFS share mounted as a volume. Structure is documented below.
    Secret JobTemplateTemplateVolumeSecret
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
    Name string
    Volume's name.
    CloudSqlInstance JobTemplateTemplateVolumeCloudSqlInstance
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    EmptyDir JobTemplateTemplateVolumeEmptyDir
    Ephemeral storage used as a shared volume. Structure is documented below.
    Gcs JobTemplateTemplateVolumeGcs
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    Nfs JobTemplateTemplateVolumeNfs
    NFS share mounted as a volume. Structure is documented below.
    Secret JobTemplateTemplateVolumeSecret
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
    name String
    Volume's name.
    cloudSqlInstance JobTemplateTemplateVolumeCloudSqlInstance
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    emptyDir JobTemplateTemplateVolumeEmptyDir
    Ephemeral storage used as a shared volume. Structure is documented below.
    gcs JobTemplateTemplateVolumeGcs
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    nfs JobTemplateTemplateVolumeNfs
    NFS share mounted as a volume. Structure is documented below.
    secret JobTemplateTemplateVolumeSecret
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
    name string
    Volume's name.
    cloudSqlInstance JobTemplateTemplateVolumeCloudSqlInstance
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    emptyDir JobTemplateTemplateVolumeEmptyDir
    Ephemeral storage used as a shared volume. Structure is documented below.
    gcs JobTemplateTemplateVolumeGcs
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    nfs JobTemplateTemplateVolumeNfs
    NFS share mounted as a volume. Structure is documented below.
    secret JobTemplateTemplateVolumeSecret
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
    name str
    Volume's name.
    cloud_sql_instance JobTemplateTemplateVolumeCloudSqlInstance
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    empty_dir JobTemplateTemplateVolumeEmptyDir
    Ephemeral storage used as a shared volume. Structure is documented below.
    gcs JobTemplateTemplateVolumeGcs
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    nfs JobTemplateTemplateVolumeNfs
    NFS share mounted as a volume. Structure is documented below.
    secret JobTemplateTemplateVolumeSecret
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
    name String
    Volume's name.
    cloudSqlInstance Property Map
    For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
    emptyDir Property Map
    Ephemeral storage used as a shared volume. Structure is documented below.
    gcs Property Map
    Cloud Storage bucket mounted as a volume using GCSFuse. Structure is documented below.
    nfs Property Map
    NFS share mounted as a volume. Structure is documented below.
    secret Property Map
    Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.

    JobTemplateTemplateVolumeCloudSqlInstance, JobTemplateTemplateVolumeCloudSqlInstanceArgs

    Instances List<string>
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
    Instances []string
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
    instances List<String>
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
    instances string[]
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
    instances Sequence[str]
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
    instances List<String>
    The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}

    JobTemplateTemplateVolumeEmptyDir, JobTemplateTemplateVolumeEmptyDirArgs

    Medium string
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    SizeLimit string
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
    Medium string
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    SizeLimit string
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
    medium String
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    sizeLimit String
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
    medium string
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    sizeLimit string
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
    medium str
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    size_limit str
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
    medium String
    The different types of medium supported for EmptyDir. Default value is MEMORY. Possible values are: MEMORY.
    sizeLimit String
    Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.

    JobTemplateTemplateVolumeGcs, JobTemplateTemplateVolumeGcsArgs

    Bucket string
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    MountOptions List<string>
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    ReadOnly bool
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
    Bucket string
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    MountOptions []string
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    ReadOnly bool
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
    bucket String
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    mountOptions List<String>
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    readOnly Boolean
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
    bucket string
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    mountOptions string[]
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    readOnly boolean
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
    bucket str
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    mount_options Sequence[str]
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    read_only bool
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
    bucket String
    Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
    mountOptions List<String>
    A list of flags to pass to the gcsfuse command for configuring this volume. Flags should be passed without leading dashes.
    readOnly Boolean
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.

    JobTemplateTemplateVolumeNfs, JobTemplateTemplateVolumeNfsArgs

    Server string
    Hostname or IP address of the NFS server.
    Path string
    Path that is exported by the NFS server.
    ReadOnly bool
    If true, mount this volume as read-only in all mounts.
    Server string
    Hostname or IP address of the NFS server.
    Path string
    Path that is exported by the NFS server.
    ReadOnly bool
    If true, mount this volume as read-only in all mounts.
    server String
    Hostname or IP address of the NFS server.
    path String
    Path that is exported by the NFS server.
    readOnly Boolean
    If true, mount this volume as read-only in all mounts.
    server string
    Hostname or IP address of the NFS server.
    path string
    Path that is exported by the NFS server.
    readOnly boolean
    If true, mount this volume as read-only in all mounts.
    server str
    Hostname or IP address of the NFS server.
    path str
    Path that is exported by the NFS server.
    read_only bool
    If true, mount this volume as read-only in all mounts.
    server String
    Hostname or IP address of the NFS server.
    path String
    Path that is exported by the NFS server.
    readOnly Boolean
    If true, mount this volume as read-only in all mounts.

    JobTemplateTemplateVolumeSecret, JobTemplateTemplateVolumeSecretArgs

    Secret string
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    DefaultMode int
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    Items List<JobTemplateTemplateVolumeSecretItem>
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
    Secret string
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    DefaultMode int
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    Items []JobTemplateTemplateVolumeSecretItem
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
    secret String
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    defaultMode Integer
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    items List<JobTemplateTemplateVolumeSecretItem>
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
    secret string
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    defaultMode number
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    items JobTemplateTemplateVolumeSecretItem[]
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
    secret str
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    default_mode int
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    items Sequence[JobTemplateTemplateVolumeSecretItem]
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
    secret String
    The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
    defaultMode Number
    Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
    items List<Property Map>
    If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.

    JobTemplateTemplateVolumeSecretItem, JobTemplateTemplateVolumeSecretItemArgs

    Path string
    The relative path of the secret in the container.
    Version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    Mode int
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
    Path string
    The relative path of the secret in the container.
    Version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    Mode int
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
    path String
    The relative path of the secret in the container.
    version String
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    mode Integer
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
    path string
    The relative path of the secret in the container.
    version string
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    mode number
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
    path str
    The relative path of the secret in the container.
    version str
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    mode int
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
    path String
    The relative path of the secret in the container.
    version String
    The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
    mode Number
    Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.

    JobTemplateTemplateVpcAccess, JobTemplateTemplateVpcAccessArgs

    Connector string
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    Egress string
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    NetworkInterfaces List<JobTemplateTemplateVpcAccessNetworkInterface>
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
    Connector string
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    Egress string
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    NetworkInterfaces []JobTemplateTemplateVpcAccessNetworkInterface
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
    connector String
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    egress String
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    networkInterfaces List<JobTemplateTemplateVpcAccessNetworkInterface>
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
    connector string
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    egress string
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    networkInterfaces JobTemplateTemplateVpcAccessNetworkInterface[]
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
    connector str
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    egress str
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    network_interfaces Sequence[JobTemplateTemplateVpcAccessNetworkInterface]
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
    connector String
    VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
    egress String
    Traffic VPC egress settings. Possible values are: ALL_TRAFFIC, PRIVATE_RANGES_ONLY.
    networkInterfaces List<Property Map>
    Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.

    JobTemplateTemplateVpcAccessNetworkInterface, JobTemplateTemplateVpcAccessNetworkInterfaceArgs

    Network string
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    Subnetwork string
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    Tags List<string>
    Network tags applied to this Cloud Run job.


    Network string
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    Subnetwork string
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    Tags []string
    Network tags applied to this Cloud Run job.


    network String
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    subnetwork String
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    tags List<String>
    Network tags applied to this Cloud Run job.


    network string
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    subnetwork string
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    tags string[]
    Network tags applied to this Cloud Run job.


    network str
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    subnetwork str
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    tags Sequence[str]
    Network tags applied to this Cloud Run job.


    network String
    The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
    subnetwork String
    The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
    tags List<String>
    Network tags applied to this Cloud Run job.


    JobTerminalCondition, JobTerminalConditionArgs

    ExecutionReason string
    (Output) A reason for the execution condition.
    LastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Message string
    (Output) Human readable message indicating details about the current status.
    Reason string
    (Output) A common (service-level) reason for this condition.
    RevisionReason string
    (Output) A reason for the revision condition.
    Severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    State string
    (Output) State of the condition.
    Type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    ExecutionReason string
    (Output) A reason for the execution condition.
    LastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    Message string
    (Output) Human readable message indicating details about the current status.
    Reason string
    (Output) A common (service-level) reason for this condition.
    RevisionReason string
    (Output) A reason for the revision condition.
    Severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    State string
    (Output) State of the condition.
    Type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason String
    (Output) A reason for the execution condition.
    lastTransitionTime String
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message String
    (Output) Human readable message indicating details about the current status.
    reason String
    (Output) A common (service-level) reason for this condition.
    revisionReason String
    (Output) A reason for the revision condition.
    severity String
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state String
    (Output) State of the condition.
    type String
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason string
    (Output) A reason for the execution condition.
    lastTransitionTime string
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message string
    (Output) Human readable message indicating details about the current status.
    reason string
    (Output) A common (service-level) reason for this condition.
    revisionReason string
    (Output) A reason for the revision condition.
    severity string
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state string
    (Output) State of the condition.
    type string
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    execution_reason str
    (Output) A reason for the execution condition.
    last_transition_time str
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message str
    (Output) Human readable message indicating details about the current status.
    reason str
    (Output) A common (service-level) reason for this condition.
    revision_reason str
    (Output) A reason for the revision condition.
    severity str
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state str
    (Output) State of the condition.
    type str
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
    executionReason String
    (Output) A reason for the execution condition.
    lastTransitionTime String
    (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    message String
    (Output) Human readable message indicating details about the current status.
    reason String
    (Output) A common (service-level) reason for this condition.
    revisionReason String
    (Output) A reason for the revision condition.
    severity String
    (Output) How to interpret failures of this condition, one of Error, Warning, Info
    state String
    (Output) State of the condition.
    type String
    (Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.

    Import

    Job can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/jobs/{{name}}

    • {{project}}/{{location}}/{{name}}

    • {{location}}/{{name}}

    When using the pulumi import command, Job can be imported using one of the formats above. For example:

    $ pulumi import gcp:cloudrunv2/job:Job default projects/{{project}}/locations/{{location}}/jobs/{{name}}
    
    $ pulumi import gcp:cloudrunv2/job:Job default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:cloudrunv2/job:Job default {{location}}/{{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi