import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Cognitive Account Project. * * > **Note:** Cognitive Account Projects can only be created under a Cognitive Account that has `projectManagementEnabled = true`, `kind = "AIServices"`, a managed identity configured, and a `customSubdomainName` specified. * * ## 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-account", * location: example.location, * resourceGroupName: example.name, * kind: "AIServices", * skuName: "S0", * projectManagementEnabled: true, * customSubdomainName: "example-account-subdomain", * identity: { * type: "SystemAssigned", * }, * }); * const exampleAccountProject = new azure.cognitive.AccountProject("example", { * name: "example-project", * cognitiveAccountId: exampleAccount.id, * location: example.location, * description: "Example cognitive services project", * displayName: "Example Project", * identity: { * type: "SystemAssigned", * }, * tags: { * Environment: "test", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.CognitiveServices` - 2025-06-01 * * ## Import * * Cognitive Account Projects can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:cognitive/accountProject:AccountProject example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.CognitiveServices/accounts/account1/projects/project1 * ``` */ export declare class AccountProject extends pulumi.CustomResource { /** * Get an existing AccountProject 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?: AccountProjectState, opts?: pulumi.CustomResourceOptions): AccountProject; /** * Returns true if the given object is an instance of AccountProject. 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 AccountProject; /** * The ID of the Cognitive Account where the Project should exist. Changing this forces a new resource to be created. */ readonly cognitiveAccountId: pulumi.Output; /** * Whether this project is the default project for the Cognitive Account. */ readonly default: pulumi.Output; /** * A description of the Cognitive Account Project. */ readonly description: pulumi.Output; /** * The display name of the Cognitive Account Project. */ readonly displayName: pulumi.Output; /** * A mapping of endpoint names to endpoint URLs for the project. */ readonly endpoints: pulumi.Output<{ [key: string]: string; }>; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Azure Region where the Cognitive Account Project should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name of the Cognitive Account Project. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a AccountProject 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: AccountProjectArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccountProject resources. */ export interface AccountProjectState { /** * The ID of the Cognitive Account where the Project should exist. Changing this forces a new resource to be created. */ cognitiveAccountId?: pulumi.Input; /** * Whether this project is the default project for the Cognitive Account. */ default?: pulumi.Input; /** * A description of the Cognitive Account Project. */ description?: pulumi.Input; /** * The display name of the Cognitive Account Project. */ displayName?: pulumi.Input; /** * A mapping of endpoint names to endpoint URLs for the project. */ endpoints?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the Cognitive Account Project should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the Cognitive Account Project. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a AccountProject resource. */ export interface AccountProjectArgs { /** * The ID of the Cognitive Account where the Project should exist. Changing this forces a new resource to be created. */ cognitiveAccountId: pulumi.Input; /** * A description of the Cognitive Account Project. */ description?: pulumi.Input; /** * The display name of the Cognitive Account Project. */ displayName?: pulumi.Input; /** * An `identity` block as defined below. */ identity: pulumi.Input; /** * The Azure Region where the Cognitive Account Project should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the Cognitive Account Project. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }