Module cloudscheduler

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

Resources

Others

Resources

Resource Job

class Job extends CustomResource

This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloud_scheduler_job.html.markdown.

constructor

new Job(name: string, args?: JobArgs, opts?: pulumi.CustomResourceOptions)

Create a Job resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: JobState, opts?: pulumi.CustomResourceOptions): Job

Get an existing Job resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Job

Returns true if the given object is an instance of Job. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property appEngineHttpTarget

public appEngineHttpTarget: pulumi.Output<JobAppEngineHttpTarget | undefined>;

App Engine HTTP target. If the job providers a App Engine HTTP target the cron will send a request to the service instance

property attemptDeadline

public attemptDeadline: pulumi.Output<string | undefined>;

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is: * For HTTP targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets, between 15 seconds and 24 hours. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”

property description

public description: pulumi.Output<string | undefined>;

A human-readable description for the job. This string must not contain more than 500 characters.

property httpTarget

public httpTarget: pulumi.Output<JobHttpTarget | undefined>;

HTTP target. If the job providers a http_target the cron will send a request to the targeted url

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

The name of the job.

property project

public project: pulumi.Output<string>;

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

property pubsubTarget

public pubsubTarget: pulumi.Output<JobPubsubTarget | undefined>;

Pub/Sub target If the job providers a Pub/Sub target the cron will publish a message to the provided topic

property region

public region: pulumi.Output<string>;

Region where the scheduler job resides

property retryConfig

public retryConfig: pulumi.Output<JobRetryConfig | undefined>;

By default, if a job does not complete successfully, meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings

property schedule

public schedule: pulumi.Output<string | undefined>;

Describes the schedule on which the job will be executed.

property timeZone

public timeZone: pulumi.Output<string | undefined>;

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Others

interface JobArgs

interface JobArgs

The set of arguments for constructing a Job resource.

property appEngineHttpTarget

appEngineHttpTarget?: pulumi.Input<JobAppEngineHttpTarget>;

App Engine HTTP target. If the job providers a App Engine HTTP target the cron will send a request to the service instance

property attemptDeadline

attemptDeadline?: pulumi.Input<string>;

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is: * For HTTP targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets, between 15 seconds and 24 hours. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”

property description

description?: pulumi.Input<string>;

A human-readable description for the job. This string must not contain more than 500 characters.

property httpTarget

httpTarget?: pulumi.Input<JobHttpTarget>;

HTTP target. If the job providers a http_target the cron will send a request to the targeted url

property name

name?: pulumi.Input<string>;

The name of the job.

property project

project?: pulumi.Input<string>;

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

property pubsubTarget

pubsubTarget?: pulumi.Input<JobPubsubTarget>;

Pub/Sub target If the job providers a Pub/Sub target the cron will publish a message to the provided topic

property region

region?: pulumi.Input<string>;

Region where the scheduler job resides

property retryConfig

retryConfig?: pulumi.Input<JobRetryConfig>;

By default, if a job does not complete successfully, meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings

property schedule

schedule?: pulumi.Input<string>;

Describes the schedule on which the job will be executed.

property timeZone

timeZone?: pulumi.Input<string>;

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database.

interface JobState

interface JobState

Input properties used for looking up and filtering Job resources.

property appEngineHttpTarget

appEngineHttpTarget?: pulumi.Input<JobAppEngineHttpTarget>;

App Engine HTTP target. If the job providers a App Engine HTTP target the cron will send a request to the service instance

property attemptDeadline

attemptDeadline?: pulumi.Input<string>;

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is: * For HTTP targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets, between 15 seconds and 24 hours. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”

property description

description?: pulumi.Input<string>;

A human-readable description for the job. This string must not contain more than 500 characters.

property httpTarget

httpTarget?: pulumi.Input<JobHttpTarget>;

HTTP target. If the job providers a http_target the cron will send a request to the targeted url

property name

name?: pulumi.Input<string>;

The name of the job.

property project

project?: pulumi.Input<string>;

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

property pubsubTarget

pubsubTarget?: pulumi.Input<JobPubsubTarget>;

Pub/Sub target If the job providers a Pub/Sub target the cron will publish a message to the provided topic

property region

region?: pulumi.Input<string>;

Region where the scheduler job resides

property retryConfig

retryConfig?: pulumi.Input<JobRetryConfig>;

By default, if a job does not complete successfully, meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings

property schedule

schedule?: pulumi.Input<string>;

Describes the schedule on which the job will be executed.

property timeZone

timeZone?: pulumi.Input<string>;

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database.