import * as pulumi from "@pulumi/pulumi"; export declare class ApiToken extends pulumi.CustomResource { /** * Get an existing ApiToken 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?: ApiTokenState, opts?: pulumi.CustomResourceOptions): ApiToken; /** * Returns true if the given object is an instance of ApiToken. 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 ApiToken; /** * Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ readonly creationDate: pulumi.Output; /** * The token is enabled (true) or disabled (false), default disabled (false). */ readonly enabled: pulumi.Output; /** * The expiration date of the token. */ readonly expirationDate: pulumi.Output; /** * Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ readonly lastUsedDate: pulumi.Output; /** * Token last used IP address. */ readonly lastUsedIpAddress: pulumi.Output; /** * Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'). */ readonly modifiedDate: pulumi.Output; /** * The name of the token. */ readonly name: pulumi.Output; /** * The owner of the token */ readonly owner: pulumi.Output; /** * The token is a personal access token (true) or an API token (false). */ readonly personalAccessToken: pulumi.Output; /** * A list of the scopes to be assigned to the token. */ readonly scopes: pulumi.Output; /** * The secret of the token. */ readonly token: pulumi.Output; /** * Create a ApiToken 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: ApiTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiToken resources. */ export interface ApiTokenState { /** * Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ creationDate?: pulumi.Input; /** * The token is enabled (true) or disabled (false), default disabled (false). */ enabled?: pulumi.Input; /** * The expiration date of the token. */ expirationDate?: pulumi.Input; /** * Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ lastUsedDate?: pulumi.Input; /** * Token last used IP address. */ lastUsedIpAddress?: pulumi.Input; /** * Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'). */ modifiedDate?: pulumi.Input; /** * The name of the token. */ name?: pulumi.Input; /** * The owner of the token */ owner?: pulumi.Input; /** * The token is a personal access token (true) or an API token (false). */ personalAccessToken?: pulumi.Input; /** * A list of the scopes to be assigned to the token. */ scopes?: pulumi.Input[]>; /** * The secret of the token. */ token?: pulumi.Input; } /** * The set of arguments for constructing a ApiToken resource. */ export interface ApiTokenArgs { /** * Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ creationDate?: pulumi.Input; /** * The token is enabled (true) or disabled (false), default disabled (false). */ enabled?: pulumi.Input; /** * The expiration date of the token. */ expirationDate?: pulumi.Input; /** * Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') */ lastUsedDate?: pulumi.Input; /** * Token last used IP address. */ lastUsedIpAddress?: pulumi.Input; /** * Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'). */ modifiedDate?: pulumi.Input; /** * The name of the token. */ name?: pulumi.Input; /** * The owner of the token */ owner?: pulumi.Input; /** * The token is a personal access token (true) or an API token (false). */ personalAccessToken?: pulumi.Input; /** * A list of the scopes to be assigned to the token. */ scopes: pulumi.Input[]>; }