@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
118 lines • 4.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a DigitalOcean Dedicated Inference Token resource. This can be used to
* create and revoke API tokens for dedicated inference endpoints.
*
* > **Note:** The `token` attribute is only available immediately after creation
* and cannot be retrieved afterwards. Make sure to store it securely.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = new digitalocean.DedicatedInference("example", {
* name: "my-inference-endpoint",
* region: "tor1",
* modelDeployments: [{
* modelSlug: "deepseek-r1-distill-qwen-14b",
* modelProvider: "digitalocean",
* accelerators: [{
* acceleratorSlug: "gpu-h100x1-80gb",
* scale: 1,
* type: "nvidia_h100",
* }],
* }],
* });
* const exampleDedicatedInferenceToken = new digitalocean.DedicatedInferenceToken("example", {
* dedicatedInferenceId: example.id,
* name: "my-api-token",
* });
* ```
*
* ## Import
*
* Dedicated inference tokens can be imported using the composite ID
* `{dedicated_inference_id}:{token_id}`, e.g.
*
* ```sh
* $ pulumi import digitalocean:index/dedicatedInferenceToken:DedicatedInferenceToken example endpoint-id:token-id
* ```
*/
export declare class DedicatedInferenceToken extends pulumi.CustomResource {
/**
* Get an existing DedicatedInferenceToken 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<pulumi.ID>, state?: DedicatedInferenceTokenState, opts?: pulumi.CustomResourceOptions): DedicatedInferenceToken;
/**
* Returns true if the given object is an instance of DedicatedInferenceToken. 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 DedicatedInferenceToken;
/**
* The date and time when the token was created.
*/
readonly createdAt: pulumi.Output<string>;
/**
* The ID of the dedicated inference endpoint this token belongs to. Changing this forces a new resource.
*/
readonly dedicatedInferenceId: pulumi.Output<string>;
/**
* A human-readable name for the token. Changing this forces a new resource.
*/
readonly name: pulumi.Output<string>;
/**
* (Sensitive) The token value. Only available immediately after creation and not retrievable afterwards.
*/
readonly token: pulumi.Output<string>;
/**
* Create a DedicatedInferenceToken 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: DedicatedInferenceTokenArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DedicatedInferenceToken resources.
*/
export interface DedicatedInferenceTokenState {
/**
* The date and time when the token was created.
*/
createdAt?: pulumi.Input<string | undefined>;
/**
* The ID of the dedicated inference endpoint this token belongs to. Changing this forces a new resource.
*/
dedicatedInferenceId?: pulumi.Input<string | undefined>;
/**
* A human-readable name for the token. Changing this forces a new resource.
*/
name?: pulumi.Input<string | undefined>;
/**
* (Sensitive) The token value. Only available immediately after creation and not retrievable afterwards.
*/
token?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a DedicatedInferenceToken resource.
*/
export interface DedicatedInferenceTokenArgs {
/**
* The ID of the dedicated inference endpoint this token belongs to. Changing this forces a new resource.
*/
dedicatedInferenceId: pulumi.Input<string>;
/**
* A human-readable name for the token. Changing this forces a new resource.
*/
name?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=dedicatedInferenceToken.d.ts.map