import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to create and manage an autolink reference for a single repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const repo = new github.Repository("repo", { * name: "my-repo", * description: "GitHub repo managed by Terraform", * "private": false, * }); * const autolink = new github.RepositoryAutolinkReference("autolink", { * repository: repo.name, * keyPrefix: "TICKET-", * targetUrlTemplate: "https://example.com/TICKET?query=", * }); * ``` * * ## Import * * ### Import by key prefix * * ```sh * $ pulumi import github:index/repositoryAutolinkReference:RepositoryAutolinkReference auto oof/OOF- * ``` */ export declare class RepositoryAutolinkReference extends pulumi.CustomResource { /** * Get an existing RepositoryAutolinkReference 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?: RepositoryAutolinkReferenceState, opts?: pulumi.CustomResourceOptions): RepositoryAutolinkReference; /** * Returns true if the given object is an instance of RepositoryAutolinkReference. 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 RepositoryAutolinkReference; /** * An etag representing the autolink reference object. */ readonly etag: pulumi.Output; /** * Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true. */ readonly isAlphanumeric: pulumi.Output; /** * This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ readonly keyPrefix: pulumi.Output; /** * The repository of the autolink reference. */ readonly repository: pulumi.Output; /** * The template of the target URL used for the links; must be a valid URL and contain `` for the reference number */ readonly targetUrlTemplate: pulumi.Output; /** * Create a RepositoryAutolinkReference 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: RepositoryAutolinkReferenceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepositoryAutolinkReference resources. */ export interface RepositoryAutolinkReferenceState { /** * An etag representing the autolink reference object. */ etag?: pulumi.Input; /** * Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true. */ isAlphanumeric?: pulumi.Input; /** * This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ keyPrefix?: pulumi.Input; /** * The repository of the autolink reference. */ repository?: pulumi.Input; /** * The template of the target URL used for the links; must be a valid URL and contain `` for the reference number */ targetUrlTemplate?: pulumi.Input; } /** * The set of arguments for constructing a RepositoryAutolinkReference resource. */ export interface RepositoryAutolinkReferenceArgs { /** * Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true. */ isAlphanumeric?: pulumi.Input; /** * This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit. */ keyPrefix: pulumi.Input; /** * The repository of the autolink reference. */ repository: pulumi.Input; /** * The template of the target URL used for the links; must be a valid URL and contain `` for the reference number */ targetUrlTemplate: pulumi.Input; }