import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog Org Group Membership resource. This can be used to manage an organization's membership in an org group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const prod = new datadog.OrgGroup("prod", {name: "Production Environments"}); * // Moves the given organization into the prod org group. * const example = new datadog.OrgGroupMembership("example", { * orgGroupId: prod.id, * orgUuid: "ff4a8255-6931-58d1-add0-a6b3602d5421", * }); * ``` * * ## Behavior notes * * ### In-place moves vs. replacement * * Changing `orgGroupId` moves the organization between groups in place via the server's membership-update endpoint. The resource is **not** re-created. Changing `orgUuid` triggers replacement because the resource represents a specific org's membership. * * ### State-only destroy * * Destroying this resource is state-only: Terraform removes the resource from its state without calling an API, because the server has no endpoint to "delete" a membership outright. The organization stays in its current group until another `datadog.OrgGroupMembership` resource (or an out-of-band API call) moves it. * * Because of this, destroying a `datadog.OrgGroup` requires that it has **zero memberships pointing at it**. Before destroying a group, move every member org to another group first, either by updating `orgGroupId` on each membership resource (in-place reassignment) or by removing the member-org configs so Terraform reassigns them elsewhere. * * ## Import * * ```sh * $ pulumi import datadog:index/orgGroupMembership:OrgGroupMembership example * ``` */ export declare class OrgGroupMembership extends pulumi.CustomResource { /** * Get an existing OrgGroupMembership 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?: OrgGroupMembershipState, opts?: pulumi.CustomResourceOptions): OrgGroupMembership; /** * Check whether an existing OrgGroupMembership 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?: OrgGroupMembershipState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of OrgGroupMembership. 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 OrgGroupMembership; /** * The UUID of the org group to assign the organization to. Must be a valid UUID. */ readonly orgGroupId: pulumi.Output; /** * The name of the organization. */ readonly orgName: pulumi.Output; /** * The site of the organization. Server-managed (derived from the organization's own settings). */ readonly orgSite: pulumi.Output; /** * The UUID of the organization. Must be a valid UUID. */ readonly orgUuid: pulumi.Output; /** * Create a OrgGroupMembership 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: OrgGroupMembershipArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrgGroupMembership resources. */ export interface OrgGroupMembershipState { /** * The UUID of the org group to assign the organization to. Must be a valid UUID. */ orgGroupId?: pulumi.Input; /** * The name of the organization. */ orgName?: pulumi.Input; /** * The site of the organization. Server-managed (derived from the organization's own settings). */ orgSite?: pulumi.Input; /** * The UUID of the organization. Must be a valid UUID. */ orgUuid?: pulumi.Input; } /** * The set of arguments for constructing a OrgGroupMembership resource. */ export interface OrgGroupMembershipArgs { /** * The UUID of the org group to assign the organization to. Must be a valid UUID. */ orgGroupId: pulumi.Input; /** * The UUID of the organization. Must be a valid UUID. */ orgUuid: pulumi.Input; } //# sourceMappingURL=orgGroupMembership.d.ts.map