1. Packages
  2. Datadog Provider
  3. API Docs
  4. TeamLink
Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi

datadog.TeamLink

Explore with Pulumi AI

Provides a Datadog TeamLink resource. This can be used to create and manage Datadog team_link.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const foo = new datadog.Team("foo", {
    description: "Example team",
    handle: "example-team-updated",
    name: "Example Team-updated",
});
// Create new team_link resource
const fooTeamLink = new datadog.TeamLink("foo", {
    teamId: foo.id,
    label: "Link label",
    position: 0,
    url: "https://example.com",
});
Copy
import pulumi
import pulumi_datadog as datadog

foo = datadog.Team("foo",
    description="Example team",
    handle="example-team-updated",
    name="Example Team-updated")
# Create new team_link resource
foo_team_link = datadog.TeamLink("foo",
    team_id=foo.id,
    label="Link label",
    position=0,
    url="https://example.com")
Copy
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := datadog.NewTeam(ctx, "foo", &datadog.TeamArgs{
			Description: pulumi.String("Example team"),
			Handle:      pulumi.String("example-team-updated"),
			Name:        pulumi.String("Example Team-updated"),
		})
		if err != nil {
			return err
		}
		// Create new team_link resource
		_, err = datadog.NewTeamLink(ctx, "foo", &datadog.TeamLinkArgs{
			TeamId:   foo.ID(),
			Label:    pulumi.String("Link label"),
			Position: pulumi.Int(0),
			Url:      pulumi.String("https://example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    var foo = new Datadog.Team("foo", new()
    {
        Description = "Example team",
        Handle = "example-team-updated",
        Name = "Example Team-updated",
    });

    // Create new team_link resource
    var fooTeamLink = new Datadog.TeamLink("foo", new()
    {
        TeamId = foo.Id,
        Label = "Link label",
        Position = 0,
        Url = "https://example.com",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.Team;
import com.pulumi.datadog.TeamArgs;
import com.pulumi.datadog.TeamLink;
import com.pulumi.datadog.TeamLinkArgs;
import java.util.List;
import java.util.ArrayList;
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 foo = new Team("foo", TeamArgs.builder()
            .description("Example team")
            .handle("example-team-updated")
            .name("Example Team-updated")
            .build());

        // Create new team_link resource
        var fooTeamLink = new TeamLink("fooTeamLink", TeamLinkArgs.builder()
            .teamId(foo.id())
            .label("Link label")
            .position(0)
            .url("https://example.com")
            .build());

    }
}
Copy
resources:
  foo:
    type: datadog:Team
    properties:
      description: Example team
      handle: example-team-updated
      name: Example Team-updated
  # Create new team_link resource
  fooTeamLink:
    type: datadog:TeamLink
    name: foo
    properties:
      teamId: ${foo.id}
      label: Link label
      position: 0
      url: https://example.com
Copy

Create TeamLink Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TeamLink(name: string, args: TeamLinkArgs, opts?: CustomResourceOptions);
@overload
def TeamLink(resource_name: str,
             args: TeamLinkArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def TeamLink(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             label: Optional[str] = None,
             team_id: Optional[str] = None,
             url: Optional[str] = None,
             position: Optional[int] = None)
func NewTeamLink(ctx *Context, name string, args TeamLinkArgs, opts ...ResourceOption) (*TeamLink, error)
public TeamLink(string name, TeamLinkArgs args, CustomResourceOptions? opts = null)
public TeamLink(String name, TeamLinkArgs args)
public TeamLink(String name, TeamLinkArgs args, CustomResourceOptions options)
type: datadog:TeamLink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TeamLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TeamLinkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TeamLinkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TeamLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TeamLinkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var teamLinkResource = new Datadog.TeamLink("teamLinkResource", new()
{
    Label = "string",
    TeamId = "string",
    Url = "string",
    Position = 0,
});
Copy
example, err := datadog.NewTeamLink(ctx, "teamLinkResource", &datadog.TeamLinkArgs{
	Label:    pulumi.String("string"),
	TeamId:   pulumi.String("string"),
	Url:      pulumi.String("string"),
	Position: pulumi.Int(0),
})
Copy
var teamLinkResource = new TeamLink("teamLinkResource", TeamLinkArgs.builder()
    .label("string")
    .teamId("string")
    .url("string")
    .position(0)
    .build());
Copy
team_link_resource = datadog.TeamLink("teamLinkResource",
    label="string",
    team_id="string",
    url="string",
    position=0)
Copy
const teamLinkResource = new datadog.TeamLink("teamLinkResource", {
    label: "string",
    teamId: "string",
    url: "string",
    position: 0,
});
Copy
type: datadog:TeamLink
properties:
    label: string
    position: 0
    teamId: string
    url: string
Copy

TeamLink Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TeamLink resource accepts the following input properties:

Label This property is required. string
The link's label.
TeamId This property is required. string
ID of the team the link is associated with.
Url This property is required. string
The URL for the link.
Position int
The link's position, used to sort links for the team.
Label This property is required. string
The link's label.
TeamId This property is required. string
ID of the team the link is associated with.
Url This property is required. string
The URL for the link.
Position int
The link's position, used to sort links for the team.
label This property is required. String
The link's label.
teamId This property is required. String
ID of the team the link is associated with.
url This property is required. String
The URL for the link.
position Integer
The link's position, used to sort links for the team.
label This property is required. string
The link's label.
teamId This property is required. string
ID of the team the link is associated with.
url This property is required. string
The URL for the link.
position number
The link's position, used to sort links for the team.
label This property is required. str
The link's label.
team_id This property is required. str
ID of the team the link is associated with.
url This property is required. str
The URL for the link.
position int
The link's position, used to sort links for the team.
label This property is required. String
The link's label.
teamId This property is required. String
ID of the team the link is associated with.
url This property is required. String
The URL for the link.
position Number
The link's position, used to sort links for the team.

Outputs

All input properties are implicitly available as output properties. Additionally, the TeamLink resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing TeamLink Resource

Get an existing TeamLink resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TeamLinkState, opts?: CustomResourceOptions): TeamLink
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        label: Optional[str] = None,
        position: Optional[int] = None,
        team_id: Optional[str] = None,
        url: Optional[str] = None) -> TeamLink
func GetTeamLink(ctx *Context, name string, id IDInput, state *TeamLinkState, opts ...ResourceOption) (*TeamLink, error)
public static TeamLink Get(string name, Input<string> id, TeamLinkState? state, CustomResourceOptions? opts = null)
public static TeamLink get(String name, Output<String> id, TeamLinkState state, CustomResourceOptions options)
resources:  _:    type: datadog:TeamLink    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Label string
The link's label.
Position int
The link's position, used to sort links for the team.
TeamId string
ID of the team the link is associated with.
Url string
The URL for the link.
Label string
The link's label.
Position int
The link's position, used to sort links for the team.
TeamId string
ID of the team the link is associated with.
Url string
The URL for the link.
label String
The link's label.
position Integer
The link's position, used to sort links for the team.
teamId String
ID of the team the link is associated with.
url String
The URL for the link.
label string
The link's label.
position number
The link's position, used to sort links for the team.
teamId string
ID of the team the link is associated with.
url string
The URL for the link.
label str
The link's label.
position int
The link's position, used to sort links for the team.
team_id str
ID of the team the link is associated with.
url str
The URL for the link.
label String
The link's label.
position Number
The link's position, used to sort links for the team.
teamId String
ID of the team the link is associated with.
url String
The URL for the link.

Import

$ pulumi import datadog:index/teamLink:TeamLink new_list "${team_id}:${resource_id}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.