UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

184 lines (183 loc) 5.43 kB
import * as pulumi from "@pulumi/pulumi"; /** * Resource for creating a Harness Repo Webhook. */ export declare class RepoWebhook extends pulumi.CustomResource { /** * Get an existing RepoWebhook 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<pulumi.ID>, state?: RepoWebhookState, opts?: pulumi.CustomResourceOptions): RepoWebhook; /** * Returns true if the given object is an instance of RepoWebhook. 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 RepoWebhook; /** * Timestamp when the webhook was created. */ readonly created: pulumi.Output<number>; /** * ID of the user who created the webhook. */ readonly createdBy: pulumi.Output<number>; /** * Description of the webhook. */ readonly description: pulumi.Output<string | undefined>; /** * Webhook enabled. */ readonly enabled: pulumi.Output<boolean>; /** * Created webhook has secret encoding. */ readonly hasSecret: pulumi.Output<boolean>; /** * Identifier of the webhook. */ readonly identifier: pulumi.Output<string>; /** * Allow insecure connections for provided webhook URL. */ readonly insecure: pulumi.Output<boolean>; /** * Unique identifier of the organization. */ readonly orgId: pulumi.Output<string | undefined>; /** * Unique identifier of the project. */ readonly projectId: pulumi.Output<string | undefined>; /** * Identifier of the repository. */ readonly repoIdentifier: pulumi.Output<string>; /** * Webhook secret which will be used to sign the webhook payload. */ readonly secret: pulumi.Output<string | undefined>; /** * List of triggers of the webhook (keep empty for all triggers). */ readonly triggers: pulumi.Output<string[] | undefined>; /** * URL that's called by the webhook. */ readonly url: pulumi.Output<string>; /** * Create a RepoWebhook 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: RepoWebhookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepoWebhook resources. */ export interface RepoWebhookState { /** * Timestamp when the webhook was created. */ created?: pulumi.Input<number>; /** * ID of the user who created the webhook. */ createdBy?: pulumi.Input<number>; /** * Description of the webhook. */ description?: pulumi.Input<string>; /** * Webhook enabled. */ enabled?: pulumi.Input<boolean>; /** * Created webhook has secret encoding. */ hasSecret?: pulumi.Input<boolean>; /** * Identifier of the webhook. */ identifier?: pulumi.Input<string>; /** * Allow insecure connections for provided webhook URL. */ insecure?: pulumi.Input<boolean>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * Identifier of the repository. */ repoIdentifier?: pulumi.Input<string>; /** * Webhook secret which will be used to sign the webhook payload. */ secret?: pulumi.Input<string>; /** * List of triggers of the webhook (keep empty for all triggers). */ triggers?: pulumi.Input<pulumi.Input<string>[]>; /** * URL that's called by the webhook. */ url?: pulumi.Input<string>; } /** * The set of arguments for constructing a RepoWebhook resource. */ export interface RepoWebhookArgs { /** * Description of the webhook. */ description?: pulumi.Input<string>; /** * Webhook enabled. */ enabled: pulumi.Input<boolean>; /** * Identifier of the webhook. */ identifier: pulumi.Input<string>; /** * Allow insecure connections for provided webhook URL. */ insecure: pulumi.Input<boolean>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * Identifier of the repository. */ repoIdentifier: pulumi.Input<string>; /** * Webhook secret which will be used to sign the webhook payload. */ secret?: pulumi.Input<string>; /** * List of triggers of the webhook (keep empty for all triggers). */ triggers?: pulumi.Input<pulumi.Input<string>[]>; /** * URL that's called by the webhook. */ url: pulumi.Input<string>; }