1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. cloudrunv2
  5. Job
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi

gcp.cloudrunv2.Job

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 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",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                )],
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
    						},
    					},
    				},
    			},
    		})
    		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",
            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/hello",
                        },
                    },
                },
            },
        });
    
    });
    
    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")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/hello")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
    

    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",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                    resources: {
                        limits: {
                            cpu: "2",
                            memory: "1024Mi",
                        },
                    },
                }],
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                    resources=gcp.cloudrunv2.JobTemplateTemplateContainerResourcesArgs(
                        limits={
                            "cpu": "2",
                            "memory": "1024Mi",
                        },
                    ),
                )],
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
    							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",
            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/hello",
                            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")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/hello")
                            .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
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
                  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",
        template: {
            template: {
                volumes: [{
                    name: "cloudsql",
                    cloudSqlInstance: {
                        instances: [instance.connectionName],
                    },
                }],
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                    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`),
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    secret = gcp.secretmanager.Secret("secret",
        secret_id="secret",
        replication=gcp.secretmanager.SecretReplicationArgs(
            auto=gcp.secretmanager.SecretReplicationAutoArgs(),
        ))
    instance = gcp.sql.DatabaseInstance("instance",
        name="cloudrun-sql",
        region="us-central1",
        database_version="MYSQL_5_7",
        settings=gcp.sql.DatabaseInstanceSettingsArgs(
            tier="db-f1-micro",
        ),
        deletion_protection=True)
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
                    name="cloudsql",
                    cloud_sql_instance=gcp.cloudrunv2.JobTemplateTemplateVolumeCloudSqlInstanceArgs(
                        instances=[instance.connection_name],
                    ),
                )],
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                    envs=[
                        gcp.cloudrunv2.JobTemplateTemplateContainerEnvArgs(
                            name="FOO",
                            value="bar",
                        ),
                        gcp.cloudrunv2.JobTemplateTemplateContainerEnvArgs(
                            name="latestdclsecret",
                            value_source=gcp.cloudrunv2.JobTemplateTemplateContainerEnvValueSourceArgs(
                                secret_key_ref=gcp.cloudrunv2.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs(
                                    secret=secret.secret_id,
                                    version="1",
                                ),
                            ),
                        ),
                    ],
                    volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
                        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")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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: nil,
    			},
    		})
    		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"),
    			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/hello"),
    							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, nil, 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.String(fmt.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number)),
    		})
    		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",
            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/hello",
                            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",
        });
    
    });
    
    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 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")
                .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/hello")
                            .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());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          template:
            template:
              volumes:
                - name: cloudsql
                  cloudSqlInstance:
                    instances:
                      - ${instance.connectionName}
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
                  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
      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",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                }],
                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=gcp.vpcaccess.ConnectorSubnetArgs(
            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",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                )],
                vpc_access=gcp.cloudrunv2.JobTemplateTemplateVpcAccessArgs(
                    connector=connector.id,
                    egress="ALL_TRAFFIC",
                ),
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
    						},
    					},
    					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",
            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/hello",
                        },
                    },
                    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")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/hello")
                            .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
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
              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",
        launchStage: "BETA",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/job",
                }],
                vpcAccess: {
                    networkInterfaces: [{
                        network: "default",
                        subnetwork: "default",
                        tags: [
                            "tag1",
                            "tag2",
                            "tag3",
                        ],
                    }],
                    egress: "ALL_TRAFFIC",
                },
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        launch_stage="BETA",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/job",
                )],
                vpc_access=gcp.cloudrunv2.JobTemplateTemplateVpcAccessArgs(
                    network_interfaces=[gcp.cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArgs(
                        network="default",
                        subnetwork="default",
                        tags=[
                            "tag1",
                            "tag2",
                            "tag3",
                        ],
                    )],
                    egress="ALL_TRAFFIC",
                ),
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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"),
    			LaunchStage: pulumi.String("BETA"),
    			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"),
    								},
    							},
    						},
    						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 @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            LaunchStage = "BETA",
            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",
                                },
                            },
                        },
                        Egress = "ALL_TRAFFIC",
                    },
                },
            },
        });
    
    });
    
    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")
                .launchStage("BETA")
                .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())
                            .egress("ALL_TRAFFIC")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          launchStage: BETA
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/job
              vpcAccess:
                networkInterfaces:
                  - network: default
                    subnetwork: default
                    tags:
                      - tag1
                      - tag2
                      - tag3
                egress: ALL_TRAFFIC
    

    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 _default = new gcp.cloudrunv2.Job("default", {
        name: "cloudrun-job",
        location: "us-central1",
        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/hello",
                    volumeMounts: [{
                        name: "a-volume",
                        mountPath: "/secrets",
                    }],
                }],
            },
        },
    });
    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`),
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    secret = gcp.secretmanager.Secret("secret",
        secret_id="secret",
        replication=gcp.secretmanager.SecretReplicationArgs(
            auto=gcp.secretmanager.SecretReplicationAutoArgs(),
        ))
    default = gcp.cloudrunv2.Job("default",
        name="cloudrun-job",
        location="us-central1",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
                    name="a-volume",
                    secret=gcp.cloudrunv2.JobTemplateTemplateVolumeSecretArgs(
                        secret=secret.secret_id,
                        default_mode=292,
                        items=[gcp.cloudrunv2.JobTemplateTemplateVolumeSecretItemArgs(
                            version="1",
                            path="my-secret",
                            mode=256,
                        )],
                    ),
                )],
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                    volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
                        name="a-volume",
                        mount_path="/secrets",
                    )],
                )],
            ),
        ))
    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")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudrunv2"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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: nil,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
    			Name:     pulumi.String("cloudrun-job"),
    			Location: pulumi.String("us-central1"),
    			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/hello"),
    							VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
    								&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
    									Name:      pulumi.String("a-volume"),
    									MountPath: pulumi.String("/secrets"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, nil, 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.String(fmt.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number)),
    		})
    		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 @default = new Gcp.CloudRunV2.Job("default", new()
        {
            Name = "cloudrun-job",
            Location = "us-central1",
            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/hello",
                            VolumeMounts = new[]
                            {
                                new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
                                {
                                    Name = "a-volume",
                                    MountPath = "/secrets",
                                },
                            },
                        },
                    },
                },
            },
        });
    
        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",
        });
    
    });
    
    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.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 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 default_ = new Job("default", JobArgs.builder()        
                .name("cloudrun-job")
                .location("us-central1")
                .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/hello")
                            .volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
                                .name("a-volume")
                                .mountPath("/secrets")
                                .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());
    
        }
    }
    
    resources:
      default:
        type: gcp:cloudrunv2:Job
        properties:
          name: cloudrun-job
          location: us-central1
          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/hello
                  volumeMounts:
                    - name: a-volume
                      mountPath: /secrets
      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
    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",
        launchStage: "BETA",
        template: {
            template: {
                containers: [{
                    image: "us-docker.pkg.dev/cloudrun/container/hello",
                    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",
        launch_stage="BETA",
        template=gcp.cloudrunv2.JobTemplateArgs(
            template=gcp.cloudrunv2.JobTemplateTemplateArgs(
                containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
                    image="us-docker.pkg.dev/cloudrun/container/hello",
                    volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
                        name="empty-dir-volume",
                        mount_path="/mnt",
                    )],
                )],
                volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
                    name="empty-dir-volume",
                    empty_dir=gcp.cloudrunv2.JobTemplateTemplateVolumeEmptyDirArgs(
                        medium="MEMORY",
                        size_limit="128Mi",
                    ),
                )],
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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"),
    			LaunchStage: pulumi.String("BETA"),
    			Template: &cloudrunv2.JobTemplateArgs{
    				Template: &cloudrunv2.JobTemplateTemplateArgs{
    					Containers: cloudrunv2.JobTemplateTemplateContainerArray{
    						&cloudrunv2.JobTemplateTemplateContainerArgs{
    							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
    							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",
            LaunchStage = "BETA",
            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/hello",
                            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")
                .launchStage("BETA")
                .template(JobTemplateArgs.builder()
                    .template(JobTemplateTemplateArgs.builder()
                        .containers(JobTemplateTemplateContainerArgs.builder()
                            .image("us-docker.pkg.dev/cloudrun/container/hello")
                            .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
          launchStage: BETA
          template:
            template:
              containers:
                - image: us-docker.pkg.dev/cloudrun/container/hello
                  volumeMounts:
                    - name: empty-dir-volume
                      mountPath: /mnt
              volumes:
                - name: empty-dir-volume
                  emptyDir:
                    medium: MEMORY
                    sizeLimit: 128Mi
    

    Create Job Resource

    new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
    @overload
    def Job(resource_name: 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,
            labels: Optional[Mapping[str, str]] = None,
            launch_stage: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            template: Optional[JobTemplateArgs] = None)
    @overload
    def Job(resource_name: str,
            args: JobArgs,
            opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    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. Structure is documented below.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    Name string
    Name of the Job.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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. Structure is documented below.
    Client string
    Arbitrary identifier for the API client.
    ClientVersion string
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    Name string
    Name of the Job.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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. Structure is documented below.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    name String
    Name of the Job.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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. Structure is documented below.
    client string
    Arbitrary identifier for the API client.
    clientVersion string
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    name string
    Name of the Job.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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. Structure is documented below.
    client str
    Arbitrary identifier for the API client.
    client_version str
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    name str
    Name of the Job.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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. Structure is documented below.
    client String
    Arbitrary identifier for the API client.
    clientVersion String
    Arbitrary version identifier for the API client.
    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 are: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED.
    name String
    Name of the Job.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    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>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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}
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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]
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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,
            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,
            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. Structure is documented below.
    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.
    EffectiveAnnotations Dictionary<string, string>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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. Structure is documented below.
    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.
    EffectiveAnnotations map[string]string
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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. Structure is documented below.
    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.
    effectiveAnnotations Map<String,String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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. Structure is documented below.
    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.
    effectiveAnnotations {[key: string]: string}
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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. Structure is documented below.
    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.
    effective_annotations Mapping[str, str]
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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. Structure is documented below.
    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.
    effectiveAnnotations Map<String>
    All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
    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 are: 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
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    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
    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
    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
    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
    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
    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
    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
    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 $(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
    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 $(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
    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 $(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
    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 $(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
    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 $(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
    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 $(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
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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
    Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. 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. Defaults to "", and the maximum length is 32768 bytes
    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. This feature requires the launch stage to be set to ALPHA or BETA. 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. This feature requires the launch stage to be set to ALPHA or BETA. 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. This feature requires the launch stage to be set to ALPHA or BETA. 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. This feature requires the launch stage to be set to ALPHA or BETA. 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. This feature requires the launch stage to be set to ALPHA or BETA. 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. This feature requires the launch stage to be set to ALPHA or BETA. 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.
    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.
    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.
    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.
    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.
    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.
    readOnly Boolean
    If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.

    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}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.16.0 published on Wednesday, Mar 27, 2024 by Pulumi