1. Packages
  2. Datadog Provider
  3. API Docs
  4. TeamPermissionSetting
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.TeamPermissionSetting

Explore with Pulumi AI

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

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",
});
const fooTeamPermissionSetting = new datadog.TeamPermissionSetting("foo", {
    teamId: foo.id,
    action: "manage_membership",
    value: "organization",
});
Copy
import pulumi
import pulumi_datadog as datadog

foo = datadog.Team("foo",
    description="Example team",
    handle="example-team-updated",
    name="Example Team-updated")
foo_team_permission_setting = datadog.TeamPermissionSetting("foo",
    team_id=foo.id,
    action="manage_membership",
    value="organization")
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
		}
		_, err = datadog.NewTeamPermissionSetting(ctx, "foo", &datadog.TeamPermissionSettingArgs{
			TeamId: foo.ID(),
			Action: pulumi.String("manage_membership"),
			Value:  pulumi.String("organization"),
		})
		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",
    });

    var fooTeamPermissionSetting = new Datadog.TeamPermissionSetting("foo", new()
    {
        TeamId = foo.Id,
        Action = "manage_membership",
        Value = "organization",
    });

});
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.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 foo = new Team("foo", TeamArgs.builder()
            .description("Example team")
            .handle("example-team-updated")
            .name("Example Team-updated")
            .build());

        var fooTeamPermissionSetting = new TeamPermissionSetting("fooTeamPermissionSetting", TeamPermissionSettingArgs.builder()
            .teamId(foo.id())
            .action("manage_membership")
            .value("organization")
            .build());

    }
}
Copy
resources:
  foo:
    type: datadog:Team
    properties:
      description: Example team
      handle: example-team-updated
      name: Example Team-updated
  fooTeamPermissionSetting:
    type: datadog:TeamPermissionSetting
    name: foo
    properties:
      teamId: ${foo.id}
      action: manage_membership
      value: organization
Copy

Create TeamPermissionSetting Resource

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

Constructor syntax

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

@overload
def TeamPermissionSetting(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          action: Optional[str] = None,
                          team_id: Optional[str] = None,
                          value: Optional[str] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TeamPermissionSettingArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. TeamPermissionSettingArgs
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. TeamPermissionSettingArgs
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. TeamPermissionSettingArgs
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 teamPermissionSettingResource = new Datadog.TeamPermissionSetting("teamPermissionSettingResource", new()
{
    Action = "string",
    TeamId = "string",
    Value = "string",
});
Copy
example, err := datadog.NewTeamPermissionSetting(ctx, "teamPermissionSettingResource", &datadog.TeamPermissionSettingArgs{
	Action: pulumi.String("string"),
	TeamId: pulumi.String("string"),
	Value:  pulumi.String("string"),
})
Copy
var teamPermissionSettingResource = new TeamPermissionSetting("teamPermissionSettingResource", TeamPermissionSettingArgs.builder()
    .action("string")
    .teamId("string")
    .value("string")
    .build());
Copy
team_permission_setting_resource = datadog.TeamPermissionSetting("teamPermissionSettingResource",
    action="string",
    team_id="string",
    value="string")
Copy
const teamPermissionSettingResource = new datadog.TeamPermissionSetting("teamPermissionSettingResource", {
    action: "string",
    teamId: "string",
    value: "string",
});
Copy
type: datadog:TeamPermissionSetting
properties:
    action: string
    teamId: string
    value: string
Copy

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

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

The TeamPermissionSetting resource accepts the following input properties:

Action This property is required. string
The identifier for the action. Valid values are manage_membership, edit.
TeamId This property is required. string
ID of the team the team permission setting is associated with.
Value This property is required. string
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
Action This property is required. string
The identifier for the action. Valid values are manage_membership, edit.
TeamId This property is required. string
ID of the team the team permission setting is associated with.
Value This property is required. string
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
action This property is required. String
The identifier for the action. Valid values are manage_membership, edit.
teamId This property is required. String
ID of the team the team permission setting is associated with.
value This property is required. String
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
action This property is required. string
The identifier for the action. Valid values are manage_membership, edit.
teamId This property is required. string
ID of the team the team permission setting is associated with.
value This property is required. string
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
action This property is required. str
The identifier for the action. Valid values are manage_membership, edit.
team_id This property is required. str
ID of the team the team permission setting is associated with.
value This property is required. str
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
action This property is required. String
The identifier for the action. Valid values are manage_membership, edit.
teamId This property is required. String
ID of the team the team permission setting is associated with.
value This property is required. String
The action value. Valid values are dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.

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)
resources:  _:    type: datadog:TeamPermissionSetting    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:
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.
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 dependent on the action. manage_membership action allows admins, members, organization, user_access_manage values. edit action allows admins, members, teams_manage values.

Package Details

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