import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * With this resource, you can manage enabled connections on an organization. * * !> This resource manages all the connections enabled for an organization. In contrast, the `auth0.OrganizationConnection` * resource appends a connection to an organization. To avoid potential issues, it is recommended not to use this * resource in conjunction with the `auth0.OrganizationConnection` resource when managing connections for the same * organization id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const myConnection_1 = new auth0.Connection("my_connection-1", { * name: "My Connection 1", * strategy: "auth0", * }); * const myConnection_2 = new auth0.Connection("my_connection-2", { * name: "My Connection 2", * strategy: "auth0", * }); * const myOrganization = new auth0.Organization("my_organization", { * name: "my-organization", * displayName: "My Organization", * }); * const one_to_many = new auth0.OrganizationConnections("one-to-many", { * organizationId: myOrganization.id, * enabledConnections: [ * { * connectionId: myConnection_1.id, * assignMembershipOnLogin: true, * isSignupEnabled: false, * showAsButton: true, * }, * { * connectionId: myConnection_2.id, * assignMembershipOnLogin: true, * isSignupEnabled: false, * showAsButton: true, * }, * ], * }); * ``` * * ## Import * * This resource can be imported by specifying the organization ID. * * Example: * * ```sh * $ pulumi import auth0:index/organizationConnections:OrganizationConnections my_org_conns "org_XXXXX" * ``` */ export declare class OrganizationConnections extends pulumi.CustomResource { /** * Get an existing OrganizationConnections 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?: OrganizationConnectionsState, opts?: pulumi.CustomResourceOptions): OrganizationConnections; /** * Returns true if the given object is an instance of OrganizationConnections. 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 OrganizationConnections; /** * Connections that are enabled for the organization. */ readonly enabledConnections: pulumi.Output; /** * ID of the organization on which to enable the connections. */ readonly organizationId: pulumi.Output; /** * Create a OrganizationConnections 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: OrganizationConnectionsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationConnections resources. */ export interface OrganizationConnectionsState { /** * Connections that are enabled for the organization. */ enabledConnections?: pulumi.Input[]>; /** * ID of the organization on which to enable the connections. */ organizationId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationConnections resource. */ export interface OrganizationConnectionsArgs { /** * Connections that are enabled for the organization. */ enabledConnections: pulumi.Input[]>; /** * ID of the organization on which to enable the connections. */ organizationId: pulumi.Input; }