import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleZeroTrustAccessServiceToken = cloudflare.getZeroTrustAccessServiceToken({ * serviceTokenId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415", * accountId: "account_id", * zoneId: "zone_id", * }); * ``` */ export declare function getZeroTrustAccessServiceToken(args?: GetZeroTrustAccessServiceTokenArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getZeroTrustAccessServiceToken. */ export interface GetZeroTrustAccessServiceTokenArgs { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: string; filter?: inputs.GetZeroTrustAccessServiceTokenFilter; /** * UUID. */ serviceTokenId?: string; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: string; } /** * A collection of values returned by getZeroTrustAccessServiceToken. */ export interface GetZeroTrustAccessServiceTokenResult { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ readonly accountId?: string; /** * The Client ID for the service token. Access will check for this value in the `CF-Access-Client-ID` request header. */ readonly clientId: string; readonly createdAt: string; /** * 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: string; readonly expiresAt: string; readonly filter?: outputs.GetZeroTrustAccessServiceTokenFilter; /** * UUID. */ readonly id: string; readonly lastSeenAt: string; /** * The name of the service token. */ readonly name: string; /** * UUID. */ readonly serviceTokenId?: string; readonly updatedAt: string; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ readonly zoneId?: string; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleZeroTrustAccessServiceToken = cloudflare.getZeroTrustAccessServiceToken({ * serviceTokenId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415", * accountId: "account_id", * zoneId: "zone_id", * }); * ``` */ export declare function getZeroTrustAccessServiceTokenOutput(args?: GetZeroTrustAccessServiceTokenOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getZeroTrustAccessServiceToken. */ export interface GetZeroTrustAccessServiceTokenOutputArgs { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: pulumi.Input; filter?: pulumi.Input; /** * UUID. */ serviceTokenId?: pulumi.Input; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: pulumi.Input; }