import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Team Sync resource. This can be used to configure team synchronization from external sources (e.g. GitHub or ServiceNow) into Datadog. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Configure team synchronization from GitHub * const example = new datadog.TeamSync("example", { * source: "github", * type: "link", * frequency: "continuously", * syncMembership: true, * selectionStates: [{ * operation: "include", * scope: "subtree", * externalId: [{ * type: "organization", * value: "12345", * }], * }], * }); * // Configure team synchronization from ServiceNow * const servicenow = new datadog.TeamSync("servicenow", { * source: "servicenow", * type: "link", * frequency: "continuously", * selectionStates: [{ * externalId: [{ * type: "organization", * value: "my-instance", * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/teamSync:TeamSync example "github" * $ pulumi import datadog:index/teamSync:TeamSync servicenow "servicenow" * ``` */ export declare class TeamSync extends pulumi.CustomResource { /** * Get an existing TeamSync 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?: TeamSyncState, opts?: pulumi.CustomResourceOptions): TeamSync; /** * Check whether an existing TeamSync 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?: TeamSyncState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of TeamSync. 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 TeamSync; /** * How often the sync process should run. Valid values are `once`, `continuously`, `paused`. Defaults to `"once"`. */ readonly frequency: pulumi.Output; /** * Specifies which teams or organizations to sync. When provided, synchronization is limited to the specified items and their subtrees. */ readonly selectionStates: pulumi.Output; /** * The external source platform for team synchronization. Valid values are `github`, `servicenow`. */ readonly source: pulumi.Output; /** * Whether to sync members from the external team to the Datadog team. Defaults to `false`. */ readonly syncMembership: pulumi.Output; /** * The type of synchronization operation. `link` connects teams by matching names. `provision` creates new teams when no match is found. Valid values are `link`, `provision`. */ readonly type: pulumi.Output; /** * Create a TeamSync 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: TeamSyncArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TeamSync resources. */ export interface TeamSyncState { /** * How often the sync process should run. Valid values are `once`, `continuously`, `paused`. Defaults to `"once"`. */ frequency?: pulumi.Input; /** * Specifies which teams or organizations to sync. When provided, synchronization is limited to the specified items and their subtrees. */ selectionStates?: pulumi.Input[] | undefined>; /** * The external source platform for team synchronization. Valid values are `github`, `servicenow`. */ source?: pulumi.Input; /** * Whether to sync members from the external team to the Datadog team. Defaults to `false`. */ syncMembership?: pulumi.Input; /** * The type of synchronization operation. `link` connects teams by matching names. `provision` creates new teams when no match is found. Valid values are `link`, `provision`. */ type?: pulumi.Input; } /** * The set of arguments for constructing a TeamSync resource. */ export interface TeamSyncArgs { /** * How often the sync process should run. Valid values are `once`, `continuously`, `paused`. Defaults to `"once"`. */ frequency?: pulumi.Input; /** * Specifies which teams or organizations to sync. When provided, synchronization is limited to the specified items and their subtrees. */ selectionStates?: pulumi.Input[] | undefined>; /** * The external source platform for team synchronization. Valid values are `github`, `servicenow`. */ source: pulumi.Input; /** * Whether to sync members from the external team to the Datadog team. Defaults to `false`. */ syncMembership?: pulumi.Input; /** * The type of synchronization operation. `link` connects teams by matching names. `provision` creates new teams when no match is found. Valid values are `link`, `provision`. */ type: pulumi.Input; } //# sourceMappingURL=teamSync.d.ts.map