permalink |
---|
/cloud_run_v2_job/ |
cloud_run_v2_job
represents the google_cloud_run_v2_job
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAnnotations()
fn withBinaryAuthorization()
fn withBinaryAuthorizationMixin()
fn withClient()
fn withClientVersion()
fn withLabels()
fn withLaunchStage()
fn withLocation()
fn withName()
fn withProject()
fn withTemplate()
fn withTemplateMixin()
fn withTimeouts()
fn withTimeoutsMixin()
obj binary_authorization
obj template
fn new()
obj template.template
fn new()
obj template.template.containers
obj template.template.volumes
obj template.template.vpc_access
obj timeouts
new()
google.cloud_run_v2_job.new
injects a new google_cloud_run_v2_job
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.cloud_run_v2_job.new('some_id')
You can get the reference to the id
field of the created google.cloud_run_v2_job
using the reference:
$._ref.google_cloud_run_v2_job.some_id.get('id')
This is the same as directly entering "${ google_cloud_run_v2_job.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.annotations
(obj
): 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. When null
, the annotations
field will be omitted from the resulting object.
client
(string
): Arbitrary identifier for the API client. Whennull
, theclient
field will be omitted from the resulting object.client_version
(string
): Arbitrary version identifier for the API client. Whennull
, theclient_version
field will be omitted from the resulting object.labels
(obj
): 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. When null
, the labels
field will be omitted from the resulting object.
launch_stage
(string
): The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.
For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"] When null
, the launch_stage
field will be omitted from the resulting object.
location
(string
): The location of the cloud run job Whennull
, thelocation
field will be omitted from the resulting object.name
(string
): Name of the Job.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.binary_authorization
(list[obj]
): Settings for the Binary Authorization feature. Whennull
, thebinary_authorization
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.binary_authorization.new constructor.template
(list[obj]
): The template used to create executions for this Job. Whennull
, thetemplate
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.cloud_run_v2_job.newAttrs
constructs a new object with attributes and blocks configured for the cloud_run_v2_job
Terraform resource.
Unlike google.cloud_run_v2_job.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
annotations
(obj
): 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. When null
, the annotations
field will be omitted from the resulting object.
client
(string
): Arbitrary identifier for the API client. Whennull
, theclient
field will be omitted from the resulting object.client_version
(string
): Arbitrary version identifier for the API client. Whennull
, theclient_version
field will be omitted from the resulting object.labels
(obj
): 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. When null
, the labels
field will be omitted from the resulting object.
launch_stage
(string
): The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.
For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"] When null
, the launch_stage
field will be omitted from the resulting object.
location
(string
): The location of the cloud run job Whennull
, thelocation
field will be omitted from the resulting object.name
(string
): Name of the Job.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.binary_authorization
(list[obj]
): Settings for the Binary Authorization feature. Whennull
, thebinary_authorization
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.binary_authorization.new constructor.template
(list[obj]
): The template used to create executions for this Job. Whennull
, thetemplate
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
cloud_run_v2_job
resource into the root Terraform configuration.
withAnnotations()
google.obj.withAnnotations
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the annotations field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for theannotations
field.
withBinaryAuthorization()
google.list[obj].withBinaryAuthorization
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the binary_authorization field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withBinaryAuthorizationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thebinary_authorization
field.
withBinaryAuthorizationMixin()
google.list[obj].withBinaryAuthorizationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the binary_authorization field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withBinaryAuthorization
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thebinary_authorization
field.
withClient()
google.string.withClient
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the client field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theclient
field.
withClientVersion()
google.string.withClientVersion
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the client_version field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theclient_version
field.
withLabels()
google.obj.withLabels
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the labels field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thelabels
field.
withLaunchStage()
google.string.withLaunchStage
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the launch_stage field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelaunch_stage
field.
withLocation()
google.string.withLocation
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the location field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelocation
field.
withName()
google.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withTemplate()
google.list[obj].withTemplate
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the template field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withTemplateMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetemplate
field.
withTemplateMixin()
google.list[obj].withTemplateMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the template field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withTemplate
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetemplate
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
google.cloud_run_v2_job.binary_authorization.new
constructs a new object with attributes and blocks configured for the binary_authorization
Terraform sub block.
Args:
breakglass_justification
(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 Whennull
, thebreakglass_justification
field will be omitted from the resulting object.use_default
(bool
): If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. Whennull
, theuse_default
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
binary_authorization
sub block.
new()
google.cloud_run_v2_job.template.new
constructs a new object with attributes and blocks configured for the template
Terraform sub block.
Args:
annotations
(obj
): 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. When null
, the annotations
field will be omitted from the resulting object.
labels
(obj
): 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. When null
, the labels
field will be omitted from the resulting object.
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. Whennull
, theparallelism
field will be omitted from the resulting object.task_count
(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/ Whennull
, thetask_count
field will be omitted from the resulting object.template
(list[obj]
): Describes the task(s) that will be created when executing an execution Whennull
, thetemplate
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.new constructor.
Returns:
- An attribute object that represents the
template
sub block.
new()
google.cloud_run_v2_job.template.template.new
constructs a new object with attributes and blocks configured for the template
Terraform sub block.
Args:
encryption_key
(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 Whennull
, theencryption_key
field will be omitted from the resulting object.execution_environment
(string
): The execution environment being used to host this Task. Possible values: ["EXECUTION_ENVIRONMENT_GEN1", "EXECUTION_ENVIRONMENT_GEN2"] Whennull
, theexecution_environment
field will be omitted from the resulting object.max_retries
(number
): Number of retries allowed per Task, before marking this Task failed. Whennull
, themax_retries
field will be omitted from the resulting object.service_account
(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. Whennull
, theservice_account
field will be omitted from the resulting object.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". When null
, the timeout
field will be omitted from the resulting object.
containers
(list[obj]
): Holds the single container that defines the unit of execution for this task. Whennull
, thecontainers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.new constructor.volumes
(list[obj]
): A list of Volumes to make available to containers. Whennull
, thevolumes
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.volumes.new constructor.vpc_access
(list[obj]
): VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Whennull
, thevpc_access
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.vpc_access.new constructor.
Returns:
- An attribute object that represents the
template
sub block.
new()
google.cloud_run_v2_job.template.template.containers.new
constructs a new object with attributes and blocks configured for the containers
Terraform sub block.
Args:
-
args
(list
): 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 Whennull
, theargs
field will be omitted from the resulting object. -
command
(list
): 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 Whennull
, thecommand
field will be omitted from the resulting object. -
image
(string
): URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images -
name
(string
): Name of the container specified as a DNS_LABEL. Whennull
, thename
field will be omitted from the resulting object. -
working_dir
(string
): Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Whennull
, theworking_dir
field will be omitted from the resulting object. -
env
(list[obj]
): List of environment variables to set in the container. Whennull
, theenv
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.env.new constructor. -
liveness_probe
(list[obj]
): Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Whennull
, theliveness_probe
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.liveness_probe.new constructor. -
ports
(list[obj]
): 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 When null
, the ports
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.ports.new constructor.
resources
(list[obj]
): Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Whennull
, theresources
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.resources.new constructor.startup_probe
(list[obj]
): Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Whennull
, thestartup_probe
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.startup_probe.new constructor.volume_mounts
(list[obj]
): Volume to mount into the container's filesystem. Whennull
, thevolume_mounts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.volume_mounts.new constructor.
Returns:
- An attribute object that represents the
containers
sub block.
new()
google.cloud_run_v2_job.template.template.containers.env.new
constructs a new object with attributes and blocks configured for the env
Terraform sub block.
Args:
-
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 Whennull
, thevalue
field will be omitted from the resulting object. -
value_source
(list[obj]
): Source for the environment variable's value. Whennull
, thevalue_source
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.env.value_source.new constructor.
Returns:
- An attribute object that represents the
env
sub block.
new()
google.cloud_run_v2_job.template.template.containers.env.value_source.new
constructs a new object with attributes and blocks configured for the value_source
Terraform sub block.
Args:
secret_key_ref
(list[obj]
): Selects a secret and a specific version from Cloud Secret Manager. Whennull
, thesecret_key_ref
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.env.value_source.secret_key_ref.new constructor.
Returns:
- An attribute object that represents the
value_source
sub block.
new()
google.cloud_run_v2_job.template.template.containers.env.value_source.secret_key_ref.new
constructs a new object with attributes and blocks configured for the secret_key_ref
Terraform sub block.
Args:
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.
Returns:
- An attribute object that represents the
secret_key_ref
sub block.
new()
google.cloud_run_v2_job.template.template.containers.liveness_probe.new
constructs a new object with attributes and blocks configured for the liveness_probe
Terraform sub block.
Args:
failure_threshold
(number
): Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Whennull
, thefailure_threshold
field will be omitted from the resulting object.initial_delay_seconds
(number
): Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Whennull
, theinitial_delay_seconds
field will be omitted from the resulting object.period_seconds
(number
): How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds Whennull
, theperiod_seconds
field will be omitted from the resulting object.timeout_seconds
(number
): Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Whennull
, thetimeout_seconds
field will be omitted from the resulting object.http_get
(list[obj]
): HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Whennull
, thehttp_get
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.liveness_probe.http_get.new constructor.tcp_socket
(list[obj]
): TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Whennull
, thetcp_socket
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.liveness_probe.tcp_socket.new constructor.
Returns:
- An attribute object that represents the
liveness_probe
sub block.
new()
google.cloud_run_v2_job.template.template.containers.liveness_probe.http_get.new
constructs a new object with attributes and blocks configured for the http_get
Terraform sub block.
Args:
path
(string
): Path to access on the HTTP server. Defaults to '/'. Whennull
, thepath
field will be omitted from the resulting object.http_headers
(list[obj]
): Custom headers to set in the request. HTTP allows repeated headers. Whennull
, thehttp_headers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.liveness_probe.http_get.http_headers.new constructor.
Returns:
- An attribute object that represents the
http_get
sub block.
new()
google.cloud_run_v2_job.template.template.containers.liveness_probe.http_get.http_headers.new
constructs a new object with attributes and blocks configured for the http_headers
Terraform sub block.
Args:
name
(string
): The header field namevalue
(string
): The header field value Whennull
, thevalue
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
http_headers
sub block.
new()
google.cloud_run_v2_job.template.template.containers.liveness_probe.tcp_socket.new
constructs a new object with attributes and blocks configured for the tcp_socket
Terraform sub block.
Args:
port
(number
): Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080. Whennull
, theport
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
tcp_socket
sub block.
new()
google.cloud_run_v2_job.template.template.containers.ports.new
constructs a new object with attributes and blocks configured for the ports
Terraform sub block.
Args:
container_port
(number
): Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536. Whennull
, thecontainer_port
field will be omitted from the resulting object.name
(string
): If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". Whennull
, thename
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
ports
sub block.
new()
google.cloud_run_v2_job.template.template.containers.resources.new
constructs a new object with attributes and blocks configured for the resources
Terraform sub block.
Args:
limits
(obj
): Only memory and CPU are supported. 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 Whennull
, thelimits
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
resources
sub block.
new()
google.cloud_run_v2_job.template.template.containers.startup_probe.new
constructs a new object with attributes and blocks configured for the startup_probe
Terraform sub block.
Args:
failure_threshold
(number
): Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Whennull
, thefailure_threshold
field will be omitted from the resulting object.initial_delay_seconds
(number
): Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Whennull
, theinitial_delay_seconds
field will be omitted from the resulting object.period_seconds
(number
): How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds Whennull
, theperiod_seconds
field will be omitted from the resulting object.timeout_seconds
(number
): Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Whennull
, thetimeout_seconds
field will be omitted from the resulting object.http_get
(list[obj]
): HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Whennull
, thehttp_get
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.startup_probe.http_get.new constructor.tcp_socket
(list[obj]
): TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Whennull
, thetcp_socket
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.startup_probe.tcp_socket.new constructor.
Returns:
- An attribute object that represents the
startup_probe
sub block.
new()
google.cloud_run_v2_job.template.template.containers.startup_probe.http_get.new
constructs a new object with attributes and blocks configured for the http_get
Terraform sub block.
Args:
path
(string
): Path to access on the HTTP server. Defaults to '/'. Whennull
, thepath
field will be omitted from the resulting object.http_headers
(list[obj]
): Custom headers to set in the request. HTTP allows repeated headers. Whennull
, thehttp_headers
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.containers.startup_probe.http_get.http_headers.new constructor.
Returns:
- An attribute object that represents the
http_get
sub block.
new()
google.cloud_run_v2_job.template.template.containers.startup_probe.http_get.http_headers.new
constructs a new object with attributes and blocks configured for the http_headers
Terraform sub block.
Args:
name
(string
): The header field namevalue
(string
): The header field value Whennull
, thevalue
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
http_headers
sub block.
new()
google.cloud_run_v2_job.template.template.containers.startup_probe.tcp_socket.new
constructs a new object with attributes and blocks configured for the tcp_socket
Terraform sub block.
Args:
port
(number
): Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080. Whennull
, theport
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
tcp_socket
sub block.
new()
google.cloud_run_v2_job.template.template.containers.volume_mounts.new
constructs a new object with attributes and blocks configured for the volume_mounts
Terraform sub block.
Args:
mount_path
(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-runname
(string
): This must match the Name of a Volume.
Returns:
- An attribute object that represents the
volume_mounts
sub block.
new()
google.cloud_run_v2_job.template.template.volumes.new
constructs a new object with attributes and blocks configured for the volumes
Terraform sub block.
Args:
name
(string
): Volume's name.cloud_sql_instance
(list[obj]
): 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. Whennull
, thecloud_sql_instance
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.volumes.cloud_sql_instance.new constructor.secret
(list[obj]
): Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Whennull
, thesecret
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.volumes.secret.new constructor.
Returns:
- An attribute object that represents the
volumes
sub block.
new()
google.cloud_run_v2_job.template.template.volumes.cloud_sql_instance.new
constructs a new object with attributes and blocks configured for the cloud_sql_instance
Terraform sub block.
Args:
instances
(list
): 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} Whennull
, theinstances
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
cloud_sql_instance
sub block.
new()
google.cloud_run_v2_job.template.template.volumes.secret.new
constructs a new object with attributes and blocks configured for the secret
Terraform sub block.
Args:
default_mode
(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. Whennull
, thedefault_mode
field will be omitted from the resulting object.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.items
(list[obj]
): 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. Whennull
, theitems
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.volumes.secret.items.new constructor.
Returns:
- An attribute object that represents the
secret
sub block.
new()
google.cloud_run_v2_job.template.template.volumes.secret.items.new
constructs a new object with attributes and blocks configured for the items
Terraform sub block.
Args:
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. Whennull
, themode
field will be omitted from the resulting object.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
Returns:
- An attribute object that represents the
items
sub block.
new()
google.cloud_run_v2_job.template.template.vpc_access.new
constructs a new object with attributes and blocks configured for the vpc_access
Terraform sub block.
Args:
connector
(string
): VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. Whennull
, theconnector
field will be omitted from the resulting object.egress
(string
): Traffic VPC egress settings. Possible values: ["ALL_TRAFFIC", "PRIVATE_RANGES_ONLY"] Whennull
, theegress
field will be omitted from the resulting object.network_interfaces
(list[obj]
): Direct VPC egress settings. Currently only single network interface is supported. Whennull
, thenetwork_interfaces
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.cloud_run_v2_job.template.template.vpc_access.network_interfaces.new constructor.
Returns:
- An attribute object that represents the
vpc_access
sub block.
new()
google.cloud_run_v2_job.template.template.vpc_access.network_interfaces.new
constructs a new object with attributes and blocks configured for the network_interfaces
Terraform sub block.
Args:
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. Whennull
, thenetwork
field will be omitted from the resulting object.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. Whennull
, thesubnetwork
field will be omitted from the resulting object.tags
(list
): Network tags applied to this Cloud Run job. Whennull
, thetags
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
network_interfaces
sub block.
new()
google.cloud_run_v2_job.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.