import * as pulumi from "@pulumi/pulumi"; /** * **Note:** This resource is available only with Grafana 9.1+. * * Manages service account tokens of a Grafana Cloud stack using the Cloud API * This can be used to bootstrap a management service account token for a new stack * * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/service-accounts/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@lbrlabs/pulumi-grafana"; * * const cloudSa = new grafana.CloudStackServiceAccount("cloudSa", { * stackSlug: "", * role: "Admin", * isDisabled: false, * }); * const foo = new grafana.CloudStackServiceAccountToken("foo", {serviceAccountId: cloudSa.id}); * export const serviceAccountTokenFooKey = foo.key; * ``` */ export declare class CloudStackServiceAccountToken extends pulumi.CustomResource { /** * Get an existing CloudStackServiceAccountToken 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?: CloudStackServiceAccountTokenState, opts?: pulumi.CustomResourceOptions): CloudStackServiceAccountToken; /** * Returns true if the given object is an instance of CloudStackServiceAccountToken. 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 CloudStackServiceAccountToken; readonly expiration: pulumi.Output; readonly hasExpired: pulumi.Output; readonly key: pulumi.Output; readonly name: pulumi.Output; readonly secondsToLive: pulumi.Output; readonly serviceAccountId: pulumi.Output; readonly stackSlug: pulumi.Output; /** * Create a CloudStackServiceAccountToken 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: CloudStackServiceAccountTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStackServiceAccountToken resources. */ export interface CloudStackServiceAccountTokenState { expiration?: pulumi.Input; hasExpired?: pulumi.Input; key?: pulumi.Input; name?: pulumi.Input; secondsToLive?: pulumi.Input; serviceAccountId?: pulumi.Input; stackSlug?: pulumi.Input; } /** * The set of arguments for constructing a CloudStackServiceAccountToken resource. */ export interface CloudStackServiceAccountTokenArgs { name?: pulumi.Input; secondsToLive?: pulumi.Input; serviceAccountId: pulumi.Input; stackSlug: pulumi.Input; }