import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ## Import * * rootly.ApiKey can be imported using the `import` command. * * ```sh * $ pulumi import rootly:index/apiKey:ApiKey primary a816421c-6ceb-481a-87c4-585e47451f24 * ``` * * Or using an `import` block. * * Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app. * * HCL can be generated from the import block using the `-generate-config-out` flag. * * ```sh * pulumi preview -generate-config-out=generated.tf * ``` */ export declare class ApiKey extends pulumi.CustomResource { /** * Get an existing ApiKey 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?: ApiKeyState, opts?: pulumi.CustomResourceOptions): ApiKey; /** * Returns true if the given object is an instance of ApiKey. 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 ApiKey; /** * A description of the API key */ readonly description: pulumi.Output; /** * Expiration date */ readonly expiresAt: pulumi.Output; /** * Grace period end date */ readonly gracePeriodEndsAt: pulumi.Output; /** * The kind of the API key. Value must be one of `personal`, `team`, `organization`. */ readonly kind: pulumi.Output; /** * Date of last use */ readonly lastUsedAt: pulumi.Output; /** * The name of the API key */ readonly name: pulumi.Output; /** * The on-call role ID */ readonly onCallRoleId: pulumi.Output; /** * The role ID */ readonly roleId: pulumi.Output; /** * Create a ApiKey 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: ApiKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiKey resources. */ export interface ApiKeyState { /** * A description of the API key */ description?: pulumi.Input; /** * Expiration date */ expiresAt?: pulumi.Input; /** * Grace period end date */ gracePeriodEndsAt?: pulumi.Input; /** * The kind of the API key. Value must be one of `personal`, `team`, `organization`. */ kind?: pulumi.Input; /** * Date of last use */ lastUsedAt?: pulumi.Input; /** * The name of the API key */ name?: pulumi.Input; /** * The on-call role ID */ onCallRoleId?: pulumi.Input; /** * The role ID */ roleId?: pulumi.Input; } /** * The set of arguments for constructing a ApiKey resource. */ export interface ApiKeyArgs { /** * A description of the API key */ description?: pulumi.Input; /** * Expiration date */ expiresAt: pulumi.Input; /** * Grace period end date */ gracePeriodEndsAt?: pulumi.Input; /** * The kind of the API key. Value must be one of `personal`, `team`, `organization`. */ kind?: pulumi.Input; /** * Date of last use */ lastUsedAt?: pulumi.Input; /** * The name of the API key */ name?: pulumi.Input; /** * The on-call role ID */ onCallRoleId?: pulumi.Input; /** * The role ID */ roleId?: pulumi.Input; } //# sourceMappingURL=apiKey.d.ts.map