import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * EntryLink represents a link between two Entries. * * To get more information about EntryLink, see: * * * [API documentation](https://cloud.google.com/dataplex/docs/reference/rest/v1/projects.locations.entryGroups.entryLinks) * * How-to Guides * * [Official Documentation](https://cloud.google.com/dataplex/docs) * * ## Example Usage * * ### Dataplex Entry Link Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const entry_group_basic = new gcp.dataplex.EntryGroup("entry-group-basic", { * location: "us-central1", * entryGroupId: "tf-test-entry-group_74000", * project: "1111111111111", * }); * const entry_type_basic = new gcp.dataplex.EntryType("entry-type-basic", { * entryTypeId: "tf-test-entry-type_88722", * location: "us-central1", * project: "1111111111111", * }); * const source = new gcp.dataplex.Entry("source", { * location: "us-central1", * entryGroupId: entry_group_basic.entryGroupId, * entryId: "tf-test-source-entry_75125", * entryType: entry_type_basic.name, * project: "1111111111111", * }); * const target = new gcp.dataplex.Entry("target", { * location: "us-central1", * entryGroupId: entry_group_basic.entryGroupId, * entryId: "tf-test-target-entry_39249", * entryType: entry_type_basic.name, * project: "1111111111111", * }); * const basicEntryLink = new gcp.dataplex.EntryLink("basic_entry_link", { * project: "1111111111111", * location: "us-central1", * entryGroupId: entry_group_basic.entryGroupId, * entryLinkId: "tf-test-entry-link_74391", * entryLinkType: "projects/655216118709/locations/global/entryLinkTypes/related", * entryReferences: [ * { * name: source.name, * }, * { * name: target.name, * }, * ], * }); * ``` * ### Dataplex Entry Link Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const entry_group_full = new gcp.dataplex.EntryGroup("entry-group-full", { * location: "us-central1", * entryGroupId: "tf-test-entry-group_16511", * project: "1111111111111", * }); * const entry_type_full = new gcp.dataplex.EntryType("entry-type-full", { * entryTypeId: "tf-test-entry-type_9106", * location: "us-central1", * project: "1111111111111", * }); * const source = new gcp.dataplex.Entry("source", { * location: "us-central1", * entryGroupId: entry_group_full.entryGroupId, * entryId: "tf-test-source-entry_8493", * entryType: entry_type_full.name, * project: "1111111111111", * }); * const termTestIdFull = new gcp.dataplex.Glossary("term_test_id_full", { * glossaryId: "tf-test-glossary_27169", * location: "us-central1", * }); * const termTestIdFullGlossaryTerm = new gcp.dataplex.GlossaryTerm("term_test_id_full", { * parent: pulumi.interpolate`projects/${termTestIdFull.project}/locations/us-central1/glossaries/${termTestIdFull.glossaryId}`, * glossaryId: termTestIdFull.glossaryId, * location: "us-central1", * termId: "tf-test-term-full_75223", * labels: { * tag: "test-tf", * }, * displayName: "terraform term", * description: "term created by Terraform", * }); * const fullEntryLink = new gcp.dataplex.EntryLink("full_entry_link", { * project: "1111111111111", * location: "us-central1", * entryGroupId: entry_group_full.entryGroupId, * entryLinkId: "tf-test-entry-link_41819", * entryLinkType: "projects/655216118709/locations/global/entryLinkTypes/definition", * entryReferences: [ * { * name: source.name, * type: "SOURCE", * path: "", * }, * { * name: pulumi.all([entry_group_full.project, entry_group_full.project, termTestIdFull.glossaryId, termTestIdFullGlossaryTerm.termId]).apply(([entry-group-fullProject, entry-group-fullProject1, glossaryId, termId]) => `projects/${entry_group_fullProject}/locations/us-central1/entryGroups/@dataplex/entries/projects/${entry_group_fullProject1}/locations/us-central1/glossaries/${glossaryId}/terms/${termId}`), * type: "TARGET", * }, * ], * }); * ``` * * ## Import * * EntryLink can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}/entryLinks/{{entry_link_id}}` * * * `{{project}}/{{location}}/{{entry_group_id}}/{{entry_link_id}}` * * * `{{location}}/{{entry_group_id}}/{{entry_link_id}}` * * When using the `pulumi import` command, EntryLink can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:dataplex/entryLink:EntryLink default projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}/entryLinks/{{entry_link_id}} * ``` * * ```sh * $ pulumi import gcp:dataplex/entryLink:EntryLink default {{project}}/{{location}}/{{entry_group_id}}/{{entry_link_id}} * ``` * * ```sh * $ pulumi import gcp:dataplex/entryLink:EntryLink default {{location}}/{{entry_group_id}}/{{entry_link_id}} * ``` */ export declare class EntryLink extends pulumi.CustomResource { /** * Get an existing EntryLink 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?: EntryLinkState, opts?: pulumi.CustomResourceOptions): EntryLink; /** * Returns true if the given object is an instance of EntryLink. 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 EntryLink; /** * The time when the Entry Link was created. */ readonly createTime: pulumi.Output; /** * The id of the entry group this entry link is in. */ readonly entryGroupId: pulumi.Output; /** * The id of the entry link to create. */ readonly entryLinkId: pulumi.Output; /** * Relative resource name of the Entry Link Type used to create this Entry Link. For example: * projects/dataplex-types/locations/global/entryLinkTypes/definition */ readonly entryLinkType: pulumi.Output; /** * Specifies the Entries referenced in the Entry Link. There should be exactly two entry references. * Structure is documented below. */ readonly entryReferences: pulumi.Output; /** * The location for the entry. */ readonly location: pulumi.Output; /** * The relative resource name of the Entry Link, of the form: * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id} */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The time when the Entry Link was last updated. */ readonly updateTime: pulumi.Output; /** * Create a EntryLink 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: EntryLinkArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EntryLink resources. */ export interface EntryLinkState { /** * The time when the Entry Link was created. */ createTime?: pulumi.Input; /** * The id of the entry group this entry link is in. */ entryGroupId?: pulumi.Input; /** * The id of the entry link to create. */ entryLinkId?: pulumi.Input; /** * Relative resource name of the Entry Link Type used to create this Entry Link. For example: * projects/dataplex-types/locations/global/entryLinkTypes/definition */ entryLinkType?: pulumi.Input; /** * Specifies the Entries referenced in the Entry Link. There should be exactly two entry references. * Structure is documented below. */ entryReferences?: pulumi.Input[]>; /** * The location for the entry. */ location?: pulumi.Input; /** * The relative resource name of the Entry Link, of the form: * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id} */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The time when the Entry Link was last updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a EntryLink resource. */ export interface EntryLinkArgs { /** * The id of the entry group this entry link is in. */ entryGroupId: pulumi.Input; /** * The id of the entry link to create. */ entryLinkId: pulumi.Input; /** * Relative resource name of the Entry Link Type used to create this Entry Link. For example: * projects/dataplex-types/locations/global/entryLinkTypes/definition */ entryLinkType: pulumi.Input; /** * Specifies the Entries referenced in the Entry Link. There should be exactly two entry references. * Structure is documented below. */ entryReferences: pulumi.Input[]>; /** * The location for the entry. */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; }