import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * A `Template` is a resource of Model Armor that lets you configure how Model Armor screens prompts and responses.
 * It functions as sets of customized filters and thresholds for different safety and security confidence levels, allowing control over what content is flagged.
 *
 * ## Example Usage
 *
 * ### Modelarmor Template Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const template_basic = new gcp.modelarmor.Template("template-basic", {
 *     location: "us-central1",
 *     templateId: "modelarmor1",
 *     filterConfig: {},
 *     templateMetadata: {},
 * });
 * ```
 * ### Modelarmor Template Filter Config
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const template_filter_config = new gcp.modelarmor.Template("template-filter-config", {
 *     location: "us-central1",
 *     templateId: "modelarmor2",
 *     filterConfig: {
 *         raiSettings: {
 *             raiFilters: [{
 *                 filterType: "HATE_SPEECH",
 *                 confidenceLevel: "HIGH",
 *             }],
 *         },
 *         sdpSettings: {
 *             basicConfig: {
 *                 filterEnforcement: "ENABLED",
 *             },
 *         },
 *         piAndJailbreakFilterSettings: {
 *             filterEnforcement: "ENABLED",
 *             confidenceLevel: "MEDIUM_AND_ABOVE",
 *         },
 *         maliciousUriFilterSettings: {
 *             filterEnforcement: "ENABLED",
 *         },
 *     },
 *     templateMetadata: {
 *         multiLanguageDetection: {
 *             enableMultiLanguageDetection: false,
 *         },
 *     },
 * });
 * ```
 * ### Modelarmor Template Template Metadata
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const template_template_metadata = new gcp.modelarmor.Template("template-template-metadata", {
 *     location: "us-central1",
 *     templateId: "modelarmor3",
 *     filterConfig: {
 *         raiSettings: {
 *             raiFilters: [{
 *                 filterType: "HARASSMENT",
 *                 confidenceLevel: "MEDIUM_AND_ABOVE",
 *             }],
 *         },
 *     },
 *     templateMetadata: {
 *         customLlmResponseSafetyErrorMessage: "This is a custom error message for LLM response",
 *         logSanitizeOperations: false,
 *         logTemplateOperations: true,
 *         multiLanguageDetection: {
 *             enableMultiLanguageDetection: true,
 *         },
 *         ignorePartialInvocationFailures: false,
 *         customPromptSafetyErrorCode: 400,
 *         customPromptSafetyErrorMessage: "This is a custom error message for prompt",
 *         customLlmResponseSafetyErrorCode: 401,
 *         enforcementType: "INSPECT_ONLY",
 *     },
 * });
 * ```
 * ### Modelarmor Template Label
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const template_label_advanced_config = new gcp.modelarmor.Template("template-label-advanced-config", {
 *     location: "us-central1",
 *     templateId: "modelarmor4",
 *     labels: {
 *         "test-label": "template-test-label",
 *     },
 *     filterConfig: {
 *         raiSettings: {
 *             raiFilters: [{
 *                 filterType: "DANGEROUS",
 *                 confidenceLevel: "MEDIUM_AND_ABOVE",
 *             }],
 *         },
 *         sdpSettings: {
 *             advancedConfig: {
 *                 inspectTemplate: "projects/llm-firewall-demo/locations/us-central1/inspectTemplates/t3",
 *                 deidentifyTemplate: "projects/llm-firewall-demo/locations/us-central1/deidentifyTemplates/t2",
 *             },
 *         },
 *     },
 *     templateMetadata: {
 *         multiLanguageDetection: {
 *             enableMultiLanguageDetection: false,
 *         },
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * Template 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, Template can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:modelarmor/template:Template default projects/{{project}}/locations/{{location}}/templates/{{template_id}}
 * $ pulumi import gcp:modelarmor/template:Template default {{project}}/{{location}}/{{template_id}}
 * $ pulumi import gcp:modelarmor/template:Template default {{location}}/{{template_id}}
 * ```
 */
export declare class Template extends pulumi.CustomResource {
    /**
     * Get an existing Template 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?: TemplateState, opts?: pulumi.CustomResourceOptions): Template;
    /**
     * Returns true if the given object is an instance of Template.  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 Template;
    /**
     * Create time stamp
     */
    readonly createTime: pulumi.Output<string>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    readonly deletionPolicy: pulumi.Output<string>;
    /**
     * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
     */
    readonly effectiveLabels: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * Filters configuration.
     * Structure is documented below.
     */
    readonly filterConfig: pulumi.Output<outputs.modelarmor.TemplateFilterConfig>;
    /**
     * Labels as key value pairs
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effectiveLabels` for all of the labels present on the resource.
     */
    readonly labels: pulumi.Output<{
        [key: string]: string;
    } | undefined>;
    /**
     * 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<string>;
    /**
     * Identifier. name of resource
     */
    readonly name: pulumi.Output<string>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    readonly project: pulumi.Output<string>;
    /**
     * The combination of labels configured directly on the resource
     *  and default labels configured on the provider.
     */
    readonly pulumiLabels: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * Id of the requesting object
     * If auto-generating Id server-side, remove this field and
     * templateId from the methodSignature of Create RPC
     */
    readonly templateId: pulumi.Output<string>;
    /**
     * Message describing TemplateMetadata
     * Structure is documented below.
     */
    readonly templateMetadata: pulumi.Output<outputs.modelarmor.TemplateTemplateMetadata>;
    /**
     * Update time stamp
     */
    readonly updateTime: pulumi.Output<string>;
    /**
     * Create a Template 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: TemplateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Template resources.
 */
export interface TemplateState {
    /**
     * Create time stamp
     */
    createTime?: pulumi.Input<string | undefined>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
     */
    effectiveLabels?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Filters configuration.
     * Structure is documented below.
     */
    filterConfig?: pulumi.Input<inputs.modelarmor.TemplateFilterConfig | undefined>;
    /**
     * Labels as key value pairs
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effectiveLabels` for all of the labels present on the resource.
     */
    labels?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * 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<string | undefined>;
    /**
     * Identifier. name of resource
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    project?: pulumi.Input<string | undefined>;
    /**
     * The combination of labels configured directly on the resource
     *  and default labels configured on the provider.
     */
    pulumiLabels?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Id of the requesting object
     * If auto-generating Id server-side, remove this field and
     * templateId from the methodSignature of Create RPC
     */
    templateId?: pulumi.Input<string | undefined>;
    /**
     * Message describing TemplateMetadata
     * Structure is documented below.
     */
    templateMetadata?: pulumi.Input<inputs.modelarmor.TemplateTemplateMetadata | undefined>;
    /**
     * Update time stamp
     */
    updateTime?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a Template resource.
 */
export interface TemplateArgs {
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * Filters configuration.
     * Structure is documented below.
     */
    filterConfig: pulumi.Input<inputs.modelarmor.TemplateFilterConfig>;
    /**
     * Labels as key value pairs
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effectiveLabels` for all of the labels present on the resource.
     */
    labels?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * 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<string>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    project?: pulumi.Input<string | undefined>;
    /**
     * Id of the requesting object
     * If auto-generating Id server-side, remove this field and
     * templateId from the methodSignature of Create RPC
     */
    templateId: pulumi.Input<string>;
    /**
     * Message describing TemplateMetadata
     * Structure is documented below.
     */
    templateMetadata?: pulumi.Input<inputs.modelarmor.TemplateTemplateMetadata | undefined>;
}
//# sourceMappingURL=template.d.ts.map