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

datadog.Team

Explore with Pulumi AI

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

    Provides a Datadog Team resource. This can be used to create and manage Datadog team.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new team resource
    const foo = new datadog.Team("foo", {
        description: "Team description",
        handle: "example-team",
        name: "Example Team",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new team resource
    foo = datadog.Team("foo",
        description="Team description",
        handle="example-team",
        name="Example Team")
    
    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 {
    		// Create new team resource
    		_, err := datadog.NewTeam(ctx, "foo", &datadog.TeamArgs{
    			Description: pulumi.String("Team description"),
    			Handle:      pulumi.String("example-team"),
    			Name:        pulumi.String("Example Team"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new team resource
        var foo = new Datadog.Team("foo", new()
        {
            Description = "Team description",
            Handle = "example-team",
            Name = "Example Team",
        });
    
    });
    
    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 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) {
            // Create new team resource
            var foo = new Team("foo", TeamArgs.builder()
                .description("Team description")
                .handle("example-team")
                .name("Example Team")
                .build());
    
        }
    }
    
    resources:
      # Create new team resource
      foo:
        type: datadog:Team
        properties:
          description: Team description
          handle: example-team
          name: Example Team
    

    Create Team Resource

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

    Constructor syntax

    new Team(name: string, args: TeamArgs, opts?: CustomResourceOptions);
    @overload
    def Team(resource_name: str,
             args: TeamArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Team(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             handle: Optional[str] = None,
             name: Optional[str] = None)
    func NewTeam(ctx *Context, name string, args TeamArgs, opts ...ResourceOption) (*Team, error)
    public Team(string name, TeamArgs args, CustomResourceOptions? opts = null)
    public Team(String name, TeamArgs args)
    public Team(String name, TeamArgs args, CustomResourceOptions options)
    
    type: datadog:Team
    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 TeamArgs
    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 TeamArgs
    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 TeamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamArgs
    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 teamResource = new Datadog.Team("teamResource", new()
    {
        Description = "string",
        Handle = "string",
        Name = "string",
    });
    
    example, err := datadog.NewTeam(ctx, "teamResource", &datadog.TeamArgs{
    	Description: pulumi.String("string"),
    	Handle:      pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var teamResource = new Team("teamResource", TeamArgs.builder()
        .description("string")
        .handle("string")
        .name("string")
        .build());
    
    team_resource = datadog.Team("teamResource",
        description="string",
        handle="string",
        name="string")
    
    const teamResource = new datadog.Team("teamResource", {
        description: "string",
        handle: "string",
        name: "string",
    });
    
    type: datadog:Team
    properties:
        description: string
        handle: string
        name: string
    

    Team 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 Team resource accepts the following input properties:

    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's identifier
    Name string
    The name of the team.
    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's identifier
    Name string
    The name of the team.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's identifier
    name String
    The name of the team.
    description string
    Free-form markdown description/content for the team's homepage.
    handle string
    The team's identifier
    name string
    The name of the team.
    description str
    Free-form markdown description/content for the team's homepage.
    handle str
    The team's identifier
    name str
    The name of the team.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's identifier
    name String
    The name of the team.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LinkCount int
    The number of links belonging to the team.
    Summary string
    A brief summary of the team, derived from the description.
    UserCount int
    The number of users belonging to the team.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkCount int
    The number of links belonging to the team.
    Summary string
    A brief summary of the team, derived from the description.
    UserCount int
    The number of users belonging to the team.
    id String
    The provider-assigned unique ID for this managed resource.
    linkCount Integer
    The number of links belonging to the team.
    summary String
    A brief summary of the team, derived from the description.
    userCount Integer
    The number of users belonging to the team.
    id string
    The provider-assigned unique ID for this managed resource.
    linkCount number
    The number of links belonging to the team.
    summary string
    A brief summary of the team, derived from the description.
    userCount number
    The number of users belonging to the team.
    id str
    The provider-assigned unique ID for this managed resource.
    link_count int
    The number of links belonging to the team.
    summary str
    A brief summary of the team, derived from the description.
    user_count int
    The number of users belonging to the team.
    id String
    The provider-assigned unique ID for this managed resource.
    linkCount Number
    The number of links belonging to the team.
    summary String
    A brief summary of the team, derived from the description.
    userCount Number
    The number of users belonging to the team.

    Look up Existing Team Resource

    Get an existing Team 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?: TeamState, opts?: CustomResourceOptions): Team
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            handle: Optional[str] = None,
            link_count: Optional[int] = None,
            name: Optional[str] = None,
            summary: Optional[str] = None,
            user_count: Optional[int] = None) -> Team
    func GetTeam(ctx *Context, name string, id IDInput, state *TeamState, opts ...ResourceOption) (*Team, error)
    public static Team Get(string name, Input<string> id, TeamState? state, CustomResourceOptions? opts = null)
    public static Team get(String name, Output<String> id, TeamState 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:
    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's identifier
    LinkCount int
    The number of links belonging to the team.
    Name string
    The name of the team.
    Summary string
    A brief summary of the team, derived from the description.
    UserCount int
    The number of users belonging to the team.
    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's identifier
    LinkCount int
    The number of links belonging to the team.
    Name string
    The name of the team.
    Summary string
    A brief summary of the team, derived from the description.
    UserCount int
    The number of users belonging to the team.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's identifier
    linkCount Integer
    The number of links belonging to the team.
    name String
    The name of the team.
    summary String
    A brief summary of the team, derived from the description.
    userCount Integer
    The number of users belonging to the team.
    description string
    Free-form markdown description/content for the team's homepage.
    handle string
    The team's identifier
    linkCount number
    The number of links belonging to the team.
    name string
    The name of the team.
    summary string
    A brief summary of the team, derived from the description.
    userCount number
    The number of users belonging to the team.
    description str
    Free-form markdown description/content for the team's homepage.
    handle str
    The team's identifier
    link_count int
    The number of links belonging to the team.
    name str
    The name of the team.
    summary str
    A brief summary of the team, derived from the description.
    user_count int
    The number of users belonging to the team.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's identifier
    linkCount Number
    The number of links belonging to the team.
    name String
    The name of the team.
    summary String
    A brief summary of the team, derived from the description.
    userCount Number
    The number of users belonging to the team.

    Import

    $ pulumi import datadog:index/team:Team foo "bf064c56-edb0-11ed-ae91-da7ad0900002"
    

    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