EntryLink class
EntryLink represents a link between two Entries.
To get more information about EntryLink, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage
Dataplex Entry Link Basic
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_12125",
project: "1111111111111",
});
const entry_type_basic = new gcp.dataplex.EntryType("entry-type-basic", {
entryTypeId: "tf-test-entry-type_15022",
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_82749",
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_89648",
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_64612",
entryLinkType: "projects/655216118709/locations/global/entryLinkTypes/related",
entryReferences: [
{
name: source.name,
},
{
name: target.name,
},
],
});
import pulumi
import pulumi_gcp as gcp
entry_group_basic = gcp.dataplex.EntryGroup("entry-group-basic",
location="us-central1",
entry_group_id="tf-test-entry-group_12125",
project="1111111111111")
entry_type_basic = gcp.dataplex.EntryType("entry-type-basic",
entry_type_id="tf-test-entry-type_15022",
location="us-central1",
project="1111111111111")
source = gcp.dataplex.Entry("source",
location="us-central1",
entry_group_id=entry_group_basic.entry_group_id,
entry_id="tf-test-source-entry_82749",
entry_type=entry_type_basic.name,
project="1111111111111")
target = gcp.dataplex.Entry("target",
location="us-central1",
entry_group_id=entry_group_basic.entry_group_id,
entry_id="tf-test-target-entry_89648",
entry_type=entry_type_basic.name,
project="1111111111111")
basic_entry_link = gcp.dataplex.EntryLink("basic_entry_link",
project="1111111111111",
location="us-central1",
entry_group_id=entry_group_basic.entry_group_id,
entry_link_id="tf-test-entry-link_64612",
entry_link_type="projects/655216118709/locations/global/entryLinkTypes/related",
entry_references=[
{
"name": source.name,
},
{
"name": target.name,
},
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var entry_group_basic = new Gcp.DataPlex.EntryGroup("entry-group-basic", new()
{
Location = "us-central1",
EntryGroupId = "tf-test-entry-group_12125",
Project = "1111111111111",
});
var entry_type_basic = new Gcp.DataPlex.EntryType("entry-type-basic", new()
{
EntryTypeId = "tf-test-entry-type_15022",
Location = "us-central1",
Project = "1111111111111",
});
var source = new Gcp.DataPlex.Entry("source", new()
{
Location = "us-central1",
EntryGroupId = entry_group_basic.EntryGroupId,
EntryId = "tf-test-source-entry_82749",
EntryType = entry_type_basic.Name,
Project = "1111111111111",
});
var target = new Gcp.DataPlex.Entry("target", new()
{
Location = "us-central1",
EntryGroupId = entry_group_basic.EntryGroupId,
EntryId = "tf-test-target-entry_89648",
EntryType = entry_type_basic.Name,
Project = "1111111111111",
});
var basicEntryLink = new Gcp.DataPlex.EntryLink("basic_entry_link", new()
{
Project = "1111111111111",
Location = "us-central1",
EntryGroupId = entry_group_basic.EntryGroupId,
EntryLinkId = "tf-test-entry-link_64612",
EntryLinkType = "projects/655216118709/locations/global/entryLinkTypes/related",
EntryReferences = new[]
{
new Gcp.DataPlex.Inputs.EntryLinkEntryReferenceArgs
{
Name = source.Name,
},
new Gcp.DataPlex.Inputs.EntryLinkEntryReferenceArgs
{
Name = target.Name,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/dataplex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
entry_group_basic, err := dataplex.NewEntryGroup(ctx, "entry-group-basic", &dataplex.EntryGroupArgs{
Location: pulumi.String("us-central1"),
EntryGroupId: pulumi.String("tf-test-entry-group_12125"),
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
entry_type_basic, err := dataplex.NewEntryType(ctx, "entry-type-basic", &dataplex.EntryTypeArgs{
EntryTypeId: pulumi.String("tf-test-entry-type_15022"),
Location: pulumi.String("us-central1"),
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
source, err := dataplex.NewEntry(ctx, "source", &dataplex.EntryArgs{
Location: pulumi.String("us-central1"),
EntryGroupId: entry_group_basic.EntryGroupId,
EntryId: pulumi.String("tf-test-source-entry_82749"),
EntryType: entry_type_basic.Name,
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
target, err := dataplex.NewEntry(ctx, "target", &dataplex.EntryArgs{
Location: pulumi.String("us-central1"),
EntryGroupId: entry_group_basic.EntryGroupId,
EntryId: pulumi.String("tf-test-target-entry_89648"),
EntryType: entry_type_basic.Name,
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
_, err = dataplex.NewEntryLink(ctx, "basic_entry_link", &dataplex.EntryLinkArgs{
Project: pulumi.String("1111111111111"),
Location: pulumi.String("us-central1"),
EntryGroupId: entry_group_basic.EntryGroupId,
EntryLinkId: pulumi.String("tf-test-entry-link_64612"),
EntryLinkType: pulumi.String("projects/655216118709/locations/global/entryLinkTypes/related"),
EntryReferences: dataplex.EntryLinkEntryReferenceArray{
&dataplex.EntryLinkEntryReferenceArgs{
Name: source.Name,
},
&dataplex.EntryLinkEntryReferenceArgs{
Name: target.Name,
},
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_dataplex_entrygroup" "entry-group-basic" {
location = "us-central1"
entry_group_id = "tf-test-entry-group_12125"
project = "1111111111111"
}
resource "gcp_dataplex_entry" "source" {
location = "us-central1"
entry_group_id = gcp_dataplex_entrygroup.entry-group-basic.entry_group_id
entry_id = "tf-test-source-entry_82749"
entry_type = gcp_dataplex_entrytype.entry-type-basic.name
project = "1111111111111"
}
resource "gcp_dataplex_entrytype" "entry-type-basic" {
entry_type_id = "tf-test-entry-type_15022"
location = "us-central1"
project = "1111111111111"
}
resource "gcp_dataplex_entry" "target" {
location = "us-central1"
entry_group_id = gcp_dataplex_entrygroup.entry-group-basic.entry_group_id
entry_id = "tf-test-target-entry_89648"
entry_type = gcp_dataplex_entrytype.entry-type-basic.name
project = "1111111111111"
}
resource "gcp_dataplex_entrylink" "basic_entry_link" {
project = "1111111111111"
location = "us-central1"
entry_group_id = gcp_dataplex_entrygroup.entry-group-basic.entry_group_id
entry_link_id = "tf-test-entry-link_64612"
entry_link_type = "projects/655216118709/locations/global/entryLinkTypes/related"
entry_references {
name = gcp_dataplex_entry.source.name
}
entry_references {
name = gcp_dataplex_entry.target.name
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.EntryGroup;
import com.pulumi.gcp.dataplex.EntryGroupArgs;
import com.pulumi.gcp.dataplex.EntryType;
import com.pulumi.gcp.dataplex.EntryTypeArgs;
import com.pulumi.gcp.dataplex.Entry;
import com.pulumi.gcp.dataplex.EntryArgs;
import com.pulumi.gcp.dataplex.EntryLink;
import com.pulumi.gcp.dataplex.EntryLinkArgs;
import com.pulumi.gcp.dataplex.inputs.EntryLinkEntryReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var entry_group_basic = new EntryGroup("entry-group-basic", EntryGroupArgs.builder()
.location("us-central1")
.entryGroupId("tf-test-entry-group_12125")
.project("1111111111111")
.build());
var entry_type_basic = new EntryType("entry-type-basic", EntryTypeArgs.builder()
.entryTypeId("tf-test-entry-type_15022")
.location("us-central1")
.project("1111111111111")
.build());
var source = new Entry("source", EntryArgs.builder()
.location("us-central1")
.entryGroupId(entry_group_basic.entryGroupId())
.entryId("tf-test-source-entry_82749")
.entryType(entry_type_basic.name())
.project("1111111111111")
.build());
var target = new Entry("target", EntryArgs.builder()
.location("us-central1")
.entryGroupId(entry_group_basic.entryGroupId())
.entryId("tf-test-target-entry_89648")
.entryType(entry_type_basic.name())
.project("1111111111111")
.build());
var basicEntryLink = new EntryLink("basicEntryLink", EntryLinkArgs.builder()
.project("1111111111111")
.location("us-central1")
.entryGroupId(entry_group_basic.entryGroupId())
.entryLinkId("tf-test-entry-link_64612")
.entryLinkType("projects/655216118709/locations/global/entryLinkTypes/related")
.entryReferences(
EntryLinkEntryReferenceArgs.builder()
.name(source.name())
.build(),
EntryLinkEntryReferenceArgs.builder()
.name(target.name())
.build())
.build());
}
}
resources:
entry-group-basic:
type: gcp:dataplex:EntryGroup
properties:
location: us-central1
entryGroupId: tf-test-entry-group_12125
project: '1111111111111'
source:
type: gcp:dataplex:Entry
properties:
location: us-central1
entryGroupId: ${["entry-group-basic"].entryGroupId}
entryId: tf-test-source-entry_82749
entryType: ${["entry-type-basic"].name}
project: '1111111111111'
entry-type-basic:
type: gcp:dataplex:EntryType
properties:
entryTypeId: tf-test-entry-type_15022
location: us-central1
project: '1111111111111'
target:
type: gcp:dataplex:Entry
properties:
location: us-central1
entryGroupId: ${["entry-group-basic"].entryGroupId}
entryId: tf-test-target-entry_89648
entryType: ${["entry-type-basic"].name}
project: '1111111111111'
basicEntryLink:
type: gcp:dataplex:EntryLink
name: basic_entry_link
properties:
project: '1111111111111'
location: us-central1
entryGroupId: ${["entry-group-basic"].entryGroupId}
entryLinkId: tf-test-entry-link_64612
entryLinkType: projects/655216118709/locations/global/entryLinkTypes/related
entryReferences:
- name: ${source.name}
- name: ${target.name}
Dataplex Entry Link Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumiverse/time";
const entry_group_full = new gcp.dataplex.EntryGroup("entry-group-full", {
location: "us-central1",
entryGroupId: "tf-test-entry-group_34242",
project: "1111111111111",
});
const entry_type_full = new gcp.dataplex.EntryType("entry-type-full", {
entryTypeId: "tf-test-entry-type_22061",
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_9723",
entryType: entry_type_full.name,
project: "1111111111111",
});
const termTestIdFull = new gcp.dataplex.Glossary("term_test_id_full", {
glossaryId: "tf-test-glossary_60461",
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_45397",
labels: {
tag: "test-tf",
},
displayName: "terraform term",
description: "term created by Terraform",
});
// Introduce a 45-second wait after the glossary resource creation
const wait_for_sync = new time.Sleep("wait-for-sync", {createDuration: "45s"}, {
dependsOn: [termTestIdFullGlossaryTerm],
});
const fullEntryLink = new gcp.dataplex.EntryLink("full_entry_link", {
project: "1111111111111",
location: "us-central1",
entryGroupId: entry_group_full.entryGroupId,
entryLinkId: "tf-test-entry-link_16451",
entryLinkType: "projects/655216118709/locations/global/entryLinkTypes/definition",
entryReferences: [
{
name: source.name,
type: "SOURCE",
path: "",
},
{
name: pulumi.interpolate`projects/${entry_group_full.project}/locations/us-central1/entryGroups/@dataplex/entries/projects/${entry_group_full.project}/locations/us-central1/glossaries/${termTestIdFull.glossaryId}/terms/${termTestIdFullGlossaryTerm.termId}`,
type: "TARGET",
},
],
}, {
dependsOn: [wait_for_sync],
});
import pulumi
import pulumi_gcp as gcp
import pulumiverse_time as time
entry_group_full = gcp.dataplex.EntryGroup("entry-group-full",
location="us-central1",
entry_group_id="tf-test-entry-group_34242",
project="1111111111111")
entry_type_full = gcp.dataplex.EntryType("entry-type-full",
entry_type_id="tf-test-entry-type_22061",
location="us-central1",
project="1111111111111")
source = gcp.dataplex.Entry("source",
location="us-central1",
entry_group_id=entry_group_full.entry_group_id,
entry_id="tf-test-source-entry_9723",
entry_type=entry_type_full.name,
project="1111111111111")
term_test_id_full = gcp.dataplex.Glossary("term_test_id_full",
glossary_id="tf-test-glossary_60461",
location="us-central1")
term_test_id_full_glossary_term = gcp.dataplex.GlossaryTerm("term_test_id_full",
parent=pulumi.Output.all(
project=term_test_id_full.project,
glossary_id=term_test_id_full.glossary_id
).apply(lambda resolved_outputs: f"projects/{resolved_outputs['project']}/locations/us-central1/glossaries/{resolved_outputs['glossary_id']}")
,
glossary_id=term_test_id_full.glossary_id,
location="us-central1",
term_id="tf-test-term-full_45397",
labels={
"tag": "test-tf",
},
display_name="terraform term",
description="term created by Terraform")
# Introduce a 45-second wait after the glossary resource creation
wait_for_sync = time.Sleep("wait-for-sync", create_duration="45s",
opts = pulumi.ResourceOptions(depends_on=[term_test_id_full_glossary_term]))
full_entry_link = gcp.dataplex.EntryLink("full_entry_link",
project="1111111111111",
location="us-central1",
entry_group_id=entry_group_full.entry_group_id,
entry_link_id="tf-test-entry-link_16451",
entry_link_type="projects/655216118709/locations/global/entryLinkTypes/definition",
entry_references=[
{
"name": source.name,
"type": "SOURCE",
"path": "",
},
{
"name": pulumi.Output.all(
project=entry_group_full.project,
glossary_id=term_test_id_full.glossary_id,
term_id=term_test_id_full_glossary_term.term_id
).apply(lambda resolved_outputs: f"projects/{resolved_outputs['project']}/locations/us-central1/entryGroups/@dataplex/entries/projects/{resolved_outputs['project']}/locations/us-central1/glossaries/{resolved_outputs['glossary_id']}/terms/{resolved_outputs['term_id']}")
,
"type": "TARGET",
},
],
opts = pulumi.ResourceOptions(depends_on=[wait_for_sync]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Time = Pulumiverse.Time;
return await Deployment.RunAsync(() =>
{
var entry_group_full = new Gcp.DataPlex.EntryGroup("entry-group-full", new()
{
Location = "us-central1",
EntryGroupId = "tf-test-entry-group_34242",
Project = "1111111111111",
});
var entry_type_full = new Gcp.DataPlex.EntryType("entry-type-full", new()
{
EntryTypeId = "tf-test-entry-type_22061",
Location = "us-central1",
Project = "1111111111111",
});
var source = new Gcp.DataPlex.Entry("source", new()
{
Location = "us-central1",
EntryGroupId = entry_group_full.EntryGroupId,
EntryId = "tf-test-source-entry_9723",
EntryType = entry_type_full.Name,
Project = "1111111111111",
});
var termTestIdFull = new Gcp.DataPlex.Glossary("term_test_id_full", new()
{
GlossaryId = "tf-test-glossary_60461",
Location = "us-central1",
});
var termTestIdFullGlossaryTerm = new Gcp.DataPlex.GlossaryTerm("term_test_id_full", new()
{
Parent = Output.Tuple(termTestIdFull.Project, termTestIdFull.GlossaryId).Apply(values =>
{
var project = values.Item1;
var glossaryId = values.Item2;
return $"projects/{project}/locations/us-central1/glossaries/{glossaryId}";
}),
GlossaryId = termTestIdFull.GlossaryId,
Location = "us-central1",
TermId = "tf-test-term-full_45397",
Labels =
{
{ "tag", "test-tf" },
},
DisplayName = "terraform term",
Description = "term created by Terraform",
});
// Introduce a 45-second wait after the glossary resource creation
var wait_for_sync = new Time.Sleep("wait-for-sync", new()
{
CreateDuration = "45s",
}, new CustomResourceOptions
{
DependsOn =
{
termTestIdFullGlossaryTerm,
},
});
var fullEntryLink = new Gcp.DataPlex.EntryLink("full_entry_link", new()
{
Project = "1111111111111",
Location = "us-central1",
EntryGroupId = entry_group_full.EntryGroupId,
EntryLinkId = "tf-test-entry-link_16451",
EntryLinkType = "projects/655216118709/locations/global/entryLinkTypes/definition",
EntryReferences = new[]
{
new Gcp.DataPlex.Inputs.EntryLinkEntryReferenceArgs
{
Name = source.Name,
Type = "SOURCE",
Path = "",
},
new Gcp.DataPlex.Inputs.EntryLinkEntryReferenceArgs
{
Name = Output.Tuple(entry_group_full.Project, termTestIdFull.GlossaryId, termTestIdFullGlossaryTerm.TermId).Apply(values =>
{
var project = values.Item1;
var glossaryId = values.Item2;
var termId = values.Item3;
return $"projects/{project}/locations/us-central1/entryGroups/@dataplex/entries/projects/{project}/locations/us-central1/glossaries/{glossaryId}/terms/{termId}";
}),
Type = "TARGET",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
wait_for_sync,
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/dataplex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-time/sdk/go/time"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
entry_group_full, err := dataplex.NewEntryGroup(ctx, "entry-group-full", &dataplex.EntryGroupArgs{
Location: pulumi.String("us-central1"),
EntryGroupId: pulumi.String("tf-test-entry-group_34242"),
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
entry_type_full, err := dataplex.NewEntryType(ctx, "entry-type-full", &dataplex.EntryTypeArgs{
EntryTypeId: pulumi.String("tf-test-entry-type_22061"),
Location: pulumi.String("us-central1"),
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
source, err := dataplex.NewEntry(ctx, "source", &dataplex.EntryArgs{
Location: pulumi.String("us-central1"),
EntryGroupId: entry_group_full.EntryGroupId,
EntryId: pulumi.String("tf-test-source-entry_9723"),
EntryType: entry_type_full.Name,
Project: pulumi.String("1111111111111"),
})
if err != nil {
return err
}
termTestIdFull, err := dataplex.NewGlossary(ctx, "term_test_id_full", &dataplex.GlossaryArgs{
GlossaryId: pulumi.String("tf-test-glossary_60461"),
Location: pulumi.String("us-central1"),
})
if err != nil {
return err
}
termTestIdFullGlossaryTerm, err := dataplex.NewGlossaryTerm(ctx, "term_test_id_full", &dataplex.GlossaryTermArgs{
Parent: pulumi.All(termTestIdFull.Project, termTestIdFull.GlossaryId).ApplyT(func(_args []interface{}) (string, error) {
project := _args[0].(string)
glossaryId := _args[1].(string)
return fmt.Sprintf("projects/%v/locations/us-central1/glossaries/%v", project, glossaryId), nil
}).(pulumi.StringOutput),
GlossaryId: termTestIdFull.GlossaryId,
Location: pulumi.String("us-central1"),
TermId: pulumi.String("tf-test-term-full_45397"),
Labels: pulumi.StringMap{
"tag": pulumi.String("test-tf"),
},
DisplayName: pulumi.String("terraform term"),
Description: pulumi.String("term created by Terraform"),
})
if err != nil {
return err
}
// Introduce a 45-second wait after the glossary resource creation
wait_for_sync, err := time.NewSleep(ctx, "wait-for-sync", &time.SleepArgs{
CreateDuration: pulumi.String("45s"),
}, pulumi.DependsOn([]pulumi.Resource{
termTestIdFullGlossaryTerm,
}))
if err != nil {
return err
}
_, err = dataplex.NewEntryLink(ctx, "full_entry_link", &dataplex.EntryLinkArgs{
Project: pulumi.String("1111111111111"),
Location: pulumi.String("us-central1"),
EntryGroupId: entry_group_full.EntryGroupId,
EntryLinkId: pulumi.String("tf-test-entry-link_16451"),
EntryLinkType: pulumi.String("projects/655216118709/locations/global/entryLinkTypes/definition"),
EntryReferences: dataplex.EntryLinkEntryReferenceArray{
&dataplex.EntryLinkEntryReferenceArgs{
Name: source.Name,
Type: pulumi.String("SOURCE"),
Path: pulumi.String(""),
},
&dataplex.EntryLinkEntryReferenceArgs{
Name: pulumi.All(entry_group_full.Project, termTestIdFull.GlossaryId, termTestIdFullGlossaryTerm.TermId).ApplyT(func(_args []interface{}) (string, error) {
project := _args[0].(string)
glossaryId := _args[1].(string)
termId := _args[2].(*string)
return fmt.Sprintf("projects/%v/locations/us-central1/entryGroups/@dataplex/entries/projects/%v/locations/us-central1/glossaries/%v/terms/%v", project, project, glossaryId, termId), nil
}).(pulumi.StringOutput),
Type: pulumi.String("TARGET"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
wait_for_sync,
}))
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
time = {
source = "pulumi/time"
}
}
}
resource "gcp_dataplex_entrygroup" "entry-group-full" {
location = "us-central1"
entry_group_id = "tf-test-entry-group_34242"
project = "1111111111111"
}
resource "gcp_dataplex_entry" "source" {
location = "us-central1"
entry_group_id = gcp_dataplex_entrygroup.entry-group-full.entry_group_id
entry_id = "tf-test-source-entry_9723"
entry_type = gcp_dataplex_entrytype.entry-type-full.name
project = "1111111111111"
}
resource "gcp_dataplex_entrytype" "entry-type-full" {
entry_type_id = "tf-test-entry-type_22061"
location = "us-central1"
project = "1111111111111"
}
resource "gcp_dataplex_glossary" "term_test_id_full" {
glossary_id = "tf-test-glossary_60461"
location = "us-central1"
}
resource "gcp_dataplex_glossaryterm" "term_test_id_full" {
parent ="projects/${gcp_dataplex_glossary.term_test_id_full.project}/locations/us-central1/glossaries/${gcp_dataplex_glossary.term_test_id_full.glossary_id}"
glossary_id = gcp_dataplex_glossary.term_test_id_full.glossary_id
location = "us-central1"
term_id = "tf-test-term-full_45397"
labels = {
"tag" = "test-tf"
}
display_name = "terraform term"
description = "term created by Terraform"
}
# Introduce a 45-second wait after the glossary resource creation
resource "time_sleep" "wait-for-sync" {
depends_on = [gcp_dataplex_glossaryterm.term_test_id_full]
create_duration = "45s"
}
resource "gcp_dataplex_entrylink" "full_entry_link" {
depends_on = [time_sleep.wait-for-sync]
project = "1111111111111"
location = "us-central1"
entry_group_id = gcp_dataplex_entrygroup.entry-group-full.entry_group_id
entry_link_id = "tf-test-entry-link_16451"
entry_link_type = "projects/655216118709/locations/global/entryLinkTypes/definition"
entry_references {
name = gcp_dataplex_entry.source.name
type = "SOURCE"
path = ""
}
entry_references {
name ="projects/${gcp_dataplex_entrygroup.entry-group-full.project}/locations/us-central1/entryGroups/@dataplex/entries/projects/${gcp_dataplex_entrygroup.entry-group-full.project}/locations/us-central1/glossaries/${gcp_dataplex_glossary.term_test_id_full.glossary_id}/terms/${gcp_dataplex_glossaryterm.term_test_id_full.term_id}"
type = "TARGET"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.EntryGroup;
import com.pulumi.gcp.dataplex.EntryGroupArgs;
import com.pulumi.gcp.dataplex.EntryType;
import com.pulumi.gcp.dataplex.EntryTypeArgs;
import com.pulumi.gcp.dataplex.Entry;
import com.pulumi.gcp.dataplex.EntryArgs;
import com.pulumi.gcp.dataplex.Glossary;
import com.pulumi.gcp.dataplex.GlossaryArgs;
import com.pulumi.gcp.dataplex.GlossaryTerm;
import com.pulumi.gcp.dataplex.GlossaryTermArgs;
import com.pulumiverse.time.Sleep;
import com.pulumiverse.time.SleepArgs;
import com.pulumi.gcp.dataplex.EntryLink;
import com.pulumi.gcp.dataplex.EntryLinkArgs;
import com.pulumi.gcp.dataplex.inputs.EntryLinkEntryReferenceArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var entry_group_full = new EntryGroup("entry-group-full", EntryGroupArgs.builder()
.location("us-central1")
.entryGroupId("tf-test-entry-group_34242")
.project("1111111111111")
.build());
var entry_type_full = new EntryType("entry-type-full", EntryTypeArgs.builder()
.entryTypeId("tf-test-entry-type_22061")
.location("us-central1")
.project("1111111111111")
.build());
var source = new Entry("source", EntryArgs.builder()
.location("us-central1")
.entryGroupId(entry_group_full.entryGroupId())
.entryId("tf-test-source-entry_9723")
.entryType(entry_type_full.name())
.project("1111111111111")
.build());
var termTestIdFull = new Glossary("termTestIdFull", GlossaryArgs.builder()
.glossaryId("tf-test-glossary_60461")
.location("us-central1")
.build());
var termTestIdFullGlossaryTerm = new GlossaryTerm("termTestIdFullGlossaryTerm", GlossaryTermArgs.builder()
.parent(Output.tuple(termTestIdFull.project(), termTestIdFull.glossaryId()).applyValue(values -> {
var project = values.t1;
var glossaryId = values.t2;
return String.format("projects/%s/locations/us-central1/glossaries/%s", project,glossaryId);
}))
.glossaryId(termTestIdFull.glossaryId())
.location("us-central1")
.termId("tf-test-term-full_45397")
.labels(Map.of("tag", "test-tf"))
.displayName("terraform term")
.description("term created by Terraform")
.build());
// Introduce a 45-second wait after the glossary resource creation
var wait_for_sync = new Sleep("wait-for-sync", SleepArgs.builder()
.createDuration("45s")
.build(), CustomResourceOptions.builder()
.dependsOn(termTestIdFullGlossaryTerm)
.build());
var fullEntryLink = new EntryLink("fullEntryLink", EntryLinkArgs.builder()
.project("1111111111111")
.location("us-central1")
.entryGroupId(entry_group_full.entryGroupId())
.entryLinkId("tf-test-entry-link_16451")
.entryLinkType("projects/655216118709/locations/global/entryLinkTypes/definition")
.entryReferences(
EntryLinkEntryReferenceArgs.builder()
.name(source.name())
.type("SOURCE")
.path("")
.build(),
EntryLinkEntryReferenceArgs.builder()
.name(Output.tuple(entry_group_full.project(), termTestIdFull.glossaryId(), termTestIdFullGlossaryTerm.termId()).applyValue(values -> {
var project = values.t1;
var glossaryId = values.t2;
var termId = values.t3;
return String.format("projects/%s/locations/us-central1/entryGroups/@dataplex/entries/projects/%s/locations/us-central1/glossaries/%s/terms/%s", project,project,glossaryId,termId);
}))
.type("TARGET")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(wait_for_sync)
.build());
}
}
resources:
entry-group-full:
type: gcp:dataplex:EntryGroup
properties:
location: us-central1
entryGroupId: tf-test-entry-group_34242
project: '1111111111111'
source:
type: gcp:dataplex:Entry
properties:
location: us-central1
entryGroupId: ${["entry-group-full"].entryGroupId}
entryId: tf-test-source-entry_9723
entryType: ${["entry-type-full"].name}
project: '1111111111111'
entry-type-full:
type: gcp:dataplex:EntryType
properties:
entryTypeId: tf-test-entry-type_22061
location: us-central1
project: '1111111111111'
termTestIdFull:
type: gcp:dataplex:Glossary
name: term_test_id_full
properties:
glossaryId: tf-test-glossary_60461
location: us-central1
termTestIdFullGlossaryTerm:
type: gcp:dataplex:GlossaryTerm
name: term_test_id_full
properties:
parent: projects/${termTestIdFull.project}/locations/us-central1/glossaries/${termTestIdFull.glossaryId}
glossaryId: ${termTestIdFull.glossaryId}
location: us-central1
termId: tf-test-term-full_45397
labels:
tag: test-tf
displayName: terraform term
description: term created by Terraform
# Introduce a 45-second wait after the glossary resource creation
wait-for-sync:
type: time:Sleep
properties:
createDuration: 45s
options:
dependsOn:
- ${termTestIdFullGlossaryTerm}
fullEntryLink:
type: gcp:dataplex:EntryLink
name: full_entry_link
properties:
project: '1111111111111'
location: us-central1
entryGroupId: ${["entry-group-full"].entryGroupId}
entryLinkId: tf-test-entry-link_16451
entryLinkType: projects/655216118709/locations/global/entryLinkTypes/definition
entryReferences:
- name: ${source.name}
type: SOURCE
path: ""
- name: projects/${["entry-group-full"].project}/locations/us-central1/entryGroups/@dataplex/entries/projects/${["entry-group-full"].project}/locations/us-central1/glossaries/${termTestIdFull.glossaryId}/terms/${termTestIdFullGlossaryTerm.termId}
type: TARGET
options:
dependsOn:
- ${["wait-for-sync"]}
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:
$ pulumi import gcp:dataplex/entryLink:EntryLink default projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}/entryLinks/{{entry_link_id}}
$ pulumi import gcp:dataplex/entryLink:EntryLink default {{project}}/{{location}}/{{entry_group_id}}/{{entry_link_id}}
$ pulumi import gcp:dataplex/entryLink:EntryLink default {{location}}/{{entry_group_id}}/{{entry_link_id}}
Constructors
- EntryLink(String name, {EntryLinkArgs? args, CustomResourceOptions? options})
-
Creates a new EntryLink.
nameThe Pulumi resource name.argsArguments used to configure this EntryLink. The set of arguments for EntryLink.optionsResource options controlling this resource's behavior. - EntryLink.reference(String urn)
- Creates a typed reference to an existing EntryLink resource.
Properties
-
aspects
↔ Output<
List< EntryLinkAspect> ?> -
The Aspects attached to the Entry Link.
Structure is documented below.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
The time when the Entry Link was created.
latefinal
-
deletionPolicy
↔ Output<
String> -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
latefinal
-
entryGroupId
↔ Output<
String> -
The id of the entry group this entry link is in.
latefinal
-
entryLinkId
↔ Output<
String> -
The id of the entry link to create.
latefinal
-
entryLinkType
↔ Output<
String> -
Relative resource name of the Entry Link Type used to create this Entry Link. For example:
projects/dataplex-types/locations/global/entryLinkTypes/definition
latefinal
-
entryReferences
↔ Output<
List< EntryLinkEntryReference> > -
Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.
Structure is documented below.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
location
↔ Output<
String> -
The location for the entry.
latefinal
-
name
↔ Output<
String> -
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}
latefinal
-
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
updateTime
↔ Output<
String> -
The time when the Entry Link was last updated.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited