import * as pulumi from "@pulumi/pulumi"; /** * The PromptTemplate resource for Firebase AI Logic. * * > **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider. * See Provider Versions for more details on beta resources. * * To get more information about PromptTemplate, see: * * * [API documentation](https://firebase.google.com/docs/reference/ai-logic/rest/v1beta/projects.locations.templates) * * How-to Guides * * [Get started with server prompt templates](https://firebase.google.com/docs/ai-logic/server-prompt-templates/get-started) * * [Product documentation for Firebase AI Logic](https://firebase.google.com/docs/ai-logic) * * [Specification for Dotprompt format](https://google.github.io/dotprompt/getting-started) * * ## Example Usage * * ### Firebaseailogic Prompt Template File * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * import * as std from "@pulumi/std"; * * const file = new gcp.firebase.AiLogicPromptTemplate("file", { * location: "global", * templateId: "file-template", * templateString: std.file({ * input: "test-fixtures/hello_world.prompt", * }).then(invoke => invoke.result), * }); * ``` * ### Firebaseailogic Prompt Template Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const basic = new gcp.firebase.AiLogicPromptTemplate("basic", { * location: "global", * templateId: "basic-template", * templateString: `--- * model: gemini-2.5-flash * --- * Hello world! * `, * }); * ``` * * ## Import * * PromptTemplate can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/templates/{{template_id}}` * * `{{project}}/{{location}}/{{template_id}}` * * `{{location}}/{{template_id}}` * * When using the `pulumi import` command, PromptTemplate can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:firebase/aiLogicPromptTemplate:AiLogicPromptTemplate default projects/{{project}}/locations/{{location}}/templates/{{template_id}} * $ pulumi import gcp:firebase/aiLogicPromptTemplate:AiLogicPromptTemplate default {{project}}/{{location}}/{{template_id}} * $ pulumi import gcp:firebase/aiLogicPromptTemplate:AiLogicPromptTemplate default {{location}}/{{template_id}} * ``` */ export declare class AiLogicPromptTemplate extends pulumi.CustomResource { /** * Get an existing AiLogicPromptTemplate 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?: AiLogicPromptTemplateState, opts?: pulumi.CustomResourceOptions): AiLogicPromptTemplate; /** * Returns true if the given object is an instance of AiLogicPromptTemplate. 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 AiLogicPromptTemplate; /** * Timestamp when the PromptTemplate was created. */ readonly createTime: pulumi.Output; /** * The display name of the PromptTemplate. */ readonly displayName: pulumi.Output; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ readonly location: pulumi.Output; /** * Indicates if the PromptTemplate has been locked for mutations. It is * strongly recommended that PromptTemplates used in production Apps be * locked to avoid accidental distruption to live apps. * To modify a PromptTemplate that has been locked, a call to ModifyLock with * lock=false is required first. */ readonly locked: pulumi.Output; /** * The model name parsed from the template_string. */ readonly model: pulumi.Output; /** * Identifier. The resource name of the PromptTemplate. * Format: * projects/{project}/locations/{location}/templates/{prompt_template} */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * Timestamp when the PromptTemplate state was last changed. */ readonly stateChangeTime: pulumi.Output; /** * The unique ID of the PromptTemplate, which is the final component of the * PromptTemplate's resource name. */ readonly templateId: pulumi.Output; /** * The [Dotprompt](https://google.github.io/dotprompt/getting-started) raw template string. */ readonly templateString: pulumi.Output; /** * Timestamp when the PromptTemplate was last updated. */ readonly updateTime: pulumi.Output; /** * Create a AiLogicPromptTemplate 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: AiLogicPromptTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiLogicPromptTemplate resources. */ export interface AiLogicPromptTemplateState { /** * Timestamp when the PromptTemplate was created. */ createTime?: pulumi.Input; /** * The display name of the PromptTemplate. */ displayName?: pulumi.Input; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ location?: pulumi.Input; /** * Indicates if the PromptTemplate has been locked for mutations. It is * strongly recommended that PromptTemplates used in production Apps be * locked to avoid accidental distruption to live apps. * To modify a PromptTemplate that has been locked, a call to ModifyLock with * lock=false is required first. */ locked?: pulumi.Input; /** * The model name parsed from the template_string. */ model?: pulumi.Input; /** * Identifier. The resource name of the PromptTemplate. * Format: * projects/{project}/locations/{location}/templates/{prompt_template} */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Timestamp when the PromptTemplate state was last changed. */ stateChangeTime?: pulumi.Input; /** * The unique ID of the PromptTemplate, which is the final component of the * PromptTemplate's resource name. */ templateId?: pulumi.Input; /** * The [Dotprompt](https://google.github.io/dotprompt/getting-started) raw template string. */ templateString?: pulumi.Input; /** * Timestamp when the PromptTemplate was last updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a AiLogicPromptTemplate resource. */ export interface AiLogicPromptTemplateArgs { /** * The display name of the PromptTemplate. */ displayName?: pulumi.Input; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The unique ID of the PromptTemplate, which is the final component of the * PromptTemplate's resource name. */ templateId: pulumi.Input; /** * The [Dotprompt](https://google.github.io/dotprompt/getting-started) raw template string. */ templateString: pulumi.Input; }