1. Packages
  2. Datadog
  3. API Docs
  4. TeamPermissionSetting
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.TeamPermissionSetting

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Provides a Datadog TeamPermissionSetting resource. This can be used to manage Datadog team_permission_setting.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var fooTeam = new Datadog.Team("fooTeam", new()
        {
            Description = "Example team",
            Handle = "example-team-updated",
            Name = "Example Team-updated",
        });
    
        var fooTeamPermissionSetting = new Datadog.TeamPermissionSetting("fooTeamPermissionSetting", new()
        {
            TeamId = fooTeam.Id,
            Action = "manage_membership",
            Value = "organization",
        });
    
    });
    
    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 {
    		fooTeam, err := datadog.NewTeam(ctx, "fooTeam", &datadog.TeamArgs{
    			Description: pulumi.String("Example team"),
    			Handle:      pulumi.String("example-team-updated"),
    			Name:        pulumi.String("Example Team-updated"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datadog.NewTeamPermissionSetting(ctx, "fooTeamPermissionSetting", &datadog.TeamPermissionSettingArgs{
    			TeamId: fooTeam.ID(),
    			Action: pulumi.String("manage_membership"),
    			Value:  pulumi.String("organization"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.TeamPermissionSetting;
    import com.pulumi.datadog.TeamPermissionSettingArgs;
    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 fooTeam = new Team("fooTeam", TeamArgs.builder()        
                .description("Example team")
                .handle("example-team-updated")
                .name("Example Team-updated")
                .build());
    
            var fooTeamPermissionSetting = new TeamPermissionSetting("fooTeamPermissionSetting", TeamPermissionSettingArgs.builder()        
                .teamId(fooTeam.id())
                .action("manage_membership")
                .value("organization")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    foo_team = datadog.Team("fooTeam",
        description="Example team",
        handle="example-team-updated",
        name="Example Team-updated")
    foo_team_permission_setting = datadog.TeamPermissionSetting("fooTeamPermissionSetting",
        team_id=foo_team.id,
        action="manage_membership",
        value="organization")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const fooTeam = new datadog.Team("fooTeam", {
        description: "Example team",
        handle: "example-team-updated",
        name: "Example Team-updated",
    });
    const fooTeamPermissionSetting = new datadog.TeamPermissionSetting("fooTeamPermissionSetting", {
        teamId: fooTeam.id,
        action: "manage_membership",
        value: "organization",
    });
    
    resources:
      fooTeam:
        type: datadog:Team
        properties:
          description: Example team
          handle: example-team-updated
          name: Example Team-updated
      fooTeamPermissionSetting:
        type: datadog:TeamPermissionSetting
        properties:
          teamId: ${fooTeam.id}
          action: manage_membership
          value: organization
    

    Create TeamPermissionSetting Resource

    new TeamPermissionSetting(name: string, args: TeamPermissionSettingArgs, opts?: CustomResourceOptions);
    @overload
    def TeamPermissionSetting(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              action: Optional[str] = None,
                              team_id: Optional[str] = None,
                              value: Optional[str] = None)
    @overload
    def TeamPermissionSetting(resource_name: str,
                              args: TeamPermissionSettingArgs,
                              opts: Optional[ResourceOptions] = None)
    func NewTeamPermissionSetting(ctx *Context, name string, args TeamPermissionSettingArgs, opts ...ResourceOption) (*TeamPermissionSetting, error)
    public TeamPermissionSetting(string name, TeamPermissionSettingArgs args, CustomResourceOptions? opts = null)
    public TeamPermissionSetting(String name, TeamPermissionSettingArgs args)
    public TeamPermissionSetting(String name, TeamPermissionSettingArgs args, CustomResourceOptions options)
    
    type: datadog:TeamPermissionSetting
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TeamPermissionSettingArgs
    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 TeamPermissionSettingArgs
    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 TeamPermissionSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamPermissionSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamPermissionSettingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeamPermissionSetting Resource Properties

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

    Inputs

    The TeamPermissionSetting resource accepts the following input properties:

    Action string

    The identifier for the action. Valid values are manage_membership, edit.

    TeamId string

    ID of the team the team permission setting is associated with.

    Value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    Action string

    The identifier for the action. Valid values are manage_membership, edit.

    TeamId string

    ID of the team the team permission setting is associated with.

    Value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action String

    The identifier for the action. Valid values are manage_membership, edit.

    teamId String

    ID of the team the team permission setting is associated with.

    value String

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action string

    The identifier for the action. Valid values are manage_membership, edit.

    teamId string

    ID of the team the team permission setting is associated with.

    value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action str

    The identifier for the action. Valid values are manage_membership, edit.

    team_id str

    ID of the team the team permission setting is associated with.

    value str

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action String

    The identifier for the action. Valid values are manage_membership, edit.

    teamId String

    ID of the team the team permission setting is associated with.

    value String

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeamPermissionSetting 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 TeamPermissionSetting Resource

    Get an existing TeamPermissionSetting 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?: TeamPermissionSettingState, opts?: CustomResourceOptions): TeamPermissionSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            team_id: Optional[str] = None,
            value: Optional[str] = None) -> TeamPermissionSetting
    func GetTeamPermissionSetting(ctx *Context, name string, id IDInput, state *TeamPermissionSettingState, opts ...ResourceOption) (*TeamPermissionSetting, error)
    public static TeamPermissionSetting Get(string name, Input<string> id, TeamPermissionSettingState? state, CustomResourceOptions? opts = null)
    public static TeamPermissionSetting get(String name, Output<String> id, TeamPermissionSettingState 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:
    Action string

    The identifier for the action. Valid values are manage_membership, edit.

    TeamId string

    ID of the team the team permission setting is associated with.

    Value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    Action string

    The identifier for the action. Valid values are manage_membership, edit.

    TeamId string

    ID of the team the team permission setting is associated with.

    Value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action String

    The identifier for the action. Valid values are manage_membership, edit.

    teamId String

    ID of the team the team permission setting is associated with.

    value String

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action string

    The identifier for the action. Valid values are manage_membership, edit.

    teamId string

    ID of the team the team permission setting is associated with.

    value string

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action str

    The identifier for the action. Valid values are manage_membership, edit.

    team_id str

    ID of the team the team permission setting is associated with.

    value str

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    action String

    The identifier for the action. Valid values are manage_membership, edit.

    teamId String

    ID of the team the team permission setting is associated with.

    value String

    The action value. Valid values are admins, members, organization, user_access_manage, teams_manage.

    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.23.0 published on Wednesday, Sep 27, 2023 by Pulumi