import * as pulumi from "@pulumi/pulumi"; /** * Resource for creating delegate tokens. Delegate tokens can be created and revoked. Revoked tokens immediately stop functioning and are only purged after 30 days, meaning you cannot recreate a token with the same name within that period. * To revoke a token, set tokenStatus field to "REVOKED". * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Create delegate token at account level * const accountLevel = new harness.platform.Delegatetoken("account_level", { * name: "account-delegate-token", * accountId: "account_id", * }); * // Create delegate token at organization level * const orgLevel = new harness.platform.Delegatetoken("org_level", { * name: "org-delegate-token", * accountId: "account_id", * orgId: "org_id", * }); * // Create delegate token at project level * const projectLevel = new harness.platform.Delegatetoken("project_level", { * name: "project-delegate-token", * accountId: "account_id", * orgId: "org_id", * projectId: "project_id", * }); * // Create delegate token with auto-expiry * const expiryToken = new harness.platform.Delegatetoken("expiry_token", { * name: "expiry-delegate-token", * accountId: "account_id", * revokeAfter: 1769689600000, * }); * ``` */ export declare class Delegatetoken extends pulumi.CustomResource { /** * Get an existing Delegatetoken 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?: DelegatetokenState, opts?: pulumi.CustomResourceOptions): Delegatetoken; /** * Returns true if the given object is an instance of Delegatetoken. 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 Delegatetoken; /** * Account Identifier for the Entity */ readonly accountId: pulumi.Output; /** * Time when the delegate token is created. This is an epoch timestamp. */ readonly createdAt: pulumi.Output; /** * created by details */ readonly createdBy: pulumi.Output<{ [key: string]: string; }>; /** * Name of the delegate token */ readonly name: pulumi.Output; /** * Org Identifier for the Entity */ readonly orgId: pulumi.Output; /** * Project Identifier for the Entity */ readonly projectId: pulumi.Output; /** * Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token. */ readonly revokeAfter: pulumi.Output; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ readonly tokenStatus: pulumi.Output; /** * Value of the delegate token. Encoded in base64. */ readonly value: pulumi.Output; /** * Create a Delegatetoken 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: DelegatetokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Delegatetoken resources. */ export interface DelegatetokenState { /** * Account Identifier for the Entity */ accountId?: pulumi.Input; /** * Time when the delegate token is created. This is an epoch timestamp. */ createdAt?: pulumi.Input; /** * created by details */ createdBy?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the delegate token */ name?: pulumi.Input; /** * Org Identifier for the Entity */ orgId?: pulumi.Input; /** * Project Identifier for the Entity */ projectId?: pulumi.Input; /** * Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token. */ revokeAfter?: pulumi.Input; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ tokenStatus?: pulumi.Input; /** * Value of the delegate token. Encoded in base64. */ value?: pulumi.Input; } /** * The set of arguments for constructing a Delegatetoken resource. */ export interface DelegatetokenArgs { /** * Account Identifier for the Entity */ accountId: pulumi.Input; /** * Time when the delegate token is created. This is an epoch timestamp. */ createdAt?: pulumi.Input; /** * created by details */ createdBy?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the delegate token */ name?: pulumi.Input; /** * Org Identifier for the Entity */ orgId?: pulumi.Input; /** * Project Identifier for the Entity */ projectId?: pulumi.Input; /** * Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token. */ revokeAfter?: pulumi.Input; /** * Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed */ tokenStatus?: pulumi.Input; /** * Value of the delegate token. Encoded in base64. */ value?: pulumi.Input; } //# sourceMappingURL=delegatetoken.d.ts.map