import * as pulumi from "@pulumi/pulumi"; /** * Access Service Tokens are used for service-to-service communication * when an application is behind Cloudflare Access. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * // Generate a service token that will renew if terraform is ran within 30 days of expiration * const myApp = new cloudflare.AccessServiceToken("my_app", { * accountId: "d41d8cd98f00b204e9800998ecf8427e", * minDaysForRenewal: 30, * name: "CI/CD app renewed", * }); * ``` * * ## Import * * ~> **Important:** If you are importing an Access Service Token you will not have the `client_secret` available in the state for use. The `client_secret` is only available once, at creation. In most cases, it is better to just create a new resource should you need to reference it in other resources. Access Service Tokens can be imported using a composite ID formed of account ID and Service Token ID. * * ```sh * $ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken my_app cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e * ``` * * where * `cb029e245cfdd66dc8d2e570d5dd3322` - Account ID * `d41d8cd98f00b204e9800998ecf8427e` - Access Service Token ID */ export declare class AccessServiceToken extends pulumi.CustomResource { /** * Get an existing AccessServiceToken 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?: AccessServiceTokenState, opts?: pulumi.CustomResourceOptions): AccessServiceToken; /** * Returns true if the given object is an instance of AccessServiceToken. 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 AccessServiceToken; /** * The ID of the account where the Access Service is being created. Conflicts with `zoneId`. */ readonly accountId: pulumi.Output; /** * UUID client ID associated with the Service Token. */ readonly clientId: pulumi.Output; /** * A secret for interacting with Access protocols. */ readonly clientSecret: pulumi.Output; /** * Date when the token expires */ readonly expiresAt: pulumi.Output; readonly minDaysForRenewal: pulumi.Output; /** * Friendly name of the token's intent. */ readonly name: pulumi.Output; /** * The ID of the zone where the Access Service is being created. Conflicts with `accountId`. */ readonly zoneId: pulumi.Output; /** * Create a AccessServiceToken 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: AccessServiceTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccessServiceToken resources. */ export interface AccessServiceTokenState { /** * The ID of the account where the Access Service is being created. Conflicts with `zoneId`. */ accountId?: pulumi.Input; /** * UUID client ID associated with the Service Token. */ clientId?: pulumi.Input; /** * A secret for interacting with Access protocols. */ clientSecret?: pulumi.Input; /** * Date when the token expires */ expiresAt?: pulumi.Input; minDaysForRenewal?: pulumi.Input; /** * Friendly name of the token's intent. */ name?: pulumi.Input; /** * The ID of the zone where the Access Service is being created. Conflicts with `accountId`. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a AccessServiceToken resource. */ export interface AccessServiceTokenArgs { /** * The ID of the account where the Access Service is being created. Conflicts with `zoneId`. */ accountId?: pulumi.Input; minDaysForRenewal?: pulumi.Input; /** * Friendly name of the token's intent. */ name: pulumi.Input; /** * The ID of the zone where the Access Service is being created. Conflicts with `accountId`. */ zoneId?: pulumi.Input; }