UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

83 lines (82 loc) 3.13 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as authentik from "@osmit-gmbh/pulumi-authentik"; * import * as authentik from "@pulumi/authentik"; * * // Create OAuth Source using an existing provider * const default-authorization-flow = authentik.getFlow({ * slug: "default-provider-authorization-implicit-consent", * }); * const name = new authentik.SourceOauth("name", { * name: "discord", * slug: "discord", * authenticationFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id), * enrollmentFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id), * providerType: "discord", * consumerKey: "foo", * consumerSecret: "bar", * }); * // Create a source stage using the source defined above * const nameStageSource = new authentik.StageSource("name", { * name: "source-stage", * source: name.id, * }); * ``` */ export declare class StageSource extends pulumi.CustomResource { /** * Get an existing StageSource 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<pulumi.ID>, state?: StageSourceState, opts?: pulumi.CustomResourceOptions): StageSource; /** * Returns true if the given object is an instance of StageSource. 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 StageSource; readonly name: pulumi.Output<string>; /** * Defaults to `minutes=10`. */ readonly resumeTimeout: pulumi.Output<string | undefined>; readonly source: pulumi.Output<string | undefined>; /** * Create a StageSource 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?: StageSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StageSource resources. */ export interface StageSourceState { name?: pulumi.Input<string>; /** * Defaults to `minutes=10`. */ resumeTimeout?: pulumi.Input<string>; source?: pulumi.Input<string>; } /** * The set of arguments for constructing a StageSource resource. */ export interface StageSourceArgs { name?: pulumi.Input<string>; /** * Defaults to `minutes=10`. */ resumeTimeout?: pulumi.Input<string>; source?: pulumi.Input<string>; }