import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleZeroTrustAccessServiceToken = new cloudflare.ZeroTrustAccessServiceToken("example_zero_trust_access_service_token", { * name: "CI/CD token", * zoneId: "zone_id", * duration: "60m", * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken example '<{accounts|zones}/{account_id|zone_id}>/' * ``` * * @deprecated cloudflare.index/accessservicetoken.AccessServiceToken has been deprecated in favor of cloudflare.index/zerotrustaccessservicetoken.ZeroTrustAccessServiceToken */ 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 Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ readonly accountId: pulumi.Output; /** * The Client ID for the service token. Access will check for this value in the `CF-Access-Client-ID` request header. */ readonly clientId: pulumi.Output; /** * The Client Secret for the service token. Access will check for this value in the `CF-Access-Client-Secret` request header. */ readonly clientSecret: pulumi.Output; readonly createdAt: pulumi.Output; /** * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). */ readonly duration: pulumi.Output; readonly expiresAt: pulumi.Output; readonly lastSeenAt: pulumi.Output; /** * The name of the service token. */ readonly name: pulumi.Output; readonly updatedAt: pulumi.Output; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ 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. */ /** @deprecated cloudflare.index/accessservicetoken.AccessServiceToken has been deprecated in favor of cloudflare.index/zerotrustaccessservicetoken.ZeroTrustAccessServiceToken */ constructor(name: string, args: AccessServiceTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccessServiceToken resources. */ export interface AccessServiceTokenState { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: pulumi.Input; /** * The Client ID for the service token. Access will check for this value in the `CF-Access-Client-ID` request header. */ clientId?: pulumi.Input; /** * The Client Secret for the service token. Access will check for this value in the `CF-Access-Client-Secret` request header. */ clientSecret?: pulumi.Input; createdAt?: pulumi.Input; /** * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). */ duration?: pulumi.Input; expiresAt?: pulumi.Input; lastSeenAt?: pulumi.Input; /** * The name of the service token. */ name?: pulumi.Input; updatedAt?: pulumi.Input; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a AccessServiceToken resource. */ export interface AccessServiceTokenArgs { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: pulumi.Input; /** * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). */ duration?: pulumi.Input; /** * The name of the service token. */ name: pulumi.Input; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: pulumi.Input; }