1. Packages
  2. SignalFx
  3. API Docs
  4. Team
SignalFx v7.1.1 published on Tuesday, Feb 27, 2024 by Pulumi

signalfx.Team

Explore with Pulumi AI

signalfx logo
SignalFx v7.1.1 published on Tuesday, Feb 27, 2024 by Pulumi

    Handles management of Splunk Observability Cloud teams.

    You can configure team notification policies using this resource and the various notifications_* properties.

    NOTE When managing teams, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See Operations that require a session token for an administrator.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as signalfx from "@pulumi/signalfx";
    
    const myteam0 = new signalfx.Team("myteam0", {
        description: "Super great team no jerks definitely",
        members: [
            "userid1",
            "userid2",
        ],
        notificationsCriticals: ["PagerDuty,credentialId"],
        notificationsInfos: ["Email,notify@example.com"],
    });
    
    import pulumi
    import pulumi_signalfx as signalfx
    
    myteam0 = signalfx.Team("myteam0",
        description="Super great team no jerks definitely",
        members=[
            "userid1",
            "userid2",
        ],
        notifications_criticals=["PagerDuty,credentialId"],
        notifications_infos=["Email,notify@example.com"])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SignalFx = Pulumi.SignalFx;
    
    return await Deployment.RunAsync(() => 
    {
        var myteam0 = new SignalFx.Team("myteam0", new()
        {
            Description = "Super great team no jerks definitely",
            Members = new[]
            {
                "userid1",
                "userid2",
            },
            NotificationsCriticals = new[]
            {
                "PagerDuty,credentialId",
            },
            NotificationsInfos = new[]
            {
                "Email,notify@example.com",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := signalfx.NewTeam(ctx, "myteam0", &signalfx.TeamArgs{
    			Description: pulumi.String("Super great team no jerks definitely"),
    			Members: pulumi.StringArray{
    				pulumi.String("userid1"),
    				pulumi.String("userid2"),
    			},
    			NotificationsCriticals: pulumi.StringArray{
    				pulumi.String("PagerDuty,credentialId"),
    			},
    			NotificationsInfos: pulumi.StringArray{
    				pulumi.String("Email,notify@example.com"),
    			},
    		})
    		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.signalfx.Team;
    import com.pulumi.signalfx.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) {
            var myteam0 = new Team("myteam0", TeamArgs.builder()        
                .description("Super great team no jerks definitely")
                .members(            
                    "userid1",
                    "userid2")
                .notificationsCriticals("PagerDuty,credentialId")
                .notificationsInfos("Email,notify@example.com")
                .build());
    
        }
    }
    
    resources:
      myteam0:
        type: signalfx:Team
        properties:
          description: Super great team no jerks definitely
          members:
            - userid1
            - userid2
          notificationsCriticals:
            - PagerDuty,credentialId
          notificationsInfos:
            - Email,notify@example.com
    

    Arguments

    The following arguments are supported in the resource block:

    • name - (Required) Name of the team.
    • description - (Optional) Description of the team.
    • members - (Optional) List of user IDs to include in the team.
    • notifications_critical - (Optional) Where to send notifications for critical alerts
    • notifications_default - (Optional) Where to send notifications for default alerts
    • notifications_info - (Optional) Where to send notifications for info alerts
    • notifications_major - (Optional) Where to send notifications for major alerts
    • notifications_minor - (Optional) Where to send notifications for minor alerts
    • notifications_warning - (Optional) Where to send notifications for warning alerts

    Attributes

    In a addition to all arguments above, the following attributes are exported:

    • id - The ID of the team.
    • url - The URL of the 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: Optional[TeamArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Team(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             members: Optional[Sequence[str]] = None,
             name: Optional[str] = None,
             notifications_criticals: Optional[Sequence[str]] = None,
             notifications_defaults: Optional[Sequence[str]] = None,
             notifications_infos: Optional[Sequence[str]] = None,
             notifications_majors: Optional[Sequence[str]] = None,
             notifications_minors: Optional[Sequence[str]] = None,
             notifications_warnings: Optional[Sequence[str]] = None)
    func NewTeam(ctx *Context, name string, args *TeamArgs, opts ...ResourceOption) (*Team, error)
    public Team(string name, TeamArgs? args = null, CustomResourceOptions? opts = null)
    public Team(String name, TeamArgs args)
    public Team(String name, TeamArgs args, CustomResourceOptions options)
    
    type: signalfx: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.

    Example

    The following reference example uses placeholder values for all input properties.

    var teamResource = new SignalFx.Team("teamResource", new()
    {
        Description = "string",
        Members = new[]
        {
            "string",
        },
        Name = "string",
        NotificationsCriticals = new[]
        {
            "string",
        },
        NotificationsDefaults = new[]
        {
            "string",
        },
        NotificationsInfos = new[]
        {
            "string",
        },
        NotificationsMajors = new[]
        {
            "string",
        },
        NotificationsMinors = new[]
        {
            "string",
        },
        NotificationsWarnings = new[]
        {
            "string",
        },
    });
    
    example, err := signalfx.NewTeam(ctx, "teamResource", &signalfx.TeamArgs{
    	Description: pulumi.String("string"),
    	Members: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	NotificationsCriticals: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationsDefaults: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationsInfos: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationsMajors: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationsMinors: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationsWarnings: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var teamResource = new Team("teamResource", TeamArgs.builder()        
        .description("string")
        .members("string")
        .name("string")
        .notificationsCriticals("string")
        .notificationsDefaults("string")
        .notificationsInfos("string")
        .notificationsMajors("string")
        .notificationsMinors("string")
        .notificationsWarnings("string")
        .build());
    
    team_resource = signalfx.Team("teamResource",
        description="string",
        members=["string"],
        name="string",
        notifications_criticals=["string"],
        notifications_defaults=["string"],
        notifications_infos=["string"],
        notifications_majors=["string"],
        notifications_minors=["string"],
        notifications_warnings=["string"])
    
    const teamResource = new signalfx.Team("teamResource", {
        description: "string",
        members: ["string"],
        name: "string",
        notificationsCriticals: ["string"],
        notificationsDefaults: ["string"],
        notificationsInfos: ["string"],
        notificationsMajors: ["string"],
        notificationsMinors: ["string"],
        notificationsWarnings: ["string"],
    });
    
    type: signalfx:Team
    properties:
        description: string
        members:
            - string
        name: string
        notificationsCriticals:
            - string
        notificationsDefaults:
            - string
        notificationsInfos:
            - string
        notificationsMajors:
            - string
        notificationsMinors:
            - string
        notificationsWarnings:
            - 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

    The Team resource accepts the following input properties:

    Description string
    Description of the team (Optional)
    Members List<string>
    Members of team
    Name string
    Name of the team
    NotificationsCriticals List<string>
    List of notification destinations to use for the critical alerts category.
    NotificationsDefaults List<string>
    List of notification destinations to use for the default alerts category.
    NotificationsInfos List<string>
    List of notification destinations to use for the info alerts category.
    NotificationsMajors List<string>
    List of notification destinations to use for the major alerts category.
    NotificationsMinors List<string>
    List of notification destinations to use for the minor alerts category.
    NotificationsWarnings List<string>
    List of notification destinations to use for the warning alerts category.
    Description string
    Description of the team (Optional)
    Members []string
    Members of team
    Name string
    Name of the team
    NotificationsCriticals []string
    List of notification destinations to use for the critical alerts category.
    NotificationsDefaults []string
    List of notification destinations to use for the default alerts category.
    NotificationsInfos []string
    List of notification destinations to use for the info alerts category.
    NotificationsMajors []string
    List of notification destinations to use for the major alerts category.
    NotificationsMinors []string
    List of notification destinations to use for the minor alerts category.
    NotificationsWarnings []string
    List of notification destinations to use for the warning alerts category.
    description String
    Description of the team (Optional)
    members List<String>
    Members of team
    name String
    Name of the team
    notificationsCriticals List<String>
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults List<String>
    List of notification destinations to use for the default alerts category.
    notificationsInfos List<String>
    List of notification destinations to use for the info alerts category.
    notificationsMajors List<String>
    List of notification destinations to use for the major alerts category.
    notificationsMinors List<String>
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings List<String>
    List of notification destinations to use for the warning alerts category.
    description string
    Description of the team (Optional)
    members string[]
    Members of team
    name string
    Name of the team
    notificationsCriticals string[]
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults string[]
    List of notification destinations to use for the default alerts category.
    notificationsInfos string[]
    List of notification destinations to use for the info alerts category.
    notificationsMajors string[]
    List of notification destinations to use for the major alerts category.
    notificationsMinors string[]
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings string[]
    List of notification destinations to use for the warning alerts category.
    description str
    Description of the team (Optional)
    members Sequence[str]
    Members of team
    name str
    Name of the team
    notifications_criticals Sequence[str]
    List of notification destinations to use for the critical alerts category.
    notifications_defaults Sequence[str]
    List of notification destinations to use for the default alerts category.
    notifications_infos Sequence[str]
    List of notification destinations to use for the info alerts category.
    notifications_majors Sequence[str]
    List of notification destinations to use for the major alerts category.
    notifications_minors Sequence[str]
    List of notification destinations to use for the minor alerts category.
    notifications_warnings Sequence[str]
    List of notification destinations to use for the warning alerts category.
    description String
    Description of the team (Optional)
    members List<String>
    Members of team
    name String
    Name of the team
    notificationsCriticals List<String>
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults List<String>
    List of notification destinations to use for the default alerts category.
    notificationsInfos List<String>
    List of notification destinations to use for the info alerts category.
    notificationsMajors List<String>
    List of notification destinations to use for the major alerts category.
    notificationsMinors List<String>
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings List<String>
    List of notification destinations to use for the warning alerts category.

    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.
    Url string
    URL of the team
    Id string
    The provider-assigned unique ID for this managed resource.
    Url string
    URL of the team
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    URL of the team
    id string
    The provider-assigned unique ID for this managed resource.
    url string
    URL of the team
    id str
    The provider-assigned unique ID for this managed resource.
    url str
    URL of the team
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    URL of 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,
            members: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            notifications_criticals: Optional[Sequence[str]] = None,
            notifications_defaults: Optional[Sequence[str]] = None,
            notifications_infos: Optional[Sequence[str]] = None,
            notifications_majors: Optional[Sequence[str]] = None,
            notifications_minors: Optional[Sequence[str]] = None,
            notifications_warnings: Optional[Sequence[str]] = None,
            url: Optional[str] = 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
    Description of the team (Optional)
    Members List<string>
    Members of team
    Name string
    Name of the team
    NotificationsCriticals List<string>
    List of notification destinations to use for the critical alerts category.
    NotificationsDefaults List<string>
    List of notification destinations to use for the default alerts category.
    NotificationsInfos List<string>
    List of notification destinations to use for the info alerts category.
    NotificationsMajors List<string>
    List of notification destinations to use for the major alerts category.
    NotificationsMinors List<string>
    List of notification destinations to use for the minor alerts category.
    NotificationsWarnings List<string>
    List of notification destinations to use for the warning alerts category.
    Url string
    URL of the team
    Description string
    Description of the team (Optional)
    Members []string
    Members of team
    Name string
    Name of the team
    NotificationsCriticals []string
    List of notification destinations to use for the critical alerts category.
    NotificationsDefaults []string
    List of notification destinations to use for the default alerts category.
    NotificationsInfos []string
    List of notification destinations to use for the info alerts category.
    NotificationsMajors []string
    List of notification destinations to use for the major alerts category.
    NotificationsMinors []string
    List of notification destinations to use for the minor alerts category.
    NotificationsWarnings []string
    List of notification destinations to use for the warning alerts category.
    Url string
    URL of the team
    description String
    Description of the team (Optional)
    members List<String>
    Members of team
    name String
    Name of the team
    notificationsCriticals List<String>
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults List<String>
    List of notification destinations to use for the default alerts category.
    notificationsInfos List<String>
    List of notification destinations to use for the info alerts category.
    notificationsMajors List<String>
    List of notification destinations to use for the major alerts category.
    notificationsMinors List<String>
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings List<String>
    List of notification destinations to use for the warning alerts category.
    url String
    URL of the team
    description string
    Description of the team (Optional)
    members string[]
    Members of team
    name string
    Name of the team
    notificationsCriticals string[]
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults string[]
    List of notification destinations to use for the default alerts category.
    notificationsInfos string[]
    List of notification destinations to use for the info alerts category.
    notificationsMajors string[]
    List of notification destinations to use for the major alerts category.
    notificationsMinors string[]
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings string[]
    List of notification destinations to use for the warning alerts category.
    url string
    URL of the team
    description str
    Description of the team (Optional)
    members Sequence[str]
    Members of team
    name str
    Name of the team
    notifications_criticals Sequence[str]
    List of notification destinations to use for the critical alerts category.
    notifications_defaults Sequence[str]
    List of notification destinations to use for the default alerts category.
    notifications_infos Sequence[str]
    List of notification destinations to use for the info alerts category.
    notifications_majors Sequence[str]
    List of notification destinations to use for the major alerts category.
    notifications_minors Sequence[str]
    List of notification destinations to use for the minor alerts category.
    notifications_warnings Sequence[str]
    List of notification destinations to use for the warning alerts category.
    url str
    URL of the team
    description String
    Description of the team (Optional)
    members List<String>
    Members of team
    name String
    Name of the team
    notificationsCriticals List<String>
    List of notification destinations to use for the critical alerts category.
    notificationsDefaults List<String>
    List of notification destinations to use for the default alerts category.
    notificationsInfos List<String>
    List of notification destinations to use for the info alerts category.
    notificationsMajors List<String>
    List of notification destinations to use for the major alerts category.
    notificationsMinors List<String>
    List of notification destinations to use for the minor alerts category.
    notificationsWarnings List<String>
    List of notification destinations to use for the warning alerts category.
    url String
    URL of the team

    Package Details

    Repository
    SignalFx pulumi/pulumi-signalfx
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the signalfx Terraform Provider.
    signalfx logo
    SignalFx v7.1.1 published on Tuesday, Feb 27, 2024 by Pulumi