import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleWorker = new cloudflare.Worker("example_worker", { * accountId: "023e105f4ecef8ad9ca31a8372d0c353", * name: "my-worker", * logpush: true, * observability: { * enabled: true, * headSamplingRate: 1, * logs: { * enabled: true, * headSamplingRate: 1, * invocationLogs: true, * }, * }, * subdomain: { * enabled: true, * previewsEnabled: true, * }, * tags: [ * "my-team", * "my-public-api", * ], * tailConsumers: [{ * name: "my-tail-consumer", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/worker:Worker example '/' * ``` */ export declare class Worker extends pulumi.CustomResource { /** * Get an existing Worker resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: WorkerState, opts?: pulumi.CustomResourceOptions): Worker; /** * Returns true if the given object is an instance of Worker. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Worker; /** * Identifier. */ readonly accountId: pulumi.Output; /** * When the Worker was created. */ readonly createdOn: pulumi.Output; /** * Whether logpush is enabled for the Worker. */ readonly logpush: pulumi.Output; /** * Name of the Worker. */ readonly name: pulumi.Output; /** * Observability settings for the Worker. */ readonly observability: pulumi.Output; /** * Other resources that reference the Worker and depend on it existing. */ readonly references: pulumi.Output; /** * Subdomain settings for the Worker. */ readonly subdomain: pulumi.Output; /** * Tags associated with the Worker. */ readonly tags: pulumi.Output; /** * Other Workers that should consume logs from the Worker. */ readonly tailConsumers: pulumi.Output; /** * When the Worker was most recently updated. */ readonly updatedOn: pulumi.Output; /** * Create a Worker resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: WorkerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Worker resources. */ export interface WorkerState { /** * Identifier. */ accountId?: pulumi.Input; /** * When the Worker was created. */ createdOn?: pulumi.Input; /** * Whether logpush is enabled for the Worker. */ logpush?: pulumi.Input; /** * Name of the Worker. */ name?: pulumi.Input; /** * Observability settings for the Worker. */ observability?: pulumi.Input; /** * Other resources that reference the Worker and depend on it existing. */ references?: pulumi.Input; /** * Subdomain settings for the Worker. */ subdomain?: pulumi.Input; /** * Tags associated with the Worker. */ tags?: pulumi.Input[]>; /** * Other Workers that should consume logs from the Worker. */ tailConsumers?: pulumi.Input[]>; /** * When the Worker was most recently updated. */ updatedOn?: pulumi.Input; } /** * The set of arguments for constructing a Worker resource. */ export interface WorkerArgs { /** * Identifier. */ accountId: pulumi.Input; /** * Whether logpush is enabled for the Worker. */ logpush?: pulumi.Input; /** * Name of the Worker. */ name: pulumi.Input; /** * Observability settings for the Worker. */ observability?: pulumi.Input; /** * Subdomain settings for the Worker. */ subdomain?: pulumi.Input; /** * Tags associated with the Worker. */ tags?: pulumi.Input[]>; /** * Other Workers that should consume logs from the Worker. */ tailConsumers?: pulumi.Input[]>; }