import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Team Connection resource. This can be used to create and manage connections between a Datadog team and an external team (e.g. a GitHub team or a ServiceNow group). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const example = new datadog.Team("example", { * description: "Example team", * handle: "example-team", * name: "Example Team", * }); * // Create a connection between a Datadog team and a GitHub team * const exampleTeamConnection = new datadog.TeamConnection("example", { * team: [{ * id: example.id, * type: "team", * }], * connectedTeam: [{ * id: "@GitHubOrg/team-handle", * type: "github_team", * }], * }); * // Create a connection between a Datadog team and a ServiceNow group * const servicenow = new datadog.TeamConnection("servicenow", { * team: [{ * id: example.id, * type: "team", * }], * connectedTeam: [{ * id: "my-instance/0123456789abcdef0123456789abcdef", * type: "servicenow_team", * }], * source: "servicenow", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/teamConnection:TeamConnection example "${connection_id}" * ``` */ export declare class TeamConnection extends pulumi.CustomResource { /** * Get an existing TeamConnection 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: string, id: pulumi.Input, state?: TeamConnectionState, opts?: pulumi.CustomResourceOptions): TeamConnection; /** * Check whether an existing TeamConnection resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: TeamConnectionState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of TeamConnection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TeamConnection; /** * The external connected team reference (e.g. a GitHub team or a ServiceNow group). */ readonly connectedTeam: pulumi.Output; /** * The name of the external source, such as `github` or `servicenow`. */ readonly source: pulumi.Output; /** * The Datadog team reference. */ readonly team: pulumi.Output; /** * Create a TeamConnection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TeamConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TeamConnection resources. */ export interface TeamConnectionState { /** * The external connected team reference (e.g. a GitHub team or a ServiceNow group). */ connectedTeam?: pulumi.Input; /** * The name of the external source, such as `github` or `servicenow`. */ source?: pulumi.Input; /** * The Datadog team reference. */ team?: pulumi.Input; } /** * The set of arguments for constructing a TeamConnection resource. */ export interface TeamConnectionArgs { /** * The external connected team reference (e.g. a GitHub team or a ServiceNow group). */ connectedTeam: pulumi.Input; /** * The name of the external source, such as `github` or `servicenow`. */ source?: pulumi.Input; /** * The Datadog team reference. */ team: pulumi.Input; } //# sourceMappingURL=teamConnection.d.ts.map