import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Cognitive Services Account Deployment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.cognitive.Account("example", { * name: "example-ca", * location: example.location, * resourceGroupName: example.name, * kind: "OpenAI", * skuName: "S0", * }); * const exampleDeployment = new azure.cognitive.Deployment("example", { * name: "example-cd", * cognitiveAccountId: exampleAccount.id, * model: { * format: "OpenAI", * name: "text-curie-001", * version: "1", * }, * sku: { * name: "Standard", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.CognitiveServices` - 2025-06-01 * * ## Import * * Cognitive Services Account Deployment can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:cognitive/deployment:Deployment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.CognitiveServices/accounts/account1/deployments/deployment1 * ``` */ export declare class Deployment extends pulumi.CustomResource { /** * Get an existing Deployment 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?: DeploymentState, opts?: pulumi.CustomResourceOptions): Deployment; /** * Returns true if the given object is an instance of Deployment. 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 Deployment; /** * The ID of the Cognitive Services Account. Changing this forces a new resource to be created. */ readonly cognitiveAccountId: pulumi.Output; /** * Whether dynamic throttling is enabled. */ readonly dynamicThrottlingEnabled: pulumi.Output; /** * A `model` block as defined below. Changing this forces a new resource to be created. */ readonly model: pulumi.Output; /** * The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of RAI policy. */ readonly raiPolicyName: pulumi.Output; /** * A `sku` block as defined below. */ readonly sku: pulumi.Output; /** * Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`. */ readonly versionUpgradeOption: pulumi.Output; /** * Create a Deployment 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: DeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Deployment resources. */ export interface DeploymentState { /** * The ID of the Cognitive Services Account. Changing this forces a new resource to be created. */ cognitiveAccountId?: pulumi.Input; /** * Whether dynamic throttling is enabled. */ dynamicThrottlingEnabled?: pulumi.Input; /** * A `model` block as defined below. Changing this forces a new resource to be created. */ model?: pulumi.Input; /** * The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of RAI policy. */ raiPolicyName?: pulumi.Input; /** * A `sku` block as defined below. */ sku?: pulumi.Input; /** * Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`. */ versionUpgradeOption?: pulumi.Input; } /** * The set of arguments for constructing a Deployment resource. */ export interface DeploymentArgs { /** * The ID of the Cognitive Services Account. Changing this forces a new resource to be created. */ cognitiveAccountId: pulumi.Input; /** * Whether dynamic throttling is enabled. */ dynamicThrottlingEnabled?: pulumi.Input; /** * A `model` block as defined below. Changing this forces a new resource to be created. */ model: pulumi.Input; /** * The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of RAI policy. */ raiPolicyName?: pulumi.Input; /** * A `sku` block as defined below. */ sku: pulumi.Input; /** * Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`. */ versionUpgradeOption?: pulumi.Input; }