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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 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.
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",
});
example, err := datadog.NewTeamPermissionSetting(ctx, "teamPermissionSettingResource", &datadog.TeamPermissionSettingArgs{
Action: pulumi.String("string"),
TeamId: pulumi.String("string"),
Value: pulumi.String("string"),
})
var teamPermissionSettingResource = new TeamPermissionSetting("teamPermissionSettingResource", TeamPermissionSettingArgs.builder()
.action("string")
.teamId("string")
.value("string")
.build());
team_permission_setting_resource = datadog.TeamPermissionSetting("teamPermissionSettingResource",
action="string",
team_id="string",
value="string")
const teamPermissionSettingResource = new datadog.TeamPermissionSetting("teamPermissionSettingResource", {
action: "string",
teamId: "string",
value: "string",
});
type: datadog:TeamPermissionSetting
properties:
action: string
teamId: string
value: string
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:
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.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.