UNPKG

@pulumiverse/harbor

Version:

A Pulumi package for creating and managing Harbor resources.

112 lines (111 loc) 3.9 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage */ export declare class ProjectWebhook extends pulumi.CustomResource { /** * Get an existing ProjectWebhook 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?: ProjectWebhookState, opts?: pulumi.CustomResourceOptions): ProjectWebhook; /** * Returns true if the given object is an instance of ProjectWebhook. 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 ProjectWebhook; /** * The address of the webhook. */ readonly address: pulumi.Output<string>; readonly authHeader: pulumi.Output<string | undefined>; readonly description: pulumi.Output<string | undefined>; readonly enabled: pulumi.Output<boolean | undefined>; /** * The type events you want to subscript to can be */ readonly eventsTypes: pulumi.Output<string[]>; /** * The name of the webhook that will be created in harbor. */ readonly name: pulumi.Output<string>; /** * The notification type either `http` or `slack`. */ readonly notifyType: pulumi.Output<string>; /** * The project id of the harbor that webhook related to. */ readonly projectId: pulumi.Output<string>; readonly skipCertVerify: pulumi.Output<boolean | undefined>; /** * Create a ProjectWebhook 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: ProjectWebhookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProjectWebhook resources. */ export interface ProjectWebhookState { /** * The address of the webhook. */ address?: pulumi.Input<string>; authHeader?: pulumi.Input<string>; description?: pulumi.Input<string>; enabled?: pulumi.Input<boolean>; /** * The type events you want to subscript to can be */ eventsTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of the webhook that will be created in harbor. */ name?: pulumi.Input<string>; /** * The notification type either `http` or `slack`. */ notifyType?: pulumi.Input<string>; /** * The project id of the harbor that webhook related to. */ projectId?: pulumi.Input<string>; skipCertVerify?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a ProjectWebhook resource. */ export interface ProjectWebhookArgs { /** * The address of the webhook. */ address: pulumi.Input<string>; authHeader?: pulumi.Input<string>; description?: pulumi.Input<string>; enabled?: pulumi.Input<boolean>; /** * The type events you want to subscript to can be */ eventsTypes: pulumi.Input<pulumi.Input<string>[]>; /** * The name of the webhook that will be created in harbor. */ name?: pulumi.Input<string>; /** * The notification type either `http` or `slack`. */ notifyType: pulumi.Input<string>; /** * The project id of the harbor that webhook related to. */ projectId: pulumi.Input<string>; skipCertVerify?: pulumi.Input<boolean>; }