1. Packages
  2. Datadog Provider
  3. API Docs
  4. TeamLink
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.TeamLink

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 string
    The unique name of the resource.
    args TeamLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args TeamLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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,
    });
    
    example, err := datadog.NewTeamLink(ctx, "teamLinkResource", &datadog.TeamLinkArgs{
    	Label:    pulumi.String("string"),
    	TeamId:   pulumi.String("string"),
    	Url:      pulumi.String("string"),
    	Position: pulumi.Int(0),
    })
    
    var teamLinkResource = new TeamLink("teamLinkResource", TeamLinkArgs.builder()
        .label("string")
        .teamId("string")
        .url("string")
        .position(0)
        .build());
    
    team_link_resource = datadog.TeamLink("teamLinkResource",
        label="string",
        team_id="string",
        url="string",
        position=0)
    
    const teamLinkResource = new datadog.TeamLink("teamLinkResource", {
        label: "string",
        teamId: "string",
        url: "string",
        position: 0,
    });
    
    type: datadog:TeamLink
    properties:
        label: string
        position: 0
        teamId: string
        url: string
    

    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 string
    The link's label.
    TeamId string
    ID of the team the link is associated with.
    Url string
    The URL for the link.
    Position int
    The link's position, used to sort links for the team.
    Label string
    The link's label.
    TeamId string
    ID of the team the link is associated with.
    Url string
    The URL for the link.
    Position int
    The link's position, used to sort links for the team.
    label String
    The link's label.
    teamId String
    ID of the team the link is associated with.
    url String
    The URL for the link.
    position Integer
    The link's position, used to sort links for the team.
    label string
    The link's label.
    teamId string
    ID of the team the link is associated with.
    url string
    The URL for the link.
    position number
    The link's position, used to sort links for the team.
    label str
    The link's label.
    team_id str
    ID of the team the link is associated with.
    url str
    The URL for the link.
    position int
    The link's position, used to sort links for the team.
    label String
    The link's label.
    teamId String
    ID of the team the link is associated with.
    url 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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}"
    

    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.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi