import * as pulumi from "@pulumi/pulumi"; /** * With this resource, you can manage enabled connections on an organization. * * !> This resource appends a connection to an organization. In contrast, the `auth0.OrganizationConnections` resource * manages all the connections enabled for an organization. To avoid potential issues, it is recommended not to use this * resource in conjunction with the `auth0.OrganizationConnections` resource when managing enabled connections for the * same organization id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const myConnection = new auth0.Connection("my_connection", { * name: "My Connection", * strategy: "auth0", * }); * const myOrganization = new auth0.Organization("my_organization", { * name: "my-organization", * displayName: "My Organization", * }); * const myOrgConn = new auth0.OrganizationConnection("my_org_conn", { * organizationId: myOrganization.id, * connectionId: myConnection.id, * assignMembershipOnLogin: true, * isSignupEnabled: false, * showAsButton: true, * }); * ``` * * ## Import * * This resource can be imported by specifying the * * organization ID and connection ID separated by "::" (note the double colon) * * :: * * Example: * * ```sh * $ pulumi import auth0:index/organizationConnection:OrganizationConnection my_org_conn "org_XXXXX::con_XXXXX" * ``` */ export declare class OrganizationConnection extends pulumi.CustomResource { /** * Get an existing OrganizationConnection 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?: OrganizationConnectionState, opts?: pulumi.CustomResourceOptions): OrganizationConnection; /** * Returns true if the given object is an instance of OrganizationConnection. 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 OrganizationConnection; /** * When `true`, all users that log in with this connection will be automatically granted membership in the organization. When `false`, users must be granted membership in the organization before logging in with this connection. */ readonly assignMembershipOnLogin: pulumi.Output; /** * The ID of the connection to enable for the organization. */ readonly connectionId: pulumi.Output; /** * Determines whether organization sign-up should be enabled for this organization connection. Only applicable for database connections. Note: `isSignupEnabled` can only be `true` if `assignMembershipOnLogin` is `true`. */ readonly isSignupEnabled: pulumi.Output; /** * The name of the enabled connection. */ readonly name: pulumi.Output; /** * The ID of the organization to enable the connection for. */ readonly organizationId: pulumi.Output; /** * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. */ readonly showAsButton: pulumi.Output; /** * The strategy of the enabled connection. */ readonly strategy: pulumi.Output; /** * Create a OrganizationConnection 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: OrganizationConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationConnection resources. */ export interface OrganizationConnectionState { /** * When `true`, all users that log in with this connection will be automatically granted membership in the organization. When `false`, users must be granted membership in the organization before logging in with this connection. */ assignMembershipOnLogin?: pulumi.Input; /** * The ID of the connection to enable for the organization. */ connectionId?: pulumi.Input; /** * Determines whether organization sign-up should be enabled for this organization connection. Only applicable for database connections. Note: `isSignupEnabled` can only be `true` if `assignMembershipOnLogin` is `true`. */ isSignupEnabled?: pulumi.Input; /** * The name of the enabled connection. */ name?: pulumi.Input; /** * The ID of the organization to enable the connection for. */ organizationId?: pulumi.Input; /** * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. */ showAsButton?: pulumi.Input; /** * The strategy of the enabled connection. */ strategy?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationConnection resource. */ export interface OrganizationConnectionArgs { /** * When `true`, all users that log in with this connection will be automatically granted membership in the organization. When `false`, users must be granted membership in the organization before logging in with this connection. */ assignMembershipOnLogin?: pulumi.Input; /** * The ID of the connection to enable for the organization. */ connectionId: pulumi.Input; /** * Determines whether organization sign-up should be enabled for this organization connection. Only applicable for database connections. Note: `isSignupEnabled` can only be `true` if `assignMembershipOnLogin` is `true`. */ isSignupEnabled?: pulumi.Input; /** * The ID of the organization to enable the connection for. */ organizationId: pulumi.Input; /** * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. */ showAsButton?: pulumi.Input; }