UNPKG

@pulumi/signalfx

Version:

A Pulumi package for creating and managing SignalFx resources.

92 lines 4.69 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Team = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Handles management of Splunk Observability Cloud teams. * * You can configure [team notification policies](https://docs.splunk.com/observability/en/admin/user-management/teams/team-notifications.html) 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](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as signalfx from "@pulumi/signalfx"; * * const myteam0 = new signalfx.Team("myteam0", { * name: "Best Team Ever", * description: "Super great team no jerks definitely", * members: [ * "userid1", * "userid2", * ], * notificationsCriticals: ["PagerDuty,credentialId"], * notificationsInfos: ["Email,notify@example.com"], * }); * ``` */ class Team extends pulumi.CustomResource { /** * Get an existing Team resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Team. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Team.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["members"] = state ? state.members : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["notificationsCriticals"] = state ? state.notificationsCriticals : undefined; resourceInputs["notificationsDefaults"] = state ? state.notificationsDefaults : undefined; resourceInputs["notificationsInfos"] = state ? state.notificationsInfos : undefined; resourceInputs["notificationsMajors"] = state ? state.notificationsMajors : undefined; resourceInputs["notificationsMinors"] = state ? state.notificationsMinors : undefined; resourceInputs["notificationsWarnings"] = state ? state.notificationsWarnings : undefined; resourceInputs["url"] = state ? state.url : undefined; } else { const args = argsOrState; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["members"] = args ? args.members : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["notificationsCriticals"] = args ? args.notificationsCriticals : undefined; resourceInputs["notificationsDefaults"] = args ? args.notificationsDefaults : undefined; resourceInputs["notificationsInfos"] = args ? args.notificationsInfos : undefined; resourceInputs["notificationsMajors"] = args ? args.notificationsMajors : undefined; resourceInputs["notificationsMinors"] = args ? args.notificationsMinors : undefined; resourceInputs["notificationsWarnings"] = args ? args.notificationsWarnings : undefined; resourceInputs["url"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Team.__pulumiType, name, resourceInputs, opts); } } exports.Team = Team; /** @internal */ Team.__pulumiType = 'signalfx:index/team:Team'; //# sourceMappingURL=team.js.map