cloudscheduler

package
v7.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	pulumi.CustomResourceState

	// App Engine HTTP target.
	// If the job providers a App Engine HTTP target the cron will
	// send a request to the service instance
	// Structure is documented below.
	AppEngineHttpTarget JobAppEngineHttpTargetPtrOutput `pulumi:"appEngineHttpTarget"`
	// 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.
	// * **Note**: For PubSub targets, this field is ignored - setting it will introduce an unresolvable diff.
	//   A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
	AttemptDeadline pulumi.StringPtrOutput `pulumi:"attemptDeadline"`
	// A human-readable description for the job.
	// This string must not contain more than 500 characters.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// HTTP target.
	// If the job providers a httpTarget the cron will
	// send a request to the targeted url
	// Structure is documented below.
	HttpTarget JobHttpTargetPtrOutput `pulumi:"httpTarget"`
	// The name of the job.
	//
	// ***
	Name pulumi.StringOutput `pulumi:"name"`
	// Sets the job to a paused state. Jobs default to being enabled when this property is not set.
	Paused pulumi.BoolOutput `pulumi:"paused"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// Pub/Sub target
	// If the job providers a Pub/Sub target the cron will publish
	// a message to the provided topic
	// Structure is documented below.
	PubsubTarget JobPubsubTargetPtrOutput `pulumi:"pubsubTarget"`
	// Region where the scheduler job resides. If it is not provided, this provider will use the provider default.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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
	// Structure is documented below.
	RetryConfig JobRetryConfigPtrOutput `pulumi:"retryConfig"`
	// Describes the schedule on which the job will be executed.
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// State of the job.
	State pulumi.StringOutput `pulumi:"state"`
	// 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.
	TimeZone pulumi.StringPtrOutput `pulumi:"timeZone"`
}

A scheduled job that can publish a PubSub message or an HTTP request every X interval of time, using a crontab format string.

To get more information about Job, see:

* [API documentation](https://cloud.google.com/scheduler/docs/reference/rest/) * How-to Guides

## Example Usage

### Scheduler Job Pubsub

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/pubsub"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		topic, err := pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
			Name: pulumi.String("job-topic"),
		})
		if err != nil {
			return err
		}
		invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "test",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Name:        pulumi.String("test-job"),
			Description: pulumi.String("test job"),
			Schedule:    pulumi.String("*/2 * * * *"),
			PubsubTarget: &cloudscheduler.JobPubsubTargetArgs{
				TopicName: topic.ID(),
				Data:      invokeBase64encode.Result,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Scheduler Job Http

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "{\"foo\":\"bar\"}",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Name:            pulumi.String("test-job"),
			Description:     pulumi.String("test http job"),
			Schedule:        pulumi.String("*/8 * * * *"),
			TimeZone:        pulumi.String("America/New_York"),
			AttemptDeadline: pulumi.String("320s"),
			RetryConfig: &cloudscheduler.JobRetryConfigArgs{
				RetryCount: pulumi.Int(1),
			},
			HttpTarget: &cloudscheduler.JobHttpTargetArgs{
				HttpMethod: pulumi.String("POST"),
				Uri:        pulumi.String("https://example.com/"),
				Body:       invokeBase64encode.Result,
				Headers: pulumi.StringMap{
					"Content-Type": pulumi.String("application/json"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Scheduler Job Paused

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "{\"foo\":\"bar\"}",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Paused:          pulumi.Bool(true),
			Name:            pulumi.String("test-job"),
			Description:     pulumi.String("test http job with updated fields"),
			Schedule:        pulumi.String("*/8 * * * *"),
			TimeZone:        pulumi.String("America/New_York"),
			AttemptDeadline: pulumi.String("320s"),
			RetryConfig: &cloudscheduler.JobRetryConfigArgs{
				RetryCount: pulumi.Int(1),
			},
			HttpTarget: &cloudscheduler.JobHttpTargetArgs{
				HttpMethod: pulumi.String("POST"),
				Uri:        pulumi.String("https://example.com/ping"),
				Body:       invokeBase64encode.Result,
				Headers: pulumi.StringMap{
					"Content-Type": pulumi.String("application/json"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Scheduler Job App Engine

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Name:            pulumi.String("test-job"),
			Schedule:        pulumi.String("*/4 * * * *"),
			Description:     pulumi.String("test app engine job"),
			TimeZone:        pulumi.String("Europe/London"),
			AttemptDeadline: pulumi.String("320s"),
			RetryConfig: &cloudscheduler.JobRetryConfigArgs{
				MinBackoffDuration: pulumi.String("1s"),
				MaxRetryDuration:   pulumi.String("10s"),
				MaxDoublings:       pulumi.Int(2),
				RetryCount:         pulumi.Int(3),
			},
			AppEngineHttpTarget: &cloudscheduler.JobAppEngineHttpTargetArgs{
				HttpMethod: pulumi.String("POST"),
				AppEngineRouting: &cloudscheduler.JobAppEngineHttpTargetAppEngineRoutingArgs{
					Service:  pulumi.String("web"),
					Version:  pulumi.String("prod"),
					Instance: pulumi.String("my-instance-001"),
				},
				RelativeUri: pulumi.String("/ping"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Scheduler Job Oauth

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := compute.GetDefaultServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Name:            pulumi.String("test-job"),
			Description:     pulumi.String("test http job"),
			Schedule:        pulumi.String("*/8 * * * *"),
			TimeZone:        pulumi.String("America/New_York"),
			AttemptDeadline: pulumi.String("320s"),
			HttpTarget: &cloudscheduler.JobHttpTargetArgs{
				HttpMethod: pulumi.String("GET"),
				Uri:        pulumi.String("https://cloudscheduler.googleapis.com/v1/projects/my-project-name/locations/us-west1/jobs"),
				OauthToken: &cloudscheduler.JobHttpTargetOauthTokenArgs{
					ServiceAccountEmail: pulumi.String(_default.Email),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Scheduler Job Oidc

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudscheduler"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := compute.GetDefaultServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = cloudscheduler.NewJob(ctx, "job", &cloudscheduler.JobArgs{
			Name:            pulumi.String("test-job"),
			Description:     pulumi.String("test http job"),
			Schedule:        pulumi.String("*/8 * * * *"),
			TimeZone:        pulumi.String("America/New_York"),
			AttemptDeadline: pulumi.String("320s"),
			HttpTarget: &cloudscheduler.JobHttpTargetArgs{
				HttpMethod: pulumi.String("GET"),
				Uri:        pulumi.String("https://example.com/ping"),
				OidcToken: &cloudscheduler.JobHttpTargetOidcTokenArgs{
					ServiceAccountEmail: pulumi.String(_default.Email),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Job can be imported using any of these accepted formats:

* `projects/{{project}}/locations/{{region}}/jobs/{{name}}`

* `{{project}}/{{region}}/{{name}}`

* `{{region}}/{{name}}`

* `{{name}}`

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

```sh $ pulumi import gcp:cloudscheduler/job:Job default projects/{{project}}/locations/{{region}}/jobs/{{name}} ```

```sh $ pulumi import gcp:cloudscheduler/job:Job default {{project}}/{{region}}/{{name}} ```

```sh $ pulumi import gcp:cloudscheduler/job:Job default {{region}}/{{name}} ```

```sh $ pulumi import gcp:cloudscheduler/job:Job default {{name}} ```

func GetJob

func GetJob(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *JobState, opts ...pulumi.ResourceOption) (*Job, error)

GetJob gets an existing Job resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewJob

func NewJob(ctx *pulumi.Context,
	name string, args *JobArgs, opts ...pulumi.ResourceOption) (*Job, error)

NewJob registers a new resource with the given unique name, arguments, and options.

func (*Job) ElementType

func (*Job) ElementType() reflect.Type

func (*Job) ToJobOutput

func (i *Job) ToJobOutput() JobOutput

func (*Job) ToJobOutputWithContext

func (i *Job) ToJobOutputWithContext(ctx context.Context) JobOutput

type JobAppEngineHttpTarget

type JobAppEngineHttpTarget struct {
	// App Engine Routing setting for the job.
	// Structure is documented below.
	AppEngineRouting *JobAppEngineHttpTargetAppEngineRouting `pulumi:"appEngineRouting"`
	// HTTP request body.
	// A request body is allowed only if the HTTP method is POST or PUT.
	// It will result in invalid argument error to set a body on a job with an incompatible HttpMethod.
	// A base64-encoded string.
	Body *string `pulumi:"body"`
	// HTTP request headers.
	// This map contains the header field names and values.
	// Headers can be set when the job is created.
	Headers map[string]string `pulumi:"headers"`
	// Which HTTP method to use for the request.
	HttpMethod *string `pulumi:"httpMethod"`
	// The relative URI.
	// The relative URL must begin with "/" and must be a valid HTTP relative URL.
	// It can contain a path, query string arguments, and \# fragments.
	// If the relative URL is empty, then the root path "/" will be used.
	// No spaces are allowed, and the maximum length allowed is 2083 characters
	RelativeUri string `pulumi:"relativeUri"`
}

type JobAppEngineHttpTargetAppEngineRouting

type JobAppEngineHttpTargetAppEngineRouting struct {
	// App instance.
	// By default, the job is sent to an instance which is available when the job is attempted.
	Instance *string `pulumi:"instance"`
	// App service.
	// By default, the job is sent to the service which is the default service when the job is attempted.
	Service *string `pulumi:"service"`
	// App version.
	// By default, the job is sent to the version which is the default version when the job is attempted.
	Version *string `pulumi:"version"`
}

type JobAppEngineHttpTargetAppEngineRoutingArgs

type JobAppEngineHttpTargetAppEngineRoutingArgs struct {
	// App instance.
	// By default, the job is sent to an instance which is available when the job is attempted.
	Instance pulumi.StringPtrInput `pulumi:"instance"`
	// App service.
	// By default, the job is sent to the service which is the default service when the job is attempted.
	Service pulumi.StringPtrInput `pulumi:"service"`
	// App version.
	// By default, the job is sent to the version which is the default version when the job is attempted.
	Version pulumi.StringPtrInput `pulumi:"version"`
}

func (JobAppEngineHttpTargetAppEngineRoutingArgs) ElementType

func (JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingOutput

func (i JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingOutput() JobAppEngineHttpTargetAppEngineRoutingOutput

func (JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingOutputWithContext

func (i JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingOutputWithContext(ctx context.Context) JobAppEngineHttpTargetAppEngineRoutingOutput

func (JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (i JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput() JobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext

func (i JobAppEngineHttpTargetAppEngineRoutingArgs) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetAppEngineRoutingPtrOutput

type JobAppEngineHttpTargetAppEngineRoutingInput

type JobAppEngineHttpTargetAppEngineRoutingInput interface {
	pulumi.Input

	ToJobAppEngineHttpTargetAppEngineRoutingOutput() JobAppEngineHttpTargetAppEngineRoutingOutput
	ToJobAppEngineHttpTargetAppEngineRoutingOutputWithContext(context.Context) JobAppEngineHttpTargetAppEngineRoutingOutput
}

JobAppEngineHttpTargetAppEngineRoutingInput is an input type that accepts JobAppEngineHttpTargetAppEngineRoutingArgs and JobAppEngineHttpTargetAppEngineRoutingOutput values. You can construct a concrete instance of `JobAppEngineHttpTargetAppEngineRoutingInput` via:

JobAppEngineHttpTargetAppEngineRoutingArgs{...}

type JobAppEngineHttpTargetAppEngineRoutingOutput

type JobAppEngineHttpTargetAppEngineRoutingOutput struct{ *pulumi.OutputState }

func (JobAppEngineHttpTargetAppEngineRoutingOutput) ElementType

func (JobAppEngineHttpTargetAppEngineRoutingOutput) Instance

App instance. By default, the job is sent to an instance which is available when the job is attempted.

func (JobAppEngineHttpTargetAppEngineRoutingOutput) Service

App service. By default, the job is sent to the service which is the default service when the job is attempted.

func (JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingOutput

func (o JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingOutput() JobAppEngineHttpTargetAppEngineRoutingOutput

func (JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingOutputWithContext

func (o JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingOutputWithContext(ctx context.Context) JobAppEngineHttpTargetAppEngineRoutingOutput

func (JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (o JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput() JobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext

func (o JobAppEngineHttpTargetAppEngineRoutingOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (JobAppEngineHttpTargetAppEngineRoutingOutput) Version

App version. By default, the job is sent to the version which is the default version when the job is attempted.

type JobAppEngineHttpTargetAppEngineRoutingPtrInput

type JobAppEngineHttpTargetAppEngineRoutingPtrInput interface {
	pulumi.Input

	ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput() JobAppEngineHttpTargetAppEngineRoutingPtrOutput
	ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext(context.Context) JobAppEngineHttpTargetAppEngineRoutingPtrOutput
}

JobAppEngineHttpTargetAppEngineRoutingPtrInput is an input type that accepts JobAppEngineHttpTargetAppEngineRoutingArgs, JobAppEngineHttpTargetAppEngineRoutingPtr and JobAppEngineHttpTargetAppEngineRoutingPtrOutput values. You can construct a concrete instance of `JobAppEngineHttpTargetAppEngineRoutingPtrInput` via:

        JobAppEngineHttpTargetAppEngineRoutingArgs{...}

or:

        nil

type JobAppEngineHttpTargetAppEngineRoutingPtrOutput

type JobAppEngineHttpTargetAppEngineRoutingPtrOutput struct{ *pulumi.OutputState }

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) Elem

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) ElementType

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) Instance

App instance. By default, the job is sent to an instance which is available when the job is attempted.

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) Service

App service. By default, the job is sent to the service which is the default service when the job is attempted.

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (o JobAppEngineHttpTargetAppEngineRoutingPtrOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutput() JobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext

func (o JobAppEngineHttpTargetAppEngineRoutingPtrOutput) ToJobAppEngineHttpTargetAppEngineRoutingPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetAppEngineRoutingPtrOutput

func (JobAppEngineHttpTargetAppEngineRoutingPtrOutput) Version

App version. By default, the job is sent to the version which is the default version when the job is attempted.

type JobAppEngineHttpTargetArgs

type JobAppEngineHttpTargetArgs struct {
	// App Engine Routing setting for the job.
	// Structure is documented below.
	AppEngineRouting JobAppEngineHttpTargetAppEngineRoutingPtrInput `pulumi:"appEngineRouting"`
	// HTTP request body.
	// A request body is allowed only if the HTTP method is POST or PUT.
	// It will result in invalid argument error to set a body on a job with an incompatible HttpMethod.
	// A base64-encoded string.
	Body pulumi.StringPtrInput `pulumi:"body"`
	// HTTP request headers.
	// This map contains the header field names and values.
	// Headers can be set when the job is created.
	Headers pulumi.StringMapInput `pulumi:"headers"`
	// Which HTTP method to use for the request.
	HttpMethod pulumi.StringPtrInput `pulumi:"httpMethod"`
	// The relative URI.
	// The relative URL must begin with "/" and must be a valid HTTP relative URL.
	// It can contain a path, query string arguments, and \# fragments.
	// If the relative URL is empty, then the root path "/" will be used.
	// No spaces are allowed, and the maximum length allowed is 2083 characters
	RelativeUri pulumi.StringInput `pulumi:"relativeUri"`
}

func (JobAppEngineHttpTargetArgs) ElementType

func (JobAppEngineHttpTargetArgs) ElementType() reflect.Type

func (JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetOutput

func (i JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetOutput() JobAppEngineHttpTargetOutput

func (JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetOutputWithContext

func (i JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetOutputWithContext(ctx context.Context) JobAppEngineHttpTargetOutput

func (JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetPtrOutput

func (i JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetPtrOutput() JobAppEngineHttpTargetPtrOutput

func (JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetPtrOutputWithContext

func (i JobAppEngineHttpTargetArgs) ToJobAppEngineHttpTargetPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetPtrOutput

type JobAppEngineHttpTargetInput

type JobAppEngineHttpTargetInput interface {
	pulumi.Input

	ToJobAppEngineHttpTargetOutput() JobAppEngineHttpTargetOutput
	ToJobAppEngineHttpTargetOutputWithContext(context.Context) JobAppEngineHttpTargetOutput
}

JobAppEngineHttpTargetInput is an input type that accepts JobAppEngineHttpTargetArgs and JobAppEngineHttpTargetOutput values. You can construct a concrete instance of `JobAppEngineHttpTargetInput` via:

JobAppEngineHttpTargetArgs{...}

type JobAppEngineHttpTargetOutput

type JobAppEngineHttpTargetOutput struct{ *pulumi.OutputState }

func (JobAppEngineHttpTargetOutput) AppEngineRouting

App Engine Routing setting for the job. Structure is documented below.

func (JobAppEngineHttpTargetOutput) Body

HTTP request body. A request body is allowed only if the HTTP method is POST or PUT. It will result in invalid argument error to set a body on a job with an incompatible HttpMethod. A base64-encoded string.

func (JobAppEngineHttpTargetOutput) ElementType

func (JobAppEngineHttpTargetOutput) Headers

HTTP request headers. This map contains the header field names and values. Headers can be set when the job is created.

func (JobAppEngineHttpTargetOutput) HttpMethod

Which HTTP method to use for the request.

func (JobAppEngineHttpTargetOutput) RelativeUri

The relative URI. The relative URL must begin with "/" and must be a valid HTTP relative URL. It can contain a path, query string arguments, and \# fragments. If the relative URL is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters

func (JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetOutput

func (o JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetOutput() JobAppEngineHttpTargetOutput

func (JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetOutputWithContext

func (o JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetOutputWithContext(ctx context.Context) JobAppEngineHttpTargetOutput

func (JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetPtrOutput

func (o JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetPtrOutput() JobAppEngineHttpTargetPtrOutput

func (JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetPtrOutputWithContext

func (o JobAppEngineHttpTargetOutput) ToJobAppEngineHttpTargetPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetPtrOutput

type JobAppEngineHttpTargetPtrInput

type JobAppEngineHttpTargetPtrInput interface {
	pulumi.Input

	ToJobAppEngineHttpTargetPtrOutput() JobAppEngineHttpTargetPtrOutput
	ToJobAppEngineHttpTargetPtrOutputWithContext(context.Context) JobAppEngineHttpTargetPtrOutput
}

JobAppEngineHttpTargetPtrInput is an input type that accepts JobAppEngineHttpTargetArgs, JobAppEngineHttpTargetPtr and JobAppEngineHttpTargetPtrOutput values. You can construct a concrete instance of `JobAppEngineHttpTargetPtrInput` via:

        JobAppEngineHttpTargetArgs{...}

or:

        nil

type JobAppEngineHttpTargetPtrOutput

type JobAppEngineHttpTargetPtrOutput struct{ *pulumi.OutputState }

func (JobAppEngineHttpTargetPtrOutput) AppEngineRouting

App Engine Routing setting for the job. Structure is documented below.

func (JobAppEngineHttpTargetPtrOutput) Body

HTTP request body. A request body is allowed only if the HTTP method is POST or PUT. It will result in invalid argument error to set a body on a job with an incompatible HttpMethod. A base64-encoded string.

func (JobAppEngineHttpTargetPtrOutput) Elem

func (JobAppEngineHttpTargetPtrOutput) ElementType

func (JobAppEngineHttpTargetPtrOutput) Headers

HTTP request headers. This map contains the header field names and values. Headers can be set when the job is created.

func (JobAppEngineHttpTargetPtrOutput) HttpMethod

Which HTTP method to use for the request.

func (JobAppEngineHttpTargetPtrOutput) RelativeUri

The relative URI. The relative URL must begin with "/" and must be a valid HTTP relative URL. It can contain a path, query string arguments, and \# fragments. If the relative URL is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters

func (JobAppEngineHttpTargetPtrOutput) ToJobAppEngineHttpTargetPtrOutput

func (o JobAppEngineHttpTargetPtrOutput) ToJobAppEngineHttpTargetPtrOutput() JobAppEngineHttpTargetPtrOutput

func (JobAppEngineHttpTargetPtrOutput) ToJobAppEngineHttpTargetPtrOutputWithContext

func (o JobAppEngineHttpTargetPtrOutput) ToJobAppEngineHttpTargetPtrOutputWithContext(ctx context.Context) JobAppEngineHttpTargetPtrOutput

type JobArgs

type JobArgs struct {
	// App Engine HTTP target.
	// If the job providers a App Engine HTTP target the cron will
	// send a request to the service instance
	// Structure is documented below.
	AppEngineHttpTarget JobAppEngineHttpTargetPtrInput
	// 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.
	// * **Note**: For PubSub targets, this field is ignored - setting it will introduce an unresolvable diff.
	//   A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
	AttemptDeadline pulumi.StringPtrInput
	// A human-readable description for the job.
	// This string must not contain more than 500 characters.
	Description pulumi.StringPtrInput
	// HTTP target.
	// If the job providers a httpTarget the cron will
	// send a request to the targeted url
	// Structure is documented below.
	HttpTarget JobHttpTargetPtrInput
	// The name of the job.
	//
	// ***
	Name pulumi.StringPtrInput
	// Sets the job to a paused state. Jobs default to being enabled when this property is not set.
	Paused pulumi.BoolPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Pub/Sub target
	// If the job providers a Pub/Sub target the cron will publish
	// a message to the provided topic
	// Structure is documented below.
	PubsubTarget JobPubsubTargetPtrInput
	// Region where the scheduler job resides. If it is not provided, this provider will use the provider default.
	Region pulumi.StringPtrInput
	// 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
	// Structure is documented below.
	RetryConfig JobRetryConfigPtrInput
	// Describes the schedule on which the job will be executed.
	Schedule pulumi.StringPtrInput
	// 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.
	TimeZone pulumi.StringPtrInput
}

The set of arguments for constructing a Job resource.

func (JobArgs) ElementType

func (JobArgs) ElementType() reflect.Type

type JobArray

type JobArray []JobInput

func (JobArray) ElementType

func (JobArray) ElementType() reflect.Type

func (JobArray) ToJobArrayOutput

func (i JobArray) ToJobArrayOutput() JobArrayOutput

func (JobArray) ToJobArrayOutputWithContext

func (i JobArray) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput

type JobArrayInput

type JobArrayInput interface {
	pulumi.Input

	ToJobArrayOutput() JobArrayOutput
	ToJobArrayOutputWithContext(context.Context) JobArrayOutput
}

JobArrayInput is an input type that accepts JobArray and JobArrayOutput values. You can construct a concrete instance of `JobArrayInput` via:

JobArray{ JobArgs{...} }

type JobArrayOutput

type JobArrayOutput struct{ *pulumi.OutputState }

func (JobArrayOutput) ElementType

func (JobArrayOutput) ElementType() reflect.Type

func (JobArrayOutput) Index

func (JobArrayOutput) ToJobArrayOutput

func (o JobArrayOutput) ToJobArrayOutput() JobArrayOutput

func (JobArrayOutput) ToJobArrayOutputWithContext

func (o JobArrayOutput) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput

type JobHttpTarget

type JobHttpTarget struct {
	// HTTP request body.
	// A request body is allowed only if the HTTP method is POST, PUT, or PATCH.
	// It is an error to set body on a job with an incompatible HttpMethod.
	// A base64-encoded string.
	Body *string `pulumi:"body"`
	// This map contains the header field names and values.
	// Repeated headers are not supported, but a header value can contain commas.
	Headers map[string]string `pulumi:"headers"`
	// Which HTTP method to use for the request.
	HttpMethod *string `pulumi:"httpMethod"`
	// Contains information needed for generating an OAuth token.
	// This type of authorization should be used when sending requests to a GCP endpoint.
	// Structure is documented below.
	OauthToken *JobHttpTargetOauthToken `pulumi:"oauthToken"`
	// Contains information needed for generating an OpenID Connect token.
	// This type of authorization should be used when sending requests to third party endpoints or Cloud Run.
	// Structure is documented below.
	OidcToken *JobHttpTargetOidcToken `pulumi:"oidcToken"`
	// The full URI path that the request will be sent to.
	Uri string `pulumi:"uri"`
}

type JobHttpTargetArgs

type JobHttpTargetArgs struct {
	// HTTP request body.
	// A request body is allowed only if the HTTP method is POST, PUT, or PATCH.
	// It is an error to set body on a job with an incompatible HttpMethod.
	// A base64-encoded string.
	Body pulumi.StringPtrInput `pulumi:"body"`
	// This map contains the header field names and values.
	// Repeated headers are not supported, but a header value can contain commas.
	Headers pulumi.StringMapInput `pulumi:"headers"`
	// Which HTTP method to use for the request.
	HttpMethod pulumi.StringPtrInput `pulumi:"httpMethod"`
	// Contains information needed for generating an OAuth token.
	// This type of authorization should be used when sending requests to a GCP endpoint.
	// Structure is documented below.
	OauthToken JobHttpTargetOauthTokenPtrInput `pulumi:"oauthToken"`
	// Contains information needed for generating an OpenID Connect token.
	// This type of authorization should be used when sending requests to third party endpoints or Cloud Run.
	// Structure is documented below.
	OidcToken JobHttpTargetOidcTokenPtrInput `pulumi:"oidcToken"`
	// The full URI path that the request will be sent to.
	Uri pulumi.StringInput `pulumi:"uri"`
}

func (JobHttpTargetArgs) ElementType

func (JobHttpTargetArgs) ElementType() reflect.Type

func (JobHttpTargetArgs) ToJobHttpTargetOutput

func (i JobHttpTargetArgs) ToJobHttpTargetOutput() JobHttpTargetOutput

func (JobHttpTargetArgs) ToJobHttpTargetOutputWithContext

func (i JobHttpTargetArgs) ToJobHttpTargetOutputWithContext(ctx context.Context) JobHttpTargetOutput

func (JobHttpTargetArgs) ToJobHttpTargetPtrOutput

func (i JobHttpTargetArgs) ToJobHttpTargetPtrOutput() JobHttpTargetPtrOutput

func (JobHttpTargetArgs) ToJobHttpTargetPtrOutputWithContext

func (i JobHttpTargetArgs) ToJobHttpTargetPtrOutputWithContext(ctx context.Context) JobHttpTargetPtrOutput

type JobHttpTargetInput

type JobHttpTargetInput interface {
	pulumi.Input

	ToJobHttpTargetOutput() JobHttpTargetOutput
	ToJobHttpTargetOutputWithContext(context.Context) JobHttpTargetOutput
}

JobHttpTargetInput is an input type that accepts JobHttpTargetArgs and JobHttpTargetOutput values. You can construct a concrete instance of `JobHttpTargetInput` via:

JobHttpTargetArgs{...}

type JobHttpTargetOauthToken

type JobHttpTargetOauthToken struct {
	// OAuth scope to be used for generating OAuth access token. If not specified,
	// "https://www.googleapis.com/auth/cloud-platform" will be used.
	Scope *string `pulumi:"scope"`
	// Service account email to be used for generating OAuth token.
	// The service account must be within the same project as the job.
	ServiceAccountEmail string `pulumi:"serviceAccountEmail"`
}

type JobHttpTargetOauthTokenArgs

type JobHttpTargetOauthTokenArgs struct {
	// OAuth scope to be used for generating OAuth access token. If not specified,
	// "https://www.googleapis.com/auth/cloud-platform" will be used.
	Scope pulumi.StringPtrInput `pulumi:"scope"`
	// Service account email to be used for generating OAuth token.
	// The service account must be within the same project as the job.
	ServiceAccountEmail pulumi.StringInput `pulumi:"serviceAccountEmail"`
}

func (JobHttpTargetOauthTokenArgs) ElementType

func (JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenOutput

func (i JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenOutput() JobHttpTargetOauthTokenOutput

func (JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenOutputWithContext

func (i JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenOutputWithContext(ctx context.Context) JobHttpTargetOauthTokenOutput

func (JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenPtrOutput

func (i JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenPtrOutput() JobHttpTargetOauthTokenPtrOutput

func (JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenPtrOutputWithContext

func (i JobHttpTargetOauthTokenArgs) ToJobHttpTargetOauthTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOauthTokenPtrOutput

type JobHttpTargetOauthTokenInput

type JobHttpTargetOauthTokenInput interface {
	pulumi.Input

	ToJobHttpTargetOauthTokenOutput() JobHttpTargetOauthTokenOutput
	ToJobHttpTargetOauthTokenOutputWithContext(context.Context) JobHttpTargetOauthTokenOutput
}

JobHttpTargetOauthTokenInput is an input type that accepts JobHttpTargetOauthTokenArgs and JobHttpTargetOauthTokenOutput values. You can construct a concrete instance of `JobHttpTargetOauthTokenInput` via:

JobHttpTargetOauthTokenArgs{...}

type JobHttpTargetOauthTokenOutput

type JobHttpTargetOauthTokenOutput struct{ *pulumi.OutputState }

func (JobHttpTargetOauthTokenOutput) ElementType

func (JobHttpTargetOauthTokenOutput) Scope

OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.

func (JobHttpTargetOauthTokenOutput) ServiceAccountEmail

func (o JobHttpTargetOauthTokenOutput) ServiceAccountEmail() pulumi.StringOutput

Service account email to be used for generating OAuth token. The service account must be within the same project as the job.

func (JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenOutput

func (o JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenOutput() JobHttpTargetOauthTokenOutput

func (JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenOutputWithContext

func (o JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenOutputWithContext(ctx context.Context) JobHttpTargetOauthTokenOutput

func (JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenPtrOutput

func (o JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenPtrOutput() JobHttpTargetOauthTokenPtrOutput

func (JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenPtrOutputWithContext

func (o JobHttpTargetOauthTokenOutput) ToJobHttpTargetOauthTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOauthTokenPtrOutput

type JobHttpTargetOauthTokenPtrInput

type JobHttpTargetOauthTokenPtrInput interface {
	pulumi.Input

	ToJobHttpTargetOauthTokenPtrOutput() JobHttpTargetOauthTokenPtrOutput
	ToJobHttpTargetOauthTokenPtrOutputWithContext(context.Context) JobHttpTargetOauthTokenPtrOutput
}

JobHttpTargetOauthTokenPtrInput is an input type that accepts JobHttpTargetOauthTokenArgs, JobHttpTargetOauthTokenPtr and JobHttpTargetOauthTokenPtrOutput values. You can construct a concrete instance of `JobHttpTargetOauthTokenPtrInput` via:

        JobHttpTargetOauthTokenArgs{...}

or:

        nil

type JobHttpTargetOauthTokenPtrOutput

type JobHttpTargetOauthTokenPtrOutput struct{ *pulumi.OutputState }

func (JobHttpTargetOauthTokenPtrOutput) Elem

func (JobHttpTargetOauthTokenPtrOutput) ElementType

func (JobHttpTargetOauthTokenPtrOutput) Scope

OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.

func (JobHttpTargetOauthTokenPtrOutput) ServiceAccountEmail

Service account email to be used for generating OAuth token. The service account must be within the same project as the job.

func (JobHttpTargetOauthTokenPtrOutput) ToJobHttpTargetOauthTokenPtrOutput

func (o JobHttpTargetOauthTokenPtrOutput) ToJobHttpTargetOauthTokenPtrOutput() JobHttpTargetOauthTokenPtrOutput

func (JobHttpTargetOauthTokenPtrOutput) ToJobHttpTargetOauthTokenPtrOutputWithContext

func (o JobHttpTargetOauthTokenPtrOutput) ToJobHttpTargetOauthTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOauthTokenPtrOutput

type JobHttpTargetOidcToken

type JobHttpTargetOidcToken struct {
	// Audience to be used when generating OIDC token. If not specified,
	// the URI specified in target will be used.
	Audience *string `pulumi:"audience"`
	// Service account email to be used for generating OAuth token.
	// The service account must be within the same project as the job.
	ServiceAccountEmail string `pulumi:"serviceAccountEmail"`
}

type JobHttpTargetOidcTokenArgs

type JobHttpTargetOidcTokenArgs struct {
	// Audience to be used when generating OIDC token. If not specified,
	// the URI specified in target will be used.
	Audience pulumi.StringPtrInput `pulumi:"audience"`
	// Service account email to be used for generating OAuth token.
	// The service account must be within the same project as the job.
	ServiceAccountEmail pulumi.StringInput `pulumi:"serviceAccountEmail"`
}

func (JobHttpTargetOidcTokenArgs) ElementType

func (JobHttpTargetOidcTokenArgs) ElementType() reflect.Type

func (JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenOutput

func (i JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenOutput() JobHttpTargetOidcTokenOutput

func (JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenOutputWithContext

func (i JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenOutputWithContext(ctx context.Context) JobHttpTargetOidcTokenOutput

func (JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenPtrOutput

func (i JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenPtrOutput() JobHttpTargetOidcTokenPtrOutput

func (JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenPtrOutputWithContext

func (i JobHttpTargetOidcTokenArgs) ToJobHttpTargetOidcTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOidcTokenPtrOutput

type JobHttpTargetOidcTokenInput

type JobHttpTargetOidcTokenInput interface {
	pulumi.Input

	ToJobHttpTargetOidcTokenOutput() JobHttpTargetOidcTokenOutput
	ToJobHttpTargetOidcTokenOutputWithContext(context.Context) JobHttpTargetOidcTokenOutput
}

JobHttpTargetOidcTokenInput is an input type that accepts JobHttpTargetOidcTokenArgs and JobHttpTargetOidcTokenOutput values. You can construct a concrete instance of `JobHttpTargetOidcTokenInput` via:

JobHttpTargetOidcTokenArgs{...}

type JobHttpTargetOidcTokenOutput

type JobHttpTargetOidcTokenOutput struct{ *pulumi.OutputState }

func (JobHttpTargetOidcTokenOutput) Audience

Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.

func (JobHttpTargetOidcTokenOutput) ElementType

func (JobHttpTargetOidcTokenOutput) ServiceAccountEmail

func (o JobHttpTargetOidcTokenOutput) ServiceAccountEmail() pulumi.StringOutput

Service account email to be used for generating OAuth token. The service account must be within the same project as the job.

func (JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenOutput

func (o JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenOutput() JobHttpTargetOidcTokenOutput

func (JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenOutputWithContext

func (o JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenOutputWithContext(ctx context.Context) JobHttpTargetOidcTokenOutput

func (JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenPtrOutput

func (o JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenPtrOutput() JobHttpTargetOidcTokenPtrOutput

func (JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenPtrOutputWithContext

func (o JobHttpTargetOidcTokenOutput) ToJobHttpTargetOidcTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOidcTokenPtrOutput

type JobHttpTargetOidcTokenPtrInput

type JobHttpTargetOidcTokenPtrInput interface {
	pulumi.Input

	ToJobHttpTargetOidcTokenPtrOutput() JobHttpTargetOidcTokenPtrOutput
	ToJobHttpTargetOidcTokenPtrOutputWithContext(context.Context) JobHttpTargetOidcTokenPtrOutput
}

JobHttpTargetOidcTokenPtrInput is an input type that accepts JobHttpTargetOidcTokenArgs, JobHttpTargetOidcTokenPtr and JobHttpTargetOidcTokenPtrOutput values. You can construct a concrete instance of `JobHttpTargetOidcTokenPtrInput` via:

        JobHttpTargetOidcTokenArgs{...}

or:

        nil

type JobHttpTargetOidcTokenPtrOutput

type JobHttpTargetOidcTokenPtrOutput struct{ *pulumi.OutputState }

func (JobHttpTargetOidcTokenPtrOutput) Audience

Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.

func (JobHttpTargetOidcTokenPtrOutput) Elem

func (JobHttpTargetOidcTokenPtrOutput) ElementType

func (JobHttpTargetOidcTokenPtrOutput) ServiceAccountEmail

func (o JobHttpTargetOidcTokenPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput

Service account email to be used for generating OAuth token. The service account must be within the same project as the job.

func (JobHttpTargetOidcTokenPtrOutput) ToJobHttpTargetOidcTokenPtrOutput

func (o JobHttpTargetOidcTokenPtrOutput) ToJobHttpTargetOidcTokenPtrOutput() JobHttpTargetOidcTokenPtrOutput

func (JobHttpTargetOidcTokenPtrOutput) ToJobHttpTargetOidcTokenPtrOutputWithContext

func (o JobHttpTargetOidcTokenPtrOutput) ToJobHttpTargetOidcTokenPtrOutputWithContext(ctx context.Context) JobHttpTargetOidcTokenPtrOutput

type JobHttpTargetOutput

type JobHttpTargetOutput struct{ *pulumi.OutputState }

func (JobHttpTargetOutput) Body

HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible HttpMethod. A base64-encoded string.

func (JobHttpTargetOutput) ElementType

func (JobHttpTargetOutput) ElementType() reflect.Type

func (JobHttpTargetOutput) Headers

This map contains the header field names and values. Repeated headers are not supported, but a header value can contain commas.

func (JobHttpTargetOutput) HttpMethod

Which HTTP method to use for the request.

func (JobHttpTargetOutput) OauthToken

Contains information needed for generating an OAuth token. This type of authorization should be used when sending requests to a GCP endpoint. Structure is documented below.

func (JobHttpTargetOutput) OidcToken

Contains information needed for generating an OpenID Connect token. This type of authorization should be used when sending requests to third party endpoints or Cloud Run. Structure is documented below.

func (JobHttpTargetOutput) ToJobHttpTargetOutput

func (o JobHttpTargetOutput) ToJobHttpTargetOutput() JobHttpTargetOutput

func (JobHttpTargetOutput) ToJobHttpTargetOutputWithContext

func (o JobHttpTargetOutput) ToJobHttpTargetOutputWithContext(ctx context.Context) JobHttpTargetOutput

func (JobHttpTargetOutput) ToJobHttpTargetPtrOutput

func (o JobHttpTargetOutput) ToJobHttpTargetPtrOutput() JobHttpTargetPtrOutput

func (JobHttpTargetOutput) ToJobHttpTargetPtrOutputWithContext

func (o JobHttpTargetOutput) ToJobHttpTargetPtrOutputWithContext(ctx context.Context) JobHttpTargetPtrOutput

func (JobHttpTargetOutput) Uri

The full URI path that the request will be sent to.

type JobHttpTargetPtrInput

type JobHttpTargetPtrInput interface {
	pulumi.Input

	ToJobHttpTargetPtrOutput() JobHttpTargetPtrOutput
	ToJobHttpTargetPtrOutputWithContext(context.Context) JobHttpTargetPtrOutput
}

JobHttpTargetPtrInput is an input type that accepts JobHttpTargetArgs, JobHttpTargetPtr and JobHttpTargetPtrOutput values. You can construct a concrete instance of `JobHttpTargetPtrInput` via:

        JobHttpTargetArgs{...}

or:

        nil

type JobHttpTargetPtrOutput

type JobHttpTargetPtrOutput struct{ *pulumi.OutputState }

func (JobHttpTargetPtrOutput) Body

HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible HttpMethod. A base64-encoded string.

func (JobHttpTargetPtrOutput) Elem

func (JobHttpTargetPtrOutput) ElementType

func (JobHttpTargetPtrOutput) ElementType() reflect.Type

func (JobHttpTargetPtrOutput) Headers

This map contains the header field names and values. Repeated headers are not supported, but a header value can contain commas.

func (JobHttpTargetPtrOutput) HttpMethod

Which HTTP method to use for the request.

func (JobHttpTargetPtrOutput) OauthToken

Contains information needed for generating an OAuth token. This type of authorization should be used when sending requests to a GCP endpoint. Structure is documented below.

func (JobHttpTargetPtrOutput) OidcToken

Contains information needed for generating an OpenID Connect token. This type of authorization should be used when sending requests to third party endpoints or Cloud Run. Structure is documented below.

func (JobHttpTargetPtrOutput) ToJobHttpTargetPtrOutput

func (o JobHttpTargetPtrOutput) ToJobHttpTargetPtrOutput() JobHttpTargetPtrOutput

func (JobHttpTargetPtrOutput) ToJobHttpTargetPtrOutputWithContext

func (o JobHttpTargetPtrOutput) ToJobHttpTargetPtrOutputWithContext(ctx context.Context) JobHttpTargetPtrOutput

func (JobHttpTargetPtrOutput) Uri

The full URI path that the request will be sent to.

type JobInput

type JobInput interface {
	pulumi.Input

	ToJobOutput() JobOutput
	ToJobOutputWithContext(ctx context.Context) JobOutput
}

type JobMap

type JobMap map[string]JobInput

func (JobMap) ElementType

func (JobMap) ElementType() reflect.Type

func (JobMap) ToJobMapOutput

func (i JobMap) ToJobMapOutput() JobMapOutput

func (JobMap) ToJobMapOutputWithContext

func (i JobMap) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput

type JobMapInput

type JobMapInput interface {
	pulumi.Input

	ToJobMapOutput() JobMapOutput
	ToJobMapOutputWithContext(context.Context) JobMapOutput
}

JobMapInput is an input type that accepts JobMap and JobMapOutput values. You can construct a concrete instance of `JobMapInput` via:

JobMap{ "key": JobArgs{...} }

type JobMapOutput

type JobMapOutput struct{ *pulumi.OutputState }

func (JobMapOutput) ElementType

func (JobMapOutput) ElementType() reflect.Type

func (JobMapOutput) MapIndex

func (o JobMapOutput) MapIndex(k pulumi.StringInput) JobOutput

func (JobMapOutput) ToJobMapOutput

func (o JobMapOutput) ToJobMapOutput() JobMapOutput

func (JobMapOutput) ToJobMapOutputWithContext

func (o JobMapOutput) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput

type JobOutput

type JobOutput struct{ *pulumi.OutputState }

func (JobOutput) AppEngineHttpTarget

func (o JobOutput) AppEngineHttpTarget() JobAppEngineHttpTargetPtrOutput

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

func (JobOutput) AttemptDeadline

func (o JobOutput) AttemptDeadline() pulumi.StringPtrOutput

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.
  • **Note**: For PubSub targets, this field is ignored - setting it will introduce an unresolvable diff. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"

func (JobOutput) Description

func (o JobOutput) Description() pulumi.StringPtrOutput

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

func (JobOutput) ElementType

func (JobOutput) ElementType() reflect.Type

func (JobOutput) HttpTarget

func (o JobOutput) HttpTarget() JobHttpTargetPtrOutput

HTTP target. If the job providers a httpTarget the cron will send a request to the targeted url Structure is documented below.

func (JobOutput) Name

func (o JobOutput) Name() pulumi.StringOutput

The name of the job.

***

func (JobOutput) Paused

func (o JobOutput) Paused() pulumi.BoolOutput

Sets the job to a paused state. Jobs default to being enabled when this property is not set.

func (JobOutput) Project

func (o JobOutput) Project() pulumi.StringOutput

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

func (JobOutput) PubsubTarget

func (o JobOutput) PubsubTarget() JobPubsubTargetPtrOutput

Pub/Sub target If the job providers a Pub/Sub target the cron will publish a message to the provided topic Structure is documented below.

func (JobOutput) Region

func (o JobOutput) Region() pulumi.StringOutput

Region where the scheduler job resides. If it is not provided, this provider will use the provider default.

func (JobOutput) RetryConfig

func (o JobOutput) RetryConfig() JobRetryConfigPtrOutput

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 Structure is documented below.

func (JobOutput) Schedule

func (o JobOutput) Schedule() pulumi.StringPtrOutput

Describes the schedule on which the job will be executed.

func (JobOutput) State

func (o JobOutput) State() pulumi.StringOutput

State of the job.

func (JobOutput) TimeZone

func (o JobOutput) TimeZone() pulumi.StringPtrOutput

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.

func (JobOutput) ToJobOutput

func (o JobOutput) ToJobOutput() JobOutput

func (JobOutput) ToJobOutputWithContext

func (o JobOutput) ToJobOutputWithContext(ctx context.Context) JobOutput

type JobPubsubTarget

type JobPubsubTarget struct {
	// Attributes for PubsubMessage.
	// Pubsub message must contain either non-empty data, or at least one attribute.
	Attributes map[string]string `pulumi:"attributes"`
	// The message payload for PubsubMessage.
	// Pubsub message must contain either non-empty data, or at least one attribute.
	// A base64-encoded string.
	Data *string `pulumi:"data"`
	// The full resource name for the Cloud Pub/Sub topic to which
	// messages will be published when a job is delivered. ~>**NOTE:**
	// The topic name must be in the same format as required by PubSub's
	// PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.
	TopicName string `pulumi:"topicName"`
}

type JobPubsubTargetArgs

type JobPubsubTargetArgs struct {
	// Attributes for PubsubMessage.
	// Pubsub message must contain either non-empty data, or at least one attribute.
	Attributes pulumi.StringMapInput `pulumi:"attributes"`
	// The message payload for PubsubMessage.
	// Pubsub message must contain either non-empty data, or at least one attribute.
	// A base64-encoded string.
	Data pulumi.StringPtrInput `pulumi:"data"`
	// The full resource name for the Cloud Pub/Sub topic to which
	// messages will be published when a job is delivered. ~>**NOTE:**
	// The topic name must be in the same format as required by PubSub's
	// PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.
	TopicName pulumi.StringInput `pulumi:"topicName"`
}

func (JobPubsubTargetArgs) ElementType

func (JobPubsubTargetArgs) ElementType() reflect.Type

func (JobPubsubTargetArgs) ToJobPubsubTargetOutput

func (i JobPubsubTargetArgs) ToJobPubsubTargetOutput() JobPubsubTargetOutput

func (JobPubsubTargetArgs) ToJobPubsubTargetOutputWithContext

func (i JobPubsubTargetArgs) ToJobPubsubTargetOutputWithContext(ctx context.Context) JobPubsubTargetOutput

func (JobPubsubTargetArgs) ToJobPubsubTargetPtrOutput

func (i JobPubsubTargetArgs) ToJobPubsubTargetPtrOutput() JobPubsubTargetPtrOutput

func (JobPubsubTargetArgs) ToJobPubsubTargetPtrOutputWithContext

func (i JobPubsubTargetArgs) ToJobPubsubTargetPtrOutputWithContext(ctx context.Context) JobPubsubTargetPtrOutput

type JobPubsubTargetInput

type JobPubsubTargetInput interface {
	pulumi.Input

	ToJobPubsubTargetOutput() JobPubsubTargetOutput
	ToJobPubsubTargetOutputWithContext(context.Context) JobPubsubTargetOutput
}

JobPubsubTargetInput is an input type that accepts JobPubsubTargetArgs and JobPubsubTargetOutput values. You can construct a concrete instance of `JobPubsubTargetInput` via:

JobPubsubTargetArgs{...}

type JobPubsubTargetOutput

type JobPubsubTargetOutput struct{ *pulumi.OutputState }

func (JobPubsubTargetOutput) Attributes

Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

func (JobPubsubTargetOutput) Data

The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. A base64-encoded string.

func (JobPubsubTargetOutput) ElementType

func (JobPubsubTargetOutput) ElementType() reflect.Type

func (JobPubsubTargetOutput) ToJobPubsubTargetOutput

func (o JobPubsubTargetOutput) ToJobPubsubTargetOutput() JobPubsubTargetOutput

func (JobPubsubTargetOutput) ToJobPubsubTargetOutputWithContext

func (o JobPubsubTargetOutput) ToJobPubsubTargetOutputWithContext(ctx context.Context) JobPubsubTargetOutput

func (JobPubsubTargetOutput) ToJobPubsubTargetPtrOutput

func (o JobPubsubTargetOutput) ToJobPubsubTargetPtrOutput() JobPubsubTargetPtrOutput

func (JobPubsubTargetOutput) ToJobPubsubTargetPtrOutputWithContext

func (o JobPubsubTargetOutput) ToJobPubsubTargetPtrOutputWithContext(ctx context.Context) JobPubsubTargetPtrOutput

func (JobPubsubTargetOutput) TopicName

The full resource name for the Cloud Pub/Sub topic to which messages will be published when a job is delivered. ~>**NOTE:** The topic name must be in the same format as required by PubSub's PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.

type JobPubsubTargetPtrInput

type JobPubsubTargetPtrInput interface {
	pulumi.Input

	ToJobPubsubTargetPtrOutput() JobPubsubTargetPtrOutput
	ToJobPubsubTargetPtrOutputWithContext(context.Context) JobPubsubTargetPtrOutput
}

JobPubsubTargetPtrInput is an input type that accepts JobPubsubTargetArgs, JobPubsubTargetPtr and JobPubsubTargetPtrOutput values. You can construct a concrete instance of `JobPubsubTargetPtrInput` via:

        JobPubsubTargetArgs{...}

or:

        nil

type JobPubsubTargetPtrOutput

type JobPubsubTargetPtrOutput struct{ *pulumi.OutputState }

func (JobPubsubTargetPtrOutput) Attributes

Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

func (JobPubsubTargetPtrOutput) Data

The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. A base64-encoded string.

func (JobPubsubTargetPtrOutput) Elem

func (JobPubsubTargetPtrOutput) ElementType

func (JobPubsubTargetPtrOutput) ElementType() reflect.Type

func (JobPubsubTargetPtrOutput) ToJobPubsubTargetPtrOutput

func (o JobPubsubTargetPtrOutput) ToJobPubsubTargetPtrOutput() JobPubsubTargetPtrOutput

func (JobPubsubTargetPtrOutput) ToJobPubsubTargetPtrOutputWithContext

func (o JobPubsubTargetPtrOutput) ToJobPubsubTargetPtrOutputWithContext(ctx context.Context) JobPubsubTargetPtrOutput

func (JobPubsubTargetPtrOutput) TopicName

The full resource name for the Cloud Pub/Sub topic to which messages will be published when a job is delivered. ~>**NOTE:** The topic name must be in the same format as required by PubSub's PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.

type JobRetryConfig

type JobRetryConfig struct {
	// The maximum amount of time to wait before retrying a job after it fails.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MaxBackoffDuration *string `pulumi:"maxBackoffDuration"`
	// The time between retries will double maxDoublings times.
	// A job's retry interval starts at minBackoffDuration,
	// then doubles maxDoublings times, then increases linearly,
	// and finally retries retries at intervals of maxBackoffDuration up to retryCount times.
	MaxDoublings *int `pulumi:"maxDoublings"`
	// The time limit for retrying a failed job, measured from time when an execution was first attempted.
	// If specified with retryCount, the job will be retried until both limits are reached.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MaxRetryDuration *string `pulumi:"maxRetryDuration"`
	// The minimum amount of time to wait before retrying a job after it fails.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MinBackoffDuration *string `pulumi:"minBackoffDuration"`
	// The number of attempts that the system will make to run a
	// job using the exponential backoff procedure described by maxDoublings.
	// Values greater than 5 and negative values are not allowed.
	RetryCount *int `pulumi:"retryCount"`
}

type JobRetryConfigArgs

type JobRetryConfigArgs struct {
	// The maximum amount of time to wait before retrying a job after it fails.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MaxBackoffDuration pulumi.StringPtrInput `pulumi:"maxBackoffDuration"`
	// The time between retries will double maxDoublings times.
	// A job's retry interval starts at minBackoffDuration,
	// then doubles maxDoublings times, then increases linearly,
	// and finally retries retries at intervals of maxBackoffDuration up to retryCount times.
	MaxDoublings pulumi.IntPtrInput `pulumi:"maxDoublings"`
	// The time limit for retrying a failed job, measured from time when an execution was first attempted.
	// If specified with retryCount, the job will be retried until both limits are reached.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MaxRetryDuration pulumi.StringPtrInput `pulumi:"maxRetryDuration"`
	// The minimum amount of time to wait before retrying a job after it fails.
	// A duration in seconds with up to nine fractional digits, terminated by 's'.
	MinBackoffDuration pulumi.StringPtrInput `pulumi:"minBackoffDuration"`
	// The number of attempts that the system will make to run a
	// job using the exponential backoff procedure described by maxDoublings.
	// Values greater than 5 and negative values are not allowed.
	RetryCount pulumi.IntPtrInput `pulumi:"retryCount"`
}

func (JobRetryConfigArgs) ElementType

func (JobRetryConfigArgs) ElementType() reflect.Type

func (JobRetryConfigArgs) ToJobRetryConfigOutput

func (i JobRetryConfigArgs) ToJobRetryConfigOutput() JobRetryConfigOutput

func (JobRetryConfigArgs) ToJobRetryConfigOutputWithContext

func (i JobRetryConfigArgs) ToJobRetryConfigOutputWithContext(ctx context.Context) JobRetryConfigOutput

func (JobRetryConfigArgs) ToJobRetryConfigPtrOutput

func (i JobRetryConfigArgs) ToJobRetryConfigPtrOutput() JobRetryConfigPtrOutput

func (JobRetryConfigArgs) ToJobRetryConfigPtrOutputWithContext

func (i JobRetryConfigArgs) ToJobRetryConfigPtrOutputWithContext(ctx context.Context) JobRetryConfigPtrOutput

type JobRetryConfigInput

type JobRetryConfigInput interface {
	pulumi.Input

	ToJobRetryConfigOutput() JobRetryConfigOutput
	ToJobRetryConfigOutputWithContext(context.Context) JobRetryConfigOutput
}

JobRetryConfigInput is an input type that accepts JobRetryConfigArgs and JobRetryConfigOutput values. You can construct a concrete instance of `JobRetryConfigInput` via:

JobRetryConfigArgs{...}

type JobRetryConfigOutput

type JobRetryConfigOutput struct{ *pulumi.OutputState }

func (JobRetryConfigOutput) ElementType

func (JobRetryConfigOutput) ElementType() reflect.Type

func (JobRetryConfigOutput) MaxBackoffDuration

func (o JobRetryConfigOutput) MaxBackoffDuration() pulumi.StringPtrOutput

The maximum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigOutput) MaxDoublings

func (o JobRetryConfigOutput) MaxDoublings() pulumi.IntPtrOutput

The time between retries will double maxDoublings times. A job's retry interval starts at minBackoffDuration, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoffDuration up to retryCount times.

func (JobRetryConfigOutput) MaxRetryDuration

func (o JobRetryConfigOutput) MaxRetryDuration() pulumi.StringPtrOutput

The time limit for retrying a failed job, measured from time when an execution was first attempted. If specified with retryCount, the job will be retried until both limits are reached. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigOutput) MinBackoffDuration

func (o JobRetryConfigOutput) MinBackoffDuration() pulumi.StringPtrOutput

The minimum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigOutput) RetryCount

func (o JobRetryConfigOutput) RetryCount() pulumi.IntPtrOutput

The number of attempts that the system will make to run a job using the exponential backoff procedure described by maxDoublings. Values greater than 5 and negative values are not allowed.

func (JobRetryConfigOutput) ToJobRetryConfigOutput

func (o JobRetryConfigOutput) ToJobRetryConfigOutput() JobRetryConfigOutput

func (JobRetryConfigOutput) ToJobRetryConfigOutputWithContext

func (o JobRetryConfigOutput) ToJobRetryConfigOutputWithContext(ctx context.Context) JobRetryConfigOutput

func (JobRetryConfigOutput) ToJobRetryConfigPtrOutput

func (o JobRetryConfigOutput) ToJobRetryConfigPtrOutput() JobRetryConfigPtrOutput

func (JobRetryConfigOutput) ToJobRetryConfigPtrOutputWithContext

func (o JobRetryConfigOutput) ToJobRetryConfigPtrOutputWithContext(ctx context.Context) JobRetryConfigPtrOutput

type JobRetryConfigPtrInput

type JobRetryConfigPtrInput interface {
	pulumi.Input

	ToJobRetryConfigPtrOutput() JobRetryConfigPtrOutput
	ToJobRetryConfigPtrOutputWithContext(context.Context) JobRetryConfigPtrOutput
}

JobRetryConfigPtrInput is an input type that accepts JobRetryConfigArgs, JobRetryConfigPtr and JobRetryConfigPtrOutput values. You can construct a concrete instance of `JobRetryConfigPtrInput` via:

        JobRetryConfigArgs{...}

or:

        nil

type JobRetryConfigPtrOutput

type JobRetryConfigPtrOutput struct{ *pulumi.OutputState }

func (JobRetryConfigPtrOutput) Elem

func (JobRetryConfigPtrOutput) ElementType

func (JobRetryConfigPtrOutput) ElementType() reflect.Type

func (JobRetryConfigPtrOutput) MaxBackoffDuration

func (o JobRetryConfigPtrOutput) MaxBackoffDuration() pulumi.StringPtrOutput

The maximum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigPtrOutput) MaxDoublings

func (o JobRetryConfigPtrOutput) MaxDoublings() pulumi.IntPtrOutput

The time between retries will double maxDoublings times. A job's retry interval starts at minBackoffDuration, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoffDuration up to retryCount times.

func (JobRetryConfigPtrOutput) MaxRetryDuration

func (o JobRetryConfigPtrOutput) MaxRetryDuration() pulumi.StringPtrOutput

The time limit for retrying a failed job, measured from time when an execution was first attempted. If specified with retryCount, the job will be retried until both limits are reached. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigPtrOutput) MinBackoffDuration

func (o JobRetryConfigPtrOutput) MinBackoffDuration() pulumi.StringPtrOutput

The minimum amount of time to wait before retrying a job after it fails. A duration in seconds with up to nine fractional digits, terminated by 's'.

func (JobRetryConfigPtrOutput) RetryCount

The number of attempts that the system will make to run a job using the exponential backoff procedure described by maxDoublings. Values greater than 5 and negative values are not allowed.

func (JobRetryConfigPtrOutput) ToJobRetryConfigPtrOutput

func (o JobRetryConfigPtrOutput) ToJobRetryConfigPtrOutput() JobRetryConfigPtrOutput

func (JobRetryConfigPtrOutput) ToJobRetryConfigPtrOutputWithContext

func (o JobRetryConfigPtrOutput) ToJobRetryConfigPtrOutputWithContext(ctx context.Context) JobRetryConfigPtrOutput

type JobState

type JobState struct {
	// App Engine HTTP target.
	// If the job providers a App Engine HTTP target the cron will
	// send a request to the service instance
	// Structure is documented below.
	AppEngineHttpTarget JobAppEngineHttpTargetPtrInput
	// 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.
	// * **Note**: For PubSub targets, this field is ignored - setting it will introduce an unresolvable diff.
	//   A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
	AttemptDeadline pulumi.StringPtrInput
	// A human-readable description for the job.
	// This string must not contain more than 500 characters.
	Description pulumi.StringPtrInput
	// HTTP target.
	// If the job providers a httpTarget the cron will
	// send a request to the targeted url
	// Structure is documented below.
	HttpTarget JobHttpTargetPtrInput
	// The name of the job.
	//
	// ***
	Name pulumi.StringPtrInput
	// Sets the job to a paused state. Jobs default to being enabled when this property is not set.
	Paused pulumi.BoolPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Pub/Sub target
	// If the job providers a Pub/Sub target the cron will publish
	// a message to the provided topic
	// Structure is documented below.
	PubsubTarget JobPubsubTargetPtrInput
	// Region where the scheduler job resides. If it is not provided, this provider will use the provider default.
	Region pulumi.StringPtrInput
	// 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
	// Structure is documented below.
	RetryConfig JobRetryConfigPtrInput
	// Describes the schedule on which the job will be executed.
	Schedule pulumi.StringPtrInput
	// State of the job.
	State pulumi.StringPtrInput
	// 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.
	TimeZone pulumi.StringPtrInput
}

func (JobState) ElementType

func (JobState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL